mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 18:32:23 +00:00
Merge main into #8336
# Conflicts: # crates/ui-egui/src/i18n/bg.tsv # crates/ui-egui/src/i18n/bs.tsv # crates/ui-egui/src/i18n/ca.tsv # crates/ui-egui/src/i18n/cs.tsv # crates/ui-egui/src/i18n/da.tsv # crates/ui-egui/src/i18n/de.tsv # crates/ui-egui/src/i18n/el.tsv # crates/ui-egui/src/i18n/es.tsv # crates/ui-egui/src/i18n/fi.tsv # crates/ui-egui/src/i18n/fr.tsv # crates/ui-egui/src/i18n/gu.tsv # crates/ui-egui/src/i18n/hi.tsv # crates/ui-egui/src/i18n/hu.tsv # crates/ui-egui/src/i18n/id.tsv # crates/ui-egui/src/i18n/it.tsv # crates/ui-egui/src/i18n/ja.tsv # crates/ui-egui/src/i18n/ka.tsv # crates/ui-egui/src/i18n/ko.tsv # crates/ui-egui/src/i18n/nl.tsv # crates/ui-egui/src/i18n/pl.tsv # crates/ui-egui/src/i18n/pt-br.tsv # crates/ui-egui/src/i18n/ru.tsv # crates/ui-egui/src/i18n/sv.tsv # crates/ui-egui/src/i18n/tr.tsv # crates/ui-egui/src/i18n/uk.tsv # crates/ui-egui/src/i18n/vi.tsv # crates/ui-egui/src/i18n/zh-hans.tsv # crates/ui-egui/src/i18n/zh-hant.tsv
This commit is contained in:
@@ -92,7 +92,7 @@ the two can still win that race.
|
||||
| `engine.execute` | `{command, params}` | run any engine or UI command (see `engine.commands`). A key of `params` that the command's params description doesn't name is an error naming it and the nearest key the command takes, before anything runs (`unknown parameter `widht`; did you mean `width`?`); see [Parameter keys](mcp.md#parameter-keys) |
|
||||
| `engine.commands` | | every command with label, shortcut, params doc, enablement |
|
||||
| `document.inspect` | `{depth?, childLimit?, ids?, kind?, limit?, offset?}` | layer tree, selection, the key object (`key`, null without one; a key ruler guide as `keyGuide`), history, paint defaults; `depth` / `childLimit` slice the layer tree as `document.node {summary: true}` does; `ids`, `kind`, `limit` and `offset` list just some nodes as `nodes` (with `total`) instead of the whole tree, see [mcp.md](mcp.md). Each node reports `opacity` below 1 and `blend` when it isn't Normal; objects and compound paths report `fill`, `stroke` and `strokeWidth`, a compound path's members `compoundMember: true` instead |
|
||||
| `ui.inspect` | | tool, UI state, `screenMode` (0 normal, 1 full screen with menu bar, 2 full screen, 3 Presentation Mode), `taskBar` (`pinned`, and `rect` `[x, y, w, h]` while the Contextual Task Bar shows), `freeTransformWidget` (`[x, y, w, h]` while the Free Transform widget shows), view, canvas rect, window size, perf, background saves and exports still running, `nativeMenuBar` (true when the menus are in the macOS menu bar rather than the window; `ui.menu.list` lists the in-window menus either way), `fileDialog` (`"open"`, `"place"`, `"save"` or `"folder"` while a native file dialog is open, `null` otherwise; see below), `opening` (the paths of the documents still being read). Under `--automation-read-root` the reply leaves out the paths outside the read roots (see `docs/mcp.md`) |
|
||||
| `ui.inspect` | | tool, UI state, `screenMode` (0 normal, 1 full screen with menu bar, 2 full screen, 3 Presentation Mode), `taskBar` (`pinned`, and `rect` `[x, y, w, h]` while the Contextual Task Bar shows), `quickPenToolbar` (the same for the Quick Pen toolbar), `freeTransformWidget` (`[x, y, w, h]` while the Free Transform widget shows), view, canvas rect, window size, perf, background saves and exports still running, `nativeMenuBar` (true when the menus are in the macOS menu bar rather than the window; `ui.menu.list` lists the in-window menus either way), `fileDialog` (`"open"`, `"place"`, `"save"` or `"folder"` while a native file dialog is open, `null` otherwise; see below), `opening` (the paths of the documents still being read). Under `--automation-read-root` the reply leaves out the paths outside the read roots (see `docs/mcp.md`) |
|
||||
| `ui.menu.list` / `ui.menu.invoke` | `{command, params}` | the full menu tree / invoke an item |
|
||||
| `ui.contextMenu.list` | | the canvas context menu for the current selection, flattened like `ui.menu.list` (`path` holds its submenus). `ui.click {x, y, button: "right"}` on the canvas opens it, after selecting the object there unless it is already selected. With the Artboard tool it lists the artboard entries (see `docs/mcp.md`), after selecting the artboard there unless it is already selected. While a menu opened over locked objects is open, it has an `Unlock` submenu with one item for each locked object under the pointer, topmost first and at most 20, labeled with the object's name, which runs `layer.setProps {ids: [id], locked: false}`. A locked group gets one item, and the locked objects inside it get none. Hidden objects, objects on hidden, locked or template layers, and in isolation mode objects outside the isolated group get no item |
|
||||
| `ui.tool.select` / `ui.tool.list` | `{tool}` | |
|
||||
@@ -336,6 +336,16 @@ The dialog previews
|
||||
step; with no art selected only the group changes). In the Swatches panel, double-clicking a colour group's folder,
|
||||
or the options button while a group is selected, opens it.
|
||||
|
||||
`color.used {selection?, limit?}` lists the colors of the selection, or with nothing selected the colors of the art
|
||||
`select.all` takes, most used first, as `recolor.colors {}` counts them. Each entry adds `color`, the color in its own
|
||||
model as the paint commands take it, and `tint`, the percent of its global `swatch` it is, to three decimals. The
|
||||
swatch and tint come from the color's first linked use in paint order; a plain use goes before a gradient stop that
|
||||
mixes a spot ink with process inks, and a color only such stops link has no `swatch` here. `selection: false` reads
|
||||
the art `select.all` takes while something is selected, and the answer's `selection` says whether the colors are
|
||||
the selection's. `limit` keeps only the most used entries, and the answer's `uses` counts the uses of every color.
|
||||
The selection does not change. The Color Wheel panel's Show Document Colors row (`ui.colorWheel {documentColors:
|
||||
true}`) shows these colors.
|
||||
|
||||
Library panel: `engine.execute {command: "window.swatchLibrary", params: {library}}` opens the read-only library
|
||||
panel on a swatch library (`ui.inspect` shows it as `library_panel: {kind, id}`; `library: null` closes it).
|
||||
Clicking a swatch there runs `swatch.library.add {library, names: [name], apply}` (the active proxy, or the other
|
||||
@@ -497,6 +507,12 @@ Bar Position (`window.taskBar.reset`), which unpins it and puts it back under th
|
||||
Panel. As in Illustrator, neither the position nor the pin is saved: each launch starts with the bar under the
|
||||
selection.
|
||||
|
||||
The Quick Pen toolbar shows while the Quick Pen tool is active and Window › Quick Pen Toolbar
|
||||
(`window.quickPenToolbar`) is on. Its handle drags it as the Contextual Task Bar's does. Its buttons set the tool's
|
||||
action and flip the last sharp-corner arc (`tool.quickPen.flipArc`), and its More Options (…) menu has Hide Toolbar
|
||||
(`window.quickPenToolbar`), Pin Toolbar Position (`window.quickPenToolbar.pin {pinned?}`) and Reset Toolbar Position
|
||||
(`window.quickPenToolbar.reset`). `docs/mcp.md` (Drawing with the Quick Pen tool) says where it sits.
|
||||
|
||||
The Compound Shapes add-on's setting, `window.pathfinder.compoundShapes` (omitted params toggle; checked while on; kept with the
|
||||
preferences; off by default), swaps what a click and an Alt-click do on the Pathfinder panel's Shape Mode buttons: on, a click makes a
|
||||
compound shape (`object.compoundShape.make`) and Alt-click gives the permanent Pathfinder result. Selected members of a compound
|
||||
@@ -928,7 +944,8 @@ when the export refuses the options or the artboard choice, `pens` stays null an
|
||||
remembers the options for the next HP-GL Options (not `exportSelection`) and writes the `.plt` file(s), asking for a
|
||||
path when there is none (one per artboard with Use Artboards). A canceled save dialog writes nothing and keeps the
|
||||
options remembered before; a save dialog shown in line (not as a sheet or off the UI thread) also keeps HP-GL
|
||||
Options open.
|
||||
Options open. When another document has become the active one since the dialog opened, `ui.dialog.confirm` closes
|
||||
it and writes nothing.
|
||||
|
||||
TIFF, BMP and Targa Options: Export As… with the TIFF, BMP or Targa format (`file.exportAs {format: "tiff"}`, then
|
||||
the save dialog) opens `tiffOptions`, `bmpOptions` or `tgaOptions`: the raster rows of PNG Options (`ppi`,
|
||||
|
||||
+139
-32
@@ -692,8 +692,9 @@ whole cell or none of it, so a grayed cell can hold printable colors and a clear
|
||||
print. `{"harmony": true, "harmonyRule": "triad"}` puts a marker on the wheel's ring for each other
|
||||
color of a Color Guide harmony rule, as Show Harmony and Harmony Rule do; the wheel takes the 15 rules whose colors
|
||||
each have a hue of their own (not `monochromatic`, `shades`, `complementary2`, `triad2`, `triad3` or
|
||||
`highContrast2`). 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, vision}`,
|
||||
`highContrast2`). `{"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, 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
|
||||
@@ -711,6 +712,10 @@ does: a row of four chips under the wheel or the box shows the current color thr
|
||||
and tritanopia simulations of `view.proofSetup`, and for achromatopsia as the gray with the color's CIE L*. Each
|
||||
chip reports its name and hex value to screen readers, and a click on a chip does not apply its color. `false`
|
||||
hides the row, and `null` keeps the setting. Any other value returns an error and changes nothing.
|
||||
`ui.colorWheel {"documentColors": true}` shows the Color Wheel panel's row of the colors the selection uses, or with
|
||||
nothing selected the colors of the art `select.all` takes, in the order `color.used {}` lists them. A click on a color
|
||||
applies it to the active proxy, keeping its link to a global swatch. The answer includes `documentColors`
|
||||
with the other settings, and the setting is kept with the preferences.
|
||||
|
||||
In remote desktop mode, `invoke_menu` with `{"command":"ui.sampleScreenColor","params":{}}` shows the system's
|
||||
screen color sampler and returns `null` before a color is picked: the system's sampler on macOS, the XDG desktop
|
||||
@@ -4684,8 +4689,23 @@ already walks Image Trace. Short agent entry points:
|
||||
`builtIn: true`, then the saved ones with `builtIn: false`, and returns a `revision` that grows each time the saved
|
||||
presets change. `imageTrace.make {preset}` takes a saved preset's name, with ASCII letters matching in either case.
|
||||
Its journal entry records the saved preset's settings as `savedPreset`, so a replay traces with them after the preset
|
||||
is changed, renamed or deleted. In the app,
|
||||
`ui.imageTracePresetDialog {params?, rename?}` opens the Image Trace panel's Save as New Preset… or Rename… dialog.
|
||||
is changed, renamed or deleted. `imageTrace.presets.export {names?, path?}` writes saved presets (default: every one;
|
||||
a built-in preset's name is an error) as a `.vctracepresets` file, VectorCraft's own JSON layout
|
||||
(`{"format": "vctracepresets", "version": 1, "presets": [{"name", "params"}]}`), to `path`, else returns its text as
|
||||
`data`; it refuses more than 1,000 presets or a file over 4 MiB, the limits of the import.
|
||||
`imageTrace.presets.import {path? | data? | dataBase64?, replace?}` adds the presets of such a file (at most
|
||||
4 MiB and 1,000 presets) → `{imported, replaced, skipped}`: a preset with a saved preset's name is skipped unless
|
||||
`replace` is true. Every preset in the file is checked first, and a file with a built-in preset's or `Custom`'s name,
|
||||
two presets of one name, a preset without a name or `params`, settings `imageTrace.presets.save` refuses, or a newer
|
||||
`version` changes nothing. In the app, opening a `.vctracepresets` file (File › Open, a drop, or the file picked
|
||||
for Import… on the web) imports it as Import… does. Also in the app,
|
||||
`ui.imageTracePresetDialog {params?, rename?}` opens the Image Trace panel's Save as New Preset… or Rename… dialog,
|
||||
and `ui.tracingPresetsDialog {selected?}` opens Edit › Tracing Presets…: the built-in presets in brackets (read-only)
|
||||
and the saved ones, with the selected preset's settings. Its New… (from the selected preset) and Edit… (a saved
|
||||
preset) open an editor with the Image Trace panel's settings; OK saves with `imageTrace.presets.save` and Cancel saves
|
||||
nothing, and a built-in preset's name, `Custom` or another saved preset's name keeps the editor open. Delete selects
|
||||
the saved preset below the deleted one, else the one above it, else Default. Import… asks whether to replace saved presets whose names the file holds (Cancel
|
||||
keeps them), and Export… writes every saved preset.
|
||||
- Live Paint: `livePaint.make`, `livePaint.merge`, `livePaint.fill {group?, point}`, `livePaint.strokeEdge`,
|
||||
`livePaint.info {group?|id?}`, `livePaint.release`, `livePaint.expand`, and `livePaint.gapOptions {ids?, detect?, size?,
|
||||
color?, closeGaps?}` (Object › Live Paint › Gap Options). Make gives each covered face the fill rows that draw of
|
||||
@@ -4863,15 +4883,23 @@ already walks Image Trace. Short agent entry points:
|
||||
`paint.none` paint the faces or the edges. `paint.editGradient`, `paint.setGradientGeom` and the `paint.freeform`
|
||||
point and line edits change the faces' or the edges' gradients, `paint.invert` and `paint.complement` recolor the
|
||||
faces' fills or the edges' strokes, and `stroke.set`, `stroke.weightUp`, `stroke.weightDown` and
|
||||
`stroke.setAdvanced` change the edges. The Fill proxy shows the faces' fill, and the Stroke proxy, the Stroke panel
|
||||
and the Control bar show the edges' stroke. A face or edge selected or given together with its whole group follows
|
||||
the group's rule: a fill does not reach an edge, and a stroke does not reach a face. `paint.swap` gives the faces
|
||||
the stroke the edges share and gives the edges the fill the faces share, with a gradient fitted to each face or
|
||||
edge. It leaves a group as it is when its faces' fills or its edges' strokes differ, when any of them is a freeform
|
||||
gradient, or when it has no face or no edge. `paint.default` replaces each face's appearance with no fill and each
|
||||
edge's appearance with a 0.5 pt black stroke, also when the document's Default Graphic Style is redefined. With
|
||||
only Live Paint groups selected or given, the fill and stroke for new art become no fill and a 0.5 pt black stroke;
|
||||
with New Art Has Basic Appearance off, new art then takes the selection's appearance, as after any command.
|
||||
`stroke.setAdvanced` change the edges. `object.setOverprint` sets the faces' fill overprint and the edges' stroke
|
||||
overprint. `appearance.copyFrom` (the Eyedropper) gives the picked fill attributes to the faces and the picked
|
||||
stroke attributes to the edges, also onto a group given as `source` with `reverse`. A whole-appearance pick gives
|
||||
each face every picked fill row and each edge every picked stroke row, and the faces and edges keep their rows of
|
||||
the other kind and their effects; `append` adds the source's rows to them but not its object effects. A whole group
|
||||
picked up as the source (given as `source`, or selected first with `reverse`) gives its first face's fills with its
|
||||
first edge's strokes above them, and the group's own opacity, blend mode and effects. The Fill proxy shows the
|
||||
faces' fill, and the Stroke proxy, the Stroke panel and the Control bar show the edges' stroke, whatever the order of
|
||||
a selection that holds the group, directly or inside a selected group, and some of its parts. A face or edge
|
||||
selected or given together with its whole group follows the group's rule: a fill does not reach an edge, and a
|
||||
stroke does not reach a face. `paint.swap` gives the faces the stroke the edges share and gives the edges the fill
|
||||
the faces share, with a gradient fitted to each face or edge. It leaves a group as it is when its faces' fills or its
|
||||
edges' strokes differ, when any of them is a freeform gradient, or when it has no face or no edge. `paint.default`
|
||||
replaces each face's appearance with no fill and each edge's appearance with a 0.5 pt black stroke, also when the
|
||||
document's Default Graphic Style is redefined. With only Live Paint groups selected or given, the fill and stroke
|
||||
for new art become no fill and a 0.5 pt black stroke; with New Art Has Basic Appearance off, new art then takes the
|
||||
selection's appearance, as after any command.
|
||||
|
||||
`brush.selectionArt {ids?|id?}` (a query) replies `{art}`: the object that `brush.new` given the same `ids` or `id`,
|
||||
or the same selection, takes as a new scatter or art brush's art and as a new pattern brush's side tile. Several
|
||||
@@ -5139,7 +5167,8 @@ joins the edges, so with such an effect its paths can differ from the drawn ones
|
||||
draw the edges, and `effect.expandAppearance` keeps them as paths. Past 1,000,000 edges the source path is drawn, as
|
||||
it is for a solid past its limits. A `render` that is not an object, a key other than `mode`, another mode, and
|
||||
`render` on Extrude & Bevel (Classic), Revolve (Classic) or Rotate (Classic) are refused before the document
|
||||
changes. See [three-d.md](three-d.md#3d-and-materials-panel).
|
||||
changes. In wireframe mode the graphics' art is not checked against the graphics limits, so art too complex for the
|
||||
shaded surface does not refuse the wireframe. See [three-d.md](three-d.md#3d-and-materials-panel).
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"effect.setParams","params":{"index":0,"item":null,"params":{"render":{"mode":"wireframe"}}}}}
|
||||
@@ -5172,19 +5201,22 @@ offset in points of the graphic's center from the center of the object's bounds
|
||||
percentage of the symbol's size (1..10000; omitted, 100 or less so the graphic fits inside the object) and
|
||||
`rotation` is in degrees counterclockwise (-360..360). Without `index` each object's first 3D effect takes it, and `item` is refused.
|
||||
Every object's 3D effect must be Extrude & Bevel (front only at a depth of 0; `front` and `back` need Cap on, and
|
||||
`side`, its walls and bevels, does not), Rotate (the Plane type, front only) or Revolve (front only: its swept
|
||||
side), and `symbol` must name a document symbol; otherwise the command is refused and nothing changes. It returns `{ids, graphic}`.
|
||||
`side`, its walls and bevels, does not), Rotate (the Plane type, front only), Revolve (front only: its swept
|
||||
side) or Inflate (`front` or `back`, and `back` only with Both sides and Cap on), and `symbol` must name a document symbol; otherwise the command is refused and nothing changes. It returns `{ids, graphic}`.
|
||||
On Revolve and on Extrude & Bevel's side, `x` and `y` are measured on the side unrolled flat from its middle (on
|
||||
Extrude & Bevel, `x` along the outline, clockwise from its top, and `y` from the front toward the back), and a
|
||||
graphic that does not fit starts scaled to fit the part of Extrude & Bevel's side unrolled about `x` = 0 that does
|
||||
not reach its cut, or the half of Revolve's side seen from the front ([three-d.md](three-d.md#graphics)).
|
||||
On Inflate, `x` and `y` are measured in the art's plane, and the graphic is carried straight out onto the puffed
|
||||
face, Twist and Taper turning and shrinking the back's with it.
|
||||
|
||||
The graphics are the `graphics` parameter of `threeD.extrude`, `threeD.rotate` and `threeD.revolve`, which `effect.setParams` also
|
||||
The graphics are the `graphics` parameter of `threeD.extrude`, `threeD.rotate`, `threeD.revolve` and `threeD.inflate`, which `effect.setParams` also
|
||||
edits: an array of up to 64 `{symbol, face, x, y, scale, rotation}` objects, drawn on the face turned,
|
||||
foreshortened and shaded with it and clipped to it ([Map artworks on 3D object](https://helpx.adobe.com/illustrator/desktop/special-effects-styles/create-3d-graphics/map-artwork-on-3d-objects.html)).
|
||||
Revolve takes graphics on its swept side and shades them with the object's light ([the archived reference, page 185](https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=185));
|
||||
how a graphic wraps around the side is VectorCraft's own rule. Extrude & Bevel takes graphics on its side, its
|
||||
walls and bevels unrolled as one surface; how they are unrolled is VectorCraft's own rule.
|
||||
how a graphic wraps around the side, and how one follows Inflate's puff, are VectorCraft's own rules. Extrude &
|
||||
Bevel takes graphics on its side, its walls and bevels unrolled as one surface; how they are unrolled is
|
||||
VectorCraft's own rule.
|
||||
A graphic naming a symbol the document does not have is refused, unless the effect already holds a graphic of it.
|
||||
The drawing rules are VectorCraft's own; see [three-d.md](three-d.md#graphics).
|
||||
|
||||
@@ -5669,7 +5701,13 @@ fills and strokes above it paint over the members (characters), those below unde
|
||||
`contents` to say where the row ends up in the same undo step; `document.node` shows the slot as
|
||||
`appearance.contents_index`. The `appearance.*`, `effect.*` and `graphicStyle.apply` commands edit the selected
|
||||
objects themselves (a group's own stack; layers through `ids`) or, with `target: "contents"`, the objects inside the
|
||||
groups and layers. `appearance.targetContents` selects a group's members (double-clicking the Contents row).
|
||||
groups and layers. In a Live Paint group those are its faces and edges, not its hidden source paths.
|
||||
`appearance.addFill` adds a fill to the faces only, and `appearance.addStroke` adds a stroke to the edges only; a selected group left with only its hidden source paths is returned without a change. A
|
||||
fill or stroke command with an `item` and `target: "contents"` (such as `paint.setFill`, `stroke.set`,
|
||||
`paint.invert`, `paint.setGradientGeom` and `object.setOverprint`) changes the faces for a fill row and the edges for
|
||||
a stroke row. The row commands (`appearance.setItem`, `appearance.removeItem` and the others) find their rows on each
|
||||
face and edge as on any other object in the contents.
|
||||
`appearance.targetContents` selects a group's members (double-clicking the Contents row).
|
||||
SVG and PDF export bake a group's own fills, strokes and geometry effects into paths; its raster effects stay a
|
||||
filter on the whole group in SVG and become an image of the whole group in PDF.
|
||||
A geometry effect on one of type's own fills or strokes (`effect.apply` with `item`) reshapes the whole outline that
|
||||
@@ -5758,15 +5796,28 @@ document's swatches, as a library to add from. From an `.ase` file it reads RGB,
|
||||
spot or process swatches and keeps their color groups. A color book (such as a Pantone book you own) gives its RGB,
|
||||
CMYK or Lab colors named with the book's prefix and suffix ("PANTONE 185 C"), as spot colors unless the book marks
|
||||
them as process colors; `.acb` files are read, never written. A file in the user library folder, or a file with the
|
||||
same extension and bytes as one there, loads as that User Defined library (category `user`).
|
||||
same extension and bytes as one there, loads as that User Defined library (category `user`). A file larger than 256 MB
|
||||
is refused before it is read.
|
||||
From a document, such as a `.ai` or `.eps` swatch library, it reads the colors, tints, gradients and pattern swatches
|
||||
in the document's order and color groups; `swatch.library.add` brings a pattern swatch's pattern, with its tile and
|
||||
art, into the document as a pattern swatch under the library swatch's name and in its color group. A global or spot
|
||||
color the pattern's art links to keeps the library's color: when the document gives its name another color, it comes
|
||||
in under a numbered name ("Ink 2") and the pattern links to that. A document with
|
||||
no swatches, and a `.ai`, `.eps` or PostScript file whose swatches are only the default ones, are refused with
|
||||
"`<file>` has no swatches of its own". The Swatch Libraries filter of Other Library… lists `.ai`, `.ait` and `.eps`
|
||||
(`.epsf`) files as well as the library files.
|
||||
"`<file>` has no swatches of its own", unless the document has graph designs: it then loads with no swatches. The
|
||||
Swatch Libraries filter of Other Library… lists `.ai`, `.ait` and `.eps` (`.epsf`) files as well as the library files.
|
||||
A document's graph designs come with it: the reply's `graphDesigns` counts them, and
|
||||
`graph.column`, `graph.marker` and `graph.design` take the library's id as `library` until the app quits (a User
|
||||
Defined copy made with `swatch.library.copyToUser` holds the swatches alone, so the designs stay under the loaded id).
|
||||
`graph.column {design, library}` and `graph.marker {design, library}` copy a design the document lacks into it, with the
|
||||
swatches, patterns, symbols, styles, brushes and images its art uses, in the same undo step as the graph change.
|
||||
`graph.design {library, add: name | [names]}` copies designs without applying them and returns `{added, existing}`, and
|
||||
`graph.design {library}` lists the library's designs. A design the document already has under the same name stays as it
|
||||
is. `graph.column` and `graph.marker` with no `design`, and `graph.design {}`, list the loaded libraries that hold
|
||||
designs as `libraries: [{library, name, designs}]`. Copying a graph and pasting it into another document brings the designs its series
|
||||
draw with in the same way; a pasted graph is drawn again with the document's design of that name when that design
|
||||
would draw it otherwise. The graphs already in the document that draw with a design the copy or paste adds, one a copied
|
||||
design's art uses included, are drawn again with it.
|
||||
`swatch.library.copyToUser {library}` copies a loaded library into the user library folder of the desktop
|
||||
app (a library file as it is; a document's swatches or a library loaded from `data` or `dataBase64`
|
||||
as `.vcswatches`; a library with pattern swatches is refused) under a name no file there has, and lists it as User
|
||||
@@ -7119,8 +7170,9 @@ slider back to the Auto-Smooth level.
|
||||
|
||||
## Circle through two or three points
|
||||
|
||||
`shape.circleThroughPoints {points?: [[x, y], [x, y]] or [[x, y], [x, y], [x, y]]}` draws the circle whose edge passes
|
||||
through the points, as a live ellipse with the current paint, and selects it. Two points are the ends of a diameter.
|
||||
`shape.circleThroughPoints {points?: [[x, y], [x, y]] or [[x, y], [x, y], [x, y]], anchors?}` draws the circle whose
|
||||
edge passes through the points, with the current paint, and selects it: a live ellipse with the default
|
||||
`anchors: "standard"`, and a plain path with `anchors: "points"`. Two points are the ends of a diameter.
|
||||
Without `points`, it uses the two or three selected anchor points, from one path or several: anchor points selected with
|
||||
Direct Selection, or all the anchor points of a path selected whole, such as a triangle. The ends of selected segments
|
||||
do not count. The result is `{id, cx, cy, radius}`, and one undo removes the circle. The circle is not pixel-aligned,
|
||||
@@ -7130,6 +7182,12 @@ 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.
|
||||
|
||||
`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
|
||||
is drawn.
|
||||
|
||||
The Circle tool, after the Ellipse tool in its toolbar group, draws with this command. A drag from one point to
|
||||
another, or a click on each, draws the circle with the two points as the ends of a diameter. A click on a first point,
|
||||
then a press on a second point dragged to a third, draws the circle through the three. Shift keeps the second point at
|
||||
@@ -7145,6 +7203,28 @@ Escape, a dropped press, and an edit, Undo or Redo made outside the tool drop th
|
||||
screen points of the first point, or one that snaps to it, is a press on it: let go there (a double-click), it places no second point, and
|
||||
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"`:
|
||||
|
||||
- `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.
|
||||
- `color` (Color) is the color of the cross and the lines: `"red"`, `"blue"`, `"magenta"`, `"green"`, `"black"` or
|
||||
`"gray"`. The outline stays blue.
|
||||
- `standardAnchors` (Anchors at Standard Positions) off draws the circle with `anchors: "points"`, so its anchors are
|
||||
at the points it was drawn through.
|
||||
- `dragThird` (Third Point by Dragging) off changes how the points are placed. A click on a second point places it, and
|
||||
a click on a third point draws the circle through the three. A click on the second point again, as the second click
|
||||
of a double-click there is, draws the circle on the two points. An Alt-click places the second point where Alt's
|
||||
rounding of the diameter puts it, and both circles pass through it there. A click on the first point, or a second
|
||||
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.
|
||||
|
||||
`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
|
||||
not one of these (`` unknown Circle tool option `size` ``).
|
||||
|
||||
With the Ellipse tool, the first two Shift-clicks place points, and the third draws the circle through the three with
|
||||
this command. After two points the tool previews the circle through them and the pointer as a dashed outline. Once a
|
||||
point is placed, a Shift-click on the selection's handles, center point or shape widgets places a point too. Escape, a
|
||||
@@ -7227,11 +7307,37 @@ path's last point, drawn with the tool's `action` option:
|
||||
Alt (Option on macOS) pressed and let go with no other key, click or wheel turn in between switches to the next action:
|
||||
Line, Continuous Arc, Sharp Corner Arc, and back to Line. C flips the last piece, while it is a sharp-corner arc, to
|
||||
the other side of its chord. `[` and `]` make the arc size 15° smaller or larger, for the last sharp-corner arc and the
|
||||
arcs after it. A click on the first point closes the path, and a click on an end of an open path goes on drawing from
|
||||
that end. Escape or Enter ends the path, and so does an edit made to it by another command. The path's points show as circles without handles, and a preview shows the
|
||||
piece the next click adds. Points snap to Smart Guides. Each piece, flip and size change is one undo step. The arc
|
||||
size of 180°, its 15° steps, the side an arc bulges to and Enter ending the path are VectorCraft's own rules. The
|
||||
tool keeps `action` and `turn` with the preferences (`tool.setOption {tool: "quickPen", key, value}`).
|
||||
arcs after it. During a drag, C and `[` `]` change the sharp-corner arc being dragged, and Alt switches its action. A
|
||||
dragged piece ends where the press is let go. A click on the first point closes the path, and a click on an end of an
|
||||
open path goes on drawing from that end. Escape or Enter ends the path, and so does an edit made to it by another
|
||||
command. An edit made by another command during a drag, to the path or to other art, also ends the path: the edit
|
||||
stays, and the piece stays as last shown. With the `realTimeDrawing` preference off, a press during which another
|
||||
command edits the document adds no piece, and the edit stays. The path's points show as circles without handles, and a
|
||||
preview shows the piece the next click adds. Points snap to Smart Guides. Each piece is one undo step, together with the
|
||||
flips and size changes made during its drag, and each flip or size change made between presses is one undo step. The
|
||||
arc size of 180°, its 15° steps, the side an arc bulges to, what C and `[` `]` do during a drag and Enter ending the
|
||||
path are VectorCraft's own rules. The tool keeps `action` and `turn` with the preferences
|
||||
(`tool.setOption {tool: "quickPen", key, value}`).
|
||||
|
||||
Selecting the tool shows its toolbar on the canvas: Straight Line, Continuous Arc and Sharp Corner Arc set `action`,
|
||||
Flip Arc flips the last sharp-corner arc as C does (`tool.quickPen.flipArc {}`, which first finishes any pending tool edit,
|
||||
which can change the document, then returns false and changes nothing more when the Quick Pen tool is not active
|
||||
or the last piece is not a sharp-corner arc), and More Options (…) has Hide
|
||||
Toolbar (`window.quickPenToolbar`, which toggles; the toolbar stays hidden until the tool is selected again) and Reset
|
||||
Toolbar Position (`window.quickPenToolbar.reset`), as the help page describes.
|
||||
The handle at its left end drags it. While a path is being drawn, the toolbar sits beside the path's last point, 24
|
||||
screen points off it diagonally whatever the zoom, on the side the path heads toward (to the right and below for a path
|
||||
drawn right and down), away from what was drawn, as the
|
||||
[design write-up](https://adobe.design/ideas/behind-the-design-adobe-illustrator-s-quick-pen-tool) describes. The
|
||||
following are VectorCraft's own rules. Where the side the path heads toward runs off the canvas, the toolbar goes on the
|
||||
other side; with no path being drawn, it sits at the bottom center of the canvas. A drag's offset moves it from its
|
||||
place beside the drawing, or from its resting place, in the document it was made in, and not where it would cover the
|
||||
path's last point. More Options also has Pin Toolbar Position (`window.quickPenToolbar.pin {pinned?}`, omitted
|
||||
toggles), which holds the toolbar at its place in the canvas window while the view scrolls or zooms, and Window › Quick
|
||||
Pen Toolbar shows or hides it. It hides while a press drags on the canvas, and in a canvas pane narrower than the
|
||||
toolbar its controls wrap onto more rows. `ui.inspect` gives `quickPenToolbar` (`pinned`, and `rect` while it shows); its position,
|
||||
the pin and whether it shows are not saved. These commands run in the desktop app; the headless host does not run them,
|
||||
so they need `--connect`.
|
||||
|
||||
`path.quickPen {start?: [x, y], id?, subpath?, keep?, pieces?, closed?}` draws such a path and selects it, as one
|
||||
undo step, and answers `{id}`. With `start`, it makes a new path with the current paint (a black stroke when the paint
|
||||
@@ -7790,7 +7896,7 @@ commands are listed this way:
|
||||
(Object › Perspective), under Perspective;
|
||||
- `text.spelling.dictionary` (Edit › Edit Custom Dictionary…), under Text;
|
||||
- the UI commands `ui.recolorDialog` (Edit › Edit Colors › Recolor Artwork…), `ui.flattenerPresetsDialog`,
|
||||
`ui.printPresetsDialog`, `ui.pdfPresetsDialog`, `ui.perspectivePresetsDialog`, `ui.svgFilterDialog`,
|
||||
`ui.printPresetsDialog`, `ui.pdfPresetsDialog`, `ui.tracingPresetsDialog`, `ui.perspectivePresetsDialog`, `ui.svgFilterDialog`,
|
||||
`ui.saveSwatchLibrary`, `ui.saveBrushLibrary`, `ui.saveGraphicStyleLibrary` and `ui.saveSymbolLibrary`, under Ui;
|
||||
`file.exportAs` and `file.exportSelection`, under File; `links.editOriginal`, under Links; `type.applyBullets` and
|
||||
`type.applyNumbers`, under Type; and `window.toolbar.new`, `window.toolbarColumns`, `window.toolsBesideCanvas`,
|
||||
@@ -10377,7 +10483,8 @@ its color, remove it or add one), Draw the Nearest Path Next (`sortPaths`) and D
|
||||
artboards, the bounds of the art, or the selection with Export Selection or Export Selected Art Only), or one black
|
||||
pen when that art draws nothing. When the export refuses the options or the artboard choice, One Pen per Color stays
|
||||
chosen and the dialog shows why. OK checks the options and the artboard choice, and remembers the options for the
|
||||
next export; a canceled save panel writes nothing and keeps the options remembered before.
|
||||
next export; a canceled save panel writes nothing and keeps the options remembered before. When another document has
|
||||
become the active one since the dialog opened, OK closes it and writes nothing.
|
||||
|
||||
## TIFF, BMP and Targa export
|
||||
|
||||
|
||||
+3
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+24
-10
@@ -491,8 +491,9 @@ The public [Map artworks on 3D object](https://helpx.adobe.com/illustrator/deskt
|
||||
page describes graphics: art kept with the document and placed on single surfaces of a 3D object, and the
|
||||
[3D and Materials panel options](https://helpx.adobe.com/illustrator/desktop/special-effects-styles/create-3d-graphics/3d-materials-panel-options.html)
|
||||
page lists Graphics and Add Materials and Graphics on the Materials tab. VectorCraft maps graphics onto
|
||||
Extrude & Bevel's front and back caps and its side (its walls and bevels), the plane of the Plane type (Rotate), and
|
||||
the swept side of Revolve, which the public page's example of a label on a bottle describes.
|
||||
Extrude & Bevel's front and back caps and its side (its walls and bevels), the plane of the Plane type (Rotate),
|
||||
the swept side of Revolve, which the public page's example of a label on a bottle describes, and Inflate's puffed
|
||||
front and back.
|
||||
|
||||
- The panel's **Materials** tab shows the document's graphics as thumbnails. A graphic is a document symbol, as
|
||||
the public page allows existing symbols to be used. **Add as Single Graphic** keeps the selected art as a new
|
||||
@@ -501,9 +502,9 @@ the swept side of Revolve, which the public page's example of a label on a bottl
|
||||
- Clicking a thumbnail maps that graphic onto the front of the 3D effect of each selected object
|
||||
(`threeD.mapGraphic`), in one undo step. A graphic larger than the object starts scaled down to fit inside it.
|
||||
- Below the thumbnails the tab lists the graphics mapped onto the first selected object. The selected one shows
|
||||
its Face (Front, Back or Side; Plane and Revolve show no Face, as a plane has only a front and Revolve's graphics
|
||||
go on its side), X and Y (the offset of its center from the center of the
|
||||
object's bounds, in the face's plane, or on a side from its middle unrolled flat), Scale (a percentage of the symbol's size) and Rotation
|
||||
its Face (Front, Back or Side, on Inflate Front or Back for its puffed front or back; Plane and Revolve show no
|
||||
Face, as a plane has only a front and Revolve's graphics go on its side), X and Y (the offset of its center from
|
||||
the center of the object's bounds, in the face's plane, or on a side from its middle unrolled flat), Scale (a percentage of the symbol's size) and Rotation
|
||||
(counterclockwise), and **Remove Graphic** takes it off. Each change is one undo step.
|
||||
- While the tab is open, a blue handle sits on the center of each mapped graphic whose face is turned toward the
|
||||
viewer. Dragging a handle moves that graphic over its face, previewed while the pointer is down and recorded as
|
||||
@@ -524,6 +525,18 @@ These rules are VectorCraft's own:
|
||||
their own. A graphic on a face turned away from the viewer is not drawn.
|
||||
- On the back cap, X runs to the right as the back is seen from behind, so the graphic reads the right way round
|
||||
there.
|
||||
- On Inflate a graphic is placed in the art's plane, X and Y measured from the center of the object's bounds as on
|
||||
a cap, and carried straight out onto the puffed face above each point, so it follows the puff. The back takes
|
||||
graphics only with Both sides and Cap on (`threeD.mapGraphic` refuses one otherwise, and one already there is
|
||||
not drawn); it reads the right way round from behind, and Twist and Taper turn and shrink its graphics with it.
|
||||
The membrane is cut into triangles, and each one draws the part of the graphic that falls on it, shaded as
|
||||
that triangle is shaded and drawn only where the surface's outside faces the viewer; nearer triangles drawn
|
||||
after it cover it. When a cell of the membrane cannot be cut into triangles, the object draws without its
|
||||
graphics and commands refuse them, as when the triangles take more faces than a 3D effect draws. Every solid of
|
||||
the object (a fill's, and a stroke's outline) carries the graphics. The handle sits on the point of the puffed
|
||||
face above the graphic's center, and only where the viewer sees that face. The cutting into straight pieces,
|
||||
the seam strokes and the limits below are those of Revolve; when the triangles take more faces than a 3D
|
||||
effect draws, the object draws without its graphics and commands refuse them.
|
||||
- On Revolve a graphic lies on the swept side, which has one face (Front), unrolled flat. X runs around the axis:
|
||||
the angle from the middle of the side times the profile's distance from the axis at that point, so a graphic
|
||||
keeps its size at every distance and wraps farther around the axis where the profile comes nearer to it. Y runs
|
||||
@@ -573,9 +586,10 @@ These rules are VectorCraft's own:
|
||||
draws the object without a graphic past the first limit, and without all of its graphics past the second.
|
||||
- A hollow Extrude & Bevel has no caps, so the graphics on its caps are not drawn until Cap is turned on again,
|
||||
and `threeD.mapGraphic` refuses to map a new one onto a cap; its side takes graphics. With a depth of 0 the object
|
||||
is a plane, and `threeD.mapGraphic` maps graphics onto its front only. Changing the type to Inflate drops the
|
||||
graphics, and changing between Extrude, Plane and Revolve keeps them, except that Plane and Revolve drop the
|
||||
graphics on the back cap and on Extrude & Bevel's side; on Revolve the front's graphics go on its side.
|
||||
is a plane, and `threeD.mapGraphic` maps graphics onto its front only. Changing between Extrude, Plane, Revolve
|
||||
and Inflate keeps the graphics, except that Plane and Revolve drop the graphics on the back cap, and Plane, Revolve
|
||||
and Inflate drop the graphics on Extrude & Bevel's side; on Revolve the front's graphics go on its side, and on
|
||||
Inflate the front's and back's go on the puffed faces.
|
||||
- `effect.apply` and `effect.setParams` refuse a graphic that names a symbol the document does not have, unless
|
||||
the effect already holds a graphic of that symbol. A graphic whose symbol is deleted is no longer drawn. Renaming a symbol renames it in the graphics that use it,
|
||||
in the layers, in the art of symbols, patterns, graph designs, brushes and opacity masks, and in graphic
|
||||
@@ -632,9 +646,9 @@ is VectorCraft's own.
|
||||
uses: `rotationX`, `rotationY`, `rotationZ`, `perspectiveAngle` (degrees), `shade`, `lightColor` (`#rrggbb`, default `#ffffff`), `lightIntensity` (%), `lightRotation`,
|
||||
`lightHeight` (degrees), `lightSoftness` (%), `ambient` (%, to 200), `lightBehind`. Lengths are points and scale with the object (Scale Strokes & Effects).
|
||||
Commands validate the shape and the parameters before the document changes. All four also take `lights`: null (the default, use the earlier single-light fields), or an array of one to ten objects. Each object takes `color` (opaque `#rrggbb`, white), `intensity` (0..100%, 80), `rotation` (-180..180 degrees, 125.26), `height` (0..90 degrees, 30), `softness` (0..100%, 0), and `behind` (boolean, false). Omitted settings use those defaults. An explicit list replaces the earlier single light; `ambient` and `shade` remain shared. Set `lights` to null to return to the single-light fields. Invalid lists, counts, keys and values are rejected before editing; malformed loaded lists fall back to the earlier light safely. All four take `shadow` (boolean, false), `shadowPosition` (`behind` or `below`), `shadowDistance` (0..100%, 0) and `shadowBounds` (10..400%, 100) ([Shadows](#shadows)); values out of range are rejected before editing.
|
||||
`threeD.extrude`, `threeD.rotate` and `threeD.revolve` take `graphics` ([Graphics](#graphics)): an array of up to 64 objects, each
|
||||
`threeD.extrude`, `threeD.rotate`, `threeD.revolve` and `threeD.inflate` take `graphics` ([Graphics](#graphics)): an array of up to 64 objects, each
|
||||
with `symbol` (the name of a document symbol), `face` (`front`, `back` or `side`, default `front`; `threeD.rotate` and
|
||||
`threeD.revolve` take `front` only), `x` and `y` (points, default 0), `scale` (1..10000%, default 100) and `rotation` (-360..360 degrees,
|
||||
`threeD.revolve` take `front` only, and `threeD.inflate` `front` or `back`), `x` and `y` (points, default 0), `scale` (1..10000%, default 100) and `rotation` (-360..360 degrees,
|
||||
default 0). Other keys, values out of range and graphics on the other 3D effects are rejected before editing.
|
||||
All four take `render` ([3D and Materials panel](#3d-and-materials-panel)): an object whose `mode` is `shaded` (the
|
||||
default) or `wireframe`. A `render` that is not an object, a key other than `mode`, another mode, and `render` on
|
||||
|
||||
+4
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user