Files
vectorcraft/docs
dotCooCoo f3df0a6478 Scripts: resource objects go stale after undo and revert, and creation past the limit keeps nothing
- 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.
2026-11-30 14:48:30 -08:00
..