Merge main into feat/align-artboards

This commit is contained in:
dotCooCoo
2026-11-12 13:47:00 -08:00
188 changed files with 9962 additions and 588 deletions
+133 -13
View File
@@ -222,6 +222,13 @@ the suite) keep the agent to the folders you give it:
`null`; an empty folder and the scratch disk choices `Startup` and `None` stay. In `prefs.get {}` and
`prefs.reset`, an export preset in `screenExportPresets` leaves out its `folder` when the folder is outside the
read roots, and the preset stays. The preferences themselves are not changed.
- `document.inspect` (`inspect_document`) gives `path` as null when the document's file is outside the read roots.
`document.json` names a linked image or placed file outside them by its file name alone in the link's `path`, and
leaves out the link's `relative`, `size` and `modified`. This covers the art of the brushes in `unknown.brushes`
too. A link whose file is inside them keeps its `path` but leaves out a `relative` that leads outside them. A
stored brush entry that does not read as a brush is left out of `unknown.brushes`. `document.json` also names a data set's image
value outside them by its file name alone, and leaves out the `folder` of `export_settings` (the settings Export
for Screens last used) when that folder is outside them. The document itself is not changed.
- `plugin.list`, `plugin.safeMode`, `file.recovery.*` and `ui_inspect`'s `scriptReport` leave out the paths
outside the read roots, also those the person or an earlier request put there. In `plugin.list`, the plug-in
folder last loaded is `null` in `folder.folder`, and a failed file in `folder.failed` and a plug-in's `source`
@@ -823,7 +830,20 @@ lists every option with its default. `encoding` is `utf8`, `utf16` (big-endian a
a warning). `embedFonts: true` embeds the fonts type uses as `@font-face` rules subset to the characters used; a
font whose licence (OS/2 `fsType`) forbids subsetting is embedded whole, one that forbids embedding is left out
with a warning. Type names its faces by numeric `font-weight` (600 for Semibold and for a Japanese face's W6, 300 for Light, `bold` for 700),
embedded or not. `svgz` takes the same options and writes the SVG gzipped (`.svgz` files also open,
embedded or not. `variableData: true` (SVG Options › Include Variable Data) writes the document's text variables and
data sets as a `variableSets` element in the layout `variable.loadLibrary` reads, so the SVG works as a data merge
template ([help](https://helpx.adobe.com/illustrator/desktop/automate-visualize-data/automate-actions/merge-data.html)).
Each text variable names its bound type object by the element's id, `docRef="id('…')"` (VectorCraft's own form); an
unnamed object, or any object with `objectIds: "minimal"`, is given an id for it. A variable bound to several type
objects names the first by object id. Variables of other kinds, text variables whose names aren't XML names, and data
sets whose names are blank, have white space at either end, hold characters XML can't hold or repeat a name are left
out, each with a warning. Only the first 256 text variables and the first 1,000 data sets are written, and variable
data larger than 8 MiB or holding more than 2,000,000 XML nodes is left out (the limits `variable.loadLibrary`
reads), each with a warning. With `outlineText`, the bound type is written as outlines, so its text variables open
unbound (with a warning). `document.open` reads the variable data of an SVG back (unless the SVG reopens from
Preserve Editing): its text variables and data sets, no active data set, and each text variable bound to the type
object its `docRef` names; the art stays as the file draws it. Variable data that `variable.loadLibrary` would refuse
is left out with the warning "the file's variable data wasn't read", and the art opens. `svgz` takes the same options and writes the SVG gzipped (`.svgz` files also open,
place and paste). `run_command document.save {path: "x.svg", svg: {…}}` saves as SVG (or `.svgz`).
Colorized grayscale and 1-bit images export in their fill color; linked mode writes a coverage PNG, and Tiny 1.2 writes a colorized PNG.
@@ -1498,6 +1518,11 @@ key, the Batch dialog or `ui.action.play`), a key a command no longer reads, rec
and the action still plays. `Session::replay` plays a journal the same way. The command still refuses an effect
`color` or `channel` it can't read.
`window.panel` refuses every request in Presentation Mode, which hides every panel, and changes nothing. With
`toggle` it hides only a panel that can be seen, which is the panel the Window menu checks. While Tab or Shift+Tab
hides the dock, no panel is checked, and the panel shows again with the dock in its earlier place; the toolbar and the
Control bar stay as they are.
The export commands limit those keys. `document.export`, `document.exportSelection`, `document.serialize`, `app.export`
and `file.export` refuse a key that no format takes, and ignore a key that only another format takes
(`{"format": "pdf", "quality": 80}` writes the PDF). `document.exportPdf`, `document.pdfSettings` and `pdf.preset.save`
@@ -2607,6 +2632,24 @@ and changes nothing. Behavior reference:
{"name":"invoke_menu","arguments":{"command":"learn.show","params":{"tutorial":"pen-paths"}}}
```
A step that names a tool shows the tool's name as a blue link. A click on it, or Enter or Space while it has the
keyboard focus, runs `learn.locateTool {tool}`, which marks where the tool is in the current layout without choosing
it: its toolbar button, or the tool's row in its group's flyout, which opens when the button shows another tool of the
group. A group torn off into a strip comes to the front with the tool marked in it. A tool that no shown toolbar holds
is marked in the All Tools drawer, which opens; the tool is not added to a toolbar. A Tools panel hidden with
Window › Tools shows again. A target below the window's bottom scrolls into view. The mark lasts 3 seconds after it
first shows; Escape or the next locate removes it. The reply is `{tool, location, toolbar}`: `location` is `toolbar`,
`flyout`, `strip`, `allTools` or `unavailable`, and `toolbar` names the toolbar made with New Toolbar that holds the
tool (null for the Tools panel's). While Presentation Mode or Tab hides the toolbars, the reply is `unavailable` with
a `reason`, and nothing changes. A missing, non-string or unknown `tool` is an error and changes nothing. The mark,
its 3 seconds, the flyout, strip and All Tools behavior and the hidden-toolbar replies are VectorCraft's own rules;
the help page (https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/learn-skills-quick-skill-guide.html)
describes selecting a tool's name in a step to find the tool.
```json
{"name":"invoke_menu","arguments":{"command":"learn.locateTool","params":{"tool":"smooth"}}}
```
## Ruler guides
Each ruler guide is an object of a layer or sublayer, directly in it and above its art, and takes an id from the
@@ -4254,6 +4297,34 @@ the `…Open` rings…) and marks (`Bar`, `DoubleBar`, `DotOnBar`, `Slash`, `Dou
`arrowScale`, at least 0.25 pt. `LineArrow` has two arms of the head's weight (the line's weight at 100 % for lines of
0.25 pt or more) at right angles and spreads twice as wide.
Custom arrowheads come from the arrowheads file, `Arrowheads.vectorcraft` next to the preferences (none on the web or
in runs with `VECTORCRAFT_NO_PREFS`). `stroke.arrowheads.edit` (Stroke panel menu › Edit Arrowheads…) opens it, and
first creates it with one example head when it is missing. Each symbol in the file is one head, named after the
symbol and listed after the built-in heads in both arrowhead menus. These rules are VectorCraft's own: a head points
right, the symbol's registration point is its tip, and the art's height is drawn as wide as the built-in heads (four
head weights). The visible fills and the outlined visible strokes of its paths, compound paths and groups, and its
gradient meshes, make the head, with geometry effects applied and clip groups clipped, and the line stops halfway along its length. A head is
one solid shape in the stroke's paint: art at 0 % opacity is left out, and other opacities, blend modes and opacity
masks do not change the shape. The file is read when the app starts and again from disk each time VectorCraft saves it;
`stroke.arrowheads.reload` reads it again. A file larger than 64 MB, or whose document or images unpack to more than 64 MB, is
not read, at most 256 symbols are read, and a symbol that paints nothing, reaches more than 64 head weights from its
tip, has more than 65,536 anchors in its art or in the shapes it paints, has shapes that cannot be combined into one,
or has more than 4,096 anchors once united is listed in `skipped`. `stroke.arrowheads.list` returns each head's `name`, `reach` and `halfWidth`, the `file`
path, the `skipped` symbols and any read `error`.
`stroke.set {endArrow: {"custom": name}}` puts a custom head on a stroke. The stroke keeps a copy of the head's art,
so the document draws it, saves it and exports it to SVG and PDF the same way without the arrowheads file.
`document.inspect` reports such a head as `{"Custom": {name, path}}`, which `stroke.set` takes back unchanged. It
refuses a `path` that fills no area (non-zero rule; parts thinner than a millionth of a head unit count as none) or
has more than 4,096 anchors, more than 4,096 subpaths or a point more than 64 head units from the tip. The help page
[Apply stroke on an object](https://helpx.adobe.com/illustrator/using/stroke-object.html) describes defining custom
arrowheads in a separate arrowheads file.
```json
{"name":"run_command","arguments":{"command":"stroke.arrowheads.list","params":{}}}
{"name":"run_command","arguments":{"command":"stroke.set","params":{"ids":[9],"endArrow":{"custom":"Example Arrowhead"}}}}
```
## Stroke bounds and clicks
Visual bounds (Fit to Selected Art, Rasterize, exporting all art) and clicks on the canvas take
@@ -4970,12 +5041,35 @@ is listed as Document › Export Selection…. A shortcut already given to `docu
When the other entry is anything else, the command is not listed: `window.learn` is left out, and Window › Learn is
the Learn panel's entry.
No two rows of Edit › Keyboard Shortcuts have the same English name. Rows that would have the same group and label
are named this way:
- A command that an item of the menu bar runs, with no params or with the params all its items give, is listed under
that item's menu path: `window.brushLibrary.other`, `window.graphicStyleLibrary.other`,
`window.swatchLibrary.other` and `window.symbolLibrary.other` are listed as Window › Brush Libraries › Other
Library…, Window › Graphic Style Libraries › Other Library…, Window › Swatch Libraries › Other Library… and
Window › Symbol Libraries › Other Library….
- A command whose id is another command's id with one more part is listed under that command's label:
`ui.charStyleOptions.resetPanel` and `ui.paraStyleOptions.resetPanel` are listed as Character Style Options ›
Reset Panel and Paragraph Style Options › Reset Panel.
- The other rows that still have the same name show their id in parentheses after it. The one row of them that an
item of the menu bar runs keeps the name without its id: File › New… is `file.newDialog` and `file.new` is File ›
New… (file.new), and Type › Fit Headline is `text.fitHeadline` and `type.fitHeadline` is Type › Fit Headline
(type.fitHeadline). `file.exportInBackground` and `file.openInBackground` are File › Continue in Background
(file.exportInBackground) and File › Continue in Background (file.openInBackground).
`shortcuts.list` gives such a row's group in `group` and the command's own label in `label`, so the rows that show
their id have the same `group` and `label` there, and `id` tells them apart. `shortcuts.exportText` writes these
names. When a shortcut is already in use, the message names each row that has it by its whole name, group included,
for every row: a `shortcuts.set` error ends with "is already used by Window › Swatch Libraries › Other Library…".
Each installed filter plug-in's Object › Plug-ins item is its own row, with id `plugin:<id>` (the plug-in's id), its
menu label and no default shortcut, so two filters with the same name have two rows. `shortcuts.set {id:
"plugin:<id>", shortcut}`, `shortcuts.list` and Import Shortcut Set use that id, `shortcuts.exportText` writes one line
for the row under its menu path and label, and the key runs what a click on the item runs, `plugin.dialog {id}`. A
removed plug-in's row goes away and its key runs nothing; its shortcut stays saved and applies again when a plug-in
with the same id is installed.
menu label and no default shortcut, so two filters with the same name have two rows. When the two rows have the same
menu path and label, each shows its id after the name. `shortcuts.set {id: "plugin:<id>", shortcut}`,
`shortcuts.list` and Import Shortcut Set use that id, `shortcuts.exportText` writes one line for the row under its menu
path and label, with its id when the row shows it, and the key runs what a click on the item runs, `plugin.dialog
{id}`. A removed plug-in's row goes away and its key runs nothing; its shortcut stays saved and applies again when a
plug-in with the same id is installed.
`shortcuts.exportText {path?}` saves the current set's shortcut list as a UTF-8 text file, as Edit › Keyboard
Shortcuts › Export Text… does with the dialog's set as edited so far. The file starts with a "Keyboard Shortcuts" line
@@ -6946,9 +7040,11 @@ says when CSS can't describe the art exactly (`unsupported`: other shapes, image
written as its box, or with `rasterize: true` as `background-image: url(<class>.png)`. `units` is `px` (1 px per
point, as in SVG export), `pt`, `mm`, `cm` or `in`; `unnamed: false` leaves out unnamed objects (counted in
`skipped`). `css.generate` does the same for the whole document, and `css.export {path?, scope?: selection|all}`
writes the `.css` file with the PNGs of rasterized art next to it (no path: `data` and `images` as base64). Its
`warnings` add the PNGs' notes to the CSS's, each once (an image that couldn't be decoded, type written in the
fallback font…). In the app, `css.copy` copies the CSS and `css.exportFile` writes it through a save panel (the web
writes the `.css` file with the PNGs of rasterized art next to it (no path: `data` and `images` as base64). A left-out
`scope` exports the selection; a `path` or `scope` given as anything but a string, `null` included, is an error, and
nothing is written. `css.generate` and `css.export {scope: "all"}` do not use `ids` or `id`, but a malformed one is still
an error. Its `warnings` add the PNGs' notes to the CSS's, each once (an image that couldn't be decoded,
type written in the fallback font…). In the app, `css.copy` copies the CSS and `css.exportFile` writes it through a save panel (the web
downloads it) and shows the first note in the status bar, with how many there are; resting the pointer on the
message lists up to 30 of them, fewer when the list would not fit in the window, with how many were left out.
@@ -7631,6 +7727,27 @@ Panel sets it back to Push Out Only. One undo step.
{"name":"run_command","arguments":{"command":"text.setFormat","params":{"kinsokuType":"pushInFirst"}}}
```
## Bunri-Kinshi
`text.setFormat {bunriKinshi: bool}` (Paragraph panel menu › Bunri-Kinshi, shown with the East Asian options) turns it
on or off for the paragraphs of the selected type (or `ids`, or the paragraphs a `start` / `end` range touches). On, a
line never breaks inside an inseparable pair: two em dashes (U+2014), two horizontal ellipses (U+2026), two two-dot
leaders (U+2025), or the upper half of a vertical kana repeat mark (U+3033 or U+3034) followed by its lower half
(U+3035), the pairs W3C JLREQ lists for its class cl-08 (https://www.w3.org/TR/jlreq/#cl-08), which are VectorCraft's
set. A chain of em dashes stays together as well. A pair is two neighboring characters, whatever their fonts and
styles; a forced line break between them ends the line as before. Both composers, vertical type, Kinsoku Shori Type,
hyphenation and No Break follow it, and a pair wider than the line stays whole on it. Justification adds no space inside
a pair. The setting works only with a Kinsoku Set: with Kinsoku Set None the paragraph keeps the value without effect,
and the menu item is unavailable. Off by default, for new type and for paragraphs saved before the option. It is saved
with the paragraph (`bunri_kinshi` in `para`) only when on, paragraph styles carry it (Paragraph Style Options › East
Asian Composition Settings), and Reset Panel turns it off. A value that is not true or false is refused. One undo
step. `.ai` editing data does not hold it, and a save reports a paragraph with it on and a pair in it as left out. The help page:
https://helpx.adobe.com/illustrator/using/formatting-asian-characters.html
```json
{"name":"run_command","arguments":{"command":"text.setFormat","params":{"bunriKinshi":true}}}
```
## Korean Line Break Anywhere
`text.setFormat {koreanLineBreakAnywhere: bool}` (Paragraph panel menu › Korean Line Break Anywhere, shown with the
@@ -9197,7 +9314,8 @@ during it puts the value back:
How blends interpolate: closed shapes start where they twist least unless `starts` picks the anchors; strokes
interpolate weight, dashes (a solid stroke counts as the dashed one with its gaps closed), miter limit, arrowhead scale,
width profiles and the pen pressure, tilt, bearing and rotation recorded with the Paintbrush (a stroke without a
recording counts as half pressure, half tilt and 0°, as brushes read it; angles turn the shorter way round), while
recording counts as half pressure, half tilt and 0°, as brushes read it; angles turn the shorter way round; a key's
profiles, recordings and arrowheads turn with its path when the blend starts it at another anchor), while
caps, joins, alignment, arrowheads and brushes switch halfway; gradients of one kind with
different stop counts resample to a common set of stops. Groups pair their members in stacking order (members only
one group has grow out of the other's centre), compound paths stay compound paths, and type, symbol instances and
@@ -10241,9 +10359,11 @@ change in one undo step, and an image that `ids` names twice changes once. An im
as it is, and when none changes the command adds no undo step and returns `changed: 0`. `cleared` counts the pixels
made fully clear in the images that changed. The command refuses, and changes nothing, when an image is CMYK, a linked
image shows its preview (embed or relink it first), an image would need more than the decode allowance while it is
worked on (2 GiB, or 512 MiB in the web app, counted from the file's header before it is decoded), or every pixel of an
image would be cleared. Remove Background… opens the command's dialog with Preview off; with Preview on, the canvas
shows the result for the values in the dialog, and Cancel puts the image back. While a dialog previews the command,
worked on (2 GiB, or 512 MiB in the web app, counted from the file's header before it is decoded), an image is
grayscale and colorized with a process color (the result has an alpha channel, and only a spot color, black or white
colorizes a grayscale image with transparency, as `paint.setFill` requires), or every pixel of an image would be
cleared. Remove Background… opens the command's dialog with Preview off; with Preview on, the canvas shows the result
for the values in the dialog, and Cancel puts the image back. While a dialog previews the command,
the session keeps the decoded pixels of the images it changes (at most 128 MiB, or 32 MiB in the web app), so the next
preview step does not decode them again; it releases them when the dialog closes with OK or Cancel. A run that is not
a preview step does not keep them.