Merge main into feat/scripts-export-autocad

This commit is contained in:
dotCooCoo
2026-11-25 20:43:05 -08:00
266 changed files with 12797 additions and 1070 deletions
+13 -2
View File
@@ -241,6 +241,13 @@ its variation grid; the panel draws the same grid. `ui.colorGuideOptions` opens
as `ui.color_guide` (`variation`, `steps`, `amount`). Save Colors as Swatches runs `swatch.new {colors: [...]}`
(one swatch per colour, one undo step).
Color Wheel contrast: `color.contrast {color?, against?, opacity?}` answers the WCAG 2 contrast ratio of the active
proxy's color against the color drawn behind the selection (`against: "below"`, the default) or against a given color,
with the AA and AAA results for normal text and large text and the AA result for graphics (docs/mcp.md). The Color Wheel panel's Show
Contrast row shows the same answer for the category picked under Contrast For; `ui.colorWheel {contrast?, contrastFor?,
contrastBackground?}` sets the row, its category and a pinned background, and `ui.inspect` reports them as
`ui.color_wheel`.
Color Guide Limit to Library: `ui.colorGuideLimit {library}` (a swatch library id or name, `"document"` for the
document's swatches, `""` for none) limits the panel's colours; `ui.inspect` reports it as `ui.color_guide_limit`, and
`color.harmony {..., limitTo}` answers the limited guide (every colour snaps to the library's nearest colour, ΔE 2000).
@@ -288,9 +295,13 @@ canvas while open; `ui.dialog.confirm` keeps the result as one undo step (`edit.
`edit.colors.saturate`) and `ui.dialog.cancel` rolls it back. Global mode answers with an error until tints of global
and spot colours exist; the dialog then stays open.
Recolor Artwork: `ui.recolorDialog {colors?, library?, group?}` opens the `recolor` dialog on the selected art
Recolor Artwork: `ui.recolorDialog {colors?, library?, group?, preset?}` opens the `recolor` dialog on the selected art
(`colors`: a count for an n-colour job, or colours to assign as the new colours; `library`: Limit to Library, a library
or `"document"`, `""` for the first library; `group`: a colour group, Edit or Apply Color Group). Fields: `rows` (`[{from: [keys], to: key, exclude?, tint?, model?}]`
or `"document"`, `""` for the first library; `group`: a colour group, Edit or Apply Color Group). With `preset: true`
(the Edit › Edit Colors › Recolor with Preset items) it first opens the `recolorPreset` dialog, which asks whether to
limit the colors to a swatch library: its field `limitTo` (a library id, `"document"`, or `""` for None) starts on
`library`, and its OK opens the `recolor` dialog with `colors` and that library; `preset: true` with `group` is an
error. Fields: `rows` (`[{from: [keys], to: key, exclude?, tint?, model?}]`
as `recolor.reduce` returns them), `colors` (null for Auto), `method`, `preserveWhite`, `preserveBlack`,
`preserveGrays`, `limitTo`, `groupName`, `tab` (`assign` or `edit`), `rule` (harmony id), `linked`, `preview`,
`sliderMode` (the mode of the color sliders under the rows: `hsb`, `rgb`, `cmyk`, `lab`, or `tint` for a row whose new
+3
View File
@@ -912,6 +912,9 @@ macOS cursor delivery (#2292) is narrowed to a native host adapter using the exi
It is given at most 128 MiB of the file and returns paths and compound paths, checked as a filter's output is, which
become a new document; nothing opens when it fails, declines or is cancelled. Engine, unit and headless Open With
regressions.
- **Done:** importer plug-ins that place files (`"place": true`). File › Place lists their files, and `file.place` reads
a file with one when `importer` names it or no built-in format reads the file; its objects are placed as one group,
embedded, as one undo step, and nothing is placed when it fails, declines or is cancelled. Engine regressions.
- **Done:** exporter plug-ins (`"kind": "exporter"`). A plug-in adds a write-only file format that File › Export ›
Export As lists after the built-in ones and `document.export` writes (`plugin.<id>`, or a path ending in one of its
extensions). It is given the document as the native file's JSON and its parameters, with a larger budget than a
+209 -39
View File
@@ -697,10 +697,13 @@ with a slider and a percent field sets the opacity of the fill row (`paint.setFi
(`paint.setStroke {opacity}`), the selected gradient stop or the selected freeform point (the first stop or point
when none is selected), and `false` hides the row. The row is gray with nothing selected, for an object selected in
a symbol instance, and when the fill or stroke row it would set is on type characters or missing.
`{"contrast": true}` shows Show Contrast's row under the wheel or the box, `contrastFor` (`normalText`, `largeText` or
`graphics`, which has AA only) picks the category its results are for, and `contrastBackground` (a color, or `null` for
the color behind the selection) pins the background it measures against, as `color.contrast` below answers it.
`{"documentColors": true}` shows the row the panel menu's Show Document Colors adds under the wheel
or the box. Keys left out keep their values. Params that are not an object, another key or a value off
the list return an error and change nothing. The command returns `{view, channel, sliders, gamut, harmony, harmonyRule, opacity, vision, documentColors}`,
and the settings are kept with the preferences.
the list return an error and change nothing. The command returns `{view, channel, sliders, gamut, harmony, harmonyRule, opacity,
contrast, contrastFor, contrastBackground, vision, documentColors}`, and the settings are kept with the preferences.
`ui.colorWheel {"sliders": "oklch"}` shows the Color Wheel panel's OKLCH Sliders (L, C and H rows under the wheel or
the box), and `"none"` hides them in any RGB space. `"oklch"` is an error while the active document's RGB space is
@@ -747,7 +750,7 @@ ends the wait, so the sampler can be shown again. The BSDs and headless sessions
| `pointer_gesture` | `{events:[{kind,x,y,mods?,backquote?,pressure?,tiltX?,tiltY?,rotation?,wheel?,holdMs?}], tool?, mods?, backquote?}` | `kind` is one of `down`, `drag`, `up`, `move`, `doubleclick`, `tripleclick` (`doubleclick` follows the second click's `up`, and `tripleclick` the third's). `backquote` is the held state for each event; the top-level value supplies its default. Events go through the same path as the mouse. Headless, a `move` replies after the tool's highlight under the pointer is ready, including the Shape Builder's and the Live Paint Bucket's regions of a large selection, which the desktop app finds off the UI thread and highlights after the reply. Remote, the events wait until the keys and other input sent before them (`press_key`, `type_text`) have reached the app, so a key pressed between two calls of one drag applies before the release. When that input is dropped because the document, a dialog or the focus changed first, the call fails and its events are not sent. The release of a Shape Builder click or drag over such a selection replies once the merge is applied, headless and in the desktop app, which computes the merge off the UI thread. In the desktop app, a gesture sent before then is made after the merge, and its reply comes once it is made; a command that can edit, select, save or redraw the documents (a preference, the proof and separations views), sent before then, waits for the merge and runs after it. |
| `draw_path` | `{points \| d, closed?, fill?, stroke?, strokeWidth?, dash?, cap?, join?, opacity?, name?, effects?}` | `points` is `[[x,y],…]` or `[{x,y,in?,out?,smooth?},…]`. `d` is SVG path data. The options are below. |
| `draw_shape` | `{shape, …geometry, fill?, stroke?, strokeWidth?, dash?, cap?, join?, opacity?, name?, effects?}` | `rectangle`/`ellipse`: `x,y,width,height` (plus `radius` for corners; an ellipse takes `anchors`, 2–1000, default 4). `polygon`: `cx,cy,radius,sides`. `star`: `cx,cy,radius1,radius2,points`. Polygons and stars take `rotation` in degrees clockwise (0: a corner or point straight up). `line`: `x1,y1,x2,y2`. |
| `set_paint` | `{fill?, stroke?, strokeWidth?, ids?}` | Applies to the selection (or `ids`) and becomes the default for new art. Returns `{applied, objects}`: `objects` is the number of objects painted, as the `objects` of the `paint.setFill`, `paint.setStroke` and `stroke.set` replies (the largest of them): a selected group counts the objects inside it. When it is 0, a `note` says that only the paint for new art changed. |
| `set_paint` | `{fill?, stroke?, strokeWidth?, ids?}` | Applies to the selection (or `ids`) and becomes the default for new art. Returns `{applied, objects}`: `objects` is the number of objects painted, as the `objects` of the `paint.setFill`, `paint.setStroke` and `stroke.set` replies (the largest of them): a selected group counts the objects inside it. When it is 0, a `note` says that only the paint for new art changed. When some of those commands painted objects and others painted none (a fill while the Shape Builder is the active tool, say), `unpainted` lists the commands that painted none, with a `note`. |
| `press_key` | `{key, mods?}` | Remote: a real key event. Headless: runs the command or tool bound to that shortcut, or sends the key to the busy tool (digits too: `5` while dragging with the Perspective Selection tool; `e` while dragging a Selection or Group Selection marquee; `c` and `f` while dragging out an arc; `f`, `v`, `x` and `c` while dragging out a rectangular or polar grid). |
| `type_text` | `{text}` | Remote only. |
| `answer_dialog` | `{set?: [{field, value?}], action?}` | Remote only. Sets fields of the app's open dialog in the order given with one `ui.dialog.set {fields, action?}` (a missing `value` is `null`). The app stores all of them or none, then answers that same dialog with `action` in the same request: `confirm` (OK) or `cancel`. Another connection cannot open a dialog between the two steps. When the app refuses the `ui.dialog.set`, for example because no dialog is open, the call is an error and the dialog is not confirmed or canceled. `set` cannot change a `__` field other than the dialog's controls held under a `__` name (such as Save PDF's `__section` or the Preferences `__search`): the `__command` and `__params` of a `confirm` or `command` dialog, and every other `__` field that holds what OK acts on, are refused with "the `<kind>` dialog cannot set protected field `<field>`", so OK runs what the dialog was opened for. `action` alone is sent as `ui.dialog.confirm` or `ui.dialog.cancel`. Give `set`, `action` or both; `set` holds at most 256 fields. `inspect_ui` shows the open dialog and its fields as `ui.dialog`. Returns `{dialog, result}`: the dialog after the fields were set (or `null`) and the reply to `confirm` or `cancel` (or `null`). After `invoke_menu` `app.quit`, `file.close` or `file.closeAll` replies `{"pending": "saveChanges"}`, `{action: "confirm"}` saves, `{set: [{field: "discard", value: true}], action: "confirm"}` closes without saving and `{action: "cancel"}` cancels the close or quit. |
@@ -1204,6 +1207,38 @@ panel's Limit to Library does (`ui.colorGuideLimit`); Recolor Artwork's `limitTo
that is not a string, such as `5`, names no library and gets the same error as an unknown name; `null` or `""` sets no
limit.
`color.contrast {color?, against?, opacity?}` answers the WCAG 2 contrast ratio
([definition](https://www.w3.org/TR/WCAG22/#dfn-contrast-ratio)) of a color against a background, from 1 to 21, and
whether it meets AA and AAA for normal text (4.5:1 and 7:1), large text (3:1 and 4.5:1) and graphics (3:1, AA only):
`{ratio, against, normalText: {aa, aaa}, largeText: {aa, aaa}, graphics: {aa}}`. The results compare the unrounded
ratio. `color` defaults to the active Fill or Stroke proxy's color (its selected gradient stop or freeform point, or
the first picked point of a gradient mesh; for a picked object of a dynamic symbol instance, its solid color mixed towards the fill that stains the instance), at
the opacity it is drawn with (the object's opacity times that of its groups and layer, and for a picked object of a
dynamic symbol instance also of the instance and the groups of the symbol's art around it, of its fill or stroke row,
which type's character paint does not use, and of a stop or point; a translucent group or layer draws the art inside
it, the art behind the object included, over what is outside it) and with the blend modes it is drawn with (its
fill or stroke row's, the object's and those of its groups and layer, innermost first, each blending the result with
the art below it inside the object, groups and layer around it, the object's rows below its row included, or with
the background when `against` or `opacity` is given;
inside an object, group or layer that isolates its blending, the modes blend only with the art it holds);
`opacity` (0 to 100) replaces that opacity. A given `color` is drawn in Normal mode, at `opacity` or fully opaque.
`against` takes a color, or `"below"` (the default, also for `null`): the color VectorCraft draws at the center of the
selection's bounds with the selected objects hidden, as the canvas shows it (locked art, opacity, blend modes and
images included; template layers and guides left out, as exports leave them out; the artboard's white where nothing
is drawn); a picked object of a dynamic symbol instance hides only itself, and the color is read at its own center.
These are errors: `"below"` with nothing selected; a "?" proxy (hidden objects count there, as in the Color panel);
selected objects that draw one color with different blend modes, or at different opacities without `opacity` (with
`"below"`, also in different groups or layers that are translucent, have a blend mode or isolate their blending, or
with a translucent or blending row over different shown rows below it), where hidden objects do not count, and the
error names `opacity` when giving it settles the difference; a proxy of None, a pattern or a hidden row without `color`; and without `color`, a
proxy's object drawn through an opacity mask that is not disabled, its own or that of a group, layer or instance
around it, since the mask sets how much of the color shows at each point. `against` in the
answer is the background as a working RGB `#rrggbb`, the form `against` takes; the sampled background is rounded to 8
bits, so giving it back answers the same ratio, except when `opacity` is omitted and a group or layer around the
object is translucent, has a blend mode or isolates its blending, or the measured row is translucent or blends over
rows below it: there `"below"` reads the art below each such level, and a given background stands for that art.
Headless MCP answers it too.
Color Themes (local only: no online service) keeps five-colour themes in the preferences. `colorTheme.save
{colors: [...]}` saves up to five colours as they are, `colorTheme.save {color, rule}` saves the five-colour theme a
harmony rule makes from a base colour (base first; `name?` defaults to "Theme N", `replace: "<name>"` overwrites
@@ -3872,6 +3907,11 @@ given and show none. These limits are VectorCraft's own values.
{"name":"run_command","arguments":{"command":"app.toast","params":{"message":"Exported 4 artboards","level":"success"}}}
```
A filter or plug-in command that only reports what it did needs neither `app.toast` nor any permission: its output's
`notice` ([plug-ins](plugins.md#output)) comes back in the run's result, and the desktop app and the web build show it
in the status bar as `Plug-in “name”: notice` once the output is applied. A run that fails, is refused or is canceled
shows no notice.
## Navigator panel options
The Navigator panel menu's Panel Options… opens the `navigatorPanelOptions` dialog (fields `color`, `solidDashes`),
@@ -4167,6 +4207,16 @@ Selection tool, a double-click with Cmd/Ctrl and Shift held releases the ruler g
(`pointer_gesture` with a `doubleclick` event and `mods: {cmd: true, shift: true}`), unless guides are hidden or
locked.
Selected ruler guides rotate with the Rotate tool, `object.rotate` (Object › Transform › Rotate…, with `copy` for
Copy) and `object.transformAgain`, also when no object is selected, in one undo step. `object.transform`,
`object.scale`, `object.reflect` and `object.shear` transform them too when objects are selected with them. Each
guide transforms as the line `view.guides.release` makes of it, and the default origin is the center of the selected
objects' box and those lines together. A guide that ends up vertical or horizontal stays a ruler guide at its new
place: a turn of 180° keeps it, and a turn of 90° makes a horizontal guide vertical. A guide at any other angle
becomes a guide path along its line, on the guide's layer, and is selected as one. Locked or hidden guides do not
transform, nor do guides when `ids` is given or `objects` is false. `object.rotate` with `absolute` and only ruler
guides selected is an error, as guides have no bounding box angle.
The Selection, Direct Selection and Group Selection tools pick a guide within the selection tolerance, over the art
(an anchor on it comes first with Direct Selection), and drag the selected guides: `mods.alt` copies them,
`mods.shift` snaps the dragged guide to the ruler's ticks, and otherwise it snaps to whole pixels, the grid or, with
@@ -4349,9 +4399,10 @@ already walks Image Trace. Short agent entry points:
moving and transforming, `path.moveAnchors`, `file.place` with `replace`, Puppet Warp, Delete
and Cut, Group, Hide, Lock, Arrange, Expand,
Recolor Artwork, plug-in filters, effects, the gradient commands, `gradient.selectStop`, the Appearance panel's rows and
`symbol.instance.setAppearance`. While the Live Paint Bucket is the active tool, `paint.editGradient` and
`gradient.presets.apply` without `ids`, `id` or `item` change the bucket's gradient instead, and
`gradient.selectStop` selects a stop of it. A Cmd-drag that lends the Selection or Group Selection tool selects the
`symbol.instance.setAppearance`. While the Live Paint Bucket, or for a fill the Shape Builder, is the active tool,
`paint.editGradient` and `gradient.presets.apply` without `ids`, `id` or `item` change the gradient the tool paints
with instead, and `gradient.selectStop` selects a stop of it.
A Cmd-drag that lends the Selection or Group Selection tool selects the
instance whole first and moves it. `swatch.unused` and `recolor.colors` count the fills and strokes an instance keeps for objects of its
art. Commands that change nothing in the document, such as `attributes.info`, `css.selection`, `css.export`,
`effect.list` and `object.expand.info`, read the instance. These commands do not check for a selected object and use the instance:
@@ -5398,7 +5449,9 @@ it by darkening (the stronger ink of each plate wins, so a colour overprinting i
image overprints as a whole: when one of its fills or strokes with an opacity above 0 draws a shape (Convert to Shape
or Outline Object) and does not overprint, the whole image knocks out in the previews and on printed plates. On
printed plates an image whose pixels do not take its color (a preview of its file) knocks out and prints as those
pixels. Older files that listed Overprint Black objects in the document get the flags on load.
pixels. While either preview is on and the artboards show, the canvas around the artboards is white instead of the
pasteboard color and the artboards draw no shadows; turning it off brings both back. Older files that listed Overprint
Black objects in the document get the flags on load.
PDF export writes them with `advanced.overprint: "preserve"` (the default): each overprinting fill and stroke sets a
graphics state with `/OP true /op true /OPM 1` (`/OPM 0` in PDF/A). With `discardWhiteOverprint` (`document.setup`, on by
default) paper white ones knock out instead; `"discard"` writes none. Paper white is solid white that is not a spot
@@ -6607,7 +6660,10 @@ Pathfinder Options: `object.pathfinder.options {precision?, removeRedundantPoint
`prefs.get`/`prefs.set` with key `pathfinder`) reads and sets the options every later Shape Mode and Pathfinder
operation uses: `precision` (0.001–10 pt, default 0.01; a string with a unit or a string that is all one number also reads, and
any other string, such as `"1abc"`, is an error) is how closely results follow
the paths (they are refit to within it and pieces thinner than it are dropped), `removeRedundantPoints` takes the
the paths (they are refit to within it and pieces thinner than it are dropped; Outline treats crossings closer together
than `precision / 10000` as one point, or than the tolerance for the art's size when that is larger, and edges that lie
within ten times that distance of each other along their whole length as one edge; 0.01 keeps the earlier output, and
scaling the art and the precision together gives the same pieces at the new size), `removeRedundantPoints` takes the
anchors that don't change a result's shape off it, and `removeUnpainted` makes Divide and Outline leave out the pieces
of objects with no fill (or only hidden fills). Both default to false; `{}` reads the options. Each Shape Mode and
Pathfinder command (`object.pathfinder.unite` … `minusBack`) also takes `precision`, `removeRedundantPoints` and
@@ -6627,8 +6683,10 @@ mean what they mean for the panel's operations; the other operations ignore `rem
on, a compound shape's area counts as filled when the shape has a visible fill of its own, and Divide keeps every piece
when the group or compound shape has one. Outline strokes a compound shape's area in the shape's own fill, and gives
the edges no paint when the shape has no fill (the shape's own strokes still draw over the result). `effect.apply`
fills the ones `params` leave out from the current Pathfinder Options, and the values join its journal entry. An effect
saved without them evaluates with precision 0.01 and both switches off, as before effects kept them. `effect.setParams
fills the ones `params` leave out from the current Pathfinder Options, and all three values join its journal entry,
those `params` gave and those filled in, so a replay gives the same effect whatever the options are then. An effect
saved without them evaluates with precision 0.01 and both switches off, as before effects kept them. A stored
`precision` that is not a number (`true`, or a string such as `"1abc"`) evaluates and scales as 0.01. `effect.setParams
{index, params: {precision?, removeRedundantPoints?, removeUnpainted?}}` edits them as one undo step; values the
effect already evaluates with record no undo step and return `{ids: []}`. A precision out of range, or a switch that
isn't true or false, is refused with an error and nothing changes. Scale Strokes & Effects scales `precision` with the
@@ -6702,7 +6760,12 @@ and `layerRows`, the rows highlighted in the panel.
set|add|toggle}` is Shift-click (a range) and Ctrl/Cmd-click (toggle). Selecting art makes its layer current.
Without `ids`, the panel commands below act on the highlighted rows, else on the current layer.
- **Selection column**: `layer.selectAll {id, add?}` selects a row's visible, unlocked art (a layer's sublayers'
too); `add` (Shift) adds it, or removes it when it's all selected. Alt-click on a layer's or sublayer's name runs
too); `add` (Ctrl/Cmd, or Shift before any square was clicked) adds it, or removes it when it's all selected.
`layer.selectAll {range: [id…], add?}` is a Shift-click on a square after another was clicked: the art of every
row listed from the last square clicked to this one, across sublayers and groups, leaving out hidden and locked
rows; Shift+Ctrl/Cmd adds it to the selection. A range does not move where the next Shift-click starts.
`layer.selectHighlighted {add?}` (the panel menu's Select Art of Highlighted Rows) selects the art of the highlighted rows by the
same rules. Neither is an undo step, and the highlighted rows stay. Alt-click on a layer's or sublayer's name runs
`layer.selectAll {id}` and then `layer.setCurrent {id}`.
- **Eye and lock**: `layer.setProps {ids?, visible?, locked?, name?}` for any rows, plus Layer Options for layers:
`template` (also locks the layer and dims its images to 50% unless given), `printable`, `preview` (off: the layer
@@ -7433,6 +7496,23 @@ outline of the area a drag covers takes, at each step, the tip the pen's reading
value shows as the value itself there, since the release draws it.
`tool.setOption {tool: "eraser"}` takes the same keys, with `sizeVariation` from 0 to 1000.
`path.blob` (the Blob Brush) takes `sizeMode` with `sizeVariation` (points, 0 to 1000), as the Size menu of Blob Brush
Tool Options sets it: `"fixed"` (the default), `"pressure"` or `"stylusWheel"`. Pressure goes from the size less the
variation where the pen presses lightest to the size plus it where the pen presses hardest. Stylus Wheel goes from the
size less the variation at 0 to the size plus it at 1 of an airbrush pen's finger wheel, the seventh value of each
point; a point without a wheel counts as 0.5, the size itself, and a stroke with no wheel reading, such as a mouse
drag, paints at the size. With either mode the width is at least 0.1 pt, also where the size less the variation is
smaller. Which way the wheel runs and the size itself without a reading are VectorCraft's own rules.
With Pressure or Stylus Wheel, a stroke whose points all lie at one place paints one dab sized from its first point's
reading, as a single point does.
The command refuses another mode with an error that names `sizeMode`, and the document does not change. In the
desktop app the Blob Brush's tip outline at the pointer takes the size the pen gives while it paints, and keeps the
size when Size is set to Stylus Wheel during the drag, which the release then paints at. A drag that starts on Fixed
also keeps the size when Size is set to Pressure. A drag that starts on Stylus Wheel records the pen pressure at each
point, so when Size is set to Pressure the tip and the release follow that pressure from the start of the drag, if the
pen pressed less than fully anywhere; otherwise they keep the size.
`tool.setOption {tool: "blobBrush"}` takes `sizeMode` and `sizeVariation` too.
`path.eraseRegion {rect: [x, y, width, height]}` takes a rectangle in place of `points` and erases everything inside
it from the paths (selected, or all), as an Alt-drag with the Eraser does ([Eraser tool
reference](https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=133)).
@@ -7449,7 +7529,7 @@ in `path.convertAnchor`; `t` in `path.insertAnchor`; `fidelity` and the `within`
`brush.freehand`, which runs it); `size`, `sizeVariation`, `angle`, `angleVariation`, `roundness` and
`roundnessVariation` in `path.eraseRegion`;
`size`, `sizeVariation`, `angle`, `roundness` and `fidelity` in `path.blob`; `width` in `path.eraseSegments`;
`radius` and `fidelity` in `path.smoothRegion`; `tolerance` in `path.joinScrub`; `dx` and `dy` in `path.moveAnchors`;
`radius`, `fidelity` and `smoothness` in `path.smoothRegion`; `tolerance` in `path.joinScrub`; `dx` and `dy` in `path.moveAnchors`;
and `dx`, `dy`, `tol` and `radius` in `path.reshape`. A null is read as a key left out. `path.convertAnchor` refuses
an `x` without a `y`, or a `y` without an `x`, with "x and y must be given together". `path.freehand`,
`path.curvature`, `path.knife`, `path.eraseRegion`, `path.eraseSegments`, `path.smoothRegion`, `path.joinScrub` and
@@ -7599,6 +7679,14 @@ own, and the corner keeps its place and the directions the path arrives and leav
`fidelity`. A call that changes no anchor returns `{ids: [], before: 0, after: 0}` and adds no undo step. The 57.5°
threshold is VectorCraft's own value.
`path.smoothRegion`'s `smoothness` (0 to 100, 50 when left out) sets how strongly the path is smoothed before it is
refitted within `fidelity`: each point is averaged with the stretch of path around it, over a stretch that grows in
proportion to `smoothness`, so a higher value leaves a smoother path. At 0 the path is only refitted within
`fidelity`, and 100 averages over twice the stretch that 50 does. A `smoothness` outside 0 to 100 is refused with
"`smoothness` must be from 0 to 100" and changes nothing. The default and the way the percentage scales the smoothing
are VectorCraft's own. The Smooth tool sends its Smooth Tool Options' Smoothness (`tool.setOption {tool: "smooth",
key: "smoothness"}`, 0 to 100, 50 by default) with each drag.
`path.smoothRegion` keeps a subpath's result only when it is smoother. It measures the subpath and the result along
lines between points on each curved segment, spaced about `step` apart along the segment's control polygon, where
`step` is an eighth of `radius` or 1/512 of the diagonal of the box around the subpath's anchors and handles,
@@ -7632,10 +7720,18 @@ one line (twice the triangle's area at most 10⁻¹⁰ of its longest side squar
canvas (4,000,000 pt from the origin), when `points` is not two or three pairs of numbers, and when `points` is left
out and the selection does not hold two or three anchor points of paths.
`shape.circleThroughPoints {center: [x, y], points: [[x, y]]}` draws the circle centered at `center` whose edge passes
through the one point in `points`: its radius is the distance between them. It returns an error and draws nothing when
the point is on `center`, when the circle would reach past the canvas, and when `center` is not a pair of numbers or
`points` does not hold exactly one pair. With `center`, the selected anchor points are not used. With or without
`center`, a circle whose radius is so small beside its coordinates that its opposite edges round to the same number is
an error, and nothing is drawn.
`anchors` sets where the circle's anchors go. With `"standard"`, the default, the circle has four anchors at 0°, 90°,
180° and 270°. With `"points"`, the circle is a plain path with an anchor exactly at each point, and more anchors
between them, evenly spaced, so that no curve turns more than a quarter of the circle: two points give four anchors,
and three points give four to six. Any other `anchors` value is an error (`` `anchors` must be one of standard, points ``), and nothing
and three points give four to six; with `center`, the one point gives an anchor at that point and three more, a quarter
turn apart. Any other `anchors` value is an error (`` `anchors` must be one of standard, points ``), and nothing
is drawn.
The Circle tool, after the Ellipse tool in its toolbar group, draws with this command. A drag from one point to
@@ -7655,7 +7751,7 @@ dragged out, it draws the circle on the diameter it drags out.
Circle Tool Options (`tool.options {tool: "circle"}`, or a double-click on the tool, dialog `circleOptions`) sets the
tool's options, which `tool.setOption {tool: "circle", values}` also sets and the preferences keep. All are on by
default, and `color` is `"blue"`:
default except `fromCenter`, which is off, and `color` is `"blue"`:
- `center`, `radii` and `diameter` (Show Center, Show Radii, Show Diameter) show or hide the cross at the center, the
lines from the center to the points and the diameter label. The diameter label also needs Measurement Labels on.
@@ -7670,6 +7766,14 @@ default, and `color` is `"blue"`:
point dragged back and let go on it, places nothing, and a click on the line through the first two points draws
nothing and keeps them. A drag from the first point still draws the circle on the diameter it drags out, and a drag
from a second point places it where it is let go. Switching `dragThird` drops the points placed so far.
- `fromCenter` (From Center, also a checkbox in the Control bar) on makes the first point the circle's center and the
outline passes through the second point, which follows the pointer. A drag from the center, or a click on the center
and then a click on a point of the outline, draws the circle with `center`. The second point snaps to Smart Guides,
anchor points included, as the others do, so a circle centered on one corner of a rectangle can pass exactly through
the opposite corner, with the diagonal as its radius. Shift keeps the second point at 45° steps from the center, and
Alt rounds the diameter (twice the distance from the center) to the nearest ruler tick. The tool shows one radius, to
the pointer. A second click on the center places nothing. The setting in force when the first point is placed applies
to that circle, and `dragThird` does not apply to it: switching `dragThird` keeps a placed center.
`tool.setOption` returns an error and changes none of the options when a value is not one the option takes
(`` `radii` must be true or false ``, `` `color` must be one of red, blue, magenta, green, black, gray ``) or the key is
@@ -8793,10 +8897,21 @@ their own Anti-aliasing option),
`scrubNumericFields` (on: a horizontal drag on a numeric field's label steps the field, one undo step per drag; the
control channel's `ui.drag` scrubs), `showHomeScreen` (on by default: the Home screen while no document is open;
off, an empty window, and the Home button or `app.home` still shows the screen), `autoCollapseIconPanels` (off by
default: on, a click away from a panel popped out of the icon column puts it away), `displayPrintSize` (off by
default: View › Actual Size / `view.actualSize` is one document point per screen point; on, one document inch fills
96 screen points, an inch at the system's reference density whatever the display scaling). `uiScaling` scales the
interface and not the art: a zoom shows the art at the same size at every UI Scaling. The tool shortcut
default: on, a click away from a panel popped out of the icon column puts it away), `displayPrintSize` (on by
default, also for saved preferences without the key: View › Actual Size / `view.actualSize` shows one document inch
in an inch of the display that shows the document's window, measured from the physical size macOS, Windows, or on
Linux X11 or the Wayland compositor reports for that display. A document under the tabs counts from the main
window's display, and a document floating in an OS window of its own counts from that window's display. It also
applies in Pixel Preview. A window that moves to a display of another density keeps its zoom percentage. Where no
display is measured (the web build, the headless backend, `vectorcraft-cli`, and the desktop app on other systems),
where the system reports no size, or where it reports a size no display has, an inch is 96 screen points, so Actual
Size there shows 4/3 screen points per document point. When the first measurement of a display
arrives, a view that still has the zoom a fit or the document's saved view gave it keeps that zoom, and any other
view keeps its zoom percentage. Off, 100% is one document point per screen point, and the desktop app does not
measure the displays. While it is on, `ui.inspect` gives `screenPpi`, the measured density of the main window's
display, and
`printPpi`, the points an inch takes at 100% in the current window; both are null while it is off). `uiScaling`
scales the interface and not the art: a zoom shows the art at the same size at every UI Scaling. The tool shortcut
preference `holdToolKeys` also needs the desktop app. It is on by default: a single-key tool shortcut held for 0.25 s
or more, or held while its tool is used, chooses the tool until the key is let go and then returns to the tool active
before, after any drag in progress; a quicker press chooses the tool for good. With it off, every press and every key
@@ -8839,7 +8954,8 @@ profile again leaves the canvas as it is.
Exports, `ui.render`, the document, panels and thumbnails are not converted; with Proof Colors on, the proof is drawn
first and then converted. Translucent art and the antialiased edges of art over an artboard's paper or the
transparency grid are blended with it in sRGB, and the blend is converted; over the pasteboard and in Outline the art
is converted on its own.
is converted on its own. In Overprint Preview the white canvas around the artboards is paper too, and the art there is
blended with it.
`ui.inspect` returns `displayProfile`: `{enabled, display, source, profile, from, applied, reason,
osManaged, readRequested}`, where `source` is `profile`, `srgbProfile` (a profile that shows sRGB unchanged), `system`, `none`,
`pending` or `unsupported`, `applied` says whether the canvas is converted, `reason` says why not, and `readRequested`
@@ -11107,8 +11223,8 @@ every option.
File → Export → Save for Web (Legacy) writes optimised web images: `document.exportForWeb {format: gif|jpg|png8|png24,
…}` renders the artboard (`clipToArtboard`, the default; `artboard` picks one) or the visible art and the slices, at
`width`, `height` or `percent`, and encodes it with the format's settings: for GIF and PNG-8 `reduction`, `colors`,
`dither`, `ditherAmount`, `transparency`, `matte`, `interlaced`, `webSnap`, `lossy` (GIF) and `colorTable {locked,
transparent, webShift, sort, deleted, customPalette, shifted}`; for JPEG `quality`, `progressive`, `optimized`, `embedProfile` and `matte`; for PNG-24
`dither`, `ditherAmount`, `transparency`, `transparencyDither`, `transparencyDitherAmount`, `matte`, `interlaced`,
`webSnap`, `lossy` (GIF) and `colorTable {locked, transparent, webShift, sort, deleted, customPalette, shifted}`; for JPEG `quality`, `progressive`, `optimized`, `embedProfile` and `matte`; for PNG-24
`transparency`, `matte` and `interlaced`. `metadata` (none, copyright, contact, all) writes File Info as PNG text or a
GIF/JPEG comment; `convertToSrgb` marks PNGs as sRGB. `<stem>` is the name of `path` without its extension, or
without `path` the document's title with the characters Windows does not allow in a file name as `-` and a `-` after
@@ -11119,6 +11235,15 @@ after a Windows device name such as `aux` (`slices: selected` writes the selecte
Without `path` the files come back as `{name, dataBase64}`. As in the raster exports, `warnings` says when an image
couldn't be decoded and is missing from the image; the files are written all the same.
With `transparency` on, `transparencyDither` sets how GIF and PNG-8 treat partly transparent pixels: `none` (the
default) makes the pixels under half opacity transparent and keeps the others; `diffusion`, `pattern` and `noise` make
some of them transparent and keep the rest in a diffusion pattern, an 8×8 ordered pattern or noise. With `pattern`,
`noise`, or `diffusion` at amount 100, about as many are kept as their opacity says. `transparencyDitherAmount` (0 to
100, default 100) sets the strength of `diffusion`: a lower amount comes closer to `none`, and 0 gives the same file as
`none`. Fully transparent and fully opaque pixels do not change, the same art and settings
always give the same file, and a kept pixel is blended over `matte` as before. Without `transparency` both keys are
kept and do not change the file. An unknown method or an amount outside 0 to 100 is refused.
`document.exportForWeb.preview` returns what Save writes for the same settings without writing it: `bytes` (the exact
file size), `seconds` to download at `kbps` (default 56.6), the size, and for palette formats the colour table
(`colors: [{color, source, transparent, locked, webShifted, shifted, webSafe}]`). The colour table's lists name colours by
@@ -13760,7 +13885,10 @@ be locked, `plugin.install` and `plugin.remove` fail and change nothing:
`plugin.install {path | dataBase64}` installs one, `plugin.list` / `plugin.info {id}` describe them (parameters,
schema, defaults). An object filter runs on the selected paths and compound paths with `plugin.run {id, params}` (one
undo step; it may change, delete or add objects, and the result is selected; a run that changes no object and no kept
data records no undo step and leaves the document unmodified). A filter whose manifest lists `inputs`
data records no undo step and leaves the document unmodified) → `{plugin, ids, notice?, pluginName?}`.
`notice` is the text the filter's output reports in its `notice` key, escaped and cut at 200 characters
([plug-ins](plugins.md#output)); it is returned only when the output was applied, with `pluginName`, the manifest name
of the plug-in that ran, and the desktop app shows it in the status bar after that name. A filter whose manifest lists `inputs`
(`type`, `image`, `symbolInstance`; `inputs` in its `plugin.list` entry) also lists `doc.read` in its `permissions`, so
installing it needs a person's approval. It is also given the selected objects of those kinds to read, in paint order from the
bottom, with at most 16 MiB of pixels and 16 MiB of type runs over one run (an object that doesn't fit what the objects
@@ -13820,7 +13948,14 @@ with `read: true`, and `openExtensions` holds the extensions File › Open opens
extension, with the installed importer that lists the extension (the one whose id sorts first, when several do).
`importer` names the importer to use, which must list the file's extension, also one a built-in format reads, such
as `svg`. The importer is given at most 128 MiB of the file; its objects become a new document whose artboard is
their bounds, Save then asks for a name, and `warnings` holds the importer's warnings. `plugin.run` of an importer is
their bounds, Save then asks for a name, and `warnings` holds the importer's warnings. An importer whose manifest sets
`place` (`place: true` in `document.formats` and `plugin.list`) also places its files: `file.place`, `file.place.info`
and `file.place.queue` take `importer?: "plugin.<id>"` (one that sets `place` and lists the file's extension) and
`params?`, and without `importer` a file no built-in format reads goes to the first such importer by id that lists its
extension. The importer is given at most 128 MiB of the file (a larger file is refused from its size, with `importer`
before any of it is read or decoded, and without it after its first 64 KiB are read or decoded)
and `_context.mode` `"place"`; its objects, guides left out, are placed as one group named after the file, in the order
it returned them, as one undo step, embedded whatever `link` says (`linked: false`). `plugin.run` of an importer is
an error that names `document.open`. In the app, File › Open With lists the installed importers, and
`file.openWith {importer, path?, params?}` opens `path`, or a file picked among the importer's extensions, with one (on
the web it opens File › Open's picker) and adds it to Open Recent. With `path` the reply is `document.open`'s result;
@@ -13865,7 +14000,14 @@ A plug-in of API level 2 (`api: 2` in its entry) that lists `progress` may repor
log lines: `notifications/cancelled` makes its `vc_cancelled` return 1, and its log lines go to the server's log
under its id. With a desktop app connected, `plugin.dialog` runs such a filter (one without a `commandAllowlist`) in the
background when it runs at once or OK runs it with Preview off, and returns `{background: true, status}`;
`plugin.cancelRuns` stops it. One that lists `settings` or `cache` keeps settings or a cache of its own in the `Plug-ins` folder
`plugin.cancelRuns` stops it. With a desktop app connected, `plugin.applyLastFilter {}` (Object › Plug-ins › Apply
Last Filter) runs the object filter whose `plugin.run` last succeeded in the app's session again on the selection, with
the same parameters and without a dialog, and returns `plugin.run`'s result, or `{background: true, status}` for a
filter that runs in the background; `plugin.lastFilter {}` (Last Filter…) opens its dialog with those parameters
instead. Both return an error with no document open, before a filter ran and once that filter was removed, installed
again (the same module too) or no longer takes the parameters as they are; `plugin.dialog {id}` opens a filter's dialog with the
parameters it last ran with. A plug-in's own commands and live effects don't change what they run. A plug-in that
lists `settings` or `cache` keeps settings or a cache of its own in the `Plug-ins` folder
(VectorCraft's own caps: 256 settings and 1 MiB, 512 MiB of cache): `plugin.list` and `plugin.info` give the cache's
size as `cacheBytes`, `plugin.clearCache {id?}` empties the cache of one plug-in or of all of them and returns
`{cleared: [id], bytesFreed}`, replacing a plug-in keeps both, and `plugin.remove` deletes both (also for an id that
@@ -13889,7 +14031,8 @@ A filter or live effect may declare commands of its own ([plugins.md](plugins.md
(`commands: [{id, command, label, params, paramsSchema, menu?}]`; `menu`, `{path, after?, placed?}`, is the menu its
manifest places it in, with `placed: false` when the command stays in its plug-in's submenu, see
[plugins.md](plugins.md#placing-a-command-in-another-menu)). Run it with `{ids?, params?}` (its parameters may also
be top-level keys): the parameters are checked before the plug-in runs, a run is one undo step named after the
be top-level keys) → `{plugin, command, ids, notice?, pluginName?}`, with `notice` and `pluginName` as `plugin.run`
returns them: the parameters are checked before the plug-in runs, a run is one undo step named after the
command, and a run that traps or runs out of its instruction budget returns an error that starts with the plug-in's
name and the command's label and leaves the document and the undo history as they were. For `plugin.run` and plug-in
commands, `ids` left out or null means the selection, and an `ids` that is not a list of object ids is an error.
@@ -14116,8 +14259,9 @@ The second call returns the error ``tool `smooth`: `fidelity` must be a number f
The Pencil's, the Paintbrush's and the Smooth tool's `fidelity` is in screen pixels: the tools send `path.freehand` and
`path.smoothRegion` the option divided by the zoom, so a stroke keeps as many points and a Smooth drag smooths as much
at any zoom. The Smooth tool's `fidelity` (0.05 to 100 px, 2.5 by default) is also the one an Alt smoothing drag with
the Pencil, Paintbrush or Blob Brush uses. The Blob Brush's `fidelity` is in points.
at any zoom. The Smooth tool's `fidelity` (0.05 to 100 px, 2.5 by default) and `smoothness` (0 to 100, 50 by default)
are also the ones an Alt smoothing drag with the Pencil, Paintbrush or Blob Brush uses. The Blob Brush's `fidelity` is
in points.
`tool.options {tool}` opens what double-clicking the tool's button opens (its params doc lists every tool), in the
desktop app. The Flare tool's are its Flare Tool Options (dialog `flareOptions`): `diameter` and `pathLength` (pt),
@@ -14219,8 +14363,19 @@ pointer show the current fill and the swatches before and after it), `selection`
`straightLine`: a drag touches what the line from its first point to the pointer crosses), `highlightFill` (on by
default; when it is off, merge mode shades no regions), `gapDetection` (off) with `gapLength` (pt, 0 to 72; 3), `clickStrokeSplitsPath` (In Merge Mode,
Clicking Stroke Splits the Path; off), `highlightStroke` (Highlight Stroke When Editable; on) and `highlightColor`
(`#rrggbb` or a layer color's name; `#ff4f4f`, the layer color Red). The dialog's OK gives an error for a
`highlightColor` with an alpha part (`#rrggbbaa` or `#rgba`) and changes nothing. `tool.setOption` gives an error that
(`#rrggbb` or a layer color's name; `#ff4f4f`, the layer color Red). While the Shape Builder is the active tool, with
either `pickColorFrom`, a fill chosen without `ids`, `id` or `item` (`paint.setFill`, `paint.none`, `paint.lastColor`,
`paint.lastGradient`, `paint.editGradient`, `paint.invert`, `paint.complement`, `paint.sampleColor` and
`gradient.presets.apply` on the fill, a swatch or the Color Picker), changes only the current fill: the selected paths
keep their paint, and no undo step is recorded. With `swatches` the next merge fills with that fill; with `artwork`
merges still take the look of the art. The Fill proxy shows that fill, the `paint.freeform.*` commands on the fill give
an error, as with the Live Paint Bucket, and the fill a new selection shows does not replace it for new art. A stroke
chosen then (`paint.setStroke`, `stroke.set` and the other stroke commands) still goes to the selection. `paint.swap`
and `paint.default` without `ids` or `id` change only the paint for new art (`paint.default` resets all of it): the
selected paths keep their fills and strokes, and `paint.swap` gives the current fill the stroke the Stroke proxy shows
(the stroke for new art when the proxy shows mixed strokes). With New Art Has Basic Appearance off, the stroke for new
art then follows the selection again, as after any command. The dialog's OK gives an error for a `highlightColor` with
an alpha part (`#rrggbbaa` or `#rgba`) and changes nothing. `tool.setOption` gives an error that
names the option and sets none of the values, whether the tool is chosen or not, for a switch that is not `true` or
`false`, a `pickColorFrom` other than `artwork` or `swatches`, a `selection` other than `freeform` or `straightLine`, a
`gapLength` that is not a number, a `highlightColor` that is not `#rrggbb`, `#rgb` (with or without `#`), a layer
@@ -14265,7 +14420,9 @@ a stroke when it has `rect`. With both `rect` and `points`, the command also tou
The Fill Area tool (`fillArea`, in the Live Paint Bucket's group) adds a new closed path of the area under a click
and leaves the paths around it as they are. Nothing needs to be selected: the visible, unlocked paths on every layer
bound areas, filled or not, open paths included, and the overlap of two filled shapes is an area of its own. While the
bound areas, filled or not, open paths included, and the overlap of two filled shapes is an area of its own. A path
that a clipping mask clips bounds areas only where every mask around it shows it, so a click where a mask hides the art
finds no area there. While the
pointer hovers an area, the tool outlines it in red and the pointer shows the bucket with paint; elsewhere the pointer
shows the empty bucket, and a click there does nothing. The new path appears on the press and is kept on the release;
Escape or a canceled touch before the release takes it back. In a document of more than 128 path segments the tool looks
@@ -14286,7 +14443,9 @@ Objects on Path group, is a layer or group with a live effect or a clipping mask
inside an envelope. A point in no enclosed area is the error "Fill Area: no enclosed area under the pointer" and records no undo
step; a `gap` outside 0 to 72 is an error. It returns `{id, above}`. The command looks for the area among the paths
near the point first. When the paths together have more than 65,536 segments and the paths near the point do not
enclose it, the point counts as in no enclosed area.
enclose it, the point counts as in no enclosed area. A path that this search leaves out to stay within that limit
stops the command from finding the area only when it crosses the area or comes within the gap plus 0.05 pt of its
outline.
```json
{"name":"run_command","arguments":{"command":"shapeBuilder.copyRegion","params":{"point":[50,70],"gap":3}}}
@@ -15180,8 +15339,9 @@ Tools:
preferences): `diameter` (0.25 to 200 pt, 20), `tolerance` (how near two anchors count as coincident, 0 to 3 pt,
0.002) and `together` (Keep Shared Points Together).
- **Tangent Circle Tool** (`tangentCircle`): draws a circle on two path segments of any unlocked paths, selected or
not. A click picks the first segment; over a second segment the circle that would be drawn shows (red) with its
center, its radii to the two touch points and its radius, or a note that there is none. A click there draws the
not. A click picks the segment nearest the pointer within reach (see `snapTolerance` below) as the first segment;
over a second segment the circle that would be drawn shows (in `color`) with its center cross, its radii to the two
touch points (`center`, `radii`) and its radius, or a note that there is none. A click there draws the
circle that is tangent to the first segment at the point clicked and touches the second (its center on the first
segment's normal there). With Shift the circle instead has the tool's `radius` and may touch the first segment
anywhere along it. A drag from the second segment sets the radius to the drag's length, and the circle may again
@@ -15201,8 +15361,14 @@ Tools:
change to the first segment that makes no undo step (a live preview, or one that was canceled) forgets the first
segment. The circle is looked for again whenever either segment no longer has the shape it was found on, so a
canceled preview does not leave a circle worked out on the previewed paths.
Option (`tool.setOption`, or a double-click on the tool): `radius` (pt, 0.01 to 1000000, 36). `tool.setOption`
gives an error for a value outside that range or one that is not a number, and for any other option.
Options (`tool.setOption`, or a double-click on the tool; kept with the preferences): `radius` (pt, 0.01 to
1000000, 36); `center` and `radii` (true or false, both true) show the center cross and the radii; `color` (`red`,
`blue`, `magenta`, `green`, `black` or `gray`; `red`) is the color of the circle, the cross, the radii and the note;
`snapTolerance` (screen pixels, 0 to 25, 3; VectorCraft's own range and default) is how near the pointer picks a
segment while Smart Guides are on (their Snapping Tolerance counts instead when it is larger) or while they are off
with `snapWithoutGuides` (true or false, true) on. Otherwise a segment is picked within the Selection Tolerance, which is also the least reach with snapping.
`tool.setOption` gives an error for a value outside an option's range, of the wrong type, or a color not listed, and
for any other option, and then sets none of the values.
- **Trim at Crossings Tool** (`trimAtCrossings`): removes stretches of paths between the places where they are crossed,
on any path that can be edited, selected or not. A click runs `addon.pathtools.trim` with `at`, for the path within 4
screen pixels of the pointer. A drag draws a rectangle and runs it with `rect` on release; once the pointer has
@@ -15384,8 +15550,12 @@ Commands:
roundness (0 to 1; 0.4 and 0); gear, tooth height (0.01 to 0.9, 0.2); bubble, the tail's height (0.05 to 0.9, 0.25)
and where its tip is across (−1 to 1, −0.4). → `{id, shape}`.
- `addon.pathtools.shape.set {id, …}` changes a parametric shape's numbers (the same keys; a new `kind` takes its own
defaults for the values not given) and redraws it in place. With no change it makes no step. → `{id, shape}` (its
numbers now, so `{id}` alone reads them).
defaults for the values not given) and redraws it in place. With `reference` (0 to 8 on the 9-point grid of the
bounding box as `object.setBounds` measures it, rotated with rotated objects) and no `center`, that point of the box
keeps its place, as with the Transform panel's W and H; otherwise the shape's center stays. Snapping to the pixel
grid and an attachment to a path apply after that, as they do for the Transform panel's W and H, and can move the
point. A `reference` outside 0 to 8 is an error. With no change it makes no step. → `{id, shape}` (its numbers now, so `{id}` alone reads them;
`null` when snapping to the pixel grid left a plain path).
- `addon.pathtools.shape.convert {ids?}` makes the selected plain closed paths that are rectangles, ellipses or
polygons with equal sides and corners (stretched along their own axes at most) parametric shapes with the same
outline. → `{ids}` (those converted).
@@ -15527,8 +15697,8 @@ than 50000 anchors as it is.
Smart Pen is a built-in add-on: one tool that draws paths and edits their points, handles and segments without
switching tools. Its commands are `addon.pen.*`; in the desktop app it lives in Object › Plug-ins › Smart Pen, in its
panel (`window.panel {panel: "smartPen"}`) and in the Smart Pen Tool (`smartPen`), which the toolbars don't show until
it is added from the All Tools drawer (or chosen with `tool.select`); it has no shortcut. Each gesture and each command is
panel (`window.panel {panel: "smartPen"}`) and in the Smart Pen Tool (`smartPen`), which both shipped toolbars show in
the Pen tool's group, after the Quick Pen (`ui.tool.list` lists it there); it has no shortcut. Each gesture and each command is
one undo step; an edit that changes nothing makes no step. The standard Pen tool is unchanged.
The tool (`smartPen`), option `next`: `"straight"` (default) or `"curved"`, the segment a click adds:
+12 -7
View File
@@ -93,13 +93,18 @@ build root every helper stays inside). `packaging/nightly-tests.py` runs the syn
runs them with the Windows PowerShell suites, and `.github/workflows/nightly-macos.yml` builds and
verifies the unsigned bundle behind the `full-ci` label.
Every Linux Nightly format starts the app the same way, through one launcher
(`packaging/linux/nightly-launch.sh`): the plain tar's `vectorcraft`, the deb/rpm's
`/usr/bin/vectorcraft-nightly`, the AppImage's `AppRun`, the Arch handoff's `bin/vectorcraft` and
the Flatpak's `/app/bin/vectorcraft`. It runs the GUI beside it (`<app>-bin`, the standard Nightly
layout; `/usr/lib/vectorcraft-nightly/vectorcraft-bin` for deb/rpm, `/app/libexec/vectorcraft-bin`
inside the Flatpak) with `--launch-profile nightly-v1 --profile-root <dir> -- "$@"`, and passes a
version query, help or the Launcher's own `--launch-profile` invocation straight through. The
Every packaged Linux Nightly format starts the app the same way, through one launcher
(`packaging/linux/nightly-launch.sh`): the deb/rpm's `/usr/bin/vectorcraft-nightly`, the AppImage's
`AppRun`, the Arch handoff's `bin/vectorcraft` and the Flatpak's `/app/bin/vectorcraft`. It runs the
GUI beside it (`<app>-bin`, the standard Nightly layout;
`/usr/lib/vectorcraft-nightly/vectorcraft-bin` for deb/rpm, `/app/libexec/vectorcraft-bin` inside the
Flatpak) with `--launch-profile nightly-v1 --profile-root <dir> -- "$@"`, and passes a version query,
help or the Launcher's own `--launch-profile` invocation straight through. The plain tar's
`vectorcraft` is craft-common-actions' shared template instead
(`packaging/linux/nightly-tar-launch.sh`, #363 rendered for this app): it adds its own tokens unless the first argument is already a `--launch-profile` pair,
execs `vectorcraft-bin` beside it with
`--profile-root <${XDG_DATA_HOME:-~/.local/share}/ai.storyteller.vectorcraft.nightly> --`, and asks a
bare `--version`/`-V` in the Launcher's form. The
Nightly tar therefore holds `vectorcraft` (launcher), `vectorcraft-bin` (GUI), `vectorcraft.png`
(the Nightly art) and the notices.
+75 -11
View File
@@ -52,14 +52,53 @@ by its extension, and the importer lists the file's extension; when several do,
also one a built-in format reads (an importer that lists `svg` opens an `.svg` only this way). A damaged file of a
built-in format reports that format's error, and the file is not handed to an importer. The importer's objects become a
new document whose artboard is their bounds (at least 1 pt wide and high, and within ±4,000,000 pt); the document keeps
no path, so Save asks for a name. File › Place reads only the built-in formats, and a file only an importer reads opens
as a new document when it is dropped on the canvas. These rules are VectorCraft's own.
no path, so Save asks for a name. A file only an importer reads opens as a new document when it is dropped on the
canvas, unless an importer that places its files reads it (below). These rules are VectorCraft's own.
An importer whose manifest has `"place": true` also places its files. `document.formats` and `plugin.list` mark it with
`place: true`. `file.place`, `file.place.info` and `file.place.queue` read a file with it by the rules above, among the
importers that set `place`: when no built-in format reads the file, the first such importer by id that lists its
extension reads it, and `"importer": "plugin.<id>"` names one, which must set `place` and list the file's extension,
also one a built-in format reads. `"params"?: {…}` holds its parameters, which take their defaults when left out. The
importer is given at most 128 MiB of the file and `_context.mode` `"place"`, and returns its objects as it does for
File › Open. They are placed in the open document as
one group named after the file, in the order the importer returned them, at the place, size or object `at`, `rect`,
`replace` and `template` give, as one undo step; guides are left out, and the group's box is the bounds of what the
other objects draw. The file is embedded whatever `link`
says, as a format that can't be linked is, and the reply's `linked` is `false`. A decline, invalid output, a trap or
Cancel places nothing and leaves the document and its undo steps as they were. An importer without `place` is not used
by File › Place, and naming it is an error. A larger file is refused from its size. With `importer`, a `path` is refused
before any of it is read and `dataBase64` before any of it is decoded. Without `importer`, the first 64 KiB of the file
are read or decoded first to look for a built-in format. The web's File › Place reads the picked file in the browser
before the 128 MiB limit applies. In the app, File › Place lists a placing importer's extensions under "All placeable
files" and a filter of its own, named after the importer. Extensions that a built-in format reads are left out of both,
and an importer that lists only such extensions gets no filter. On the web, a dropped file that no built-in format
reads, by its extension or its content, is placed on the canvas by the first placing importer by id that lists its
extension (the desktop opens a dropped document, as it does an SVG); a dropped file that a built-in format reads goes
to that format. The importer then runs with its parameters' defaults. A file placed with `importer` goes to that
importer without the import options File › Place shows for a text file, a DXF drawing, a PDF or a PSD file. These rules
are VectorCraft's own.
In the app, installed filters appear under **Object › Plug-ins**, next to **Install Plug-in…** and **Reload
Plug-ins**; live effects under **Effect › Plug-ins** and in the Appearance panel's effect menu. A plug-in with
parameters gets a dialog generated from its schema (numbers, whole numbers, checkboxes, dropdowns, text, lists
of numbers and colors, labelled, explained and sorted into sections as its manifest says) with a live preview; without
parameters it runs at once. Edit › Keyboard Shortcuts lists each installed filter under Object › Plug-ins, where
parameters it runs at once. A filter's dialog opens with the parameters that filter last ran with in the session,
else with its defaults. Object › Plug-ins starts with **Apply Last Filter** (`plugin.applyLastFilter`), which runs
the filter that last ran again with the same parameters on the selection, without its dialog, as one undo step, and
**Last Filter…** (`plugin.lastFilter`), which opens that filter's dialog with those parameters, its OK running it as a
new run. Once a filter has run they read **Apply** followed by the filter's name and the filter's name with an
ellipsis. A run counts once it succeeds: from its menu item, its dialog's OK, a shortcut, `plugin.run` or a
`command.batch` step (each such step in the order the batch ran them, so the last one runs again), an Action Batch (`action.batch`) step once a file or data set
ran it, and a background run once its
result is applied. A preview, Cancel, a failed or canceled run, a plug-in's own commands and live effects don't count,
and neither does a batch step whose filter the batch installed when a later step of the batch installs or removes
that same plug-in, or reloads plug-ins. Both items are grayed out with no document open, before any filter ran, and once the filter that
ran last was removed, installed again (the same module too) or no longer takes those parameters as they are;
installing another plug-in keeps them. They don't need a selection: a filter given no objects can still add new ones. The parameters are
kept for the session only, for at most 64 filters. Where the two items sit, when they are grayed out and how long the
parameters are kept are VectorCraft's own rules. Edit › Keyboard Shortcuts lists each installed filter under Object ›
Plug-ins, where
it can be given a shortcut (`plugin:<id>`); the shortcut stays saved while the plug-in is removed and applies again
when it is reinstalled. Parameters too many for the window's height scroll inside the dialog, which keeps its
heading and buttons in view. Exporters are formats of **File › Export › Export As**, where Use Artboards is greyed out
@@ -652,6 +691,11 @@ the module's start function, in a run that isn't a filter's run on a document, o
without the dot (`["plt"]`); the first is the one Export As gives the file. A built-in format keeps an extension both
list (`svg`): `document.export` then writes the exporter's format only when asked for by its format id, and
`document.open` reads a file with the importer only when `importer` names it.
- `place` (importers only): `true` lets File › Place read the importer's files too ([using plug-ins](#using-plug-ins));
`false`, the default, keeps it to File › Open. A value that isn't `true` or `false`, or the key on another kind, is
refused when the plug-in is installed. It asks for no permission beyond `import.read`: the importer is given the file
and its parameters alone, and the host places what it returns. Hosts from before the key ignore it, so there the
importer opens its files and places none.
- `commands` (filters and live effects; not heavy filters): up to 32 commands of the plug-in's own
([Commands](#commands)), each `{"id": "grow", "label": "Grow", "params"?: {…}, "menu"?: {…}}`. An `id` is 1–32
characters from `a-z 0-9 _` that starts with a letter, and appears once. A `label` is 1–64 printable characters;
@@ -870,7 +914,7 @@ counts toward the half of the memory cap that the input and the parameters share
"_context": {"mode": "filter", "bounds": [10, 0, 75, 60], "artboard": [0, 0, 612, 792], "documentData": {"pens": 4}}}
```
`mode` is `"filter"`, `"effect"`, `"export"`, `"import"` or `"command"` (a [command](#commands) run, whose
`mode` is `"filter"`, `"effect"`, `"export"`, `"import"`, `"place"` or `"command"` (a [command](#commands) run, whose
`command` is the command's id); `bounds` the selection's geometric bounds (a live effect: the reference box of the
effect, the object's bounds or those of the previous effect's result); `artboard` (filters) the artboard under the
selection's centre, else the first; `documentData` (filters) what the plug-in last kept with the document (`null` until
@@ -881,7 +925,8 @@ information](#document-information) asked for. A live effect's `item` says where
the extension of the file being written (one the exporter lists) and its name without the extension (the document's name
when the export is not given a path), which some formats keep in their header. An import's `_context` is `{"mode":
"import", "extension": "plt", "name": "Poster"}`: the extension of the file being opened and its name without the
extension.
extension. A place's `_context` is the same with `"mode": "place"`; the importer is given nothing of the document the
file is placed in.
### Output
@@ -937,6 +982,22 @@ under the plug-in's id, and hosts from before `documentData` keep it when they s
document, so it can read what every plug-in keeps there, not only its own. A live effect isn't given it: its geometry
is worked out from the object alone.
To report what a run did, a filter or a plug-in command adds `notice`: one string, such as
`{"objects": [...], "notice": "Selected 12 objects"}`. It needs no permission and no host import. Once the output is
applied, the desktop app and the web build show it in the status bar as `Plug-in “name”: notice`, the plug-in's name
first, and `plugin.run` and the plug-in command return it as `notice` in their result, with the plug-in's name as
`pluginName`. The host trims the white space around it, writes control, bidirectional and line
separator characters as `\u{202E}` escapes and cuts it at 200 characters, escapes included, ending it with `…`. Each run
reports at most one notice, and a later status message replaces it. A plug-in step of an action or a `command.batch`
shows its notice too; when several steps report one, the last of them shows. A `notice` that is not a string, or has no visible
character in the part the status bar shows, refuses the whole output, and nothing changes; white space, control characters and the invisible
characters that are not escaped (soft hyphen, zero-width and filler characters, variation selectors, tags) do not
count as visible. A run that declines, fails, is refused, is canceled or
finishes after the document changed shows none; an output that changes nothing still shows its notice. The status
bar translates the words around the notice, never the notice itself. A live effect's
`notice`, painted or not, is ignored without being checked, since the effect runs whenever its object is drawn. These limits are VectorCraft's own values. Hosts
from before `notice` ignore it.
For a **live effect**, the geometry of every returned object's `path` (their subpaths, in order) replaces the
object's; the rest is ignored (the object keeps its own appearance). An empty list removes the geometry. A live effect
that declares `paintOutput` returns painted pieces instead ([below](#painted-live-effects)).
@@ -955,7 +1016,8 @@ is a piece drawn by itself, in the order returned, with paints of its own:
```
- `path` is required; `fillRule` defaults to the object's. `type` and `bounds` may be handed back as given and are
ignored. Any other key (`opacity`, `effects`, `guide`, `locked`, `name`, a top-level `documentData`…) refuses the
ignored, as is a top-level `notice`. Any other key (`opacity`, `effects`, `guide`, `locked`, `name`, a top-level
`documentData`…) refuses the
result, as does a key that a paint, its color, a gradient stop, a gradient's placement or a freeform point does not
have, such as `opacity` on a solid paint.
- `fills` and `strokes` take the forms a filter returns ([Input](#input)). A piece without `fills` (or `strokes`) is
@@ -999,7 +1061,9 @@ with the export's own). A decline (`{"error": …}`), a missing `dataBase64` or
An **importer** returns `{"objects": [...], "warnings"?: ["…"]}`: new paths and compound paths (no `id`) in the
filters' object form, checked as a filter's new objects are, with warnings capped as an exporter's are and shown with
the open's own. An output with no objects, with keys other than `objects`, `warnings` and `error`, or with an object
that fails the checks opens nothing, and neither does a decline (`{"error": …}`).
that fails the checks opens nothing, and neither does a decline (`{"error": …}`). An importer that places its files
returns the same output when `_context.mode` is `"place"`; an output that fails, or whose objects other than guides draw
nothing of any width or height, places nothing.
## Writing a plug-in in Rust
@@ -1035,10 +1099,10 @@ per change of their input, parameters or paints (results are cached), not per fr
## Not in v1
- Tool plug-ins (pointer events on the canvas, a guide line or rectangle, geometry back), panel plug-ins, and
importers that place files (File › Place reads only the built-in formats) or make type, images, layers or
artboards.
- Tool plug-ins (pointer events on the canvas, a guide line or rectangle, geometry back), panel plug-ins, importers
that make type, images, layers or artboards, and placed importer files that stay linked to their file.
- Live effects that change opacity, blending or effects (at `api` 2 one may [paint](#painted-live-effects) the pieces
it returns), and filters that change type, images or symbol instances (a filter at `api` 2 reads them, see
[`inputs`](#reading-type-images-and-symbols)).
- Apply Last Effect and Last Effect work for plug-in effects; there is no "last filter" for object filters yet.
- Scripts can't run object filters (`plugin.*` commands are refused there), so a script doesn't change what Apply
Last Filter runs.
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+6 -3
View File
@@ -540,6 +540,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
| Tabs panel: a stop drags from where the press landed, a stop just added included | done | #1458 |
| Outline view keeps template layers in Preview, dimmed | done | #1486; a picture placed to be traced stays visible under the outlines |
| Outline view draws on a white canvas, the artboards as their edges | done | Outline shows only the paths ([Outline mode](https://helpx.adobe.com/illustrator/desktop/get-started/learn-the-basics/preview-artwork-as-outlines.html)). VectorCraft's own rule for the canvas: in every interface brightness and Canvas Color the whole canvas is white, pasteboard included; the artboards draw no paper (no Simulate Colored Paper or artboard color, and no paper with Hide Artboards); the artboard names and the ruler origin's crosshair are dark gray; split views and floating windows follow their own view. Tests `outline_draws_on_a_white_canvas_with_artboards_as_edges`, `outline_draws_no_colored_paper`, `a_pane_draws_its_own_views_outline`, `the_ruler_origin_crosshair_shows_on_the_outline_canvas` |
| Overprint Preview draws a white canvas around the artboards, with no artboard shadows | done | VectorCraft's own rule, in Overprint Preview and in Separations Preview, which turns it on: while the artboards show, the canvas outside the artboards is white in every interface brightness and Canvas Color, and the artboards keep their paper and edges and draw no shadows. With a display profile, translucent art around the artboards is blended with the white canvas. Turning the preview off brings back the pasteboard color and the shadows. Tests `overprint_preview_draws_a_white_canvas_without_shadows`, `translucent_art_around_the_artboards_is_blended_with_overprint_previews_white_canvas`, `translucent_pixels_around_the_artboards_are_blended_with_the_white_canvas` |
| Outline view: a click selects by the outlines drawn, so it reaches a path behind an image (picked on its frame, unless Show Images in Outline Mode draws its pixels) or a gradient mesh (picked on its mesh lines) | done | #6437; in Outline mode the path is selected directly ([Object selection methods and preferences](https://helpx.adobe.com/illustrator/desktop/manage-objects/select-objects/object-selection-methods-and-preferences.html), Object Selection by Path Only). Type, symbol instances, blends, envelopes and placed documents are still picked within their bounds. Tests `outline_mode_picks_paths_through_images_and_meshes`, `outline_view_click_through_an_image_selects_the_path_behind` |
| Outline view draws a linked image or placed document as its box with an X inside, unless Show Images in Outline Mode is on | partial | A linked file draws in Outline mode as a box with an X in it, and its contents show only after the Document Setup option Show Images in Outline Mode is turned on ([View artwork](https://helpx.adobe.com/illustrator/using/viewing-artwork.html)). The rest are VectorCraft's own rules. A linked image's frame is crossed from corner to corner, following the corners of a turned or distorted image. An embedded image, and each piece that an envelope cuts an image into, shows its frame alone. A click selects a linked image on its frame, as before, and not on the lines. A placed document shows its box crossed and none of its art, also with raster effects such as a drop shadow and with color adjustments. Not yet: a placed document with an effect that changes geometry, its own or its group's, still shows its file's art reshaped by the effect, without the X. With the option on, images show their pixels in gray and placed documents show their art in outline, uncrossed, and the art inside a placed document follows the option of the document it is placed in. Preview mode and output draw them as before. Tests `outline_mode_crosses_a_linked_images_frame_unless_the_setup_shows_images`, `outline_mode_crosses_a_linked_image_with_a_color_mask`, `outline_mode_does_not_cross_the_pieces_of_an_enveloped_linked_image`, `outline_mode_crosses_a_linked_image_moved_into_a_warp_piece`, `outline_mode_crosses_a_turned_or_distorted_linked_image_through_its_corners`, `outline_mode_draws_a_placed_document_as_its_box_crossed_unless_the_setup_shows_images` |
| Arrange Tools add-on (VectorCraft addition): Object › Plug-ins › Arrange Tools runs Arrange in Grid… (grid by row, one row or one column; columns, H and V spacing, Center on Artboard; Preview), Swap Objects, Swap Objects and Sizes, Replace with Top Object… (Actual Size, Bounds or Bounds (Fit Proportionally); Keep Original; Scale Strokes & Effects; Preview), Set Size of Each… (Width and Height each ticked on or off, Constrain Width and Height Proportions with one side, the reference point, Scale Strokes & Effects; Preview) and Zoom to Selection, each one undo step | done | `addon.arrange.*`, `crates/engine/src/cmd/addons/arrange.rs`, `crates/ui-egui/src/addons/arrange.rs` and their tests; not a feature of the reference app, so it is not scored |
@@ -550,12 +551,12 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
| Document Tools add-on (VectorCraft addition): Export All Open Documents as PDF / as SVG (#4920) | done | asks for a folder, writes a copy of every open document named after it (taken names numbered, nothing replaced), documents and active tab unchanged; failures named in the status bar |
| Document Tools add-on (VectorCraft addition): Object › Plug-ins › Document Tools › Batch Trace Folder asks for a folder of images, then a destination folder, traces each image with a preset (optionally expanded) and saves it there as `.vectorcraft`, `.svg`, `.pdf`, `.ai` or `.eps` under its own name (taken names numbered, nothing replaced), closing each image again; the status bar counts the images traced and those that couldn't be; off on the web | done | #4921; `addon.document.batchTraceFolder`, `crates/engine/src/cmd/addons/document/batch_trace.rs`, `crates/ui-egui/src/addons/document.rs` and their tests; not a feature of the reference app |
| Document Tools add-on (VectorCraft addition): Object › Plug-ins › Document Tools › New Symbols from Layers makes a symbol of each layer's art named after the layer (the highlighted layers when two or more are, else all); Convert Layers to Symbols also replaces each layer's art with an instance in place; empty layers skipped, one undo step | done | #4927; `addon.document.symbolsFromLayers`, `crates/engine/src/cmd/addons/document.rs`, `crates/ui-egui/src/addons/document.rs` and their tests; not a feature of the reference app, so it is not scored |
| Smart Pen add-on (VectorCraft addition): Object › Plug-ins › Smart Pen selects the Smart Pen Tool, which the All Tools drawer lists under its own heading but neither toolbar shows as shipped (no shortcut), and opens the Smart Pen panel (next segment straight or curved; Remove Points Keep Shape, Make Smooth, Make Corner, Retract Handles, Close or Join). The tool draws (click: straight or curved segment, a curve after a straight one tangent; drag: smooth anchor, Alt breaks the handle, Shift 45°, Space moves it; Tab switches a segment; rubber band; close, join, continue) and edits without switching tools (click selects a point, drag moves it, Alt-click removes it keeping the shape, Shift+Alt-click deletes it, double-click toggles smooth/corner; handle drags with Shift and Alt; segment drags reshape, Alt-click adds a point) | done | `addon.pen.*`, `crates/tools/src/addons/smart_pen.rs`, `crates/ui-egui/src/addons/pen.rs` and their tests; not a feature of the reference app, so it is not scored |
| Smart Pen add-on (VectorCraft addition): Object › Plug-ins › Smart Pen selects the Smart Pen Tool (also in the Pen tool's group in both shipped toolbars, after the Quick Pen; the All Tools drawer lists it under Draw; a toolbar edited before keeps its saved layout until Reset Toolbar; no shortcut), and opens the Smart Pen panel (next segment straight or curved; Remove Points Keep Shape, Make Smooth, Make Corner, Retract Handles, Close or Join). The tool draws (click: straight or curved segment, a curve after a straight one tangent; drag: smooth anchor, Alt breaks the handle, Shift 45°, Space moves it; Tab switches a segment; rubber band; close, join, continue) and edits without switching tools (click selects a point, drag moves it, Alt-click removes it keeping the shape, Shift+Alt-click deletes it, double-click toggles smooth/corner; handle drags with Shift and Alt; segment drags reshape, Alt-click adds a point) | done | `addon.pen.*`, `crates/tools/src/addons/smart_pen.rs`, `crates/ui-egui/src/addons/pen.rs` and their tests; not a feature of the reference app, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools selects its nine tools (Anchor Eraser Brush, Extend Path, Measure & Inspect, Parametric Shape, Corner Tool, Slide Anchor Along Path, Shared Edge Merge Tool, Tangent Circle Tool, Trim at Crossings Tool), which the All Tools drawer lists under their own heading but neither toolbar shows as shipped (except Trim at Crossings, which both shipped toolbars and the drawer show in the Scissors tool's group), opens the Anchor Inspector panel (the selected anchor's X/Y and handle lengths and angles as fields; Make Smooth, Make Corner, Equalize Handles, Remove Points Keep Shape, Add Points, the three ways to close) and the Parametric Shape panel (kind, count, W/H, rotation, the kind's own values and corner radius of the selected parametric shape, or of the tool's next one), and runs Add Points at / Split at Crossings and Convert to Parametric Shape; the Parametric Shape Tool draws ten re-editable kinds from the centre (↑/↓ and ←/→ change their numbers while dragging) and edits a selected one with handles; the Corner Tool cuts editable corners on any path (hover shows the anchor, a click uses its radius and kind, a drag sizes the corner, Shift whole values; a corner's marker selects it and loads its values, drags to resize, to 0 or double-clicked removes it; never past what fits; Alt-marquee cuts every anchor inside) with a Corners section in the Anchor Inspector (radius, kind, selected count, Apply to Selected Anchors); Slide Anchor Along Path drags an anchor along its curve with the segments beside it refitted, Shift snapping where the tangent is a multiple of 45°; the Shared Edge Merge Tool shows, over two paths touching at two coincident anchors, the two stretches and the edge merging them, a click merges them (half way; Shift the upper path, Alt the lower), and near anchors meet or an anchor one path lacks is added to match (Shift+Alt asks for this inside a stretch), with a Shared Edges section in the Anchor Inspector (brush diameter, coincidence 0 to 3 pt, Keep Shared Points Together, which takes coincident anchors along with the add-on's own anchor moves); a double-click on the brush, Extend Path or Tangent Circle tool opens its options | done | `addon.pathtools.*`, `crates/tools/src/addons/`, `crates/ui-egui/src/addons/pathtools.rs`, `crates/ui-egui/src/addons/pathtools/` and their tests; not a feature of the reference app, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Divide into Dashes… (Dash and Gap in any unit, Fit to Corners and Ends, Remove Gaps; Preview) cuts the selected paths, or only their direct-selected segments, into open pieces along the curve, keeping their appearance, one undo step | done | #4950; `addon.pathtools.divideDashes`, `crates/pathops/src/addons/pathtools/dashes.rs`, `crates/ui-egui/src/addons/pathtools/dashes.rs` and their tests; not a feature of the reference app, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Set Corners… (also a button in the Anchor Inspector's Corners section: Radius in any unit, Corner kind, Anchors: All, Odd-Numbered or Even-Numbered, counted from each path's first anchor; Angle: from … to …°, only the corners whose sides meet at an angle in that range; Preview) cuts corners on the chosen anchors of every selected path, one undo step | done | #5546, #5545; `addon.pathtools.cornerSet` (`every`, `minAngle`, `maxAngle`), `crates/ui-egui/src/addons/pathtools/set_corners.rs` and their tests; not a feature of the reference app, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Trim at Crossings Tool (also in the Scissors tool's group in both shipped toolbars, after the Knife, and listed there in the All Tools drawer; a toolbar edited before keeps its saved layout until Reset Toolbar; no shortcut until one is set in Edit › Keyboard Shortcuts › Tools; the Knife's cursor, drawn as a knife with the blade's point on the hotspot) removes stretches of paths between the places where they are crossed, on any editable path, selected or not: a click removes the stretch under the pointer, a drag removes every stretch its rectangle touches, and an Alt-drag removes every stretch its freehand line crosses; one undo step each; Escape during a drag removes nothing; hovering shows in red the stretch a click would remove, and a drag that reaches few paths shows what its release would remove | done | `addon.pathtools.trim` (in `crates/engine/src/cmd/addons/pathtools/trim.rs`), `crates/tools/src/addons/trim.rs` and their tests; not a feature of the reference app, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Tangent Circle Tool (also in the All Tools drawer): a click on a path segment, then on another, draws the circle tangent to the first at the point clicked that touches the second or a segment beside it; Shift uses the tool's radius (36 pt to start, set in its options) and a drag from the second segment sets the radius (Shift in round steps, Cmd/Ctrl slowly), the circle then touching the first segment anywhere along it; the circle shows with its center and radii first, or a note when there is none; one undo step | done | tool `tangentCircle` (in `crates/tools/src/addons/tangent_circle.rs`, geometry in `crates/pathops/src/addons/pathtools/tangent_circle/on_segments.rs`) and its tests; a VectorCraft addition, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Tangent Circle Tool (also in the All Tools drawer): a click on a path segment, then on another, draws the circle tangent to the first at the point clicked that touches the second or a segment beside it; Shift uses the tool's radius (36 pt to start, set in its options) and a drag from the second segment sets the radius (Shift in round steps, Cmd/Ctrl slowly), the circle then touching the first segment anywhere along it; the circle shows with its center and radii first, or a note when there is none (its options show or hide the center cross and the radii, set their color, and set how near a segment is picked with Smart Guides on or off); one undo step | done | tool `tangentCircle` (in `crates/tools/src/addons/tangent_circle.rs`, geometry in `crates/pathops/src/addons/pathtools/tangent_circle/on_segments.rs`) and its tests; a VectorCraft addition, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Expand Dashes into Paths turns each selected path's dashed stroke into separate open paths, one per dash, laid out as the stroke draws them (pattern, offset, Align Dashes to Corners and Path Ends), each keeping the stroke with the dashes off; one undo step | done | #4922; `addon.pathtools.expandDashes` (in `crates/engine/src/cmd/addons/pathtools.rs`, using the renderer's dash layout) and its tests; not a feature of the reference app, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Smooth Bridge… (Radius as a percentage of the smaller circle's radius, or with Constant Gap that radius plus a gap; Reach; Keep Originals; Preview) joins two selected circles into one outline with two concave arcs that touch both circles, or three or more each to the others within reach, united where the bridges connect, in place of the circles or above them (a pair within reach gets no bridge when its arcs would not reach both circles or would cross, or when its neck would be thinner than the precision its shape is united at; a circle bridged to no other stays as it is); one undo step | done | `addon.pathtools.bridge`, `crates/pathops/src/addons/pathtools/bridge.rs`, `crates/ui-egui/src/addons/pathtools/bridge.rs` and their tests; a VectorCraft addition, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools › Tangent Circle… draws the circles that touch two selected paths or compound paths at a radius, or three of them, each touching the outlines without crossing them; Radius (two shapes), a Circle menu (All or one by number) and Preview; one undo step | done | `addon.pathtools.tangentCircle` (in `crates/engine/src/cmd/addons/pathtools/tangent_circle.rs`, geometry in `crates/pathops/src/addons/pathtools/tangent_circle.rs`) and its tests; a VectorCraft addition, so it is not scored |
@@ -564,7 +565,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
| Path Precision Tools add-on (VectorCraft addition): Effect › Path Effects lists its live effects (Dashes to Geometry, Add Anchors, Extend Path, Close Path, Smooth Anchors, Retract Handles, Reverse Direction, Simplify Anchors, Split at Anchors), each with the effect dialog's live Preview except Reverse Direction, which has no options, and listed in the Appearance panel like any effect | done | `addon.path.*`, `crates/effects/src/addons/path.rs`, `crates/ui-egui/src/addons/pathtools.rs` and their tests; not a feature of the reference app, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools selects its four tools (Anchor Eraser Brush, Extend Path, Measure & Inspect, Parametric Shape), which the All Tools drawer lists under their own heading but neither toolbar shows as shipped, opens the Anchor Inspector panel (the selected anchor's X/Y and handle lengths and angles as fields; Make Smooth, Make Corner, Equalize Handles, Remove Points Keep Shape, Add Points, the three ways to close) and the Parametric Shape panel (kind, count, W/H, rotation, the kind's own values and corner radius of the selected parametric shape, or of the tool's next one), and runs Add Points at / Split at Crossings and Convert to Parametric Shape; the Parametric Shape Tool draws ten re-editable kinds from the centre (↑/↓ and ←/→ change their numbers while dragging) and edits a selected one with handles; a double-click on the brush or Extend Path tool opens its options | done | `addon.pathtools.*`, `crates/tools/src/addons/`, `crates/ui-egui/src/addons/pathtools.rs`, `crates/ui-egui/src/addons/pathtools/shape.rs` and their tests; not a feature of the reference app, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools selects its six tools (Anchor Eraser Brush, Extend Path, Measure & Inspect, Parametric Shape, Corner Tool, Slide Anchor Along Path), which the All Tools drawer lists under their own heading but neither toolbar shows as shipped, opens the Anchor Inspector panel (the selected anchor's X/Y and handle lengths and angles as fields; Make Smooth, Make Corner, Equalize Handles, Remove Points Keep Shape, Add Points, the three ways to close) and the Parametric Shape panel (kind, count, W/H, rotation, the kind's own values and corner radius of the selected parametric shape, or of the tool's next one), and runs Add Points at / Split at Crossings and Convert to Parametric Shape; the Parametric Shape Tool draws ten re-editable kinds from the centre (↑/↓ and ←/→ change their numbers while dragging) and edits a selected one with handles; the Corner Tool cuts editable corners on any path (hover shows the anchor, a click uses its radius and kind, a drag sizes the corner, Shift whole values; a corner's marker selects it and loads its values, drags to resize, to 0 or double-clicked removes it; never past what fits; Alt-marquee cuts every anchor inside) with a Corners section in the Anchor Inspector (radius, kind, selected count, Apply to Selected Anchors); Slide Anchor Along Path drags an anchor along its curve with the segments beside it refitted, Shift snapping where the tangent is a multiple of 45°; a double-click on the brush or Extend Path tool opens its options | done | `addon.pathtools.*`, `crates/tools/src/addons/`, `crates/ui-egui/src/addons/pathtools.rs`, `crates/ui-egui/src/addons/pathtools/` and their tests; not a feature of the reference app, so it is not scored |
| Smart Pen add-on (VectorCraft addition): Object › Plug-ins › Smart Pen selects the Smart Pen Tool, which the All Tools drawer lists under its own heading but neither toolbar shows as shipped (no shortcut), and opens the Smart Pen panel (next segment straight or curved; Remove Points Keep Shape, Make Smooth, Make Corner, Retract Handles, Close or Join). The tool draws (click: straight or curved segment, a curve after a straight one tangent; drag: smooth anchor, Alt breaks the handle, Shift 45°, Space moves it; Tab switches a segment; rubber band; close, join, continue) and edits without switching tools (click selects a point, drag moves it, Alt-click removes it keeping the shape, Shift+Alt-click deletes it, double-click toggles smooth/corner; handle drags with Shift and Alt; segment drags reshape, Alt-click adds a point); an Alt-drag away from paths selects the points inside a marquee | done | `addon.pen.*`, `crates/tools/src/addons/smart_pen.rs`, `crates/ui-egui/src/addons/pen.rs` and their tests; not a feature of the reference app, so it is not scored |
| Smart Pen add-on (VectorCraft addition): Object › Plug-ins › Smart Pen selects the Smart Pen Tool (also in the Pen tool's group in both shipped toolbars, after the Quick Pen; the All Tools drawer lists it under Draw; a toolbar edited before keeps its saved layout until Reset Toolbar; no shortcut), and opens the Smart Pen panel (next segment straight or curved; Remove Points Keep Shape, Make Smooth, Make Corner, Retract Handles, Close or Join). The tool draws (click: straight or curved segment, a curve after a straight one tangent; drag: smooth anchor, Alt breaks the handle, Shift 45°, Space moves it; Tab switches a segment; rubber band; close, join, continue) and edits without switching tools (click selects a point, drag moves it, Alt-click removes it keeping the shape, Shift+Alt-click deletes it, double-click toggles smooth/corner; handle drags with Shift and Alt; segment drags reshape, Alt-click adds a point); an Alt-drag away from paths selects the points inside a marquee | done | `addon.pen.*`, `crates/tools/src/addons/smart_pen.rs`, `crates/ui-egui/src/addons/pen.rs` and their tests; not a feature of the reference app, so it is not scored |
| Path Precision Tools add-on (VectorCraft addition): Object › Plug-ins › Path Precision Tools selects its three tools (Anchor Eraser Brush, Extend Path, Measure & Inspect), which the All Tools drawer lists under their own heading but neither toolbar shows as shipped, opens the Anchor Inspector panel (the selected anchor's X/Y and handle lengths and angles as fields; Make Smooth, Make Corner, Equalize Handles, Remove Points Keep Shape, Add Points, the three ways to close) and runs Add Points at / Split at Crossings; a double-click on the brush or Extend Path tool opens its options | done | `addon.pathtools.*`, `crates/tools/src/addons/`, `crates/ui-egui/src/addons/pathtools.rs` and their tests; not a feature of the reference app, so it is not scored |
| Artwork Cleanup add-on (VectorCraft addition): Object › Plug-ins › Artwork Cleanup opens its panel, which checks the selection or the document for 16 kinds of issue, lists them with counts, and shows or fixes the picked rows or all of them, each fix one undo step; Simplify Anchors (Keep Shape), Rejoin Path Pieces and Deep Ungroup open their options first | done | `addon.cleanup.*`, `crates/ui-egui/src/addons/cleanup.rs` and its tests; not a feature of the reference app, so it is not scored |
| Artwork Cleanup add-on text tools (VectorCraft addition): the panel's Text row, which the panel can hide, and Object › Plug-ins › Artwork Cleanup set the alignment of point type keeping its place, break type into lines (Shift-click: paragraphs), words or glyphs, split type at the cursor, reset a text transform (Alt-click: and its horizontal scale), combine point type, remove line or paragraph breaks and replace missing fonts, each one undo step | done | `addon.cleanup.*` text commands, `crates/ui-egui/src/addons/cleanup.rs` and its tests; a VectorCraft addition, so it is not scored |
@@ -582,6 +583,8 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
- [x] Recolor Artwork › Assign: double-click a row's new color to pick it in the Color Picker, in the model it was picked in, with native Lab entry, swatch libraries access in the picker, and row context menu options (Pick from Swatches, Limit to Library) (#8031, follow-up to #4090/#5113 for #4028). Evidence: `native_lab_entry_in_color_picker` and `row_context_menu_pick_from_swatches_and_limit_to_library` exercise numeric entry and actual menu clicks.
- [x] Edit › Edit Colors › Recolor with Preset: the 1, 2 and 3 Color Job and Color Library presets first open a Recolor with Preset dialog whose Limit to Library menu (None, Document Swatches or a library) is applied when Recolor Artwork opens; Cancel opens nothing. A 1 Color Job limited to the document's swatches with a spot or global ink picked turns gray art into tints of that ink linked to its swatch. Evidence: `recolor_with_preset_asks_for_a_library_first` and `a_one_color_job_limited_to_document_swatches_links_gray_art_to_the_ink`.
- [x] Recolor Artwork › Color Theme Picker: with the button beside the tabs on, a click on the canvas takes the color palette of an object or image, a drag takes the palette of the art inside its marquee, and Shift adds more picks; the rows that aren't excluded take the palette as their new colors and the art previews them ([Recolor artwork](https://helpx.adobe.com/illustrator/desktop/manage-colors/modify-colors/recolor-artwork.html)). The number and order of the picked colors are VectorCraft's own rule (`recolor.pickTheme`). Tests: `theme_picks_give_the_rows_the_palette_of_the_art_picked` and `the_theme_picker_takes_clicks_and_shift_drags_on_the_canvas` in `crates/ui-egui/src/dialogs/recolor.rs`, `theme_picker_*` in `crates/engine/src/tests/recolor.rs`.
- [x] Recolor Artwork › Prominent Colors: with art, a bar under the Edit tab's wheel shows the new colors, each as wide as its share of the art; dragging the edge between two parts raises one color's weight and lowers the other's, and the art previews the result; the New Color Group menu has Save All Colors and Save Prominent Colors ([Recolor options overview](https://helpx.adobe.com/illustrator/desktop/manage-colors/modify-colors/recolor-options-overview.html)). How a share is measured and how a weight moves colors between rows are VectorCraft's own rules (`recolor.weigh`). Tests: `weights_move_the_rows_colors_and_the_art_previews_them`, `dragging_a_prominent_edge_moves_colors_between_rows` and `save_all_and_prominent_colors_make_color_groups` in `crates/ui-egui/src/dialogs/recolor.rs`, `weigh_*` in `crates/engine/src/tests/recolor.rs`.