Commit Graph
462 Commits
Author SHA1 Message Date
BFlat 27c977b891 Merge pull request #8121 from dotCooCoo/feat/type-size-other
Type: Size › Other… gives the Character panel's Font Size field the focus
2026-11-18 10:16:36 +07:00
BFlat f66c2e78ad Merge pull request #8182 from dotCooCoo/feat/list-start-number
Lists: a numbered paragraph can start at a chosen number or restart at 1
2026-11-18 10:16:16 +07:00
BFlat 2d8486b7ed Merge pull request #8190 from dotCooCoo/feat/actions-replace-actions
Actions: Replace Actions puts a file's set in place of every set
2026-11-18 10:16:01 +07:00
BFlat 36195c57f9 Merge pull request #8338 from dotCooCoo/fix/issue-7837
Workspace: Tools dropped on the canvas's left edge docks there, and the setting follows
2026-11-18 10:12:41 +07:00
BFlat bf59350a0a Merge pull request #8145 from dotCooCoo/feat/expand-alt-skips-dialog
Expand: Alt/Option on Object › Expand… expands at once with the last OK'd choices
2026-11-18 10:12:33 +07:00
BFlat 8d745ecc30 Merge pull request #8266 from dotCooCoo/feat/type-show-hidden-characters
Type: Show Hidden Characters marks tabs, nonbreaking spaces, discretionary hyphens and forced line breaks
2026-11-18 10:12:25 +07:00
BFlat 19a220fae9 Merge pull request #8225 from dotCooCoo/feat/shape-widget-double-click-transform
Shapes: double-clicking a live shape's corner widget with a shape tool shows the Transform panel
2026-11-18 10:11:27 +07:00
dotCooCoo 4ab773494e Workspace: the Tools drop strip lights up where Tools docks, and the docs name the exceptions
With no panels docked on the left and a toolbar made with New Toolbar docked there, a drop on
the canvas's left edge docks Tools at the window's edge, left of the toolbar's lane. The strip
that lit up during the move was the canvas's edge, right of the lane. The window's edge now
lights up instead.

The window.toolsBesideCanvas params text, docs/control-protocol.md, docs/target-app-parity.md and
the UiState doc comment now say that a drop with no panels docked on the left, or in the column
both edges share beside panels collapsed to icons, leaves Window › Toolbars › Keep Tools Beside
the Canvas as it is. ROADMAP's progress log gets a line for the changed drop rule.

The test of a release where the move started now presses on the title bar, moves past the drag
threshold so the move starts, and releases within the travel limit over the canvas's edge; it
fails without that limit.
2026-11-17 08:41:27 -08:00
dotCooCoo de9424cece Workspace: Tools dropped on the canvas's left edge docks there, and the setting follows
A floating Tools panel dropped on the canvas's left edge, right of panels
docked on the left, stayed floating unless Window > Toolbars > Keep Tools
Beside the Canvas was on. The canvas's left edge is now always a target:
a drop there docks Tools beside the canvas and turns the setting on, and a
drop on the window's left edge docks it there and turns the setting off,
so the menu item's check mark shows where Tools is.

This changes one existing behavior: with the setting on and panels docked
on the left, a drop on the window's left edge used to dock Tools beside the
canvas and keep the setting on. It now docks Tools at the window's edge and
turns the setting off.

With no panels docked on the left, both edges put Tools in the same place
(left of any toolbars made with New Toolbar docked there), so a drop on
either docks it where the setting puts it and leaves the setting as it is.
So does a drop in the column both edges share when left-side panels are
collapsed to icons narrower than the window's edge strip. A release in the
frame right after Tools floats out of its place at the window's edge skips
the canvas-edge strip, which that frame laid out right of the docked panel.

Part of #7837
2026-11-17 07:24:23 -08:00
dotCooCoo d1afba560d Enclosing Lasso: the tool is in the Lasso tool's flyout
The Enclosing Lasso Tool joins the Lasso group in both shipped
toolbars, right after the Lasso, and stays in Object › Plug-ins ›
Enclosing Lasso. The All Tools drawer lists it once, under Select, and
Edit › Keyboard Shortcuts › Tools lists it once. It has no default
shortcut, and the Lasso keeps Q. A toolbar the user already edited
keeps its saved layout; Reset Toolbar adds the tool.

Fixes #6117
2026-11-17 06:51:00 -08:00
dotCooCoo 8eaed941a1 Merge main into feat/save-pdf-alt-reset 2026-11-16 19:56:13 -08:00
BFlat 8953270a5a Merge pull request #8065 from dotCooCoo/feat/windows-screen-color
Color: Sample Color from Screen works on Windows
2026-11-17 09:49:01 +07:00
dotCooCoo 82b4632719 Type: Show Hidden Characters marks tabs, nonbreaking spaces, discretionary hyphens and forced line breaks
The help page lists the characters Type > Show Hidden Characters makes
visible: paragraph returns, forced line breaks, tabs, spaces, nonbreaking
spaces, discretionary hyphens and the end of the text
(https://helpx.adobe.com/illustrator/desktop/design-with-text/special-characters-glyphs/insert-white-space-and-break-characters.html).
The canvas marked only plain spaces, paragraph ends and the story's end.

It now draws an arrow across each tab's advance to its stop, a ring over
a nonbreaking space (U+00A0) and a smaller one over a narrow nonbreaking
space (U+202F), a short tick over the spaces of a set width (U+2000 to
U+200A, U+205F, U+3000), a not sign at a discretionary hyphen (U+00AD)
whether or not the line breaks there, and a bent arrow after a line that
a forced line break (U+2028) ends, which no longer gets a pilcrow. The
mark shapes are VectorCraft's own.

The marks follow each glyph's baseline, so they sit along the column in
vertical type and along the path in type on a path, which had no marks
before. A right-to-left line gets its pilcrow at its left end.
2026-11-16 15:02:37 -08:00
dotCooCoo 4557e10248 Save PDF: Reset with a deleted preset is an error
When the saved preset the Save PDF dialog has chosen is deleted while
the dialog is open, Reset now returns an error naming it, shown in the
status bar, and leaves every field, passwords included, as it is. A
dialog's reset callback returns a Result for this; Flare Tool Options
and Objects on Path Options return Ok. The ui.dialogReset params text
and docs/mcp.md name the error.
2026-11-16 13:21:14 -08:00
dotCooCoo 51efeba7b4 Save PDF: holding Alt turns Cancel into Reset
While Alt (Option on macOS) is held, the Save PDF dialog's Cancel button
reads Reset. Reset (or ui.dialogReset) puts every option back to the
chosen preset's settings, clears the passwords and their checkboxes, and
leaves the dialog open with its preset, path, artboard range and section.
A saved preset deleted while the dialog is open leaves the options as
they are.

Choosing a preset now also clears the Security section's password
checkboxes, which stayed checked with an empty password before.
2026-11-16 12:11:49 -08:00
dotCooCoo 825cfdd750 Shapes: double-clicking a live shape's corner widget with a shape tool shows the Transform panel
With Rectangle, Rounded Rectangle, Ellipse, Polygon or Star active, a
double-click on a visible corner widget of a selected live rectangle or
polygon shows and selects the Transform panel (window.panel.activate),
wherever it is: closed, docked behind another tab, floating, in an icon
column or in a dock hidden by Tab. A second double-click keeps it on show.
The tool, the selection, the document and the undo history stay as they
were. Pie widgets, spots off the widgets, Line Segment, plain paths and
hidden or angle-excluded widgets do nothing; the Selection and Direct
Selection tools keep their double-click behavior.

Tools return the new Action::Panel, which the engine forwards as
UiRequest::Panel; the desktop app activates the panel, and a headless
pointer_gesture reply carries {"panel": id} in its requests.

Docs: docs/ui-parity.md (#5477 row, also correcting its statement that the
bounding-box handles scale only with the Selection tool) and
docs/target-app-parity.md.
2026-11-16 11:56:38 -08:00
dotCooCoo 47acbed378 MCP: regenerate the UI catalog for the Windows screen sampler text
Run `cargo xtask ui-commands` so crates/mcp/src/ui_catalog.rs matches the updated ui.sampleScreenColor params text in crates/ui-egui/src/menus/ui_commands.rs.
2026-11-16 09:59:36 -08:00
dotCooCoo 54538090ce Trim at Crossings: the tool is in the Scissors tool's flyout and shows a knife cursor
The Trim at Crossings Tool joins the Scissors group in both shipped
toolbars, after the Knife, and stays in Object › Plug-ins › Path
Precision Tools. The All Tools drawer lists it once, in the Scissors
group, and Edit › Keyboard Shortcuts › Tools lists it once. It has no
default shortcut. A toolbar the user already edited keeps its saved
layout; Reset Toolbar adds the tool.

The Knife's cursor is now drawn as a knife, its blade's point on the
hotspot, instead of borrowing the crosshair. The Knife tool and the Trim
at Crossings Tool both show it. Use Precise Cursors still shows the
crosshair.

Suggested by erolka and leanma.
2026-11-16 09:26:29 -08:00
dotCooCoo 6c7f538e76 Actions: Replace Actions puts a file's set in place of every set
The Actions panel menu has Replace Actions… after Load Actions…. It
opens an action set file and replaces every set in the panel, the
built-in Default Actions set included, with the file's set, which keeps
its name and becomes current and selected. It reads .vcactions and .aia
files as Load Actions… does, with the same limits and reports. The item
asks no question first and is off while an action records or plays.

- ui.actionSet.replace {path? | data?} runs it and returns
  {changed, set, name, actions} with Load's reports. Omitted params
  count as {}; another type or key, or a path or data that is not a
  string, is an error.
- A canceled pick, or a file that can't be read or is refused (an empty
  one too), changes nothing. Replace records no undo step.
- Replace clears what named the old sets as Reset Actions does, and the
  two share that code.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
2026-11-16 08:59:11 -08:00
BFlat 94eacd67cd Merge pull request #8048 from dotCooCoo/feat/actions-reset-actions
Actions: Reset Actions restores the default set
2026-11-16 23:08:17 +07:00
dotCooCoo f4c395f143 Lists: a numbered paragraph can start at a chosen number or restart at 1
Bullets and Numbering's Numbers tab gets a Start at box and number, and
text.setFormat takes startNumber (1 to 999999999) and restartNumbering.
The number goes to the first numbered paragraph the call touches that
holds text, and the numbered paragraphs after it at its level count on
from it, through threaded frames too. restartNumbering false removes the
numbers. A bad value, or both keys at once, is an error, and a call that
changes nothing records no undo step.

The native file saves the number as the list's "start" only when it is
set. A paragraph made with Return does not take it, a paragraph style
does not keep it, and Convert to Text and the exports write the numbers
the paragraphs show.

Part of #2473
2026-11-16 07:50:46 -08:00
dotCooCoo 7d4aa9d8ab MCP: the ui.expandDialog mirror lists immediate and the kept choices
crates/mcp/src/ui_catalog.rs now matches the desktop entry in
crates/ui-egui/src/menus/ui_commands.rs, so cargo xtask ui-commands --check
passes and MCP discovery lists the immediate parameter.
2026-11-16 07:02:57 -08:00
dotCooCoo 9ecc8087c3 Shape tools: Backtick held while dragging leaves copies of the shape
Holding Backtick while dragging out a rectangle, rounded rectangle,
ellipse, polygon, star or line leaves a copy of the shape being drawn
each time the pointer has moved 8 screen points with the key down, up to
128 copies a drag. Each copy is its own object, drawn as the drag showed
it then. The release keeps the copies and the last shape as one undo
step, and Escape takes them all back. The spacing and the limit are
VectorCraft's own values.

The `backquote` descriptions of `pointer_gesture` name the shape tools.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 04:53:06 -08:00
dotCooCoo cc6721f2d0 Type: Size › Other… gives the Character panel's Font Size field the focus
Type › Size ends with a separator and Other…, which runs the new UI
command type.highlightFontSize. It shows the Character panel and gives
its Font Size field the keyboard focus with the value selected, so a
size the list does not hold can be typed and applied with Enter.
Without selected type it fails with the existing error, as Highlight
Kerning does, and the menu item is dimmed, as Bold and Italic are.

The Font Size field now takes an armed focus: unit_field_from selects
and focuses the field as bounded_field_reading already does.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 04:49:31 -08:00
dotCooCoo 0f4cc60018 Actions: Reset Actions restores the default set
The Actions panel menu has Reset Actions. It asks first: OK replaces
every set in the panel with the built-in Default Actions set, which
becomes current and selected, and Append adds the built-in set after the
sets there are, with the next free number when its name is in use
(Default Actions 2). Cancel changes nothing. The item is off while an
action records or plays, and the reset records no undo step.

- ui.actionSet.reset {mode?: "replace" | "append"} runs it; omitted
  params count as {}, and another type, key or mode is an error.
- Replace clears the panel's selected action and step, expanded actions
  and a dragged step, and closes an open dialog that holds a set index.
  On the built-in set already shown that way it changes nothing.
- New strings have rows in every catalog. Three French messages about
  tangents get the no-break space before the colon that fr.tsv uses.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
2026-11-15 22:30:25 -08:00
FredApps 3e72836b00 Merge remote-tracking branch 'origin/main' into feat/cutover-remaining-codecs 2026-11-16 07:08:15 +01:00
BFlat 7180d01947 Merge pull request #7600 from dotCooCoo/fix/confined-exports-script-paths
MCP: confined exports refuse native files that name a linked JavaScript file outside the read roots
2026-11-16 12:55:43 +07:00
BFlat 9ed7881caa Merge pull request #8027 from dotCooCoo/feat/polygonal-lasso
Add Polygonal Lasso as an optional tool
2026-11-16 12:55:07 +07:00
FredApps bfe5c253f4 Merge remote-tracking branch 'origin/main' into feat/cutover-remaining-codecs
# Conflicts:
#	crates/engine/src/cmd/menucmds.rs
2026-11-16 06:35:17 +01:00
BFlat c1a2186976 Merge pull request #7966 from dotCooCoo/feat/graph-filled-line-width
Graph Type: Draw Filled Lines takes a Line Width
2026-11-16 11:38:16 +07:00
BFlat 3eb964bc1c Merge pull request #7948 from dotCooCoo/feat/crop-image-cropping-options
Crop Image: the Control bar sets the cropped image's resolution, reference point and linked size
2026-11-16 10:36:24 +07:00
dotCooCoo 763be536f5 Add Polygonal Lasso as an optional tool
Polygonal Lasso selects anchor points inside a loop of straight
segments. Each click sets a vertex, and a segment from the last vertex
follows the pointer. A double-click, Enter or a click on the first
vertex closes the loop. Backspace or Delete removes the last vertex,
Escape drops the loop, and Shift keeps the next segment to 45-degree
steps from the Constrain Angle. Shift held at the first click adds to
the selection and Alt subtracts from it, as with the Lasso. A loop of
fewer than three vertices selects nothing and records no undo step.

The tool is listed under its own heading in All Tools and under
Object › Plug-ins › Polygonal Lasso, with no default toolbar slot or
shortcut. On close it uses the Lasso's test for which anchor and mesh
points are inside (even-odd), now shared as lasso_select; the Lasso
itself behaves as before.

Touch mode now counts Polygonal Lasso and Enclosing Lasso as selection
tools, as it counts the Lasso, so the two-finger tap switches from them
to the drawing tool chosen last.

Fixes #4736
2026-11-15 19:17:09 -08:00
dotCooCoo bbefef0d65 Merge main into feat/graph-filled-line-width 2026-11-15 18:36:02 -08:00
dotCooCoo 829e399da9 Crop Image: Apply leaves out a linked image's own resolution above 300 ppi
A turned linked image whose own resolution is above the 300 ppi it can
be cropped to is cropped as before, without ppi, instead of at 300 ppi.
2026-11-15 17:57:10 -08:00
dotCooCoo 2559d09158 Crop Image: a turned image is cropped at the resolution asked for
object.cropImage with ppi draws a turned or skewed image at that ppi
even when it is the image's own, instead of at the lower density of the
box around it, and a ppi over that whole box makes the new image too.
The raster size limit applies only when the crop is drawn or resampled,
so a straight cut at the image's own ppi is not refused.

The Crop Image tool's Apply sends a turned image's own resolution when
no other is set and it is within 1 to 2400 ppi, and crops over the
whole box when a resolution is chosen.
2026-11-15 17:51:37 -08:00
dotCooCoo 893ed2c7e3 Merge main into fix/confined-exports-script-paths 2026-11-15 17:20:46 -08:00
FredApps d2b8ebfd95 Merge origin/main into feat/cutover-remaining-codecs 2026-11-16 01:57:11 +01:00
dotCooCoo e83f78f681 Crop Image: the Control bar leaves room for the cropping options
While the Crop Image tool is in use, the image's Control bar shows its
file name, color mode and resolution only, so the tool's PPI, reference
point, X, Y, W and H follow them in a wide window instead of being left
out behind Unembed, Image Trace, Mask, Crop Image and Remove Background.

ui.cropImage's params text now lists the ppi, reference and linked
options and says Apply sends ppi with the rect.
2026-11-15 16:16:15 -08:00
BFlat 4a33a0132e Merge pull request #7930 from dotCooCoo/feat/shortcut-list-csv
Keyboard Shortcuts: Export Text… also saves the list as a CSV file
2026-11-16 06:56:36 +07:00
BFlat 75dc7dcd20 Merge pull request #7964 from dotCooCoo/feat/ellipse-anchor-count
Ellipse: the click dialog sets how many anchors the ellipse has
2026-11-16 06:55:58 +07:00
dotCooCoo 3ffc56a2c1 Merge main into fix/confined-exports-script-paths 2026-11-15 13:52:03 -08:00
BFlat f6bbaf5dbf Merge pull request #7889 from dotCooCoo/feat/panel-tab-cycles-options
Panels: the double triangle on a panel's tab strip cycles its display sizes
2026-11-16 04:31:49 +07:00
dotCooCoo 5412c911cf Graph Type: Draw Filled Lines takes a Line Width
Graph Type has a Line Width field next to Draw Filled Lines, and
`graph.setType` takes `lineWidth` in points (0.01 to 1000; 3 when the
graph sets none). Filled lines are drawn at that width, and the width is
kept through save and open. A graph stores a width only when it is not
3 pt, and a graph with a width of its own is written to .ai as its art.
`graph.setType` with options that leave the graph as it is records no
undo step.
2026-11-15 12:39:45 -08:00
dotCooCoo 24c0f89ff9 Part of #7840: the Ellipse dialog sets how many anchors the ellipse has
A click with the Ellipse tool opens a dialog with a new Anchors field
under Height, 4 by default. With 4, OK draws the same live ellipse as
before. Any other count from 2 to 1000 draws a closed plain path with
that many smooth anchors spaced evenly by angle, from the left one and
clockwise, with handles of 4/3*tan(theta/4) scaled along each axis and
the path fitted to the typed width and height. The dialog sends the
nearest whole number from 2 to 1000 (4 for an empty field or text that
is not a number). The count confirmed last is kept as the Ellipse
tool's anchors option, and the next Ellipse dialog opens on it.

shape.ellipse takes an optional anchors param (default 4). A number
that is not a whole number from 2 to 1000 gets one error naming that
range, a value that is not a number gets the usual type error, and
nothing is drawn. The MCP draw_shape tool lists anchors for ellipses.

Docs: params text, docs/mcp.md, docs/target-app-parity.md (Shapes).
2026-11-15 12:16:26 -08:00
FredApps caa62aa79f Merge remote-tracking branch 'origin/main' into work7669 2026-11-15 21:06:46 +01:00
dotCooCoo d05923aa34 Gradient tool: dragging the end handle changes only the length, Alt-drag the length and angle
A plain drag of the annotator's end handle now slides the end along the
bar's line, at least 10 px from the start, and snaps only to targets on
that line. Alt-drag moves the end freely, changing the length and angle
together, with Shift at Constrain Angle steps. A vector of no length
still moves freely.

Docs: docs/mcp.md, docs/ui-parity.md.
2026-11-15 11:34:56 -08:00
dotCooCoo 54aa1a6d40 Merge main into fix/confined-exports-script-paths 2026-11-15 11:06:03 -08:00
dotCooCoo 08b3c0b00a Keyboard Shortcuts: Export Text… also saves the list as a CSV file
Export Text…'s save dialog in the desktop app adds a CSV type after
Text and Shortcut sheet, and shortcuts.exportText takes `format: "csv"`.

The CSV file is UTF-8 with a byte order mark, CRLF line ends and RFC
4180 quoting. Its header row is Group,Command,Shortcut in every UI
language, then one record per row the dialog lists, in the sheet's
groups (Tools, then a group per top-level menu) with names and
shortcuts in the UI language. A row with no shortcut has an empty
Shortcut field. A field that starts with =, +, - or @ and has more
after it, or that starts with a tab or a carriage return, starts with
an apostrophe.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-15 10:39:56 -08:00
dotCooCoo 6bc3249fdf Keyboard Shortcuts: Export Text… also saves a printable shortcut sheet
Export Text…'s save dialog in the desktop app offers two file types:
Text (the text file as before, still the first and default type) and
Shortcut sheet (PDF). The type picked decides the file.

The sheet lists the rows that have a shortcut, Tools and then a group
per top-level menu, each under a colored band, shortcut on the left and
name on the right. The groups flow down four columns of landscape Letter
or A4 pages, titled with the set's name. A row with several shortcuts
has a line for each, a shortcut too wide for its column is set smaller,
and a long name ends in "…". The sheet is laid out as a document and
written by the PDF writer.

shortcuts.exportText takes `format` ("text" or "sheet"; default text)
and `pageSize` ("letter" or "a4"). Without `pageSize` the sheet is on A4
when the current document prints on A4, else on Letter. A `path` is
written as given, as text without `format`, and a bad value is an error.
When `format` names a format, or the save dialog reports the type
picked, the name the dialog returns gets that format's extension, and a
file already at the changed path is replaced only after asking.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-15 10:20:55 -08:00
dotCooCoo f1f4d629e8 Panels: the double triangle on a panel's tab strip cycles its display sizes
A double triangle at the right end of the tab strip of Align, Attributes,
Character, Color, Flattener Preview, Gradient, Info, Paragraph, Stroke,
Transform and Transparency steps the active panel through its display
sizes. The sizes are the states the panel menu's Show/Hide Options items
set (Transparency: thumbnails and options, thumbnails alone, neither),
largest first, and the smallest goes back to the largest.

window.panel.cycleOptions {panel} does the same and returns
{panel, size, sizes}. An unknown panel or a panel without sizes is an
error and changes nothing.

Docs: docs/mcp.md, docs/control-protocol.md, docs/ui-parity.md.
2026-11-15 08:39:43 -08:00