Merge remote-tracking branch 'origin/main' into fix/8717

This commit is contained in:
bflatastic
2026-11-19 23:39:10 +07:00
176 changed files with 13356 additions and 872 deletions
+18 -6
View File
@@ -300,18 +300,30 @@ luminosity}`, percent from -100 to 100, 0 by default). The dialog sends a non-ze
colors; colors opened alone are saved as a group with the change. `display` sets how the Edit tab shows the new
colors: `smooth` (the smooth wheel, also when unset; each opening starts there), `segmented` (a wheel of solid patches,
24 hues by 5 saturations, whose markers move as freely) or `bars` (a solid bar per recolored color in row order; a click
selects its row for the sliders and a drag moves the row without changing a color). `wheelTool` turns on a wheel tool
on either wheel: `add` (the Add Color tool) adds a click as a new color, the hue and saturation clicked at the base
color's brightness (the patch's color on the segmented wheel), in a new row with no current colors (`from: []`) and
selects its row for the sliders and a drag moves the row without changing a color; the moved row keeps the color group
swatch it took). `wheelTool` turns on a wheel tool
on either wheel: `add` (the Add Color tool) adds a click as a new color, the hue and saturation clicked at the selected
color's brightness (the base color's when none is selected; the patch's color on the segmented wheel), in a new row with no current colors (`from: []`) and
`added: true` that becomes the selected row; `remove` (the Remove Color tool) removes the color of the marker clicked.
`wheelAxes: "hueBrightness"` makes both wheels show hue and brightness: brightness runs from black at the center to
full at the edge, the wheel is drawn at the base color's saturation, a marker drag sets hue and brightness, the slider
under the wheel sets saturation, and Add Color adds the hue and brightness clicked at the base color's saturation.
full at the edge, the wheel is drawn at the selected color's saturation (the base color's when none is selected), a marker drag sets hue and brightness, the slider
under the wheel sets saturation, and Add Color adds the hue and brightness clicked at the selected color's saturation.
`hueSaturation`, unset (each opening) or any other value shows hue and saturation; switching changes no color. A color bar's
right-click menu has Remove Color too. The base color can't be removed. A removed color's row is dropped, unless it
has current colors and art or a group is open: it then keeps them with `to: null`, that art keeps its colors, and the
group's swatch at that place is removed. A row with no current colors recolors no art; with a group, the new color of
group's swatch at that place is removed, unless the row is excluded: an excluded row with current colors leaves the group's swatch at its place as it is. A row with no current colors recolors no art; with a group, the new color of
one with `added: true` that is not excluded is added to the group after the group's other colors, and a row made with New Row adds none.
The base color is the row with `base: true`, or the first color the Edit tab shows when no row has it; the harmony rules
build from it, and selecting another color for the sliders leaves it the base. A right-click on a wheel marker or a
color bar opens a menu with Set As Base Color (moves `base: true` to that row), Select Shade (a grid of the color's hue
at 7 saturations, 0% to 100%, by 7 brightnesses, 100% down to 14%; a click moves the color there as a drag of its
marker would, so linked colors follow), Color Picker and Remove Color; the base color's menu has neither Set As Base
Color nor Remove Color. A right-click elsewhere on either wheel offers Add New Color, which adds a color as the Add
Color tool does. A color added on the line from the center to a marker moves with that marker while the colors are
unlinked: the marker's row gets `tie: n` and the added row `follows: n`, and dragging the marker, or Select Shade on
it, moves every row that follows its `tie` by the same change. Set Current Color As Base Color, before the color chips,
makes the selected color the base. The rows keep these marks when Randomize (`recolor.randomize`) or Prominent Colors
(`recolor.weigh`) changes them, and the rows the dialog sends `recolor.apply` leave `base`, `tie` and `follows` out.
`groupStorage` shows the Color Groups list (true when the dialog opens); setting `group` to a color group's name makes
it the group being edited, as opening on it does, and refuses a name no group has; `groupAction` (`save`, `new` or
`delete`) runs the list's Save Changes, New Color Group or Delete button on the next frame, or first on confirm (see
+6
View File
@@ -91,6 +91,12 @@ alignment). **Position** is **Away from the Line** (the label on the far side of
from the object) or **Between Line and Object**; **Alignment** is **Left**, **Center** or
**Right** along the line. **Save** keeps them for new dimensions; existing ones don't change.
**Arrow Style** lists **Filled**, **Open**, **Tick** and **None**, then every other built-in
arrowhead of the Stroke panel, each with a drawn preview before its name. Custom arrowheads are not
listed. A version that has the arrowhead in the Stroke panel but not in Arrow Style keeps the saved
arrows of such a dimension until it draws the dimension again, and then draws **Filled** arrows. A
version without the arrowhead does not open the file.
Scale means **drawing : real size**, independent of zoom. At **1:10** a 1 in line on the page is
labelled 10 in; at **10:1**, 0.1 in. It scales lengths, not angles or the size of text and arrows.
+3 -3
View File
@@ -715,8 +715,8 @@ macOS cursor delivery (#2292) is narrowed to a native host adapter using the exi
libraries ([public source](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/apply-and-edit-strokes/create-new-brush-libraries.html),
[import](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/apply-and-edit-strokes/import-brushes-from-brush-libraries-or-other-files.html)):
Window › Brush Libraries and the Brushes panel's Brush Libraries Menu open each library in a library panel of
its own (thirteen original libraries generated in code: Art Ribbons, Ink and Wash, Calligraphic Nibs, Pressure Sensitive, Bristle Brushes (one
bristle brush for each tip shape), Pattern Borders, Scatter Shapes, Stipple (Fine, Dense, Soft and Bold dot textures), Game Trails, Energy Beams, Dry Media (grainy chalk, pencil, crayon and charcoal art brushes), Tech Circuit (Circuit Trace, Bus Lines and Terminal Nodes) and Arrows (Solid, Open, Double, Chevron and Dashed Arrow); User Defined; Other Library… reads the brushes of any document VectorCraft opens); a
its own (fourteen original libraries generated in code: Art Ribbons, Ink and Wash, Calligraphic Nibs, Pressure Sensitive, Bristle Brushes (one
bristle brush for each tip shape), Pattern Borders, Scatter Shapes, Stipple (Fine, Dense, Soft and Bold dot textures), Game Trails, Energy Beams, Dry Media (grainy chalk, pencil, crayon and charcoal art brushes), Tech Circuit (Circuit Trace, Bus Lines and Terminal Nodes), Engraving (Fine, Dense, Tapered and Broken Hatching) and Arrows (Solid, Open, Double, Chevron and Dashed Arrow); User Defined; Other Library… reads the brushes of any document VectorCraft opens); a
click adds a
brush to the document's Brushes with the patterns, symbols and other resources its art uses, as one undo
step (applied to the selected paths in the same step), dragging one onto a path adds and applies it and
@@ -739,7 +739,7 @@ macOS cursor delivery (#2292) is narrowed to a native host adapter using the exi
painted with the texture effects, and Paper Cutouts with six original layered-paper styles, two colored cut edges
and crisp cast shadows; User Defined; Other Library…; `graphicStyle.libraries`,
`graphicStyle.addFromLibrary`).
- **Missing:** more built-in brush libraries beyond the eleven shipped (and further graphic-style libraries beyond the twelve shipped, and further symbol libraries beyond Basic
- **Missing:** more built-in brush libraries beyond the fourteen shipped (and further graphic-style libraries beyond the twelve shipped, and further symbol libraries beyond Basic
Shapes, UI Frames, Map Markers, Inventory Icons, Skill Icons and Weather Icons; original, generated in code, never Adobe's); dynamic symbols' `.ai` read and write.
- **Estimate:** 3–13 h (estimated).
+136 -22
View File
@@ -724,7 +724,7 @@ ends the wait, so the sampler can be shown again. The BSDs and headless sessions
| `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. |
| `invoke_menu` | `{command, params?}` | Invokes a menu item by command id. UI commands such as `view.*` and `window.*` are in `command_list` with `ui: true`; running them needs the desktop app (`--connect`). |
| `invoke_menu` | `{command, params?}` | Invokes a menu item by command id. UI commands such as `view.*` and `window.*` are in `command_list` with `ui: true`; running them needs the desktop app (`--connect`). The app refuses `attributes.openUrl`, `file.export.svg.browser`, `file.saveForWeb.browser` and `file.showPackage` for every control and MCP request, since each opens another app, so the headless error for them does not suggest `--connect`. |
| `open_panel` | `{panel}` | Remote only. `panel` is a panel id (`layers`, `swatches`, `colorGuide`, …, as `window.panel` takes) or its display label (`"Color Guide"`), in any case. |
| `screenshot` | `{path?, scale?, artboard?, window?, max_side?, traceViews?}` | Returns MCP image content (`image/png`, base64) plus a text block. Renders the artboard with the pixels of a PNG `export` with `background: "white"` at the same scale; `traceViews:true` draws Image Trace objects in the view set with `imageTrace.setView`, as in the app's window; `window:true` captures the app window (remote only), as `ui_screenshot` does, and `max_side` (1–4096, window captures only) scales the returned image down as described for `ui_screenshot`. With `path` the backend (the headless session or the app) writes the PNG there too; a window capture written there keeps its full size with `max_side`. An app that does not send the image back writes a window capture without `path` to a file in a new folder inside the system's temporary folder (on Unix only the user can open it); the server reads the file and then removes the folder, also when the capture or the read fails. |
| `open_file` | `{path, importer?, params?}` | Opens any readable file as a new active document: `.vectorcraft`/`.drawcraft`, `.vctemplate`, `.svg`/`.svgz`, `.pdf`/`.ai`, `.ait`, `.eps`/`.epsf`, `.ps`, `.dxf`, `.emf`, `.wmf`, PICT (`.pct`/`.pic`/`.pict`, and a version 2 picture of any extension), HP-GL (`.plt`/`.hpgl`/`.hgl`/`.hpg`, and a file of an extension no other format reads that starts with plotter instructions), PNG (`.png`/`.pns`), JPEG, GIF, WebP, TIFF, BMP (`.bmp`/`.dib`/`.rle`), Targa (`.tga`/`.vda`/`.icb`/`.vst`), PCX, Pixar (`.pxr`), JPEG 2000 (`.jpf`/`.jpx`/`.jp2`/`.j2k`/`.j2c`/`.jpc`), HEIC/HEIF (`.heic`/`.heif`), JPEG XL (`.jxl`), PSD (`.psd`/`.pdd`)/PSB (an image opens as a document of its pixel size; a PSD or PSB file with its layers as layers, or as its merged image through `run_command document.open` with `layers: false`; a JPEG XL file as its first frame), CDR drawings of versions 1 to 27 (`.cdr`, `.cdt`), CMX files with 32-bit coordinates (`.cmx`). Templates (`.vctemplate`, `.ait`, `.cdt`) open as a new untitled document. PDF, `.ai` and SVG files saved with Preserve Editing reopen as the document they carry. The reply is `document.open`'s: its `warnings` say what didn't come in as it was (an EPS whose PostScript can't be read opens as its preview, and the warning names the PostScript error, the operator and the procedure). A file of an extension only an installed importer plug-in lists opens with that importer ([Plug-ins](#plug-ins)); `importer: "plugin.<id>"` opens the file with the importer it names, which must list the file's extension, also one a built-in format reads (in the app, as File › Open With does), and `params` gives that importer's parameters (their defaults when omitted). `run_command document.formats` lists the formats. |
@@ -825,6 +825,35 @@ from −100 to 100 and is 50 when left out with `lengthX` and `lengthY`, or 100
`` `baseAlong` must be one of x, y ``), as is a `slope` outside its range; the arc is not drawn and no undo step is
added.
`shape.threePointArc {start: [x, y], end: [x, y], through?: [x, y], toward?: [x, y], at?: "start"|"end"}` draws an
open circular arc from `start` to `end` and selects it. With `through`, the arc passes through that point. With
`toward`, the arc leaves `start` heading toward that point, so the line from `start` to the point is the arc's tangent
there. With `at: "end"`, the line from `end` to the point is the tangent at `end` instead. `at` is `"start"` when left
out, and `at` with `through` is an error. The arc has no fill and the current stroke (black when the stroke is none),
its ends are exactly the two points (it is not pixel-aligned), and it has a smooth anchor at the `through` point and
further smooth anchors so that no curve of the path turns more than a quarter turn. The result is
`{id, cx, cy, radius, sweep}`: the circle's center and radius, and the arc's turn in degrees, positive clockwise on the
page. One undo removes the arc. The command returns an error and draws nothing when two of the points are the same,
when the third point lies on the line through the ends, when the arc would reach past the canvas, when a point is not
`[x, y]`, when both or neither of `through` and `toward` are given, when `at` is anything but `"start"` or `"end"`, and
when `at` is given with `through`.
The Three-Point Arc tool, in the Line Segment tool's group after the Arc tool, runs this command. A drag from one end to
the other, or a click on each, places the ends; Shift keeps the second end at 45° steps from the first (from General ›
Constrain Angle). A click on a third point, or a press dragged to it, then draws the arc through it. With the tool's
`direction` option on, the third point gives the direction the arc leaves the first end in; with `mods.alt`, the
direction is at the second end, and Shift keeps the direction at 45° steps. Three-Point Arc Tool Options (`tool.options`,
or a double-click on the tool) sets `direction` with its Third Point Sets Direction box, and
`]` (with or without Shift) switches it while the ends are placed; the option is saved with the preferences. Until the
third point is placed, the tool shows the arc as a dashed outline, its center as a small cross, the direction line in
direction mode and, with Measurement Labels on, the radius. Where no arc fits, the tool shows "Arc too large" by the
pointer (nothing while the pointer is on an end), and a click there draws nothing and keeps the ends. Escape, and an
edit, Undo or Redo made outside the tool, remove the ends.
```json
{"name":"run_command","arguments":{"command":"shape.threePointArc","params":{"start":[0,0],"end":[80,0],"through":[40,-40]}}}
```
While a spiral is being dragged out with the Spiral tool, a `drag` event with `mods.alt` or `mods.cmd` keeps the
spiral's inner end at the distance from the center it had on the first modified `drag` event, and the outer end follows
the pointer. With `mods.alt` alone, dragging outward adds whole winds of four segments and dragging inward removes
@@ -1101,7 +1130,9 @@ art's colours (by default as global swatches the art links to).
`swatch.move {names, to?, group?}` reorders swatches or moves them into or out of a colour group (as dragging
them in the Swatches panel does); give colour group names instead to reorder the groups. Dropping a swatch on art
in the app runs `paint.setFill` (or `paint.setStroke`, the active proxy) with `ids: [the object under the pointer]`.
The Swatches panel menu's commands: `swatch.addUsedColors {selection?, global?}`, `swatch.unused` (a query: the
The Swatches panel menu's commands: `swatch.addUsedColors {selection?, global?}` (Add Used Colors sends `{}`; Add
Selected Colors, on while art is selected, sends `{selection: true, global: true}`; a run with no new color records no
undo step; with Global Edit on, the other members keep their colors), `swatch.unused` (a query: the
names Select All Unused selects; a spot swatch counts as used while an image placed from a DCS file has a plate of
its ink), `swatch.merge {names}` (the first is kept; gradient stops linked to the others drop their process
plates), `swatch.ungroup {name}`, `swatch.renameGroup {group, name}` (Color Group Options: renames the group alone
@@ -1227,9 +1258,33 @@ Convert to Grayscale before the switch would give); other colors convert as usua
colors that changed in the art, symbols, graph designs and pattern tiles; it does not count the colors of graphic
styles and brushes.
`edit.colorSettings`, `file.documentColorMode`, `color.convert`, `color.gamutCheck`, `color.loadProfile`,
`color.removeProfile`, `view.proofSetup`, `view.proofColors`, `view.overprintPreview`, `view.separationsPreview` and
`swatch.setSpot` reject a param of the wrong type, such as `"bpc": "no"`, `"on": 1`, `"to": 5` or `"colors": "#fff"`,
and change nothing. Omitting a param or giving null keeps its default.
`color.removeProfile`, `view.proofSetup`, `view.proofSetup.save`, `view.proofColors`, `view.overprintPreview`,
`view.separationsPreview` and `swatch.setSpot` reject a param of the wrong type, such as `"bpc": "no"`, `"on": 1`,
`"to": 5` or `"colors": "#fff"`, and change nothing. Omitting a param or giving null keeps its default.
View › Proof Setup › Customize… (`ui.proofSetupDialog`, dialog `proofSetup`) sets the custom proof through
`view.proofSetup`: `target` `"cmyk:<profile>"` or `"rgb:<profile>"` names any CMYK or RGB profile as the device to
simulate (a profile that is not loaded is an error), `preserveNumbers` sends the colors' numbers in the document's
space to the device unchanged instead of converting them with `intent` (each color as it is painted, and a placed
CMYK image's own inks; an RGB image's pixels go through their numbers in the document's space, and transparency mixes
the proofed colors on the device's paper), and
`simulateBlack` shows the device's black
as the dark gray it prints (`simulatePaper` does so too, on the paper's color; both act on CMYK devices only). The
reply carries `preserveNumbers` and `simulateBlack` with the other proof settings.
The dialog's Save… and Load… buttons save and load a custom proof setup
([Save or load a custom proof setup](https://help.adobe.com/archive/en_US/illustrator/cs4/illustrator_cs4_help.pdf#page=148)).
The buttons and the saved setups in View › Proof Setup are desktop only; the web build has neither. Load…'s picker
starts in the Proof Setups folder once a save has made it.
`view.proofSetup.save {path}` writes the current proof setup, or the settings it is given as `view.proofSetup` takes
them, to a proof setup file without changing the proof view; the device must be `workingCmyk`, `cmyk:<profile>` or
`rgb:<profile>`. `view.proofSetup.load {path}` reads one back, makes it the proof setup and turns Proof Colors on;
`view.proofSetup.read {path}` only returns the file's settings, which is how Load… fills the dialog. All three take
`name` in place of `path` for a setup in the Proof Setups folder next to the preferences, and `view.proofSetup.list` lists the setups
there, at most 100, which View › Proof Setup shows below Customize…. The listing holds the files named
`<name>.vcproof` whose name `name` accepts, the first 100 by name; `truncated` is true when more are there or an entry
could not be read or has a file name that is not valid Unicode, and a folder that cannot be read is an error. A name is
at most 100 characters without path characters. These are VectorCraft's own choices: the file is VectorCraft's own JSON format (extension `.vcproof`) of
at most 64 KiB, checked by size before it is read; a file whose device is a profile that is not loaded is refused
with an error naming the profile, and nothing changes.
`view.separationsPreview {soloToggle: plate}` is the Separations panel's Alt-click on a plate's eye: it shows that
plate alone, and when that plate is already the only one of the active document's plates shown, it shows every
plate, spot plates included ([Print color separations](https://helpx.adobe.com/illustrator/using/printing-color-separations.html)
@@ -1654,7 +1709,9 @@ A conic gradient (`kind: "conic"`, also accepted as `angle` or `conical`) sweeps
draws the extent ellipse, aspect dot and center ring of a radial gradient, without a focal point; a `focal` given
for a conic gradient is an error. A negative `aspect` mirrors the sweep (counterclockwise), as reflecting the object
does; for the other kinds a negative `aspect` is an error. The Gradient panel's Aspect Ratio field and the aspect dot
keep a mirrored sweep mirrored. Dither and Method apply as they do to a linear gradient. PDF export writes it as a
keep a mirrored sweep mirrored. The default gradient for new art, and the Live Paint Bucket's, fits each object it
paints and keeps no aspect, so `paint.editGradient` with an `aspect` is an error when it edits no object (nothing
selected, the bucket's gradient without `ids`, or a fill edit of a Live Paint group without faces) and leaves the default as it was. Dither and Method apply as they do to a linear gradient. PDF export writes it as a
function-based shading (type 1) whose calculator function turns the angle into the ramp, and PDF import reads a
function-based shading whose color turns around the origin of its space back as a conic gradient, with its stops'
opacity, also when the origin lies outside the painted area; in a PDF/A file, or with more than 97 stops on its
@@ -2664,7 +2721,8 @@ change anything outside the documents: `script.*` except `script.check`, `plugin
`shortcutSet.*`, `help.*`, `print.*`, `library.*`, `importMatches.*`, `edit.undoGroup.*`, `file.recovery.*`,
`stroke.widthProfile.*`, saving, importing or deleting a preset, `text.addFontFiles`, `text.findFontFiles`,
`text.rescanFonts`, `links.findFiles`, `file.place.queue`, `color.loadProfile`, `color.removeProfile`, `file.print`,
`view.proofSetup`, `view.proofColors`, `view.overprintPreview` and `view.separationsPreview`. It also cannot run
`view.proofSetup`, `view.proofSetup.save`, `view.proofSetup.load`, `view.proofColors`, `view.overprintPreview` and
`view.separationsPreview`. It also cannot run
`edit.clearHistory`: a run keeps each document's undo steps from before it and adds one. Calling one of these throws
an error. With Data Recovery off for complex documents, a run in the web build does not start while a complex document
has unsaved changes.
@@ -5346,7 +5404,7 @@ without `groupColors`, its new color then joins `group` after the new colors of
`recolor.randomize` and `recolor.weigh` keep such a row, and `recolor.randomize` keeps its `added`. A row without `from`, or with
a current color that is not a color, is refused. With art selected, the Recolor Artwork dialog's New Row button (beside
Merge) adds such a row above the first selected row, or at the top, with that row's new color, and selects it; Shift-click a row below it and Merge to move that row's colors into it (Merge keeps the topmost selected row's new color). An
empty row does not count toward Colors. While it is empty, the dialog's Edit tab does not show it (its sliders edit
empty row does not count toward Colors. While it is empty and not `added`, the dialog's Edit tab does not show it (its sliders edit
the base color when the empty row is selected), the harmony rules,
linked moves and the Color Theme Picker leave its new color as it is, and Save All Colors and a new color group saved
from colors alone leave its new color out. With `limitTo`, a row's `tint` (a percentage, default 100) gives the art
@@ -5397,7 +5455,7 @@ objects are read. As VectorCraft's own rule, each object read weighs the same, s
among its pixels; the vector art a symbol instance places counts as one object, and each image it places counts on
its own), and similar colors merge (k-means in Lab) into at most `colors` (1 to 64, default 5), each shown by its
most used color in its own model. Picks that touch no art return no colors. In the Recolor Artwork dialog the picks are the `themePicks` field: the rows that aren't
excluded and hold current colors take the palette as their new colors in row order, the colors repeating when the rows outnumber them.
excluded and hold current colors or were added on the Edit tab take the palette as their new colors in row order, the colors repeating when the rows outnumber them.
```json
{"name":"run_command","arguments":{"command":"recolor.pickTheme","params":{"picks":[{"at":[120,80]},{"rect":[200,40,320,140]}],"colors":4}}}
@@ -5423,7 +5481,7 @@ bar sits under the Edit tab's wheel: each row with a share is a part as wide as
the largest first. Dragging the edge between two parts moves width between them, and when the drag ends the widths
become the `weights` field, which moves the rows' current colors and previews the result. The New Color Group menu
beside the link button runs `swatch.newGroup` right away, as its own undo step: Save All Colors saves the new colors
of the rows that are not excluded and hold current colors, in row order, and Save Prominent Colors saves the bar's colors in the bar's order.
of the rows that are not excluded, hold current colors or were added on the Edit tab, and still have one, in row order, and Save Prominent Colors saves the bar's colors in the bar's order.
The Recolor Artwork dialog lists the document's color groups on its right, or under the tabs in a window too narrow
for both ([Advanced recolor options overview](https://helpx.adobe.com/illustrator/desktop/manage-colors/learn-color-basics/edit-colors-dialog-overview.html)).
@@ -5695,9 +5753,9 @@ error.
## Brush libraries
Brush libraries are read-only sets of brushes: thirteen generated in code (Art Ribbons, Ink and Wash, Calligraphic Nibs, Pressure Sensitive with Flex Ribbon, Pulse Stroke, Round Flow and Chisel Flow, Bristle
Brush libraries are read-only sets of brushes: fourteen generated in code (Art Ribbons, Ink and Wash, Calligraphic Nibs, Pressure Sensitive with Flex Ribbon, Pulse Stroke, Round Flow and Chisel Flow, Bristle
Brushes with one bristle brush for each tip shape, Pattern Borders, Scatter Shapes, Stipple with Fine, Dense, Soft and Bold dot textures, Game Trails, Energy Beams, and Dry Media with the Chalk Grain, Graphite Pencil, Wax Crayon and
Charcoal Dust art brushes, id `dry-media`, Tech Circuit with Circuit Trace (art), Bus Lines and Terminal Nodes (pattern), id `tech-circuit`, and Arrows with Solid, Open, Double, Chevron and Dashed Arrow art brushes, id `arrows`), the `.vectorcraft` files in the user library folder of the desktop app (User
Charcoal Dust art brushes, id `dry-media`, Tech Circuit with Circuit Trace (art), Bus Lines and Terminal Nodes (pattern), id `tech-circuit`, Engraving with Fine Hatching, Dense Hatching, Tapered Hatching and Broken Hatching art brushes, id `engraving`, and Arrows with Solid, Open, Double, Chevron and Dashed Arrow art brushes, id `arrows`), the `.vectorcraft` files in the user library folder of the desktop app (User
Defined) and the brushes of any document loaded with `brush.loadLibrary` (a document without brushes of its own has
the default ones). `brush.libraries` lists them (`id`, `name`, `category`: `builtIn`, `user` or `loaded`, `count`) and
`brush.library {library}` returns one's brushes (`name`, `type`; `library` is an id or a name).
@@ -5965,6 +6023,20 @@ details are VectorCraft's own rules; the help page says only that the option mov
(<https://helpx.adobe.com/illustrator/desktop/paint-and-fill/create-and-edit-patterns/edit-patterns.html>).
`pattern.list` reports it as `moveTileWithArt`. A `pattern.options` call that changes nothing records no undo step.
`object.pattern.replaceArt {name, ids?}` (Replace Pattern Art) makes copies of the selected art, or of `ids`, the tile
art of pattern `name`, as one undo step, and returns `{name}`. The pattern keeps its name, its swatch and the swatch's
place, its tile and its options; with `sizeTileToArt` on, the tile is sized to the new art plus `hSpacing` and
`vSpacing`. Fills and strokes name the pattern, so every object painted with it draws the new tile. The art stays on the
canvas, selected as it was. Art that matches the tile art already records no undo step. The command is off while a
pattern is edited ("finish editing the pattern first"), and returns an error, changing nothing, for a missing `name`, a
pattern that does not exist, no art, and art painted with the pattern itself, directly or through the symbols, other
patterns, graph designs and brushes it uses, or the series and label paints a graph stores. In the Swatches panel, art dragged off the canvas and released with Alt (Option on macOS) held over a
pattern swatch runs it with that swatch's pattern; the swatch is outlined while the art is held there. Released anywhere
else in the list, or without Alt, the art becomes a new pattern swatch as before. The help page describes replacing a
pattern by dragging its edited tile onto the old swatch with Alt or Option held, with the pattern updated in the file
(<https://web.archive.org/web/20220911143322/https://helpx.adobe.com/pdf/cs6/illustrator_reference.pdf#page=226>,
archived copy). Keeping the tile, the options and the source art are VectorCraft's own rules.
```json
{"name":"run_command","arguments":{"command":"pattern.options","params":{"showSwatchBounds":true}}}
{"name":"run_command","arguments":{"command":"prefs.set","params":{"key":"patternTileEdgeColor","value":"#ff4f4f"}}}
@@ -6359,6 +6431,13 @@ arrowheads in a separate arrowheads file.
{"name":"run_command","arguments":{"command":"stroke.set","params":{"ids":[9],"endArrow":{"custom":"Example Arrowhead"}}}}
```
A dimension's options (`dimension.create`, `dimension.update` and the Dimension tool's `style`) take `arrowStyle`
(`filled`, `open`, `tick` or `none`: `Triangle`, `TriangleOpen`, `Slash` or no head) and `arrowHead`, `null` or one of
the built-in head names `stroke.set` takes, drawn at both ends in place of the arrow style's head. The Arrow Style menu
sets `arrowStyle` to `filled` when it sets `arrowHead`. A custom arrowhead and an unknown name are refused. Versions
that have the stroke arrowhead but do not read `arrowHead` keep the saved arrows until they draw the dimension again,
and then draw `arrowStyle`. Versions without the stroke arrowhead do not open the file.
## Stroke bounds and clicks
Visual bounds (Fit to Selected Art, Rasterize, exporting all art) and clicks on the canvas take
@@ -7372,6 +7451,25 @@ midpoint; any finite value is brought into 0 to 360). With both, the length appl
and a line that would reach past the coordinate limit (±4,000,000 pt), are errors that change no line. Each call is
one undo step.
A live rectangle's Rectangle Angle and a live ellipse's Ellipse Angle are `rectangleAngle` and `ellipseAngle`
(degrees counterclockwise, 0 for a shape drawn level; any number is read modulo 360). The help page
(https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-live-shapes/live-shape-properties.html) lists
both as the shape's rotation on the canvas from 0° to 360°. The rest are VectorCraft's own rules: each selected shape
of that kind turns about its own center, keeping its size, corners and pie (an ellipse's pie turns with it), and other
objects stay as they are. A pixel-aligned shape then goes back on the pixel grid, as after other edits, which can move
its center or change its size. The Transform and Properties panels show the angle in each shape's Properties section,
blank when the selected shapes of that kind differ. It is the shape's own angle: after Reset Bounding Box
(`object.resetBoundingBox`) the Rotate field reads 0° while the shape angle keeps the turn. An angle that is not a
number is an error and changes nothing (`null` counts as an omitted key), a shape that the turn would take past the
coordinate limit (±4,000,000 pt) is an error that changes nothing, whether or not it is selected, and the angle the
shape already has records no undo step; the same holds for `polygonAngle`, and the Polygon Properties angle is blank,
too, when the selected polygons differ.
```json
{"name":"run_command","arguments":{"command":"object.setLiveShape","params":{"rectangleAngle":30}}}
{"name":"run_command","arguments":{"command":"object.setLiveShape","params":{"ellipseAngle":45}}}
```
`object.setLiveShape` returns a parameter error, and leaves the document and its undo history as they were, for a key
it does not take, at the top level (`` unknown parameter `path` ``) or in one of `items`
(`` unknown parameter `items[0].corner`; did you mean `items[0].corners`? ``), for a `sides` that is not a whole number
@@ -8096,7 +8194,7 @@ snap the pointer as drawing tools do, so dragging a corner onto another object's
Every point a drawing tool places snaps the same way, through one snapper (#506): the Pen's and Curvature tool's
anchors, the shape tools' start and dragged corner or radius (`rectangle`,
`roundedRectangle`, `ellipse`, `polygon`, `star`, `lineSegment`, `arc`, `spiral`, `rectangularGrid`, `polarGrid`), the
Type tool's click and frame, and a new artboard's corners. The Pencil ignores Smart Guides and Snap to Point and
Three-Point Arc tool's ends and third point, the Type tool's click and frame, and a new artboard's corners. The Pencil ignores Smart Guides and Snap to Point and
shows no Smart Guides: its strokes and straight lines follow the hand (Snap to Grid and Snap to Pixel still move
their ends). The point lands on another object's anchor, centre or
path ("anchor", "center", "path"), else lines up with the anchors, edges and centres of the art and the artboards (a
@@ -9941,7 +10039,11 @@ images and point type in the font the file names. Type keeps the file's characte
kerning off. On a single left to right line, an advance that tracking can't give (wider than its range, or a tab)
starts a new point type object at the position the advance gives, and an underline or strikethrough is filled across the space between and on to the end
of the last character's advance. Type on more than one line is placed a line at a time: each line is aligned by its own advances and
split as a single line is. An EMF that
split as a single line is. A character cell runs from the font's OS/2
`usWinAscent` above the baseline to its `usWinDescent` below it: top and bottom aligned text has the top or the
bottom of its cells at the reference point. Text drawn in the opaque background mode, which a file is in until it
sets the mode to transparent, gets one filled rectangle of the background color behind the character cells of each
line, as far as its advances reach (NULs' included), placed before the type. An EMF that
draws with EMF+ records is read from them. Hatched and pattern brushes fill with their average color. Records VectorCraft doesn't read are skipped with one warning.
A file, or a metafile image inside it, cut short by one of the reader's limits adds one warning without a count.
Each of these adds one warning, with a count: images and pattern brushes whose bitmap can't be read, which are left
@@ -10453,8 +10555,8 @@ clipping mask into one layer and discards hidden layers that require merging; th
imports one image, and Import Hidden Layers brings hidden layers in. `document.open` does the same, with
`layers: false` for the single image and `hiddenLayers: true` for the hidden layers. The page also merges
adjustment layers, layers with a knockout option, and layers that hold transparent pixels in some blend modes with
the layers below them. `document.open` applies neither adjustments nor knockouts, and it merges a layer by its blend
mode alone, as the rules below say.
the layers below them. `document.open` does not apply adjustments, applies only shallow knockouts inside groups, and
otherwise merges a layer by its blend mode alone, as the rules below say.
The rest are VectorCraft's own rules:
@@ -10474,6 +10576,12 @@ The rest are VectorCraft's own rules:
mask.
- A Dissolve layer's partly transparent pixels are merged as opaque or transparent, opaque at the share of its
pixels their transparency gives, in a fixed pattern that differs from layer to layer.
- A layer or group inside a group with a Knockout value of 1 (shallow) is merged with the visible layers below it
in that group: where it has pixels, shaped by its layer mask, they are cleared to transparency, it is drawn there
at its fill opacity, and its opacity fades the result back toward them. In a Pass Through group this applies only
when it and the visible layers below it are in Normal mode. A knockout at 0 opacity, one that draws nothing, one
with nothing visible below it, and one at 0 fill that covers none of their painted pixels are not merged for the
knockout; one in a mode VectorCraft lacks is still merged by its mode.
- A merged layer is named after the layers it holds, joined with ` + `.
- A layer name the file stores only as a one-byte Pascal string, without its Unicode name, is read as Mac Roman.
- A layer's opacity is multiplied by its fill opacity, in every blend mode. A layer that others are clipped to keeps
@@ -10485,16 +10593,21 @@ The rest are VectorCraft's own rules:
(RGB, CMYK, Grayscale, Lab or HSB) over the canvas. One whose shape is a vector mask isn't drawn, and the layers
clipped to it are left out.
- Adjustment layers, fill layers that store no pixels and whose fill isn't read, layer effects that are switched on,
knockouts and vector masks are not applied; the `warnings` count them.
the other knockouts (top-level layers, clipped layers, layers that others are clipped to, Pass Through groups with
layers in other modes, other Knockout values, and merges that need more memory than allowed) and vector masks are
not applied; the `warnings` count them.
- Layer channels may be raw, PackBits or zipped (with or without prediction) at 8, 16 and 32 bits.
- A file without layers opens as its merged image. A file whose layers can't be read opens as its merged image
with a warning, and when the merged image can't be read either, the file is refused with an error.
Each layer's pixels must fit the memory allowed for one image, and the pixels of all the layers and masks, with the
canvases the merges make, must together fit eight times that; a file past either limit opens as its merged image,
with a warning. The canvases one step of a merge holds at once must also fit the memory allowed for one image; when
they don't, the layer that needed the merge comes in alone, with a warning: in the Normal mode, or as a layer of its
own instead of clipped.
with a warning. A merge being tried may use the whole of that limit beyond what was read before it. The pixels and
canvases of merges that aren't made, including knockouts that turn out to cut nothing, then count against a second
limit of the same size instead. The
canvases one step of a merge holds at once must also fit the memory allowed for one image; when they don't, the
layer that needed the merge comes in alone, with a warning: in the Normal mode, as a layer of its own instead of
clipped, or without its knockout.
```json
{"name":"run_command","arguments":{"command":"document.open","params":{"path":"/tmp/poster.psd","hiddenLayers":true}}}
@@ -12180,8 +12293,9 @@ path selected it is an error.
Window › Retype shows the Retype panel. Find Matching Fonts runs `retype.find {}`, which shows the panel, ranks up to
96 fonts and lists the first ten. Find more font matches, at the end of the list when `more` is true, runs
`retype.find {more: true}`, which adds the next five fonts that search found, whatever is selected now. Before any
search, `retype.find {more: true}` runs a first search. A search that fails is an error and leaves the list as it
was. Each row shows the font's family and style over a sample of the font. While live type is selected or edited, a
search, `retype.find {more: true}` runs a first search. With `more` false, omitted or null, `retype.find` runs a new
search; any other value than true, false or null is an error. A search that fails is an error and leaves the list as
it was. Each row shows the font's family and style over a sample of the font. While live type is selected or edited, a
click on a row sets that font on it, as the font menus do; live type inside a selected group counts too. The list
stays when the selection changes.
+4 -3
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+8 -2
View File
File diff suppressed because one or more lines are too long