script.startup.run checks then's parameters as script.run checks them,
before any startup script runs. In the app, the message of a startup
script that fails or is stopped, through the quit prompt too, stays in
the status bar's notes after the chosen script ends.
When the paths together are over the segment limit, the search maps the
paths near the point and leaves out the ones with the most segments. A
path left out made the search give up on an area when it came within the
gap plus 1 pt of the area's outline, so with Gap Detection off a long line
0.75 pt outside a square stopped a click inside the square from filling
it. A gap bridge reaches at most the gap, so the check now uses the gap
plus the map's 0.05 pt contact tolerance. The 1 pt padding still decides
which paths the search picks.
In isolation mode, shapeBuilder.copyRegion with ids already takes every
path of the isolated layer or group when ids lists it, or a layer or
group that holds it, and ignores the other listed objects. The params
text and docs/mcp.md said only the listed objects inside it counted.
They now describe that case, and a new engine test pins it.
Most of this pull request reached main with #4221 (the smooth join and the
redraw preview). What is left:
- A redraw stroke's end bends onto the path over Edit selected paths' distance.
When the stroke's points are far apart (a fast stroke), the bend used to run
on to the next point; a point is now added where the bend stops, and only one
where both ends' bends stop at the same place.
- The preview of a redraw stroke is drawn on top, as with Draw Normal, in Draw
Behind and Draw Inside too; before, it went behind the path or into its clip
group. path.freehand's `leaveSelection` becomes `preview`, which does both.
Fill Area used the full outline of art inside a clipping group, so a
click in the part a mask hides still found an area, and the new path
above the clipping group showed art the mask hid. Now each clipped
path is cut to every mask around it before it bounds areas, nested
clipping groups and clipped layers included: a filled path keeps its
overlap with the mask, and the outline of an unfilled path and open
paths keep only their pieces inside it. A mask that clips to nothing
hides what it clips. The new path still goes above the clipping group.
Follows #8001.
After a selection square is clicked, Shift-clicking another selects the
art of every row listed from the last square clicked to this one, down or
up and across sublayers and groups. Shift+Ctrl/Cmd-click adds that art to
the selection. Hidden and locked rows and art outside the isolated group
are left out, and a range does not move where the next Shift-click
starts. Before any square is clicked, Shift-click still adds one row's
art or takes it out. Ctrl/Cmd-click on a square now does the same; it
used to select the row's art alone, as a plain click does.
The panel menu's Select Art of Highlighted Rows selects the art of the
highlighted rows by the same rules.
- layer.selectAll takes {range: [id...], add?}, gathered with
Selection::target_range as the target circles' ranges are.
- layer.selectHighlighted {add?} is new. Neither is an undo step, and
the highlighted rows stay.
- Docs: docs/mcp.md, docs/target-app-parity.md.
A selected ruler guide was left out of every transform but a move: the
Rotate tool did nothing with only guides selected, and Object › Transform
› Rotate… refused with "nothing selected".
Each selected ruler guide now transforms as the line Release Guides makes
of it (across its artboard, or across the artboards' bounds for a canvas
guide), about the center of the selected objects' box and those lines
together. A guide that ends up vertical or horizontal stays a ruler guide:
a half turn keeps it and a quarter turn makes a horizontal guide vertical.
At any other angle it becomes a guide path along its line, on the guide's
layer, so it snaps, releases, locks and saves as other guide paths do.
- Object › Transform › Rotate… (Copy included), Transform Again and the
Rotate tool's drag and Alt-click work with only guides selected, in one
undo step. A turn that leaves the guides where they were records none.
- Scale, Reflect, Shear and the bounding box now transform selected guides
along with the selected objects and direct-selected anchors, where
before the guides stayed put.
- Locked and hidden guides, guides with ids given and guides with
Transform Objects off do not transform. `absolute` with only guides
selected is an error.
Part of #2418.
A grant whose path a link has since replaced is listed by script.grants
under the path it was kept for, but script.grants.revoke followed the
link and compared the link's target, so Revoke in Script File Access
removed nothing. A path is now matched as given and, inside the
automation read roots, also with its links followed.
The owner a selected stop, freeform point or midpoint diamond is kept for
now records the active document's uid instead of its tab index. Dragging
the document's tab along the strip (document.move) changed the index, so
the selection was dropped and the Location field was disabled although the
gradient had not changed.
An empty or blank `path` was treated as no path, so the command
returned `dataBase64` and wrote no file. It is now an error, and a
`path` left out still returns the file as `dataBase64`.
app.executeMenuCommand('Fit Artboard to artwork bounds') threw the
command's error when the active artboard was locked or had no art on
it. The canvas's right-click menu dims Fit to Artwork Bounds then
(DocState::any_art_to_fit), so the script now does nothing and adds
no undo step, as for the other menu items that are not available. The docs state
that an available menu item runs its command and that an error that
command returns throws.
The host-versus-checker name table lists
Application.prototype.executeMenuCommand.
A tag id in a native file that is negative, a fraction or text read as
an error, so the whole file failed to open. It now reads as 0, and
opening gives the tag a new id as it does for a missing or repeated id,
with its name and value kept.
The Scripts line in docs/target-app-parity.md now describes
PageItem.tags and Document.tags separately: Document.tags reads, renames
and deletes tags but its add throws.