Commit Graph
465 Commits
Author SHA1 Message Date
dotCooCoo 5d8609e881 Merge main into feat/proof-setup-save-load
# Conflicts:
#	crates/ui-egui/src/dialogs.rs
#	crates/ui-egui/src/i18n/tests.rs
2026-11-19 04:47:38 -08:00
dotCooCoo 2eeb582f35 Merge main into feat/proof-setup-save-load 2026-11-18 17:16:14 -08:00
dotCooCoo 80cc17da48 Merge main into feat/transform-show-on-shape-creation 2026-11-18 13:09:50 -08:00
bflatastic a8c951f7f7 combo: #8082 2026-11-19 01:26:03 +07:00
bflatastic 8cb2ab2a27 combo: #7971 2026-11-19 01:25:59 +07:00
bflatastic 1dc806b1ef Merge main into #8082 2026-11-19 01:20:16 +07:00
bflatastic 649879b0ce Merge main into #7971
# Conflicts:
#	crates/ui-egui/src/i18n/ca.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/vi.tsv
2026-11-19 01:19:54 +07:00
bflatastic 86eb9aa115 Merge main into #7867 2026-11-19 01:19:48 +07:00
dotCooCoo a6d6ff667d Merge main into feat/transform-show-on-shape-creation 2026-11-18 07:28:28 -08:00
dotCooCoo e4379e39f1 Merge main into feat/attributes-url-count 2026-11-18 06:20:03 -08:00
dotCooCoo 105ba854c1 Merge main into feat/hold-shortcuts 2026-11-18 01:56:46 -08:00
dotCooCoo 2123b284f0 Merge main into feat/proof-setup-save-load 2026-11-18 01:42:49 -08:00
dotCooCoo cd5d611196 Merge main into feat/toast-messages 2026-11-18 01:21:20 -08:00
dotCooCoo c6b657b96f Merge main into feat/editable-flares 2026-11-17 22:42:31 -08:00
dotCooCoo 924fd72183 Merge main into feat/attributes-url-count 2026-11-17 22:27:54 -08:00
dotCooCoo ef3659caa5 Merge main into feat/plugin-budget-preference 2026-11-17 22:27:52 -08:00
BFlat 4cba0fcc5b Merge pull request #8478 from dotCooCoo/feat/width-point-edit-discontinuous
Width Point Edit: a discontinuous point shows and edits both sets of side widths
2026-11-18 13:09:05 +07:00
dotCooCoo d42995dcff Merge main into feat/proof-setup-save-load 2026-11-17 20:26:07 -08:00
dotCooCoo 57d21108c9 Merge main into feat/hold-shortcuts 2026-11-17 20:08:52 -08:00
dotCooCoo b789a26dd5 Merge main into feat/plugin-budget-preference 2026-11-17 20:00:17 -08:00
dotCooCoo 44bd7ba6df Merge main into feat/toast-messages 2026-11-17 19:59:56 -08:00
dotCooCoo 0c4684e9b5 Merge main into feat/attributes-url-count 2026-11-17 19:57:38 -08:00
dotCooCoo 55b8fa8b6a Width Point Edit: the dialog and stroke.widthPoint.set share one pairing rule
The dialog and stroke.widthPoint.set each tested whether two width
points are the halves of one discontinuous point. The test is now one
engine function, width_point_pair: a point and the next one are the
two halves when they are the only points within 1e-6 of the first
one's place. The dialog still picks which point to test, and the
command still returns its error when the indices are not a pair.
2026-11-17 17:31:06 -08:00
dotCooCoo 04c65a85af Messages: app.toast shows a message over the window without stopping work
`app.toast {message, level?, seconds?}` queues a short message that the
desktop app shows at the window's bottom right. It closes after its time
(4 seconds by default, 0.5 to 60) or when clicked. At most 5 show at
once, the newest lowest; a message shows at most 6 lines with the whole
text on hover, and a stack taller than the window scrolls. `level`
(info, success, warning, error) sets the color of its edge.

Scripts raise one with `vc.run`, MCP clients and plug-ins through the
command, and an action records it as a step. The app's own code calls
`Session::toast`. The command edits no document and adds no undo step;
invalid values are errors. Part of #7523: the tick sound is not
included.

Docs: docs/mcp.md, the Automation evidence in docs/target-app-parity.md.
2026-11-17 08:30:51 -08:00
dotCooCoo ad0675d4f9 Transform panel: Show on Shape Creation shows the panel after a shape is drawn
The Transform panel menu has a Show on Shape Creation check item, the
`showOnShapeCreation` preference (off until chosen, kept with the
preferences). With it on, the app shows the Transform panel, as Window >
Transform shows it, after a shape is drawn: a drag or OK in the dialog of
the Rectangle, Rounded Rectangle, Ellipse, Polygon, Star or Line Segment
tool, a shape the Shaper tool recognizes, or a shape.rectangle,
shape.ellipse, shape.polygon, shape.star or shape.line command, alone or
as a batch step. A panel that is showing already stays as it is. A
canceled drag or dialog, a failed command, saved steps an action plays, a
script's commands and Presentation Mode leave the panels as they are.

The engine notes a drawn shape where it journals the command
(`Session::take_shape_drawn`), and the app checks it once per frame.

Help page: https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html
2026-11-16 08:16:11 -08:00
dotCooCoo 620c07848b Plug-ins: Preferences set the instruction budget for object-filter runs (Normal or Large)
Preferences > Plug-ins & Scratch Disks > Plug-in Instruction Budget
(`pluginInstructionBudget`) is a VectorCraft setting. Normal, the default,
keeps the limits a filter run has today. Large gives each object filter run
250 M instructions plus 4,000 per input byte, with the 60 s time budget, Cancel
and the other limits unchanged. An approved heavy filter keeps its 1 G and
300 s with either value; live effects, exporters and importers keep their own
budgets. The next run of an installed filter uses the value in force when the
run is prepared.

prefs.set refuses any value but normal or large; a saved preferences file
with another value reads as Normal and the other preferences load as saved.

Docs: docs/plugins.md, docs/mcp.md, docs/target-app-parity.md.
2026-11-16 03:02:49 -08:00
dotCooCoo 10f7206bbe Attributes: Panel Options sets how many recent URLs the URL menu lists
The Attributes panel menu gets Panel Options..., whose dialog sets how
many of the recent URLs the URL menu lists, a whole number from 1 to 30
(10 by default). ui.attributesPanelOptions {count} sets it without the
dialog; a count out of range is an error and changes nothing. The count
is kept with the UI state.

The recent URL list now keeps the 30 newest distinct URLs of the
session, so a lower count hides older URLs without removing them.
2026-11-16 00:26:27 -08:00
dotCooCoo e1033f239f Merge main into feat/editable-flares 2026-11-15 20:52:25 -08:00
dotCooCoo 38d2f83795 Merge main into feat/hold-shortcuts 2026-11-15 16:10:03 -08:00
dotCooCoo 3c73995861 Merge main into feat/script-file-folder-write 2026-11-15 16:06:24 -08:00
dotCooCoo d6e96a0b09 Merge feat/proof-setup-customize into feat/proof-setup-save-load 2026-11-15 13:09:29 -08:00
dotCooCoo 23be2d879f View: Proof Setup saves and loads a custom proof setup
The Proof Setup dialog gets Save… and Load… buttons. Save… writes the
dialog's settings to a proof setup file, and Load… reads one back into
the dialog. View › Proof Setup lists the setups in the Proof Setups
folder next to the preferences below Customize…, and choosing one makes
it the proof setup with Proof Colors on.

view.proofSetup.save, view.proofSetup.load, view.proofSetup.read and
view.proofSetup.list do the same from scripts and control clients. The
file is VectorCraft's own JSON format (.vcproof, at most 64 KiB).
2026-11-15 13:09:24 -08:00
dotCooCoo 0cf59a7649 Shortcuts: a tool or command can have a hold shortcut that runs when its key is held
Edit › Keyboard Shortcuts gets a Hold Shortcuts checkbox, off by default,
with a ? button that explains it. While it is off, the dialog has no Hold
column and every key runs on its press as before. While it is on, the
dialog shows a Hold column and the Hold Shortcut Delay (`keyHoldDelay`,
0.35 s, 0.2 to 1.0 s), and a letter, digit or punctuation key, alone or
with Shift, can hold a tool or command. Held for the delay, the key runs
its hold shortcut once and its repeats are ignored until it is let go; a
quicker press runs what the key runs without one, at the release.
Another key, or Cmd, Ctrl or Alt, ends the wait first; focus loss, a
dialog, a text field, Presentation Mode or an input method composition
ends it without running anything. A hold on a letter alone leaves the
letter with Shift as it is, and a key the active tool uses itself (E
with the Extend Path tool) does not wait. A tool key with a hold
shortcut runs the hold instead of choosing its tool temporarily
(`holdToolKeys`). Preferences › General › Options lists both settings
too, with the delay dimmed while Hold Shortcuts is off.

Hold shortcuts are stored apart from the shortcuts (`shortcut_holds`).
`shortcuts.set` takes `hold`, `shortcuts.list` rows have `hold`,
`shortcuts.conflicts` lists hold clashes, Export… writes `holds` and
Import… reads it, and Export Text… adds a `Hold X` column while the
checkbox is on. Reset to Defaults and the presets clear them. The new
strings have rows in every catalog.
2026-11-15 12:49:39 -08:00
dotCooCoo 329aebc68c Merge main into feat/file-info-templates 2026-11-15 11:06:12 -08:00
dotCooCoo a670cd1102 File Info: metadata templates save, import and list from the File Info menu
File Info's menu saves the fields as an XMP metadata template (into the
Metadata Templates folder next to the preferences, or any file), imports
one with a choice of three merges, lists the saved templates and opens
the folder. The import is one undo step and records nothing when no
field changes.

- file.info.saveTemplate writes the title (when it is not the
  document's name), author, author title, description, keywords,
  rating, copyright status, notice and URL that have a value.
- file.info.applyTemplate reads a file, a saved template or XMP text
  (at most 8 MB) and merges it: replace clears the fields first, keep
  takes each field the template has, append adds keywords and fills
  only empty fields. apply: false returns the merged fields without
  changing the document.
- file.info.templates lists the folder's .xmp files.
- A PDF or .ai also opens with the rating and author title its XMP
  packet gives.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-15 11:05:55 -08:00
dotCooCoo ea3dec020c Merge main into feat/editable-flares 2026-11-15 06:55:47 -08:00
dotCooCoo 578072babb Flare: a flare keeps its settings and can be edited after it is drawn
A flare drawn with the Flare tool or shape.flare now keeps the settings
it was drawn with and the transform it has had since. With flares
selected, double-clicking the Flare tool opens Flare Tool Options filled
from the first one, and OK draws the selected flares again in their
place as one undo step (none when nothing changed). With one flare
selected, the Flare tool shows its center and end handles, and dragging
either changes the flare's length or direction. Object > Expand turns a
flare into a plain group of its parts.

- shape.editFlare draws flares again with the settings it is given.
- A flare whose parts were edited, or that is locked or hidden, is not
  edited as a flare.
- shape.flare returns an error for a fractional or negative count.
- Native files save a flare's settings.
2026-11-15 06:37:03 -08:00
dotCooCoo 994cd75fef Merge main into feat/script-file-folder-write 2026-11-15 06:08:24 -08:00
BFlat 2340a1bb6c Merge pull request #7777 from dotCooCoo/fix/place-cursor-ask-roots
Place: import options a cursor click asks for place within the cursor's automation roots
2026-11-15 15:46:31 +07:00
BFlat 04b91c748e Merge pull request #7648 from dotCooCoo/feat/graph-type-dialog
Graphs: Graph Type is a dialog of its own with type buttons and a page per axis
2026-11-15 14:42:05 +07:00
dotCooCoo dc2ae3dbc2 Merge main into feat/script-file-folder-write 2026-11-14 22:56:25 -08:00
dotCooCoo 609d8836a2 Place: import options a cursor click asks for place within the cursor's roots
The OK of the import options a click of the place cursor asks for now
places the file within the automation roots the cursor was loaded in,
or within the roots of a caller that confirms with roots of its own.
Options from a click before the cursor was loaded again are refused.

A cursor loaded again (a queue set with tool.setOption, a script) no
longer asks for import options or keeps the queued sizes of the cursor
the Place dialog loaded. The engine counts cursor loads
(Session::place_queue_loads) so the app can tell.
2026-11-14 22:07:59 -08:00
dotCooCoo f05d481247 Control bar: Select Similar Objects selects by the attribute its menu keeps
With something selected, the Control bar shows a Select Similar Objects
button and, beside it, the Select Similar Options menu. The button
selects the objects like the first selected one by the attribute kept
for the session; a menu item selects by its attribute and keeps it,
and the kept item is checked. The items are All, Fill Color, Fill &
Stroke, Stroke Color, Stroke Weight, Opacity, Blending Mode,
Appearance, Graphic Style, Shape and Symbol Instance.

- select.similar {by?} runs the select.same command of that name, or
  for "all" matches fill and stroke colors, stroke weight, opacity and
  blending mode together. An unknown by is an error that keeps the
  selection and the kept attribute. The journal records the attribute
  used, so a recorded action repeats it, and a failed script or plug-in
  call puts the kept attribute back.
- The button and menu belong to the Object Options group and sit at
  the right end of the bar, after the X, Y, W and H fields. They take
  only the room the other controls leave, so the bar leaves them out
  before any other control.
- The Paragraph tests' control_bar_node looks for a label before a
  value, so a link's text run listed first no longer stands in for
  the link.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-14 18:41:14 -08:00
dotCooCoo a134cf6f8d Graphs: Graph Type is a dialog of its own with type buttons and a page per axis
Object > Graph > Type... and a double click on a graph tool open Graph
Type (dialog `graphType`) instead of the generic parameter dialog. A
menu at the top shows Graph Options, Value Axis (Left Axis and Right
Axis with the value axis on both sides) or Category Axis. Graph Options
has a button per graph type, Value Axis with Separate Scales, the Style
checkboxes and the options of the type picked. The axis pages hold Tick
Values with Override Calculated Values, Tick Marks and Add Labels.

Override Calculated Values starts from the values the axis would be
calculated with for the options shown; the engine exposes them as
`graph_type_subject` and `graph_calculated_axes`. With series picked by
Group Selection, the type and value axis go to those series. OK changes
the graph and series the dialog opened on, and with nothing changed it
adds no step of history.

Docs: docs/mcp.md, docs/ui-parity.md and the tool.options text.
2026-11-14 10:27:41 -08:00
dotCooCoo 1d8ce8a0a8 Merge main into feat/script-file-folder-write 2026-11-13 19:09:14 -08:00
dotCooCoo d7da446cd7 Text Wrap: Offset is a distance in the document's units
Text Wrap Options showed Offset as a plain number in points. It is now a
distance field in the document's General unit: a bare number is in that
unit, a typed unit is read as typed, and OK sends points.

The field's range is the one object.textWrap.options keeps an Offset to,
-1000 to 1000 pt, read from the engine's TEXT_WRAP_OFFSET_RANGE. A value
typed outside it, or text that doesn't read, is refused: the field
flashes and the dialog stays open. The ends as the field shows them in
another unit (352.7778 mm for 1000 pt) read back as the ends.

In the dialogs drawn by the shared dialog window, a click on OK no
longer confirms the dialog when the field it takes the focus from
refuses its text, as Enter already did not. OK pressed from the keyboard
after such a click still confirms.
2026-11-13 15:39:15 -08:00
dotCooCoo 13514841c1 Merge main into feat/script-file-folder-write 2026-11-13 08:15:22 -08:00
dotCooCoo 4716646c6b Scripts: File and Folder objects write files inside a script's scope, with per-script grants and pickers
A script's File and Folder objects now open files for writing, appending
and editing, and copy, rename, remove and create files and folders. A
script reads and writes its run's temporary folder (Folder.temp) and its
own data folder (Folder.userData), kept between runs for a script run
from a file and inside Folder.temp for a script given as text. It reads
its own folder, and reaches other places only through File.openDialog,
File.saveDialog, Folder.selectDialog and the objects' openDlg, saveDlg and
selectDlg.

- A file dialog asks first. The person picks the file or folder with
  Choose..., then allows it once or, for a script run from a file, always.
  A kept grant is bound to the script's path, the SHA-256 of its text and
  every source the run evaluated. It is withdrawn when a later run of the
  script evaluates other code, including code an earlier run left in the
  same named engine. It stays on the real path that was granted, so a
  link put in that place later does not carry it elsewhere.
- A dialog's filter is a string of file types or a function that is
  called with each file picked; multiSelect gives an array of the files
  picked, at most 2,048, and the dialog says when more were left out.
- A folder's selectDlg opens the host's folder dialog in that folder,
  also where the host shows file dialogs in line. Enter in the file
  dialog denies, unless it goes to the focused Choose... button.
  script.grants.revoke is refused with the busy error while a script
  runs, as the run keeps the grants it started with.
- The paths a file dialog allows come only from the host's file dialog:
  ui.dialog.set cannot set them. Only the person at the keyboard allows
  access; Allow Once and Always Allow sent by automation are refused. The
  dialog describes the access the run asked for, whatever its fields say.
- No grant reaches the settings folder, also when the script's own folder
  holds it.
- A file left open is not written through a link put in place of its
  folder since it was opened, and Folder.userData is null when the data
  folder or the script's folder in it is a link.
- copy onto another link to the same file (a hard link) leaves the file's
  bytes as they are, after the source's open objects have written what
  they hold. Files are compared by identity (device and inode on Unix,
  volume and file index on Windows).
- Folder.temp and Folder.userData check each folder they make against the
  automation write roots first, and Folder.create() makes nothing when a
  missing folder above the target is outside the places the script may
  write.
- An open file holds at most 8 MiB, a run writes at most 32 MiB and keeps
  at most 256 files open, and the files a run left open are written in
  the order they were opened. Setting length and copying a file count the
  bytes every open object of that file takes, and write checks the joined
  text against the limit while joining it. The report names at most 4,096
  written files and sets writtenMore when there were more.
- Errors a script sees are translated in every complete message catalog.
2026-11-13 05:42:56 -08:00
dotCooCoo f918c91c13 Edit: settling an interaction keeps the warning of the preview it applies
With Real-time Drawing off, a command that ends a drag first (Undo, Redo,
Clear History, a plug-in command and the others) applies the drag's
deferred preview, but dropped the warning that preview gave, which
releasing the drag shows in the status bar.

- The applied preview's warning is now kept while a top-level command or
  the tool's actions run. A command's result carries it as
  `previewWarning`, and as `warning` when the command has no warning of
  its own, so the status bar shows it.
- Typing kept as its own step when a tool's drag begins, or when Cmd
  lends the Selection tool, shows the warning in the status bar.
- The Cmd-lend path no longer ignores an error from keeping the typing.

Docs: docs/mcp.md (undo/redo row), docs/target-app-parity.md.
2026-11-13 04:36:38 -08:00
BFlat 8998d94cc8 Merge pull request #7057 from dotCooCoo/feat/paste-remembers-sublayers
Layers: Paste Remembers Layers puts art back into the sublayer it was copied from
2026-11-13 14:18:03 +07:00