- A path list stays kept through paint, stroke and point edits that make
no new object, so a loop over pathItems no longer rebuilds it per edit.
- Resource handles go stale when any step of a batch or an action step
removes or renames their resource, and come back when a failed dataset
row restores it. The names the steps compare are charged to the run,
including for a batch that fails.
- Listing spots is charged for every swatch it looks at.
- A path inside a group inside a compound shape reads and sets the
compound shape's paint.
- Assigning closed on an empty path is kept until the path has points,
and is dropped once a command gives it points.
- Only the host class named Symbol leaves an existing global in place.
Cause of the CI failures on 212090fd7a:
- main's dialogs::new_document test a_presets_rows_reach_the_document_create_makes
sets artboardLayout.rows to 3.6 and expects 4, but this branch refused a
rows value that was not a whole number. rows now rounds like columns and is
still refused outside 1 to 1000.
- script_host_vs_scriptcheck listed Document.prototype.pathItems=, the
setter of main's placeholder. This branch makes pathItems a read-only
collection, like pageItems, so the row goes.
Main gave every class member a reflect type and page item handles a revert
count. The type classes now declare a type for each member, their members
that are not available yet use the unavailable form, TextFrame takes main's
contentVariable, and a text range looks its frame up at the document's
current revert count.
Review fixes:
- A text range length that ends inside a surrogate pair moves its end out
to the end of the character.
- textFrames.removeAll() refuses type on a locked artboard, as
pageItems.removeAll() does.
- Joining a story's text across its frames counts toward the run's data
limit.
- A test shows a script that catches a refused link goes on with the links
unchanged.
Adjustments for main:
- The PathItem, PathPoints, PathPoint, resource, color and document
members declare their types for `reflect`, and the enumerations are
defined in `install`, as main's classes now require.
- Path handles carry the document's revert count, as main's page item
handles do, so `pathPoints` and the points of a path work again.
- Tests that use two documents name them in main's order of
`app.documents`, which lists the active document first.
Fixes from review:
- A failed write of waiting point changes says that the changes were
not written, and later calls do not try again.
- docs/target-app-parity.md says that a path's area and length are read
only.