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.
Recolor Artwork and Graph Data turned enter_confirms off, so Enter in a
field that does not use Enter did nothing. The dialog now routes that
Enter to its enabled OK button, the same path a click takes, and the
held answer is filed: in Recolor Artwork, Enter is OK and the dialog
closes; in Graph Data, Enter is Apply and the window stays open. The
Graph Data entry box and the sheet still take Enter to move the picked
cell down, and nothing is applied. Enter does nothing while OK is
disabled.
The warning before a script runs (ui.runScript) now keeps the automation
roots and the automation flag in force when it was asked, and Run runs
script.run under them, narrowed to any roots in force when it is
answered. A request confined to its roots could otherwise open the
warning for a script outside them and have it run, with full file
access, once Run was pressed.
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.
A dialog left open for one document while another is active asked for the folder, and searched, for the active document.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Brings in main at 08425c9610 through #9090's merge of it. The hidden-member tests move to canvas/selection/tests.rs, where main now keeps the selection outline and anchor tests, and check the selection's outlines, anchors and hover outline directly.
`(d).write(s)` and `(d).length = 0` on a variable holding `new Folder(p)`
counted as file writes, while `d.write(s)` and `d.length = 0` did not.
Grouping parentheses now keep what the variable holds, so a Folder
variable in them is left out the same way. A variable that may hold a
File object still counts, and a grouped assignment (`x = (d)`) still
gives `x` a value that may be a File object.
Rows of side-by-side controls in the Gradient panel did not wrap, so the
panel's column grew wider than the panel and controls ran past its right
edge. Docked, the Type buttons, Repeats, the gradient slider and the
notice reached up to 10.5 pt past the panel in English and 13.9 pt in
French. At the narrowest panel width (220 pt), Method, Spread, Repeats,
Location and Delete Stop ran 23.5 to 100.5 pt past it.
- The header places the type buttons and Edit Gradient beside the
thumbnail, level with its top, or under it when the panel is too
narrow.
- The Type, Method and Spread rows wrap.
- The stop row wraps, and each caption stays with its field.
A wide panel draws every control where it did before.
The narrow-panel row tests compared each control with the floating
panel's body but never checked the body itself, so a body wider than
the requested width would let controls past the panel edge pass.
floated() now asserts the body is no wider than the width the float
asked for.
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.
A file dialog's answer runs its continuation under the file-access
scope and automation flag of the request that opened the dialog. The
questions that follow a request did not keep them, and ran what OK
allows in the unconfined UI frame:
- the Replace question after a save picker names an existing file
(file_asks::ask_replace);
- the question whether a save or export may replace the files it
writes beside the one picked (confirm::ask_replace_files), also when
a Background Save or Export asks it after the request has ended;
- a confirmation whose OK runs a command (confirm::ask), such as the
question before a save loses data.
A save, export or open started by a request confined to its automation
roots could then reach files outside those roots once the person
answered OK, and it no longer ran as automation. Each question now
captures ScopeHandle::capture() and automation_asked() when it is
asked, and its OK runs under them, as a picker's answer does. A
background save or export captures them before it leaves the request.
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`.
Find Font built its dialog without close_on_enter, so Enter in a field
did nothing; it now runs Done, as the Effect Gallery and Composite Fonts
dialogs do. Define Grid, Save Grid as Preset and the preset editor
turned enter_confirms off. The dialog routes Enter to its enabled
Accept button, which reports it as the pick of OK, so the held answer
is filed as a click files it: Enter defines the grid or saves the
preset, a refused name keeps the dialog open, and Enter does nothing
while OK is disabled.
A right-click turns one feature on or off, or resets them, through the same undo step as the checkbox and the panel menu.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Codex <codex@users.noreply.github.com>