🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

css-doodle

Package Overview
Dependencies
Maintainers
1
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-doodle - npm Package Versions

1
68
20

0.30.1

Diff
yuanchuan
published 0.30.1 •

Changelog

Source

0.30.1

  • Fix CSS and SVG parser on quotes and parens.
  • Add range support for @m function.
    ::after {
      /* 5 4 3 2 1 */
      content: @M5-1.@n;
    }
    

<br /> <br />

yuanchuan
published 0.30.0 •

Changelog

Source

0.30.0

  • Add exports.

    import CSSDoodle from 'css-doodle';
    import { svg, shape } from 'css-doodle/generator';
    import { tokenizer } from 'css-doodle/parser';
    
    document.appendChild(CSSDoodle`
      @grid: 10 / 200px;
      background: @p(red, blue);
      margin: 1px;
    `);
    
    let code = svg(`
      viewBox: 0 0 10 10;
      circle {
        cx, cy, r: 5;
      }
    `);
    
    let polygon = shape(`
      points: 200;
      r: sin(t);
    `);
    
    let tokens = tokenizer.scan(`
      color: red
    `);
    

<br /> <br />

yuanchuan
published 0.29.4 •
yuanchuan
published 0.29.3 •
yuanchuan
published 0.29.2 •

Changelog

Source

0.29.2

  • Restore Plot function for unitless points.
  • Allow spaces around times operator.
  • Fix inline SVG element generator.

<br /> <br />

yuanchuan
published 0.29.1 •

Changelog

Source

0.29.1

  • Extend use attribute to support rules in pure string.
    <css-doodle use="@grid: 5 / 200px"></css-doodle>
    

<br /> <br />

yuanchuan
published 0.29.0 •

Changelog

Source

0.29.0

  • Add Emmet-like syntax for generating SVG element.

    line*10 {
    
    }
    

    Equals to

    @M10(line {
    
    })
    

<br /> <br />

yuanchuan
published 0.28.2 •

Changelog

Source

0.28.2

  • Add @place alias for @position.
  • Do not SVG group elements for empty id.
  • Extend @svg-filter to add blur, erode, and dilate commands.

<br /> <br />

yuanchuan
published 0.28.1 •

Changelog

Source

0.28.1

  • Fix frequency variable name.
  • Fix seed random inside @doodle function.
  • Use seed for default svg filter seed.

<br /> <br />

yuanchuan
published 0.28.0 •

Changelog

Source

0.28.0

  • Reduce the default maximum grid size to 64x64. It can be up to 256x256 if the experimental attribute is provided (#91)
  • Support title and desc element (#92)
  • Fix broken var inheritance (#94)
  • Support named arguments for @svg-filter and @rn (#95)
  • Support reading seed value from source code (#96)

<br /> <br />