The double-click or triple-click that follows a lent Cmd-click went to
the tool lent to that press even after another tool or document was
chosen. The lent tool is now kept with the document and the tool it was
lent from, and a follow-up in another document or after a tool switch
goes to the active tool.
With a shape tool active and Direct Selection chosen last, Cmd held
lends Direct Selection, which does not press a live ellipse's pie
widgets. The canvas now draws them for a shape tool only while that
tool is the one shown, as the bounding box already does.
Adds tests for two Select Behind rules: a Cmd press on a selected
object with nothing behind it is lent to Direct Selection, and a layer
effect that moves the art moves where a Cmd press selects behind, in
Preview after Outline view too, while a drop shadow is not hit.
The hover's lend decision key is a named struct. The pointer_gesture
paragraph in docs/mcp.md is wrapped to the file's width, and the
Temporary tools line in docs/target-app-parity.md cites the default
keyboard shortcuts page.
A Cmd press with the Selection tool now selects behind on a group that
holds a selected member, as it does on a selected object, so repeated
Cmd-clicks on grouped art reach the object behind the group. A path's
segments no longer keep the press for Direct Selection, so a Cmd-click
on a selected stroke-only path selects behind it. Select Behind needs
another object under the pointer: on a lone object the press is lent.
The bounding box's handles and rotate zones also lend the press.
- A double-click that follows a Cmd-click selecting behind keeps what
that click selected, without isolating or editing, also when the
press and the double-click come in one frame. After an edit or a
selection change, or after a press that drags or is released away
from where it began, it is an ordinary double-click.
- Whether a press selects behind is kept for the pointer's position
while the document, the selection, the live inputs and the hit-test
settings stay as they are, so the cursor, the canvas marks and the
press do not walk the document again. A layer or group effect that
draws art widens the area checked; raster effects and color
adjustments do not.
- The selected blends' spines are built once per check.
- The status bar and the help bar name the tool a press at the pointer
takes, which is the Selection tool where the press selects behind,
and they are drawn again when it changes. The canvas drops a hover's
decision once the tool, the selection or a preference it depends on
changes.
Docs: docs/mcp.md (pointer_gesture, and Cmd+Alt with Direct
Selection), docs/control-protocol.md, docs/ui-parity.md,
docs/target-app-parity.md.
With the Selection tool chosen, holding Cmd (Ctrl on Windows and Linux)
now lends Direct Selection, or Group Selection when that was chosen
last, for each press; the Selection tool is back on the release. With
Group Selection chosen, Cmd lends the Selection tool, as it already did
with Direct Selection. Selection & Anchor Display > Command Click to
Select Objects Behind keeps a Cmd press on a selected object, away from
its anchors, handles, mesh points and spine, for selecting the object
behind it. A wide stroke's painted area counts as on the object there.
- The double-click or triple-click after Cmd-clicks goes to the tool
the clicks went to.
- Cmd pressed once a drag is under way lends nothing, and the pointer
stays the active tool's.
- While Cmd is held, the status bar's Current Tool and the help bar
name the lent tool, and the canvas shows the lent tool's marks and
widgets (blend, Shaper, mirror, trace divider and repeat handles) for
the pointer's position in the same frame.
- The help bar has hints for Group Selection.
The helper that finds a selected object's editable parts under the
pointer follows the one in pull request 6597 by SofiaAFigueredo.
Docs: docs/ui-parity.md, docs/control-protocol.md (ui.pointer).
Co-authored-by: SofiaAFigueredo <223278896+SofiaAFigueredo@users.noreply.github.com>
The system font scan built each face from its name, fvar, OS/2, head and
post tables only, so a family that was found but not loaded never had
Thai in its traits. The font menus' Thai filter left such families out,
and Show Similar Fonts grouped them with the other scripts until they
were loaded.
- A face sets Thai when its OS/2 table allows it (no OS/2 table, the
Thai Unicode range, bit 24, or the Thai code page, bit 16) and its
character map has Thai, loaded or scanned.
- The scan reads the cmap table of such a face only, up to 16 MiB.
The search for a document's missing fonts reads no cmap table, so
its byte limit covers the same tables as before.
When the same segment appears more than once among the second segments,
its roots were found once per copy, and each copy's places were checked
against every second segment. The sorted places now drop exact repeats
before they are checked. Places that differ, however close, are all kept,
so the circles found do not change.
A live edit changes the document without an undo step, so the tool was
not told about it. Circles found while a preview moved the second
segment stayed cached under the same segment key, and a click after the
preview was canceled drew the cached circle instead of one touching the
segment where it is again. A first segment picked during a preview kept
its old shape the same way.
The cache key now holds the shapes of the first segment and of the
segments a circle may touch, so moving along an unchanged segment still
reuses the search. The first segment is forgotten when its shape no
longer matches the document, and a press on the second segment follows
the segments as they are at the release; a pressed segment that is gone
leaves nothing to touch.
docs/target-app-parity.md gets a line for the file.write report on a
File object's length, hidden and readonly and for the test that lists
every name the script host adds, with the tests that cover them. The
test's comment on vc no longer names another app.
Setting a File object's length truncates or pads the file, and setting
readonly or hidden changes it, but script.check reported no outside
category for those assignments. It now reports file.write and
filesWritten for them: plain and compound assignment, ++ and -- before
or after, and the property name as a string literal in brackets.
A new integration test lists every global and member the script host
adds to the JavaScript engine (the own properties of the global object,
of each object or function it holds and of each function's prototype,
compared with a plain engine) and fails when one has no row. Each name
that reaches outside the document has a probe script, and the test
checks that script.check gives it the expected outside id. vc is listed
as not checked: script.check reads scripts written for the reference
app's scripting, and what vc.run does depends on the command. The test
also checks that the checker lists every preprocessor directive the
host reads, through the new DirectiveName::ALL.
File object properties:
https://extendscript.docsforadobe.dev/file-system-access/file-object/