mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 07:13:46 +00:00
object.expand read `object`, `fill` and `stroke` with bool_or, `steps` with f64_or and `gradient` with str_param, so a value of the wrong type fell back to the default: "fill": "yes" expanded the fill, "steps": "16" made 255 strips and "gradient": 3 made strips. They are now read with switch_or, number_or and text_param, and such a value is an error that names the param, before anything changes. Omitting a param or giving null keeps its default.