mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
- A swatch, symbol, style or brush that app.undo(), app.redo() or any other command removes is noted after every command, not only after vc.run, and the note is kept until the object model next looks up an object. A later resource given the removed name no longer revives the old object. A call whose change is put back drops the removals it noted. - File > Revert leaves every resource object made before it stale, as it already does for page items and text styles. - swatches.add(), spots.add(), swatchGroups.add(), symbols.add() and Symbol.duplicate() take the object's slot in the same step as the command, so a run at its object limit throws with no new resource kept. - Reading a collection by index lists its names once while the document is unchanged, instead of once per read. - removeAll() is charged for every record it looks at and for each swatch of the color groups it deletes. - Swatch.color compares and converts an RGB color through the profiles the swatch's own document is assigned, not the front document's. - Brush.applyTo refuses a path in a compound shape, at any depth, as it refuses a path in a compound path: the shape's paint is drawn, not the path's. Docs: docs/mcp.md states when Brush.applyTo runs no command, the case where a process swatch keeps an RGB color, and when resource objects go stale.