mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 11:51:05 +01:00
Merge main into fix/graph-axis-paint-kept
This commit is contained in:
commit
554369eae0
221 files changed
+9124
-704
No files matched your search
+171
-33
@@ -1,6 +1,8 @@
|
||||
# VectorCraft MCP server
|
||||
|
||||
> **Last updated:** 2026-11-14 · **Change:** Pencil ignores Smart Guides and Snap to Point and shows no Smart Guides, #7252; no response-shape change. Previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; no response-shape change. Previously: Snap to Point with Smart Guides off draws no Smart Guides labels or lines, #7250; no response-shape change. Previously: Envelopes: a top object's side whose pieces are all one curve split at anchors follows that curve's parameter (#7097); existing response shapes retained.
|
||||
>
|
||||
> Tech Circuit update (2026-11-14): three original procedural brushes; ten built-in brush libraries (G5).
|
||||
|
||||
`vectorcraft-cli mcp` runs a [Model Context Protocol](https://modelcontextprotocol.io) server on stdio
|
||||
(newline-delimited JSON-RPC 2.0; see [Protocol](#protocol) for version negotiation). Agents use it to
|
||||
@@ -244,6 +246,21 @@ the suite) keep the agent to the folders you give it:
|
||||
without a path of a document whose own format is SVG or SVGZ), `file.exportAs`, and the SVG Options dialog's
|
||||
Show Code. A file given as another URL (`https://…`) is not checked. The document keeps the link, and the
|
||||
person at the keyboard exports it as stored.
|
||||
- The same SVG and SVGZ outputs are refused with "a linked image file is outside the read roots", which names no
|
||||
file or folder, when the file would name a linked image's file outside the read roots (a path, a `file:` URL,
|
||||
or a relative path taken from the document's folder). An `<image>` names the file with `images: "link"`, and
|
||||
with `embed` when the document holds no pixels for the image. An image colorized with a solid fill names
|
||||
no file when its pixels are gray (the file gets the colorized pixels) or missing (the file leaves it out).
|
||||
With `preserveEditing`, the document the SVG carries names every linked image and placed file, the relative
|
||||
paths kept of them and each data set's image, in every symbol, pattern, graph design and brush, used or not,
|
||||
colorized or not, and a stored brush entry that does not read as a brush is refused too, since its links
|
||||
cannot be checked. Otherwise the images of the art the file writes,
|
||||
in opacity masks and in the symbols, patterns and brushes that art uses, are checked: hidden layers and
|
||||
objects only with `hiddenLayers` (a save keeps them unless it is `false`), and template layers and the
|
||||
layer of opacity-mask or symbol editing mode never. `selectedOnly` and `document.exportSelection` check the
|
||||
selected objects only, and `clipboard.exportSvg` checks the copied objects, following a relative path from
|
||||
the document they came from while it is open; in a frame a request drives, Copy then puts no SVG on the
|
||||
system clipboard. An image whose pixels the document holds exports embedded, and a URL is not checked.
|
||||
- `plugin.list`, `plugin.safeMode`, `file.recovery.*` and `ui_inspect`'s `scriptReport` leave out the paths
|
||||
outside the read roots, also those the person or an earlier request put there. In `plugin.list`, the plug-in
|
||||
folder last loaded is `null` in `folder.folder`, and a failed file in `folder.failed` and a plug-in's `source`
|
||||
@@ -826,15 +843,34 @@ the `effect.*` commands and `appearance.addEffect`, and the paint, stroke and gr
|
||||
`item`, which is a row of the group's own stack. The Appearance panel and `appearance.setActiveItem` read the selected
|
||||
group's own rows.
|
||||
|
||||
The graph draws the art of a column or marker design in a series again from the design, so the commands that add,
|
||||
change, move or remove fill and stroke rows, effects or graphic styles leave that art out: the `appearance.*` commands
|
||||
listed above, `effect.apply`, `appearance.addEffect` and the other `effect.*` commands that edit, move or remove an
|
||||
effect, `graphicStyle.apply` (and `graphicStyle.addFromLibrary` with `apply`), `transparency.set` with a fill or stroke
|
||||
`item`, and `appearance.copyFrom` as the target. The art is any object inside a series group other than a path directly
|
||||
in it, whether given by id, selected, or reached through `target: "contents"`. The commands edit the other objects they
|
||||
are given, and a command whose objects are all design art is an error. `appearance.transfer` with design art as its
|
||||
`target`, or as its `source` without `copy`, is an error. The paint commands leave the art out as well, without an
|
||||
error. To change the art, edit the design with `graph.design`.
|
||||
When a graph is drawn again (a change to its data, its type, or its column or marker designs), it draws the art of a
|
||||
column or marker design in a series again from the design, and an edit made to that art is lost. The art is any object
|
||||
inside a series group other than a path directly in it, a legend swatch's included, whether given by id, selected, or
|
||||
reached through `target: "contents"`. These commands leave that art out, edit the other objects they are given, and
|
||||
are an error when all their objects are design art: the `appearance.*` commands listed above, `effect.apply`,
|
||||
`appearance.addEffect` and the other `effect.*` commands that edit, move or remove an effect,
|
||||
`effect.expandAppearance` (which also leaves the art inside a selected graph or series group as it was, unless an
|
||||
effect of that group turns the whole group into other art, and is disabled when only design art is selected or
|
||||
given), `threeD.mapGraphic`,
|
||||
`graphicStyle.apply`, `graphicStyle.addFromLibrary` with `apply`, `graphicStyle.breakLink`, `transparency.set`, the
|
||||
`paint.freeform.*` commands that edit points and lines, and `appearance.copyFrom` as the target.
|
||||
`appearance.transfer` with design art as its `target`, or as its `source` without `copy`, is an error.
|
||||
`paint.setFill`, `paint.setStroke`, `paint.swap`, `paint.default`, `paint.invert` and `paint.complement` with an
|
||||
`item`, `stroke.set`, `stroke.weightUp`, `stroke.weightDown`, `stroke.setAdvanced`, `paint.editGradient`,
|
||||
`paint.setGradientGeom` and `object.setOverprint` leave the art out without an error. When the first selected object is design art, the commands
|
||||
do not use the Appearance panel's active row. When the first object given is design art, rows and effects given with
|
||||
`aligned: true` are rows of its stack in `appearance.setItem`, `appearance.removeItem`, `appearance.duplicateItem`,
|
||||
`transparency.set` with an `item`, `effect.apply`, `appearance.addEffect` and the other `effect.*` commands that edit,
|
||||
move or remove an effect, `paint.setFill`, `paint.setStroke`, `paint.invert`, `paint.complement`, `paint.lastColor` and
|
||||
`paint.lastGradient` with an `item`, `stroke.set`, `stroke.setAdvanced`, `paint.editGradient`, `paint.setGradientGeom` and the `paint.freeform.*` commands
|
||||
that edit points and lines: each other object edits the row or effect equal to it, and an object without one is left
|
||||
as it is. When no object has one, `appearance.setItem` and `appearance.removeItem` leave the document as it is, as they
|
||||
do for a row no object has, and the other commands are an error. The paint, stroke and gradient commands are also an
|
||||
error when the art's row is not the kind of row they edit, and `paint.editGradient`, `paint.setGradientGeom` and the
|
||||
`paint.freeform.*` commands without `stroke` edit the kind of the art's row. `appearance.moveItem`, `effect.move` and
|
||||
`appearance.duplicateItem` with `to` are an error when the art's stack differs from the other objects', and
|
||||
`appearance.duplicateItem` with `to` is also an error when two or more other objects are given, as it is without the
|
||||
art. To change the art, edit the design with `graph.design`.
|
||||
|
||||
The graph also stores a paint or stroke weight that one of these commands changes on the topmost visible fill or stroke
|
||||
of a path directly in a series: a weight set with `stroke.set`, `stroke.weightUp` or `stroke.weightDown`; a gradient
|
||||
@@ -1068,6 +1104,11 @@ styles and brushes.
|
||||
`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.
|
||||
The Separations panel's Assign rows (where Edit › Assign Profile… goes) act on the profile of the document's color
|
||||
mode: Don't Color Manage This Document runs `edit.assignProfile` with null for that model (no profile, so the colors
|
||||
show through the working space), Working RGB or Working CMYK with the working space's name (that profile stays
|
||||
assigned when the working space changes), and Profile with another profile of that kind. A choice the document
|
||||
already has runs nothing, and the other model's profile stays as it is.
|
||||
|
||||
SVG import keeps what the canvas edits live. `<pattern>` becomes a pattern swatch. A `<symbol>` with `<use>` becomes a
|
||||
symbol (named after its `data-name`, else its id) with an instance per `<use>`; a `<use>` that shows it differently
|
||||
@@ -1137,7 +1178,8 @@ gradient meshes whose every point is at 0% opacity, and paths without effects wh
|
||||
An image or a mesh with a Crop Marks effect, or with a Vector Halftone effect that makes dots, is measured.
|
||||
Such objects in the art of a symbol are left out of its instances too, and an instance whose symbol holds nothing
|
||||
else is left out. In the art of a dynamic symbol, an object that an instance's fill, stroke or opacity makes
|
||||
the plot draw is measured.
|
||||
the plot draw is measured. The art of an instance that goes through 9-slice guides is placed through them first, and
|
||||
such objects are then left out of the placed art.
|
||||
A document whose only visible art is left out is refused, and Export As refuses an HP-GL plot of it before the save
|
||||
dialog. A PDF of that page, from either command, carries no Preserve Editing data; when Preserve Editing is on (as it
|
||||
is in VectorCraft Default), the export comes back with a warning that says so. A `.ai` export with
|
||||
@@ -1305,8 +1347,10 @@ opens at its size in points, the file's numbers times the `UserUnit` (one above
|
||||
such a page opens from that data at the page's size.
|
||||
`linkPages: true` (File › Open's Import PDF dialog: Import PDF pages as links) opens each page `pages` picks as a
|
||||
placed document linked to that page of the file, as `file.place` with `link` places one, instead of as editable art.
|
||||
Each page gets an artboard of its `cropTo` box (`bounding`: its art's bounds), in a row from the left 36 pt apart, and
|
||||
a layer named after the page (`Page 2`). The document opens in CMYK when most of those pages are painted mostly in
|
||||
Each page gets an artboard of its `cropTo` box (`bounding`: its art's bounds; a blank page gets its crop box), in a row from the left 36 pt apart, and
|
||||
a layer named after the page (`Page 2`). A PDF-compatible `.ai` with `cropTo: "crop"` gets its trim boxes, as it does
|
||||
when it opens as art. A page on its trim box shows its bleed box round the artboard, and the pages give the document
|
||||
their bleed; the artboards are then 36 pt apart plus the bleed on both sides. The document opens in CMYK when most of those pages are painted mostly in
|
||||
CMYK, unless `colorMode` names a mode. All the pages' objects share one copy of the file. The Links panel lists each
|
||||
page, and `links.embed` makes a page editable art.
|
||||
`document.open` refuses `linkPages` for a file that is not a PDF or a PDF-compatible `.ai`, for a file given as
|
||||
@@ -2579,6 +2623,9 @@ The rest of this section is VectorCraft's own rules:
|
||||
`The Scripts folder cannot be read`.
|
||||
- A listed file is checked again when it is chosen. A file that is gone, is no longer a `.js` or `.jsx` file under
|
||||
the folder, or is or lies behind a link ends with `the script is no longer in the Scripts folder`, and nothing runs.
|
||||
The file is read once for that check, and the text that read checked is the text that runs; its `#include` lines
|
||||
and `$.evalFile` read in the folder that read found. `script.run {path, installed: true}` runs a listed script the
|
||||
same way.
|
||||
- The web build has no Scripts folder, and neither has a run with `VECTORCRAFT_NO_PREFS` set.
|
||||
|
||||
`script.listInstalled {}` returns the same listing: `{folder, scripts: [{path, label, folders}], truncated,
|
||||
@@ -2812,6 +2859,22 @@ template layer, on a locked artboard while nothing is isolated, or outside the i
|
||||
such as a symbol instance just placed, is not passed over for being on a locked artboard while it stays selected. When
|
||||
the selection holds no other object, they return the error "nothing selected".
|
||||
|
||||
`select.similar {by?}` is the Control bar's Select Similar Objects button and the Select Similar Options menu beside it
|
||||
([help](https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=165)). It selects the
|
||||
objects like the first selected object by `by` and returns `{count, by}`. `by` is `fillColor`, `fillAndStroke`,
|
||||
`strokeColor`, `strokeWeight`, `opacity`, `blendingMode`, `appearance`, `graphicStyle`, `shapeType` or
|
||||
`symbolInstance`, which runs the `select.same.*` command of that name, or `all`, which selects the objects whose fill
|
||||
and stroke colors, stroke weight, opacity and blending mode all match (tints, compound paths and Live Paint faces as
|
||||
`select.same.fillColor`); Select › Reselect repeats `all` as `all`. The menu's items, their order and what `all`
|
||||
compares are VectorCraft's own. A `by` given is kept for the session once the selection is made, and the menu checks
|
||||
it; without `by` the command uses the kept one, `all` until one is given. Any other `by` is an error that keeps the
|
||||
selection and the kept attribute, and an error of the `select.same.*` command it runs (for example "the selection has
|
||||
no graphic style") keeps the kept attribute too. It needs a selection and records no undo step; the journal records the
|
||||
attribute used, so a recorded action repeats it, and a script run that fails puts the kept attribute back. The button
|
||||
and the menu show while something is selected and the
|
||||
Object Options group is on, at the right end of the bar after the X, Y, W and H fields. They take only the room the
|
||||
other controls leave, so the bar leaves them out, together, before any other control.
|
||||
|
||||
`select.object.allOnSameLayers` selects the objects on the layers and sublayers of the selected objects that can be
|
||||
selected. A selected object that is hidden or locked, inside a hidden or locked group or layer, on a template layer, on
|
||||
a locked artboard while nothing is isolated, or outside the isolated group adds no layer. When the selection holds no
|
||||
@@ -4611,9 +4674,9 @@ error.
|
||||
|
||||
## Brush libraries
|
||||
|
||||
Brush libraries are read-only sets of brushes: nine generated in code (Art Ribbons, Ink and Wash, Calligraphic Nibs, Bristle
|
||||
Brush libraries are read-only sets of brushes: ten generated in code (Art Ribbons, Ink and Wash, Calligraphic Nibs, Bristle
|
||||
Brushes with one bristle brush for each tip shape, Pattern Borders, Scatter Shapes, Game Trails, Energy Beams, and Dry Media with the Chalk Grain, Graphite Pencil, Wax Crayon and
|
||||
Charcoal Dust art brushes, id `dry-media`), the `.vectorcraft` files in the user library folder of the desktop app (User
|
||||
Charcoal Dust art brushes, id `dry-media`, and Tech Circuit with Circuit Trace (art), Bus Lines and Terminal Nodes (pattern), id `tech-circuit`), 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).
|
||||
@@ -4870,6 +4933,14 @@ and `height`, so a new `hSpacing` changes the tile's width. `pattern.options` st
|
||||
`object.pattern.edit` edits the pattern that fills or strokes a selected object, and `pattern.options` changes the
|
||||
pattern being edited; each returns an error when there is no such pattern. `pattern.delete` requires `name`.
|
||||
|
||||
With `pattern.options {moveTileWithArt: true}` (Move Tile with Art), a move of all of the tile art in pattern editing
|
||||
mode moves the tile by the same offset: `object.move`, `object.nudge`, `object.transform` with a translation, and drags
|
||||
with the Selection tool. A move of only some of the art, a move of direct-selected anchors, a copy, a rotation and a
|
||||
scale leave the tile where it is. The option is off for a new pattern and works the same with `sizeTileToArt` on. These
|
||||
details are VectorCraft's own rules; the help page says only that the option moves the tile along with the art
|
||||
(<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.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"pattern.options","params":{"showSwatchBounds":true}}}
|
||||
{"name":"run_command","arguments":{"command":"prefs.set","params":{"key":"patternTileEdgeColor","value":"#ff4f4f"}}}
|
||||
@@ -5527,11 +5598,28 @@ moves that point alone as the focal point, with or without Shift (Shift keeps th
|
||||
focal points stay highlighted where it left them; Escape during a drag puts the path back and keeps them, and
|
||||
switching to another tool clears them.
|
||||
|
||||
`path.eraseRegion` (the Eraser) takes a variation mode for each of its tip's values, as the variation menus of
|
||||
Eraser Tool Options set them ([Erase paths using the Eraser
|
||||
tool](https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-paths/erase-paths-using-eraser-tool.html)):
|
||||
`angleMode` with `angleVariation` (degrees, 0 to 180), `roundnessMode` with `roundnessVariation` (percent, 0 to 100)
|
||||
and `sizeMode` with `sizeVariation` (points, 0 or more), each `"fixed"` (the default), `"random"`, `"pressure"`,
|
||||
`"tilt"`, `"bearing"` or `"rotation"`. A value that varies takes up to its variation either way. Random draws one
|
||||
value for the drag. Pressure goes from the value less the variation where the pen presses lightest to the value plus
|
||||
it where the pen presses hardest. Tilt goes from less with the pen lying flat to more with it upright. Bearing and
|
||||
Rotation go from less at −180° to more at 180° of the way the pen leans or its barrel turns. The tip at each point of
|
||||
the drag takes what the pen read there (the points' pressure, tilt and rotation, as `path.freehand` takes them); a
|
||||
drag without that reading, such as a mouse drag, erases at the value itself. One Random value per drag, which way
|
||||
Tilt, Bearing and Rotation run, and the value itself without a reading are VectorCraft's own rules.
|
||||
The command refuses another mode, and a variation below 0 or past its range, and erases nothing. In the desktop app
|
||||
the Eraser's tip outline at the pointer takes the angle, roundness and size the pen gives while it erases.
|
||||
`tool.setOption {tool: "eraser"}` takes the same keys.
|
||||
|
||||
These commands refuse a string or another value that is not a number with `` `dy` must be a number, not "10" ``,
|
||||
naming the key; the document does not change and no undo step is recorded: `t`, `dx` and `dy` in
|
||||
`path.reshapeSegment` and `object.blend.spine.reshapeSegment`; `x`, `y` and `t` in `path.curvatureEdit`; `x` and `y`
|
||||
in `path.convertAnchor`; `t` in `path.insertAnchor`; `fidelity` and the `within` of `redraw` in `path.freehand` (and in
|
||||
`brush.freehand`, which runs it); `size`, `sizeVariation`, `angle` and `roundness` in `path.eraseRegion`;
|
||||
`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`;
|
||||
and `dx`, `dy`, `tol` and `radius` in `path.reshape`. A null is read as a key left out. `path.convertAnchor` refuses
|
||||
@@ -5694,7 +5782,17 @@ the colour bars are process, spot and black-tint patches. Layers whose Print opt
|
||||
The Output and Advanced sections convert colours and write real text. `output: {conversion, destination}` converts
|
||||
every colour into the destination profile's model (`destination`; CMYK of another profile too) or only the colours of
|
||||
the other model (`preserveNumbers`: colours already in it keep their numbers); grey stays grey, images are converted
|
||||
too and printer's marks are not. The destination is any profile `edit.colorSettings` lists (default: the document's
|
||||
too and printer's marks are not. With `destination` and an sRGB destination, a gray or RGB image that carries an
|
||||
ICC profile is converted from that profile to sRGB with the color settings' intent and written without
|
||||
it, at 16 bits a sample when it has them, is not resampled or recompressed and the file is PDF 1.5 or later (an image
|
||||
whose profile the color engine can't read, or whose pixels can't be decoded, keeps its profile, with a warning); without
|
||||
conversion it keeps its profile. With `destination` and a CMYK destination, or an RGB one other than sRGB that images
|
||||
are converted to, an RGB image that carries an ICC profile is converted from that profile to sRGB with the same intent
|
||||
and then to the destination, instead of having its numbers read as sRGB (a profile the color engine can't read leaves
|
||||
them read as sRGB, with a warning); a gray image keeps its profile, as gray is not converted. An RGB destination other
|
||||
than sRGB that is the document's own RGB profile leaves RGB colors and RGB images as they are, so a tagged RGB image keeps its profile
|
||||
there.
|
||||
`preserveNumbers` still reads an image's numbers as sRGB. The destination is any profile `edit.colorSettings` lists (default: the document's
|
||||
for its colour mode). `profiles` (`all`, `destination`, or `taggedSource` for a document assigned profiles with
|
||||
`edit.assignProfile`) writes colours in ICC-based spaces with their profiles embedded: CMYK with the destination's or
|
||||
the document's CMYK profile, RGB as sRGB, grey with the sRGB tone curve (PDF/A, PDF/X-3 and PDF/X-4 files are
|
||||
@@ -6364,7 +6462,10 @@ desktop app) instead and undoes nothing ([the help page](https://helpx.adobe.com
|
||||
From the Selection, Direct Selection, Group Selection, Magic Wand, Lasso or Perspective Selection tool it chooses the
|
||||
drawing tool chosen last in the window, or the Pencil tool when none has been chosen yet; from any other tool it
|
||||
chooses the Selection tool, and the tool left becomes the drawing tool unless it is the Hand, Rotate View, Zoom or Print
|
||||
Tiling tool. It returns `{tool}` and adds no undo step. Pencil as the first drawing tool and the list of selection tools
|
||||
Tiling tool. It returns `{tool}` and adds no undo step. When the tool cannot be chosen it returns the error, the tool
|
||||
and the drawing tool stay as they were, and it adds no undo step; `tool.select`, `ui.cropImage`,
|
||||
`addon.pathtools.cornerTool` and `addon.pathtools.sharedEdgeTool` also return the error when their tool cannot be
|
||||
chosen. Pencil as the first drawing tool and the list of selection tools
|
||||
are VectorCraft's own rules. A tap in Presentation Mode runs nothing. Under VectorCraft's own rule, a tap on the canvas
|
||||
while a modal dialog is open runs nothing, and fingers already down when it opens make no tap when they lift, during
|
||||
the dialog or after it closes.
|
||||
@@ -6817,7 +6918,8 @@ where it is.
|
||||
`window.control.options {group, visible?}` (desktop app) turns a group of the Control bar's options on (`visible:
|
||||
true`), off (`false`) or toggles it (omitted), and returns `{group, visible}`. The groups are `snapping` (the Snapping
|
||||
menu), `anchors` (Convert and Anchors), `toolOptions` (the active tool's options), `objectOptions` (Isolate Selected
|
||||
Object or Exit Isolation Mode, the envelope controls and the symbol instance controls), `imageOptions` (a selected
|
||||
Object or Exit Isolation Mode, the envelope controls, the symbol instance controls and Select Similar Objects),
|
||||
`imageOptions` (a selected
|
||||
image's or Image Trace object's controls), `fillStroke` (the fill and stroke chips, Stroke and its weight and width
|
||||
profile), `opacity`, `graphicStyle` (Style, Recolor Artwork and Global Edit Options), `character`, `paragraph`,
|
||||
`verticalAlignment` (area type's vertical alignment), `alignDistribute`, `transform` (the Transform link and the X/Y/W/H
|
||||
@@ -6945,6 +7047,23 @@ with `pointer_gesture` (a click places at 100% with the top-left corner there, a
|
||||
`file.place.info` refuse, of the keys each one takes, a `link`, `replace` or `template` that is not true or false and a `thumbnail` that is not a
|
||||
number, naming the key, and place nothing; null is the same as leaving the key out.
|
||||
|
||||
In the app, `file.place` asks for a file's import options before placing it: a text file without `text` (Text Import
|
||||
Options), a DXF drawing without `dxf` (DXF Import Options), and a PDF, `.ai` or `.ait` file with several pages or a
|
||||
password and no `page` (Place PDF). `showImportOptions: false` places such a file without asking, with the options
|
||||
last confirmed in its dialog: the text options, and the DXF fit, lineweight, centering and layer choices with the
|
||||
drawing at 1:1 in its own unit. A PDF is placed on page 1 (or `page`) and its crop box, and an encrypted PDF given no
|
||||
`password` still asks for the password. A `showImportOptions` that is not true or false is refused, and nothing is placed. The
|
||||
Place dialog (File › Place, or `file.place {paths}`) has a Show Import Options checkbox after Link, Template and
|
||||
Replace ([Place multiple files in a document](https://helpx.adobe.com/illustrator/desktop/add-and-import-files/import-other-file-types/place-multiple-files-in-a-document.html)).
|
||||
It is on by default and saved with the preferences. On, each file that has import options asks for them before it is
|
||||
placed, also each file of the place cursor when it is clicked or dragged (Cancel leaves that file unplaced). A click on
|
||||
a PDF or DXF file places it as its options place it with `at` at the center of the box the click gave (a PDF's page at
|
||||
its own size, a DXF drawing at its scale, or on the artboard there when fitted or not centered), and a drag to any other
|
||||
size fits it into the dragged box (a drag to exactly the file's queued size gives the place tool the same box as a click and
|
||||
is placed as one). Off, each
|
||||
file is placed with the options last confirmed for its format. The default, and the options a file is placed with
|
||||
when the checkbox is off, are VectorCraft's own choices.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"file.place","params":{"path":"/tmp/photo.jpg","at":[300,200]}}}
|
||||
{"name":"run_command","arguments":{"command":"file.place","params":{"name":"logo.svg","dataBase64":"PHN2Zy…","rect":[0,0,100,100]}}}
|
||||
@@ -9269,13 +9388,20 @@ as outlines.
|
||||
`fwid`, `hwid`, `twid` or `qwid` ([feature list](https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist)),
|
||||
or `"default"`, the font's default glyphs. A character holds one form at a time, so setting one replaces another. The
|
||||
text keeps its characters, and a character the font has no glyph of that form for keeps its own. Runs that differ only
|
||||
in their form are shaped as one piece of text. The form is saved only when it is not `"default"`, character styles
|
||||
carry it, PDF draws the glyphs the canvas draws, and live SVG text writes it in `font-feature-settings`. Another value
|
||||
is refused with `` `glyphForm` must be one of "traditional", … ``. One undo step, and a `text.setFormat` call that
|
||||
gives the form the characters already have records none. With Show East Asian Options on, the Glyphs panel menu lists
|
||||
the ten forms and Revert To Default Forms: a form is checked when every selected character has it, choosing it again
|
||||
does nothing, and it is disabled when none of the faces that draw the selected text, fallback faces included, has a
|
||||
feature for it.
|
||||
in their form are shaped as one piece of text. A form other than `"default"` also takes away the characters' glyph
|
||||
choice (`text.setGlyphAlternate`), which would otherwise keep drawing its own glyph; `"default"` keeps it. The four
|
||||
width forms set the characters on a fixed width, so Proportional Metrics (`palt`) is not applied with them and the
|
||||
font's pair kerning (`kern`, `apkn`) is turned off, in shaping and in SVG output (`font-kerning: none`);
|
||||
`proportionalMetrics` and `kerning` keep their values. The form is saved only when it is not `"default"`, character
|
||||
styles carry it, PDF draws the glyphs the canvas draws, and live SVG text writes it in `font-feature-settings`. Another
|
||||
value is refused with `` `glyphForm` must be one of "traditional", … ``. One undo step, and a `text.setFormat` call
|
||||
that gives the form the characters already have records none. With Show East Asian Options on, the Glyphs panel menu
|
||||
lists the ten forms and Revert To Default Forms. They act on the Type tool's selected range, all the text of the object
|
||||
at a caret, or all the text of the selected type objects. A form is checked when every one of those characters has
|
||||
it, and choosing it again does nothing unless one of them has a glyph choice, which the form takes away. A form is
|
||||
disabled when none of the faces that draw the selected text, fallback faces included, has a feature for it: a `GSUB` feature, or for the width
|
||||
forms a `GSUB` or `GPOS` feature
|
||||
([fwid](https://learn.microsoft.com/en-us/typography/opentype/spec/features_fj#tag-fwid)).
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"text.setRangeStyle","params":{"id":12,"start":0,"end":3,"glyphForm":"jis78"}}}
|
||||
@@ -9758,7 +9884,9 @@ neighbors, the kerning of the two characters keeps it and the characters after i
|
||||
wider or narrower character moves the characters after it by the change in its width. Touch Type gives the character
|
||||
before it a kerning value of its own (with `dx`, and with any other change where the font kerned the character with
|
||||
its neighbors), and that character can then move by the font's kerning pair with the one before
|
||||
it, as with any style change to one character (`text.setRangeStyle`). The type stays editable.
|
||||
it, as with any style change to one character (`text.setRangeStyle`). The type stays editable. The characters of type
|
||||
on an open path that are not drawn because they fall before the path's start cannot be selected with the tool, and
|
||||
`text.touchType` returns an error for them.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"text.touchType","params":{"id":7,"start":1,"dx":10,"dy":4}}}
|
||||
@@ -9848,9 +9976,10 @@ same in any language. Saved documents keep what they say, and imported text (PDF
|
||||
|
||||
Type on a path flows between a start and an end bracket, stored as fractions of its path's length.
|
||||
`type.pathOptions {start?, end?, flip?, effect?, alignToPath?, spacing?, ids?}` sets them and the rest of Type on a
|
||||
Path Options: `end: null` puts the end bracket back at the end of the path (or once round a closed one); `flip`
|
||||
then turns the type to the other side of its path, the path running the other way and the brackets swapping ends so
|
||||
the type keeps its stretch of the path; `alignToPath` runs the `ascender`, `descender`, `center` or `baseline` (the
|
||||
Path Options: `end: null` puts the end bracket back at the end of the path (or once round a closed one); on an open
|
||||
path a `start` below 0 starts the text that far before the path's start (on a closed path it is the path's start);
|
||||
`flip` then turns the type to the other side of its path, the path running the other way and the brackets swapping
|
||||
ends so the type keeps its stretch of the path; `alignToPath` runs the `ascender`, `descender`, `center` or `baseline` (the
|
||||
default) along the path, each character by its own font, size and vertical scale: `ascender` runs the top of the
|
||||
font's em box along it (its ideographic em box, else an em box centered on the cap height), `descender` runs the
|
||||
bottom of the font's bounding box along it, and `center` runs a line at half the height of the top of the font's H
|
||||
@@ -9863,6 +9992,13 @@ show selected type on a path's brackets: dragging the start or end bracket (`poi
|
||||
begins or ends, dragging the centre bracket slides the type along its path and, dragged across the path, flips it
|
||||
(with Cmd/Ctrl held it only slides). Each is one undo step.
|
||||
|
||||
Type on an open path that starts before the path's start keeps every character, and the characters whose middle falls
|
||||
before the path's start are not drawn. A `flip` starts it at the start bracket, and dragging the center bracket slides
|
||||
it from where it starts and no further before the path. Past the path's end, text that does not fit is overflow, as
|
||||
for other type on a path. SVG import reads a `<textPath>` anchored or offset before an open path's start this way, and
|
||||
SVG export writes it as a negative `startOffset`. Releasing it to point type keeps the first drawn character where it
|
||||
was drawn.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"type.pathOptions","params":{"start":0.25,"end":0.75,"flip":true}}}
|
||||
```
|
||||
@@ -12227,10 +12363,11 @@ VectorCraft addition and changes no parity score.
|
||||
the path's fill and stroke), so the released path has no fill and no stroke.
|
||||
- **The text** keeps its runs with their character attributes and its paragraph attributes, and becomes point type on
|
||||
one straight line along the object's own axis, with the baseline starting where the first character sat on the path
|
||||
(type with no characters starts at its start bracket). Type on a Path Options (effect, align to path, spacing, flip,
|
||||
brackets) don't apply to point type and are dropped. Type with Dynamic Text on (`type.dynamicText`) becomes point
|
||||
type with it off, at the sizes it was drawn at: each size, leading and baseline shift is multiplied by the fit factor.
|
||||
Without `keepOriginal` the type object itself becomes the point
|
||||
(type with no characters starts at its start bracket; type that starts before an open path's start keeps its first
|
||||
drawn character where it was drawn, with the characters that were not drawn before it). Type on a Path Options
|
||||
(effect, align to path, spacing, flip, brackets) don't apply to point type and are dropped. Type with Dynamic Text
|
||||
on (`type.dynamicText`) becomes point type with it off, at the sizes it was drawn at: each size, leading and
|
||||
baseline shift is multiplied by the fit factor. Without `keepOriginal` the type object itself becomes the point
|
||||
type, keeping its id, so a frame of threaded text leaves its thread with the text it holds, as
|
||||
`type.convertToPointType` does for area type.
|
||||
- It acts on the type on a path among `ids` (or `id`, else the selection), groups included; other objects are left
|
||||
@@ -12272,6 +12409,7 @@ the error text. The interactive fallback applies only to ordinary File > Save, n
|
||||
|
||||
| Date | Change |
|
||||
|---|---|
|
||||
| 2026-11-14 | Built-in Tech Circuit brush library (id `tech-circuit`): Circuit Trace, Bus Lines and Terminal Nodes; ten built-in libraries. |
|
||||
| 2026-11-13 | The Pencil ignores Smart Guides and Snap to Point and shows no Smart Guides; Snap to Grid and Snap to Pixel still move its ends (#7252). |
|
||||
| 2026-11-13 | `path.freehand`: `closed`, when given, decides whether a stroke that continues a path (`extend`) closes it; the Pencil and the Paintbrush send it by Close Paths When Ends Are Within. |
|
||||
| 2026-11-13 | Snap to Point with Smart Guides off draws no Smart Guides labels or lines (#7250). |
|
||||
|
||||
Reference in new issue
Block a user