projectshaped / parametric-svg

[NOT MAINTAINED] Parametric drawings in pure SVG.
http://parametric-svg.js.org
73 stars 5 forks source link

Bring back support for default parameters #2

Open tomek-he-him opened 9 years ago

tomek-he-him commented 9 years ago

To make the thing compatible with SVG Parameters, I originally included a compatible way to declare default parameters. You could declare the value through a <ref> element.

But at the moment default parameters costed a significant amount of tests, logic and bugfixes in the proof-of-concept library. Since I don’t need them yet, I’d rather keep them out for v1.0.

We can always re-introduce them in v1.1 or later without that being a breaking change.

tomek-he-him commented 9 years ago

Here’s where I started getting rid of the defaults: https://github.com/parametric-svg/spec/commit/5cc0455a2da3e82eaa3c2663289709366d540946.