Commit Graph
20636 Commits
Author SHA1 Message Date
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 6d908ec051 Pathfinder: the Repeat row names the operation that ran last
The Pathfinder panel menu's Repeat row read "Repeat Pathfinder" after
every operation. The label for pathfinder.repeat now reads "Repeat
Unite", "Repeat Minus Front" and so on from the last Shape Mode or
Pathfinder operation, through the existing "Repeat {name}" template,
and keeps "Repeat Pathfinder" before any has run. Every row of the
command uses the same label.
2026-11-25 22:41:37 -08:00
dotCooCoo 0ffff17551 Merge main into feat/plugin-api-filter-type-images-symbols 2026-11-25 22:21:39 -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
dotCooCoo 7b9726c71e Scripts: Promise statics refuse arrow functions and methods as this
The statics' constructor check now treats an arrow function, a method
and a function bound to one as non-constructors, as new does, so
Promise.resolve.call(() => {}, 1) throws a TypeError. The test262 line
in docs/target-app-parity.md now gives the count on current main: 440
of 538 runs.
2026-11-25 22:12:51 -08:00
dotCooCoo 6a72901192 Scripts: adding Promise to a realm leaves the language it reads as it was
Realm::add_es2015 no longer turns on Options::es2015, which now also
selects the ECMAScript 2015 syntax. A realm made without the option gets
Promise and still reads ES5.1 until set_es2015 changes it; the engine
calls set_es2015 for each run before it adds Promise.
2026-11-25 21:58:54 -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 dcea6b8f3d Merge main into fix/paste-keeps-unwritten-cut 2026-11-25 21:52:50 -08: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 ae8c902401 Merge main into feat/js-promise-job-queue 2026-11-25 21:19:42 -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
dotCooCoo 129eeb3590 macOS menu bar: every item shows its shortcut and takes it as its key equivalent
The native menu bar handed AppKit items without shortcuts: only the Window
rows carried one, and Settings › General… carried the default ⌘K. Save,
Open, Undo, Group and the other items showed no keys and had no key
equivalents.

- The native menu now gives each item the shortcut the menus show for it,
  else its command's chord in the window's keymap, the user's own set
  included, as the in-window bar's rows look it up. A rebound command shows
  its new key.
- Settings › General… shows Preferences' current shortcut instead of the
  default one.
- The Window rows' and Settings' shortcuts are read when the native menu is
  laid out, so they no longer stay empty after the first frame.
2026-11-25 20:52:02 -08:00
dotCooCoo 465c85ab33 Workspaces: Painting shows the Tools panel in two columns again
Every built-in workspace took its layout from default_workspace, which
lays the Tools panel out in one column, so Painting lost the two-column
Tools it had before the craft framework port, and Window > Toolbars >
Double Column read unchecked after switching to it. A built-in now
names its Tools column count, and Painting asks for two. No other
built-in set a toolbar option of its own before the port.
2026-11-25 20:51:44 -08:00
dotCooCoo 4d75149f13 Color Picker: pickers opened from dialogs have the Color Swatches view
A Color Picker opened from a dialog's color row (effect dialogs,
Artboard Options, Layer Options, Recolor Artwork), from the Dimension
options and from Preferences had no Color Swatches button, because only
the Fill/Stroke proxy's picker was given the swatch view. Recolor
Artwork's Pick from Swatches asked for the swatches, but the picker
drew its color models.

- Every picker now has the swatch view: the document's swatches and the
  color libraries.
- A picker over Recolor Artwork shows the library that Limit to Library
  limits the rows to.
2026-11-25 20:41:32 -08:00
dotCooCoo dcb6116153 Merge main into fix/gradient-panel-rows-wrap 2026-11-25 20:26:13 -08:00
dotCooCoo 55ff5e033e Control bar: the Paragraph: link stays after its Align buttons leave, as production kept it
The Paragraph group was one ranked member at its call site, and a narrowing row drops a ranked
member whole, so the link left with the Align left, Align center and Align right buttons.
`panels/paragraph.rs::control_bar` now shows the link and the buttons as two members of
`rank::TYPE`, and within one rank the bar drops the last member first.
2026-11-25 20:24:54 -08:00
dotCooCoo eb27774471 Canvas: Shift+F10 and the Menu key open the menu for the selection as it is
A key request for the canvas menu reaches the app at the view's centre.
The menu treated it as a right-click there: it selected the object
under the centre, listed the locked objects and the misspelled word
found there, and with the Artboard tool selected the artboard there.

The canvas now passes the request's source on. A key request keeps the
selection, opens the menu at the part of the selection in view (the
selected artboards with the Artboard tool), or at the view's centre when
none of it is in view, and looks up nothing under a point. A right-click
still selects what is under the pointer.
2026-11-25 20:17:24 -08:00
ruchirguitar d8af5eeb8a Merge repaired main after #9352 squash merge 2026-11-26 09:33:08 +05:30
BFlat 2b7dd67ac0 Color Wheel: the contrast cache keys on tool_paints, which replaced bucket_paints (#9352) 2026-11-26 11:01:11 +07:00
ruchirguitar 76668b82cb Merge #9352 as the History PR validation baseline 2026-11-26 08:55:31 +05:30
dotCooCoo 3e5299a1d6 Shape tools: a huge circle through Shift-clicked points is previewed solid
The Ellipse tool previewed the circle through two Shift-clicked points
and the pointer as a dashed outline at any size. The canvas dashes an
outline along its whole length, so points nearly on one line (a radius
of about 1,250,000 pt) gave about a million dashes every frame.

The preview now uses the Circle tool's limit: a circle more than 50,000
screen points around is drawn solid. Both tools call one helper,
`circle::preview_dashed`.
2026-11-25 19:22:30 -08:00
dotCooCoo 9ddded7242 Flattener Preview: Alt-click reads Alt from the pointer frame, so a latched Alt zooms out
The click's Alt comes from the framework's pointer frame (pick_mods), which adds the modifiers the app latches from the Modifier Keys panel, instead of raw egui input.
2026-11-25 19:17:15 -08:00
dotCooCoo 617e00a3a4 Keyboard Shortcuts: commands without a menu path are grouped by their menu or panel
Edit › Keyboard Shortcuts grouped a command that no menu holds by the
first part of its id, so UI commands showed under "Ui", and others under
"Addon", "App", "Css", "ImageTrace", "Plugin" and similar names that no
catalog translates.

Such a command now takes the menu path of the menu bar item that runs
it (Recolor Artwork… goes under Edit › Edit Colors). Otherwise it takes
the path its family's menu bar items share (Remove Corners goes under
Object › Plug-ins › Path Precision Tools), or the menu or panel that
holds it from a table (Rename under Window › Layers, Justification
under Window › Paragraph). Only a command none of these cover keeps the
group of its id.

When a command the menu bar runs now has the group and label of an
engine command no menu bar item runs, both are listed and the engine
command shows its key: Object › Expand… is the Expand dialog, and
object.expand shows as Object › Expand… (object.expand).
2026-11-25 19:10:39 -08:00
dotCooCoo 6b7b780c22 Color Wheel: contrast measures a painting tool's color without the selection's drawing
While the Live Paint Bucket (or the Shape Builder, for the fill) is the
active tool, the Fill and Stroke proxies show the color the tool paints
with. color.contrast still took the opacity and blend modes from the
selected objects, so it rated the bucket's color at an opacity it is not
drawn with, and refused to answer when the selected objects were drawn
differently. It now draws the tool's color in Normal mode, at `opacity`
or fully opaque, as for a given `color`.

Docs: docs/mcp.md and the command's params text.
2026-11-25 19:09:41 -08:00
dotCooCoo 476437f29d Tests: the no-document canvas test runs its frames through part_frame
a_canvas_frame_without_a_document_releases_the_text_nodes creates its
context once and runs each frame through crate::testing::part_frame
with crate::canvas::show, in place of its own frame loop.
2026-11-25 19:03:30 -08:00
dotCooCoo 132d2da4a1 Merge main into feat/plugin-api-filter-type-images-symbols 2026-11-25 19:01:04 -08:00
dotCooCoo a868058b44 Shortcuts: panel and dialog commands whose params are all optional can be given a key
Edit › Keyboard Shortcuts left out UI commands with no default key, no
menu bar item and a params doc other than {} or {path…}, so New Swatch…,
New Color Group…, Color Group Options…, New Brush…, Brush Options…,
the Layers panel's Options for Selection…, Corners…, Placement Options…,
Relink…, Perspective Plane Options…, Bullets and Numbering…, Missing
Fonts Dialog and Find Fonts in Folder… could not get a key, although
each runs with no params. They are now listed
through a KEY_ONLY_UI list that replaces the `id ==` checks for Rename
and Color Picker…. A key opens the dialog for the selection or the
current item, or the status bar says why it cannot.

Color Group Options… with no group selected now says "select a color
group in the Swatches panel, or pass group" instead of "missing `group`".

Docs: docs/mcp.md, docs/ui-parity.md.
2026-11-25 18:44:51 -08:00
dotCooCoo 924c4409bb Preferences test: run the reset frame through testing::app_frame
The test of a prefs.reset run outside VectorcraftApp::run now draws its
frame with crate::testing::app_frame on the window's context.
2026-11-25 18:43:42 -08:00
dotCooCoo b6b702f080 Merge main into fix/reset-preferences-interface-settings 2026-11-25 18:36:58 -08:00
ruchirguitar dd64c283e8 History tests: use the shared panel harness 2026-11-26 08:03:33 +05:30
FredApps ae70a8f174 Resolve main documentation conflict in History row menu PR #8845 2026-11-26 03:27:16 +01:00
dotCooCoo 9375decc46 Merge main into fix/copy-region-ids-isolated-ancestor 2026-11-25 18:25:59 -08:00
dotCooCoo be3fd3c5a3 Merge main into fix/floating-panel-minimum-width 2026-11-25 18:25:26 -08:00
dotCooCoo 0f7844ecb6 Preferences: Apply after entering Touch keeps Touch's task bar
After an Apply that entered Touch, the Enable Contextual Task Bar row
kept the value given to the workspace left, and the next Apply wrote it
to Touch. The row now shows the task bar in use after each Apply. When
OK leaves Touch, the workspace returned to takes the row only when it
was edited; otherwise it keeps the value it left with.
2026-11-25 18:22:36 -08:00
dotCooCoo e60c5e3fa2 Tests: the panel harness holds the app-window panel lookup
`tests::panel_harness::floated` shows a panel docked or floating in the
whole app window and returns its body and named nodes, with `Shown::past`,
`past_named` and `middles`. The panel-row tests and the Gradient panel
tests both use it instead of their own copies.
2026-11-25 18:20:17 -08:00
dotCooCoo 54c84108a1 Dialogs: Split Into Grid keeps one pass's edits, and the Picked files test uses the shared frame
Split Into Grid's fields edit a copy of the dialog values inside the grid
and keep it only when the pass takes effect, as form::stacked does, so a
measuring pass no longer changes the values the real pass reads.

tests::script_dialogs::frame returns the last pass's output, and the
Picked files group test reads the accessibility tree from it instead of
running its own frame.
2026-11-25 18:13:02 -08:00
dotCooCoo d2ea2ab725 Merge main into fix/gradient-panel-rows-wrap
# Conflicts:
#	crates/ui-egui/src/panels/gradient/tests.rs
2026-11-25 18:12:52 -08:00
bflatastic c71817638b Color Wheel: the contrast cache keys on tool_paints, which replaced bucket_paints
#9100 replaced Session::bucket_paints with tool_paints(stroke), and #7718's
contrast cache key still called bucket_paints, so main stopped compiling.
The key now records whether the active tool paints with the proxy in front,
the paint color.contrast measures.
2026-11-26 09:07:33 +07:00
dotCooCoo 8c97641c4e Export for Screens: the format rows test sizes its window through Window
Window takes an optional size (Window::sized), and the test that checks the
format rows at the default and least window sizes runs its frames through it
instead of its own copy of Window::run's frame loop.
2026-11-25 18:07:06 -08:00