mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 07:13:46 +00:00
object.repeat.radial, object.repeat.grid, object.repeat.mirror and object.repeat.options, and object.pattern.make, object.pattern.edit, object.pattern.saveCopy, pattern.options and pattern.delete, read their params with helpers that fell back to the default for a value of the wrong type: "instances": "8" made 8 instances whatever the text said, "rows": "2" made 3 rows, "edit": "false" entered pattern editing mode, and a `name` that was not a string edited the selected object's pattern. Each such value is now an error naming the param, and the document, the selection and the undo history stay as they were. An omitted or null param keeps its default. - pattern.options refuses an `overlap` that is not an object, and an `overlap.h` other than left or right or an `overlap.v` other than top or bottom. - object.repeat.options refuses a `center` that is not [x, y]. - object.repeat.radial refuses a negative `radius`; it used the automatic radius before. - object.repeat.grid reads `rows` and `cols` as object.repeat.options does: a fraction is cut to a whole number, within 1 to 500. - object.repeat.options applies `brickOffset` given without `gridType` to a brick grid, and its params text lists the key. Docs: docs/mcp.md.