- move() on an object on a locked artboard throws "cannot move objects
on a locked artboard", as remove() refuses to delete such an object.
- move() works out the index node.move puts the object at, with art
kept below the layer's ruler guides, before it decides whether the
object moves. Before, moving the topmost art to the top of a layer
with ruler guides ran node.move and added an undo step that changed
nothing.
edit.copy, artboard.copy and artboard.cut now have the clipboard saved
before them, as edit.cut and command.batch do. Before, a Copy whose
result could not reach the script was put back without its clipboard,
so the copy stayed on the clipboard and the run reported copied: true.
- controlBounds gives the visible bounds together with the anchors and
direction points of the paths in the object, taking the members its
geometric bounds take. A blend, envelope or other live object gives
its visible bounds. Before, every object gave its visible bounds.
- A New Document profile is opened once. After the open, the roots in
force must still allow its path and the path must still name the plain
file that was opened, so a file put in its place between the checks
and the open is not read.
- Array methods visit every index of an object of a host class with an
indexer, also past 4,096 indices. Before, a long range was listed from
the object's properties, and its indexed elements were skipped.
- An assignment to a document's selection checks each item against a set
of the ids taken, so a long list is not searched once for each item.
- A test shows that a failed selection assignment leaves the selection
within the same run, and the link test removes its files when an
assertion fails.
- A command whose result cannot reach the script is put back, and the
run counts its Copy or Cut only when the clipboard keeps it. Before,
a put-back command.batch left its copy on the clipboard, and a put-back
Cut after an earlier copy still gave the report copied: true.
command.batch now has the clipboard saved before it, as edit.cut and
action.batch do.
- concatenateMatrix and the other concatenate functions sum each value
past the range of a number when a product overflows or falls below
the normal range next to another product, so [2^600, 2^600, 0, 1]
then [2^600, 0, -2^600, 1] gives [0, 2^600, -2^600, 1] instead of a
RangeError, and two products of 2^-1075 sum to 2^-1074.
- getRotationMatrix and concatenateRotationMatrix reduce the angle with
a remainder that keeps its sign, so -89.99999999999999 is not rounded
to the quarter turn 270; -90, -180 and -270 stay exact.
- docs/mcp.md says isEqualMatrix and isSingularMatrix give true or
false, not a new record.
A New Document profile file that is a link or a folder is no longer read:
the read is exempt from a script's file gate, which never checked where a
link leads. file.new reports it as a profileError with the reason "not a
plain file".
Reading a DocumentPreset setting now counts the value it returns toward
the data a run may pass, as assigning it does, and addDocument counts the
preset's settings before copying them.
The removeAll() test on a locked artboard now also holds an object on an
unlocked artboard and checks it is still there after the call throws.
- The question a run asks before a script sets ShowExternalJSXWarning to
false has a row in every complete-message catalog, with a test that
each of them translates it.
- Russian and Ukrainian name File › Scripts › Other Script… as another
script rather than another writing system.
- A preference key's limit is stated as a length of 1 to 256 UTF-16 code
units, the count the code checks, in the error and in docs/mcp.md; a
test covers keys of characters outside the Basic Multilingual Plane.
- The host name check lists Preferences, the matrix functions and
app.copy, cut and paste; the preference setters and removePreference
carry the checker's preferences id.
A preset made with file.new's rows under gridByColumn shows the column
count those rows give the current number of artboards. Changing the
Layout field removed the rows and kept the preset's stored columns, so
Create laid out a different number of columns than the dialog showed.
The layout change now writes the shown count into columns, for rows
stored as integers or floats. Under gridByRow the dialog shows the
stored columns and file.new rejects rows, so a layout change from it
keeps the stored columns, as it does for rows file.new would reject.