mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 02:07:10 +01:00
Assigning PathItem.guides on a path inside a compound path made every path in that compound a guide, because Make Guides acts on the compound that holds a selected member; it now throws an error that says it is not available yet, as duplicate and zOrder do for compound members. While guides are locked, assigning false threw and assigning true succeeded; now either value throws when it would change the path. A path that cannot be selected, for example one outside the isolated group or on a locked artboard, throws Cannot edit before any command runs. Assigning the value a path already has runs no command and throws no error. These are VectorCraft's own rules, and docs/mcp.md lists them with the other rules of its own. Tests cover a compound path member, a clipping path, a locked and a hidden path, the guide lock in both directions, a path in a group of two, and the TypeError name for a value that is not a boolean.