mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 21:12:57 -05:00
- `pageItems`, `pathItems`, `groupItems` and `compoundPathItems` of a layer or group, the document's `pathItems`, `layers` and `artboards` read with a name give what `getByName` gives, and a name nothing has is not `in` them. Before, only the document's `pageItems` did. - A compound path's `pathItems.removeAll()` keeps the compound path, empty, as `remove()` of its last path does. Before, the compound path was deleted too and the collection went stale. - A Live Paint group's `pathItems`, `groupItems` and `compoundPathItems` throw `Cannot add an object to a Live Paint group` and make nothing. Before, a new path joined the group's source paths and the script got back an object that was not in the collection. - After each command, the points the run read are checked only for the paths in the parts of the document that changed, so a script that reads points of many paths and then edits each one no longer looks at every path after every edit. - A script that ends with nothing left to write, past the growth allowance the last answer gave, is asked again before its changes are kept, as one that writes point changes at the end is. - A new object of a host class adds its handle to the heap's total, as a collection counts it, so objects made between collections cannot go past the heap limit. Docs: docs/mcp.md (collection errors, artboard index errors).