mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 04:52:54 -05:00
placedItems.removeAll() and rasterItems.removeAll() checked only whether each image and its layers and groups were shown and unlocked, then passed the ids to edit.clear, which deletes named objects without checking artboard locks. Both now throw "cannot delete objects on a locked artboard" with the image ids and delete nothing, as pageItems.removeAll() does. Assigning matrix read the value before the item, so a stale image or an add() result without a file threw the matrix error. Assigning file to an add() result that was placed and then embedded threw "PlacedItem.file is read-only: use relink". Both now check the item first and throw "Stale page item" or "PlacedItem.file is required". A File that a host class member returns now charges its new path string to the script heap, in the same reservation as the File object. docs/gaps.md G6 and the M13 row in docs/roadmap.md list the placed and raster image classes; docs/mcp.md states the removeAll and setter rules.