css-doodle

🎨 A web component for drawing patterns with CSS.

MIT License

Downloads
18.1K
Stars
5.4K
Committers
8

Bot releases are hidden (Show)

css-doodle - v0.17.1

Published by yuanchuan over 3 years ago

Enhancement

  • Add support for group properties.
  • Add support for svg text node with content property.

Fixes

  • Catch error on creating illegal SVG elements.
css-doodle - v0.17.0

Published by yuanchuan over 3 years ago

0.17.0

Features

  • Add a new way to write SVG inside @svg function.

Changes

  • Remove contain: content.
css-doodle - v0.16.1

Published by yuanchuan over 3 years ago

Patch

  • Fix SVG size in Safari.
css-doodle - v0.16.0

Published by yuanchuan over 3 years ago

Features

  • Add experimental @reflect and @offset functions.
  • Set aspect-ratio for auto width/height grid.

Changes

  • Make @rand function starts from 0.
  • Remove unused size presets.
  • Remove/add new basic shapes.
  • Add points alias for split.
  • Set css-doodle element default to be contain: content.

Fixes

  • Fix build size to minimal.
  • Fix blank canvas issue in shader.
  • Catch error while WebGL is disabled.
css-doodle - v0.15.3

Published by yuanchuan over 3 years ago

Enhancement

  • Skip HTML tags inside rules.
css-doodle - v0.15.2

Published by yuanchuan over 3 years ago

Fixes

  • Don't use random seed for unique ids.
css-doodle - v0.15.1

Published by yuanchuan over 3 years ago

Fixes

  • Avoid error while charset is missing.
  • Fix error in composition for empty functions.
css-doodle - v0.15.0

Published by yuanchuan over 3 years ago

Features

  • Add @path function for responsive path commands used by clip-path.
  • Add @rn function for normalize distribution random. (Thanks @Plasmatium).

Fixes

  • Fix event binding and grid generation for empty block.
css-doodle - v0.14.2

Published by yuanchuan over 3 years ago

Fixes

  • Fix property register for update() method.
  • Fix initial time uniform name.
css-doodle - v0.14.1

Published by yuanchuan over 3 years ago

Fixes

  • Fix uniform timing function.
  • Prevent uniform animation from getting over-written inside.
css-doodle - v0.14.0

Published by yuanchuan over 3 years ago

Features

  • Add experimental time uniform via @t.

Fixes

  • Fix calc parsing.
  • Keep fraction values for degree in @shape() function.
  • Use empty string for empty seq() args for preventing side effects.
css-doodle - v0.13.10

Published by yuanchuan over 3 years ago

Enhancement to @shape function

  • Add seq() function for shape.
  • Prevent empty shape commands.
  • Recognize θ symbol.
  • Do not evaluate π for compound expressions.
css-doodle - v0.13.9

Published by yuanchuan almost 4 years ago

Enhancement to @shape function

  • Add support for function composition.
css-doodle - v0.13.8

Published by yuanchuan almost 4 years ago

Enhancement to @shape function

  • Add support for comments inside @shape function.
  • Increase max split to 3600.
  • Replace rotate with degree to normalize all commands to nouns.
  • Switch the action order of rotate and origin.
  • Fix trailing semicolon.
css-doodle - v0.13.7

Published by yuanchuan almost 4 years ago

Enhancement to @shape function

  • Add frame option for shape, like stroke.
css-doodle - v0.13.6

Published by yuanchuan almost 4 years ago

Enhancement to @shape function

  • Fix the exponent operator precedence to highest.
css-doodle - v0.13.5

Published by yuanchuan almost 4 years ago

Enhancement to @shape function

  • Fix cycle direction.
  • Add origin commands for @shape.
  • Support exponent operator in @shape.
css-doodle - v0.13.4

Published by yuanchuan almost 4 years ago

Enhancement to @shape function

  • Fix reading undefined variables.
  • Handle empty values for shape commands.
  • Validate user input fill-rule value.
css-doodle - v0.13.3

Published by yuanchuan almost 4 years ago

Enhancement to @shape function

  • Add polar equation support.
  • Fix calc expand with variables.
  • Make the polygon fill rule default to be nonzero.
css-doodle - v0.13.2

Published by yuanchuan almost 4 years ago

Fixes

  • Fix default shader background size.
  • Fix promise not resolving correctly.
  • Fix reading shaders from CSS variables.

Enhancement

  • Add a :host display style that respects the hidden attribute.