mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
Each document gains the swatches, spots, swatchGroups, symbols, symbolItems, graphicStyles and brushes collections that the scripting reference lists (https://ai-scripting.docsforadobe.dev/jsobjref/Document/). Each change runs the existing Swatches, Symbols, Graphic Styles or Brushes command inside the run's transaction. - Resource objects follow renames made through them and throw Stale <Class> once the resource is removed, or renamed or deleted with vc.run, so a new resource with the old name is not theirs. - Swatches, spots and color groups share their names: a name one of them already has throws instead of taking a numbered name. - None, Registration and the Default Graphic Style cannot be renamed or removed, and removeAll() keeps them. - spots.add() converts the current fill to the document's color space unless it is Lab; a spot's color stays in that space or Lab. - A tint of a spot reads as a SpotColor of that spot at its tint. - Brush.applyTo throws for a guide, a clipping path and a path in a compound path, which brush.apply does not brush. - Objects of another document throw before any command runs. - Document.gradients, Document.patterns and assigning a SpotColor to art are not available yet. The host name check lists the new classes, members and enumerations. Docs: docs/mcp.md, docs/target-app-parity.md.