Commit Graph
20446 Commits
Author SHA1 Message Date
BFlat aeb9f99e7e Merge pull request #9314 from dotCooCoo/feat/scripts-execute-menu-command
Scripts: app.executeMenuCommand runs a menu command
2026-11-26 16:49:34 +07:00
BFlat ed2b13a93b Merge pull request #9325 from dotCooCoo/fix/script-check-parenthesized-folder
Script checker: a Folder variable in parentheses is still a Folder object
2026-11-26 16:49:13 +07:00
BFlat 535fa075e7 Merge pull request #9326 from dotCooCoo/fix/gradient-panel-rows-wrap
Gradient panel: rows wrap so the panel stays inside its dock column
2026-11-26 16:49:00 +07:00
BFlat 3c232b190d Merge pull request #9327 from dotCooCoo/fix/questions-keep-file-access-scope
Scripts: Other Script's warning runs the script under the file access of the request that asked
2026-11-26 16:48:47 +07:00
BFlat f6474fc396 Merge pull request #9335 from dotCooCoo/fix/copy-region-ids-isolated-ancestor
Fill Area: ids that name what holds the isolated group take its paths
2026-11-26 16:48:34 +07:00
BFlat 52e4e8ad87 Merge pull request #9354 from dotCooCoo/fix/shortcuts-optional-param-commands
Shortcuts: panel and dialog commands whose params are all optional can be given a key
2026-11-26 16:48:21 +07:00
BFlat d8d3abfcbc Merge pull request #9356 from dotCooCoo/fix/ellipse-three-point-preview-bound
Shape tools: a huge circle through Shift-clicked points is previewed solid
2026-11-26 16:48:08 +07:00
BFlat 21e82fa98a Merge pull request #9357 from dotCooCoo/fix/shortcuts-ui-group
Keyboard Shortcuts: commands without a menu path are grouped by their menu or panel
2026-11-26 16:47:55 +07:00
BFlat 9d8776be11 Merge pull request #9360 from dotCooCoo/fix/control-bar-paragraph-link-fit
Control bar: the Paragraph: link stays after its Align buttons leave
2026-11-26 16:47:42 +07:00
BFlat e94908bfc3 Merge pull request #9361 from dotCooCoo/fix/context-menu-key-keeps-selection
Canvas: Shift+F10 and the Menu key open the menu for the selection as it is
2026-11-26 16:47:29 +07:00
BFlat 435cefe9ad Merge pull request #9362 from dotCooCoo/fix/zoom-field-ui-scaling
Status bar: the zoom field and the Navigator set the zoom typed at any UI Scaling
2026-11-26 16:47:16 +07:00
BFlat 6490ad6a28 Merge pull request #9363 from dotCooCoo/fix/painting-double-column-tools
Workspaces: Painting shows the Tools panel in two columns again
2026-11-26 16:47:02 +07:00
BFlat 8157d4c181 Merge pull request #9364 from dotCooCoo/fix/mcp-doc-trace-preset-dialog
Docs: the Image Trace panel saves and renames presets in its Preset row
2026-11-26 16:46:50 +07:00
BFlat aa6b6d391d Merge pull request #9365 from dotCooCoo/fix/status-bar-rotation-angle
Status bar: the Rotation box shows an angle between the presets
2026-11-26 16:46:37 +07:00
BFlat 79b9dcb148 Merge pull request #9366 from dotCooCoo/fix/native-menu-shortcuts
macOS menu bar: every item shows its shortcut and takes it as its key equivalent
2026-11-26 16:46:25 +07:00
BFlat 1dc832fd14 Merge pull request #9367 from dotCooCoo/fix/dialog-picker-swatches
Color Picker: pickers opened from dialogs have the Color Swatches view
2026-11-26 16:46:12 +07:00
BFlat 085c3c7bd9 Merge pull request #9368 from dotCooCoo/fix/live-paint-bucket-cursor-hot-spots
Cursors: the Live Paint Bucket and Knife cursors click where their glyphs point
2026-11-26 16:45:58 +07:00
BFlat 541b316780 Merge pull request #9369 from dotCooCoo/fix/pen-drag-curve-lag
Canvas: a drag over a frame the render worker drew shows the edit in the frame it is made in
2026-11-26 16:45:46 +07:00
BFlat b270b729ef Merge pull request #9370 from dotCooCoo/fix/toolbar-dock-float-commands
Toolbars: Dock Toolbar and Float Toolbar run again on the dock
2026-11-26 16:45:31 +07:00
BFlat 2574fe185f Merge pull request #9371 from dotCooCoo/fix/scripts-object-model-edges
Scripts: stale page item lists throw from toString; unavailable members stop hasOwnProperty
2026-11-26 16:45:11 +07:00
BFlat 6ab2d4c25d Merge pull request #9372 from dotCooCoo/fix/transform-guide-path-ids
Guides: a transform's reply lists the guide paths it makes of ruler guides
2026-11-26 16:44:57 +07:00
BFlat a205174026 Merge pull request #9373 from dotCooCoo/fix/precise-cursors-reach-tools
Cursors: Use Precise Cursors and Caps Lock hide the brush tip outline again
2026-11-26 16:44:43 +07:00
BFlat 917c0ca869 Merge pull request #9374 from dotCooCoo/fix/symbol-instance-outline-frame
Selection: a turned or skewed symbol instance is outlined along its frame
2026-11-26 16:44:30 +07:00
BFlat aeb726426b Merge pull request #9376 from dotCooCoo/fix/followup-8526
Path Precision Tools: a Tangent Circle press with Shift keeps the radius it started with
2026-11-26 16:44:18 +07:00
BFlat ae91221923 Merge pull request #9377 from dotCooCoo/fix/followup-8999
Shapes: document that a given center moves the shape in shape.set
2026-11-26 16:44:05 +07:00
BFlat 303cb7e9f7 Merge pull request #9378 from dotCooCoo/fix/followup-7733
File open: apply the profile answer with the settings its question was built from
2026-11-26 16:43:52 +07:00
BFlat a39c137667 Merge pull request #9379 from dotCooCoo/fix/followup-8706
Tools: a shared option set through another tool during a held press is kept
2026-11-26 16:43:38 +07:00
BFlat 4b3d6fb83c Merge pull request #9328 from dotCooCoo/fix/enter-recolor-relink-graph
Dialogs: Enter runs the default button in Recolor Artwork and Graph Data
2026-11-26 16:43:24 +07:00
BFlat 15b96b6ad6 Merge pull request #9324 from dotCooCoo/fix/enter-runs-default-button
Dialogs: Enter runs the default button in Find Font and the perspective grid dialogs
2026-11-26 16:43:10 +07:00
dotCooCoo d13acd32dd Tools: a shared option set through another tool during a held press stays after the press is dropped
Setting a Liquify brush size through another Liquify tool while a press is held was lost when the press was dropped and the value matched the size the drag had made current. The set now names the keys of the stores it shares with the pressed tool, so the dropped press keeps them.
2026-11-26 00:44:19 -08:00
dotCooCoo 318770ea62 File open: apply the profile answer with the settings snapshot its question was built from
apply_answer read the working settings once for the reply's profileChoice
and again inside apply_open_policies_choosing. A Color Settings change
between the two reads could report an answer that the policies did not
apply. apply_open_policies_choosing now takes the snapshot, and
apply_answer passes the one it built the question from.
2026-11-26 00:37:50 -08:00
dotCooCoo 0ae1949e68 Shapes: document that a given center moves the shape in addon.pathtools.shape.set
The params text and docs/mcp.md said the center stays when no reference point applies. With a center, the shape's center moves to the given point; the docs now name that case.
2026-11-26 00:32:00 -08:00
dotCooCoo a26d5981bd Path Precision Tools: a Tangent Circle press with Shift keeps the radius it started with
A radius written with tool.setOption during a press changed the circle
only when Shift was released and pressed again before the drag started.
The press now keeps the radius from its button press for every Shift
change until the release.
2026-11-26 00:21:12 -08:00
dotCooCoo 1fed7a4e6f Cursors: a Caps Lock command before the first frame stays in place
The first host Caps Lock reading is now only a baseline when view.capsLock already set the session state, so the command no longer resets on the first canvas pass.
2026-11-25 23:10:55 -08:00
dotCooCoo 6a8b80f3d6 Merge main into fix/shortcuts-optional-param-commands 2026-11-25 23:04:07 -08:00
dotCooCoo f5759af75a Merge main into fix/ellipse-three-point-preview-bound 2026-11-25 23:03:45 -08:00
dotCooCoo 51f634f210 Merge main into feat/scripts-execute-menu-command 2026-11-25 22:59:59 -08:00
dotCooCoo 52c134c7b6 Merge main into fix/shortcuts-ui-group 2026-11-25 22:21:31 -08:00
dotCooCoo b5d62ade36 Selection: a turned or skewed symbol instance is outlined along its frame
The selection outline and the hover highlight drew a symbol instance as
the box square to the page around it, so a turned, skewed or
perspective instance showed a box larger than its frame. Type in
perspective had the same box.

Node::drawn_corners gives the four corners of an instance's art box
placed by its transform, and of type's flat bounds, both through the
projection of an object in perspective. node_outline joins them, as it
already does for a placed document's corners.
2026-11-25 22:19:27 -08:00
skylar taylor-barrick 3463266b27 Switch on supervised nightlies on the nightly-signer branch (#9342)
Supervised nightly switch-on, merged under Skylar's explicit Nightly 758 override after green CI, CodeRabbit on this head with no open threads, Sonar passing, and an independent adversarial review with no blockers.

Merge-only delta: CodeRabbit reviewed 91c7634e, the last authored head; this head adds only a merge of main, so its CodeRabbit check is a skip.
2026-11-25 23:58:45 -06:00
dotCooCoo 9c34c3a2fa Guides: a transform's reply lists the guide paths it makes of ruler guides
A selected ruler guide that a transform turns to an angle becomes a
selected guide path, but the reply's ids left it out: object.rotate
with copy on a lone guide returned {"ids": []}. transform_ruler_guides
now returns the ids of the paths it adds, and the transform commands
add them after the transformed objects, on the direct-selected anchor
route too.
2026-11-25 21:51:20 -08:00
dotCooCoo df3d7ab275 Scripts: stale page item lists throw from toString; unavailable members stop hasOwnProperty
- `toString()` on a page item list from a closed or replaced document throws
  "Stale document", as its other members do.
- A member a host class declares unavailable is not reported by
  `hasOwnProperty` or `propertyIsEnumerable` even when a parent class has it.
- Assigning a name an object of a host class inherits from a prototype no
  longer calls the class's indexer, so a non-strict assignment is ignored
  instead of throwing.
- Assigning a selection checks repeated objects with a set instead of
  scanning the list for each object.
- The script report test throws a text that names `Window` for the case of
  an error the script wrote itself.
2026-11-25 21:50:05 -08:00
dotCooCoo 0eec4f510f Toolbars: Dock Toolbar and Float Toolbar run again on the dock
window.toolbar.dock and window.toolbar.float were still listed in the
command catalogs, but the move to the framework dock removed their
handlers, so both returned "unknown command".

- window.toolbar.dock docks a toolbar made with New Toolbar as a column
  of the left or right edge's dock, at the column `order` asks for.
  Without `side` it uses the edge it docks at, else the edge of the
  docked panel it left, else the left.
- window.toolbar.float floats it at x, y, or as the dock floats a panel.
- A hidden toolbar that either command shows brings back the groups torn
  off it, and both commands end a Tab hide.
- window.toolbar.list reports that same edge for a floating toolbar
  instead of always "left".
- place_floating moves an open OS window's record with its rect, as
  float_actions does.

Docs: the params text in both catalogs, docs/mcp.md and
docs/control-protocol.md describe dock columns instead of lanes.
2026-11-25 21:46:05 -08:00
dotCooCoo fb68251203 Cursors: Use Precise Cursors and Caps Lock hide the brush tip outline again
The view info the canvas gives the tools never set its precise flag, so
the Blob Brush and the Eraser drew their tip outline around the precise
crosshair whatever the setting. Nothing passed the host's Caps Lock
state to the session either, so `view.capsLock` changed nothing.

- The view info's precise flag is on while Use Precise Cursors or Caps
  Lock is on, as before the move to the shared canvas.
- The canvas passes each change of the host's Caps Lock state to
  `view.capsLock`; a `view.capsLock` call stays in effect until the next
  change.
- The canvas's pointer follows the same flag, so with both on the
  drawing tools keep the crosshair.
2026-11-25 21:43:49 -08:00
dotCooCoo 013cf4dacb Fill Area: outline pieces on a clipping mask's edge count as shown
clip_to kept a piece of an unfilled outline only when its middle tested
inside the mask, and a point on the mask's own outline tests inside on
some sides and outside on others. A square clipped by the same square
kept two sides, so Fill Area found no area inside it.

A piece whose middle lies on the mask's outline now counts as shown when
the mask's filled area lies on one side of it. A piece just outside the
mask, and a piece on an outline of the mask that bounds no filled area,
stay hidden.
2026-11-25 21:39:58 -08:00
dotCooCoo 53bbb79ba7 Cursors: the Live Paint Bucket and Knife cursors click where their glyphs point
The Live Paint Bucket's three cursors and the Knife's put the hotspot at
(2, 22), the lower-left corner of the icon box, where none of their icons
draws anything, so a click landed away from the drop, the brush or the
blade. Each hotspot now sits on the point its cursors.toml entry names:
the bottom of the drop for the bucket and the filled diamond, the middle
of the brush's bristle edge, and the blade's point. The Eyedropper keeps
its pipette tip at (2, 22).

A new test draws every tool cursor's image and checks that the icon's
own mark color, not only its halo, covers the hotspot pixel or one next
to it.
2026-11-25 21:37:15 -08:00
dotCooCoo a9c4e259f9 Canvas: a drag over a frame the render worker drew shows the edit in the frame it is made in
In a document whose frames take over 8 ms, every frame of an edit went to
the render worker once the frame shown came from it, so a Pen drag's curve
trailed the pointer by the worker's render time plus the wait for a busy
worker. The changed part of a worker's frame is now drawn again on the UI
thread, as it already was for frames rendered there, when the part's share
of the frame's last render time is at most 8 ms.

The part is not drawn there, and the frame goes to the worker as before,
when the frame shown drew raster effects made before their objects moved,
holds pixels copied from the worker's last frame, or drew art in a way that
depends on the frame's size, or when the part itself draws such art. A
worker frame on its way blocks the part only when it is of another document
or not older than the edit.

Part of #8296.
2026-11-25 21:26:27 -08:00
dotCooCoo 595d6f864d Docs: the Image Trace panel saves and renames presets in its Preset row
docs/mcp.md still listed ui.imageTracePresetDialog, which main no longer
has: the UI port (#8800) removed the Save as New Preset and Rename
dialog and the command. The Image Trace section now describes the
Preset row's Manage presets menu: Save as New Preset… and Rename… open
a name field in the row, Enter or OK runs imageTrace.presets.save,
Escape or Cancel saves nothing, a taken name keeps the field open, and
Delete runs imageTrace.presets.delete.
2026-11-25 21:23:10 -08:00
dotCooCoo 6b3f1646bc Status bar: the Rotation box shows an angle between the presets
When the view was turned to an angle that is not one of the Rotate View
presets (with the Rotate View tool, or view.rotate with angle 17), the
status bar's Rotation box showed no text: the select held no entry for
the angle and had no placeholder. The box now shows the angle rounded to
a whole degree as its placeholder, as Crop Image's PPI select does for a
resolution outside its list. A preset angle still shows its
row, and a pick from the list still turns the view.
2026-11-25 21:13:46 -08:00
dotCooCoo aa907c82e6 Status bar: the zoom field and the Navigator set the zoom typed at any UI Scaling
The status bar's zoom field and the Navigator edit the canvas view, whose
zoom is the view's zoom divided by UI Scaling. Both sent that canvas zoom
to view.setZoom, which stores the zoom it is given, so at 150% UI Scaling
typing 200% zoomed the view to 133.33%.

View::zoom_of_canvas turns a canvas view's zoom back into the view's zoom,
the inverse of View::canvas, and View::set_canvas uses it. The status bar
and the Navigator convert the edited zoom with it before they run
view.setZoom.
2026-11-25 21:05:10 -08:00