Files
vectorcraft/docs
dotCooCoo 44c5c4ccd9 Scripts: insert returns nothing, stale collections fail toString, charges and reports fixed
- `artboards.insert` returns nothing, as the scripting reference says; `add`
  still returns the new artboard.
- `toString` of `Layers`, `GroupItems`, `CompoundPathItems` and `Artboards`
  checks the collection as `typename` does, so a collection whose container
  is gone throws instead of stringifying.
- The collections' `index` is described as returning their element class,
  with an `itemKey` of any type. `PageItems.parent` and `PathItems.parent`
  are described as any type, since scoped collections return a layer or
  group.
- `hasSelectedArtwork` charges the selection and every node of the layer it
  looks at to the script budget, also when it runs no command.
- A document made during the run whose active artboard the run chose is
  reported when an artboard inserted before it moves it.
- Tests: a test-only counter of built art lists bounds the group loop test,
  and the rejected-parameter checks of `object.newGroup` compare the whole
  layer tree.
2026-12-01 14:18:46 -08:00
..