Merge remote-tracking branch 'origin/main' into auto/8001

This commit is contained in:
bflatastic
2026-11-20 03:59:09 +07:00
212 changed files with 13708 additions and 724 deletions
+7 -4
View File
@@ -272,10 +272,13 @@ My Themes tab lists the saved themes; every action runs a command (`colorTheme.s
Color Wheel panel (`window.panel {panel: "colorWheel"}`): a hue ring around a saturation and brightness square. A
pick runs the commands the Color panel's sliders run: `paint.setFill` or `paint.setStroke` with `keepModel`,
`paint.editGradient` for a gradient's selected stop, and `paint.freeform.setPoint` for a freeform gradient's selected
point (the first stop or point when none is selected). `ui.colorWheel {view?, channel?, harmony?, harmonyRule?, vision?}`
shows the wheel or the box (a color field with a channel strip at its right), picks the box's channel, shows the
other colors of a harmony rule as markers on the wheel's ring, and shows or hides the color vision row; it returns
the settings, and `ui.inspect` reports them as `ui.color_wheel`.
point (the first stop or point when none is selected). `ui.colorWheel {view?, channel?, sliders?, gamut?, harmony?,
harmonyRule?, vision?}` shows the wheel or the box (a color field with a channel strip at its right), picks the box's
channel, shows OKLCH Sliders, HSL Sliders or neither, grays out the colors the CMYK space cannot print, shows the
other colors of a harmony rule as markers on the wheel's ring, and shows or hides the color vision row; it returns the
settings, and `ui.inspect` reports them as `ui.color_wheel`.
The key `sliders` takes (`"oklch"`, `"hsl"` or `"none"`; `"oklch"` is an error while the active document's RGB space, its assigned
profile or else the working RGB space, is not sRGB), and the settings carry it too.
Edit Colors dialogs: `ui.colorBalanceDialog` opens Adjust Colors (`colorBalance`: fields `mode` `gray`/`rgb`/`cmyk`/
`global`, the channels `r` `g` `b` / `c` `m` `y` `k` / `gray` / `tint` (global mode) from −100 to 100, `convert`, `fill`, `stroke`,
+1 -1
View File
@@ -24,7 +24,7 @@ Part of [target-app-parity.md](target-app-parity.md); open work is in [gaps.md](
| Crop Marks | Crop Marks | 1/1 | — |
| Distort & Transform | Free Distort, Pucker & Bloat, Roughen, Transform, Tweak, Twist, Zig Zag | 7/7 | Free Distort's dialog has a handle on each corner of the object's bounds, moved by dragging or with the arrow keys; Zig Zag's ridges are evenly spaced along each segment (#1558), and Smooth points make a continuous wave whose peaks and valleys have handles along the path (#2343); Roughen with Smooth keeps turn-backs smooth instead of cusps that draw as spikes (#1646); Expand Appearance of a path whose Transform effect makes copies gives a group of one object per copy, each painted as the path, and a second Transform effect's copies nest in a group per copy of the first (#5612); drawn, each copy of a path with a fill and a stroke (or several, an even-odd fill or a partly transparent one) paints below the one before, the fills above covering the strokes of the copies below, instead of one path of every copy (#5920), and a group's copies each hold all its members except guides, the original group on top (#6316); a clipping group, a group with a fill or stroke of its own, a group whose type is kept as type, and a group with a member that carries a geometry, Pathfinder or 3D effect copy each member in its place; Twist's handles follow the rotation's derivative, so a strongly twisted path is a smooth spiral without kinks where its pieces join (#7069, `twist_joins_its_pieces_smoothly`). |
| Path | Offset Path, Outline Object, Outline Stroke | 3/3 | With Use Preview Bounds on, Align, Distribute and the Transform panel still measure type that carries Outline Object by its layout box (preview bounds leave out effects) |
| Pathfinder | Add, Intersect, Exclude, Subtract, Minus Back, Divide, Trim, Merge, Crop, Outline, Hard Mix, Soft Mix, Trap | 13/13 | Trap traps only solid fills (gradients and patterns hide what is below them but don't trap) and spreads each colour's visible area as a whole; the public page gives no default values, so Trap's 0.25 pt, 100% and 40% are VectorCraft's own |
| Pathfinder | Add, Intersect, Exclude, Subtract, Minus Back, Divide, Trim, Merge, Crop, Outline, Hard Mix, Soft Mix, Trap | 13/13 | Trap traps only solid fills (gradients and patterns hide what is below them but don't trap) and spreads each colour's visible area as a whole; the public page gives no default values, so Trap's 0.25 pt, 100% and 40% are VectorCraft's own; each of the other Pathfinder effects keeps its own Precision, Remove Redundant Points and Divide and Outline Will Remove Unpainted Artwork, taken from Pathfinder Options when applied and edited in Pathfinder Options opened from its Appearance panel row ([Pathfinder effects](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/combine-objects-using-pathfinder-effects.html)) |
| Rasterize | Rasterize… (as a live effect) | 1/1 | — |
| Stylize | Drop Shadow, Feather, Inner Glow, Outer Glow, Round Corners, Scribble | 6/6 | Scribble Options' Settings presets |
| SVG Filters | Apply SVG Filter… and the filter list | 1/1 | The submenu lists 14 default filters and then the document's own; the public page names no default set, so the set, names and values are VectorCraft's own, and a default is copied into the document when it is applied or edited. A filter that is the object's last effect is written to SVG as a `<filter>` element; otherwise SVG export draws the object as an image. A filter on a turned, skewed or unevenly scaled object in an imported SVG is kept and runs in that object's user space, and SVG export writes it back under the same transform. A blur or drop shadow that blurs more in one direction than another in the document (two different standard deviations, or one in a skewed or unevenly scaled user space) is kept as this effect rather than opened as an even Gaussian Blur or Drop Shadow |
+11 -3
View File
File diff suppressed because one or more lines are too long
+200 -31
View File
@@ -675,20 +675,37 @@ objects' fills or strokes differ (`fillMixed` / `strokeMixed`, drawn as a "?" pr
In the app's Color panel and Color Picker, RGB, HSB, hex and Web Safe RGB values describe the active working RGB
space. RGB edits preserve the other native channels; HSB uses those same working RGB components. Colors outside
display sRGB retain their native numeric values. `ui.colorPanel` selects the panel mode and `ui.colorPicker`
opens the picker through `run_command` with the remote backend. `ui.colorPanel {"recentColors": false}` unchecks
the panel menu's Show Recent Colors, which hides the Color panel's Recent Colors row, and `true` shows it again;
applied colors still join the list while it is hidden. `ui.colorPanel {"rgbPercent": true}` shows the Color panel's
RGB fields in percent, as a double-click right of an RGB field does, and `false` shows them from 0 to 255 again.
`ui.colorRgbPercent` (Toggle RGB Percent in the command palette and Keyboard Shortcuts) switches between the two
and answers true when the fields show in percent.
opens the picker through `run_command` with the remote backend. Edit › Keyboard Shortcuts lists `ui.colorPicker` as
Color Picker… with no default key; a key assigned there opens the picker for the proxy in front, as `{}` does.
`ui.colorPanel {"recentColors": false}` unchecks the panel menu's Show Recent Colors, which hides the Color panel's
Recent Colors row, and `true` shows it again; applied colors still join the list while it is hidden.
`ui.colorPanel {"rgbPercent": true}` shows the Color panel's RGB fields in percent, as a double-click right of an RGB
field does, and `false` shows them from 0 to 255 again. `ui.colorRgbPercent` (Toggle RGB Percent in the command
palette and Keyboard Shortcuts) switches between the two and answers true when the fields show in percent.
`ui.colorWheel {"view": "box", "channel": "red"}` shows the Color Wheel panel's box (a color field with the channel's
strip at its right) in place of the wheel, as the panel menu's Box View and Box Channel do, and `"view": "wheel"`
shows the wheel again. `{"harmony": true, "harmonyRule": "triad"}` puts a marker on the wheel's ring for each other
shows the wheel again. `"gamut": true` grays out the parts of the wheel's square and the box's field whose colors
the CMYK space cannot print, as the panel menu's Show Out-of-Gamut Colors does, and `false` shows them again. The
test is the out-of-gamut warning's, which `color.gamutCheck` answers for one color. The shading is approximate: the
panel tests the color at the center of each cell of a 16 by 16 grid over the square or the field and grays out the
whole cell or none of it, so a grayed cell can hold printable colors and a clear cell can hold colors that cannot
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, harmony, harmonyRule, vision}`,
the list return an error and change nothing. The command returns `{view, channel, sliders, gamut, harmony, harmonyRule, vision}`,
and the settings are kept with the preferences.
`ui.colorWheel {"sliders": "oklch"}` shows the Color Wheel panel's OKLCH Sliders (L, C and H rows under the wheel or
the box), and `"none"` hides them in any RGB space. `"oklch"` is an error while the active document's RGB space is
not sRGB: the profile assigned to the document when it has one, else the working RGB space of Edit › Color Settings.
`ui.colorWheel {"sliders": "hsl"}` shows HSL Sliders in their place: H, S and L rows with the hue (0 to 360°),
saturation and lightness (0 to 100 %) of the color's display sRGB, as CSS Color 4's `hsl()` defines them.
`color.convert {"color": "#ff0000", "to": "oklch"}` answers the color's OKLCH as `[L %, C, H°]` of its display sRGB.
A color outside sRGB (a Lab or CMYK color, an RGB color in a wider RGB space, or RGB numbers past 0 to 1) is clipped
to sRGB first.
The answer of `ui.colorWheel` and the settings also carry `sliders`.
`ui.colorWheel {"vision": true}` turns on the Color Wheel panel's Show Color Vision Preview, as its panel menu
does: a row of four chips under the wheel or the box shows the current color through the protanopia, deuteranopia
and tritanopia simulations of `view.proofSetup`, and for achromatopsia as the gray with the color's CIE L*. Each
@@ -1620,7 +1637,12 @@ their stop opacity and stop where the shading doesn't extend. Text becomes point
the file's font (by name; fonts that aren't available are listed in `warnings` and show in the fallback font, and
every export that draws that type — PDF, EPS, EMF/WMF, raster images, SVG with outlined or embedded fonts — says in
its `warnings` that it wrote the fallback font) — `textAs: "outlines"` keeps the glyph outlines the file draws instead
(its embedded fonts, installed or not). Lines wrapped in a frame (each wrapped line ending in a space, sharing a left
(its embedded fonts, installed or not). In the app, the Import PDF and Place PDF dialogs' Text choice (Editable or
Outlines) sends `textAs`; for a PDF it starts from the `pdfTextAs` preference and OK keeps the choice there (a
`.ai` or `.ait` file starts from Editable). Outlines clears
Import PDF pages as links, and a linked place dims the choice: a linked page shows the file's own text. A PDF that opens
or is placed embedded without the dialog (one page, or Show Import Options off) takes `pdfTextAs` when its params
give no `textAs`; a `.ai` or `.ait` file, and an open with `linkPages`, open as their params say. Lines wrapped in a frame (each wrapped line ending in a space, sharing a left
edge, font and leading) come back as one area type object, left aligned or justified, where laying it out breaks the
lines where the file does; a stroke written as each glyph's outline stroked is the type object's stroke; glyphs set
apart by gaps wider than a space keep their places. Strokes stay live strokes (width, cap, join, miter limit, dash and paint), and
@@ -2335,7 +2357,7 @@ naming the key, and leave the document and its undo history as they were: `opaci
The blend and envelope commands refuse a string, a number or another value that is not true or false with
`` `smooth` must be true or false ``, naming the key, and leave the document, its undo history and the options new
blends and envelopes start with as they were: `smooth` in `object.blend.make` and `object.blend.options`;
`independent` and `link` in `object.blend.spine.moveAnchor`; `perpendicular` in `object.blend.spine.reshapeSegment`; `horizontal`
`independent`, `symmetric` and `link` in `object.blend.spine.moveAnchor`; `perpendicular` in `object.blend.spine.reshapeSegment`; `horizontal`
in `object.envelope.makeWithWarp`, `resetWithWarp` and `options`, also when an `orientation` is given; `maintainShape`
in `object.envelope.resetWithMesh`; `antiAlias`, `distortAppearance`, `distortLinearGradients` and
`distortPatternFills` in `object.envelope.options`; and `editing` in `object.envelope.editContents`. A null is read as
@@ -3482,6 +3504,16 @@ enabled while the document has a saved view. In the desktop app the views are li
checked when it opens: past 25, blank or repeated names, and views without a finite centre and a positive zoom are
dropped.
## Recent commands
Help › Search Commands… keeps the last commands, tools, panels and effects picked from it, most recent first: an
empty search lists them, and so does the Recent Commands list beside the search field. The desktop app saves the ids
with the UI state, and also how many times each command was picked, which ranks the results.
`help.clearRecentCommands {}` (Clear Recent Commands) empties the list, the saved ids and the pick counts, and
returns `null`. A pick of it in the search is not kept as a recent pick or counted. It is a UI command, so it needs
the desktop app (`--connect`); `command_list` gives it `enabled: false` while no ids and no counts are saved. Saved ids
the list leaves out, such as those of a plug-in that is not loaded, count as saved and are cleared with the rest.
## Messages over the window
`app.toast {message, level?, seconds?}` shows a short message over the desktop app's window without stopping work
@@ -3881,23 +3913,34 @@ already walks Image Trace. Short agent entry points:
[the archived manual](https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=118)):
`symbol.adjust` takes `method` (`userDefined`, `average` or `random`; not used by `shift`), `usePressure` with
`points` as `[x, y, pressure]` (each point's pen pressure, 0..1, is the intensity there), and for `size`
`proportional` (true) and `affectsDensity` (false). `symbol.spray` takes `attributes`
`proportional` (true) and `affectsDensity` (false). With `tool: style`, the style goes on by the brush's strength at
each instance: one sample applies it in full only at the brush's center at intensity 10 or full pressure, and the
samples of a stroke add up (two samples at the center at intensity 5 apply it in full). With `alt`, `userDefined`
and `random` remove all of an instance's appearance items under the brush at once, whatever the brush's strength.
A `style` name the document
has no graphic style for counts as none (the document's first style after the default one). The Symbol Styler and the
Symbol Sprayer (its User Defined Style) send the style last clicked into the Graphic Styles panel's selection. `tool.setOption` on a symbolism tool refuses a `method` or
Symbol Sprayer option that is not one of its names, a non-number `diameter`, `intensity` or `density`, a
`diameter` outside 2..2000 or an `intensity` or `density` outside 1..10, a non-boolean switch, and a `symbol` or
`style` that is neither a name nor null, and sets none of the values. The options dialog's OK checks the same way
before it changes any symbol set's density.
`symbol.spray` takes `attributes`
`{scrunch?, size?, spin?, screen?, stain?, style?}`, each `average` or `userDefined`, with `color`, `keepModel` and
`style` for the User Defined stain and style (with `style: userDefined`, a `style` the document does not have is an
error). `symbol.setDensity {from, to, ids?|id?}` gives the selected symbol
sets a new Symbol Set Density. VectorCraft's own rules:
- `random` gives each instance its own share of the tool's change for the whole stroke, from none of it to twice
it (the Spinner: a turn either way), the same each time the stroke is applied.
it (the Spinner: a turn either way; the Styler without `shift`: from none to the `userDefined` amount), the same
each time the stroke is applied.
- `average` moves each instance's value toward the mean of the instances within the brush at that point: the
Scruncher its distance from their middle toward their mean distance, the Sizer the geometric mean of their sizes
on the page, whatever their symbols, the Spinner their mean direction, the Stainer and the Styler their mean amount, the Screener their mean opacity.
`alt` does not reverse it. An instance already at the mean is left as it is, and no undo step is added when
no instance changes. The Screener's average, and the opacity a sprayed instance takes as its average, can be
below the 5% that the Screener otherwise stops at.
- With `userDefined` the Styler gives each instance under the brush the whole style, whatever the intensity or the
pen pressure; `random` scales each instance's share by the brush strength there.
- With `proportional` false a drag resizes along its own direction (a level drag the width, an upright one the
height) and one point resizes both. With `affectsDensity` an instance also moves away from the point as it grows
- With `proportional` false a drag resizes along its own direction: the width by the drag's horizontal share and
the height by its vertical share (a level drag the width, an upright one the height, a 45° drag both alike), and
one point resizes both. With `affectsDensity` an instance also moves away from the point as it grows
and toward it as it shrinks.
- A sprayed instance's `average` values are the means of the selected set's instances within `radius` of the
stroke point: their spacing, size on the page (of any symbol), rotation and opacity, and the stain or style of
@@ -3907,15 +3950,31 @@ already walks Image Trace. Short agent entry points:
- `symbol.setDensity` moves each instance of a set along the line from the middle of the set's instances, to
(1.15 − 0.1·`to`) / (1.15 − 0.1·`from`) of its distance from it (each factor at least 0.1), as one undo step, and
adds none when no instance moves and every set already has density `to`. `from` is the density each set was
created at or last given, and the `from` passed applies only to a set without one (a group named "Symbol Set" by
created at or last given (a set duplicated has its source's, and a pasted set the one its source had at Copy),
and the `from` passed applies only to a set without one (a group named "Symbol Set" by
hand); every set then has density `to`, also one whose instances do not move (one instance, or each locked). A
locked or hidden instance stays where it is. It returns `{ids, count}`: the sets changed and the
instances moved.
- A `method` or an attribute outside these values, a point's third number that isn't a number (in `symbol.spray`
too, which does not use it), a `from` or `to` of `symbol.setDensity` outside 1..10, or no symbol set among its
objects, is an error and changes nothing.
objects, is an error and changes nothing. `symbol.spray` takes a `density` number outside 1..10 as the nearer end.
- Average leaves an instance without a size (a scale of 0) as it is; the other methods change it. A stroke that
changes no instance counts none and adds no undo step.
- The symbolism tools with Shift held ([the manual](https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=199),
[the CS6 reference](https://web.archive.org/web/20220911143322/https://helpx.adobe.com/pdf/cs6/illustrator_reference.pdf#page=136)) send
`shift: true` with `symbol.adjust`: a Shift-click with the Symbol Shifter brings the instances under the brush
forward in the stacking order and Alt+Shift sends them backward; the Symbol Sizer keeps the set's density while it
resizes; the Symbol Stainer and the Symbol Styler keep the amount of stain or style and move the color or style
toward the current fill or the selected style. VectorCraft's own rules:
- The Shifter moves each instance within `radius` of any stroke point one place forward among its siblings (with
`alt`, one place backward), past the next one that is not under the brush, once for the whole stroke. It does not
move them on the canvas. It returns `{count}`, the instances that moved.
- The Sizer keeps each instance's center where it is, even with `affectsDensity`.
- The Stainer moves an instance's paint toward `color` by the tool's amount at its distance from the point, and the
Styler toward the style by the brush's strength there, whatever `method` is. A paint with no form between it and
the new one (a solid color and a pattern) takes the new one at once. An instance without a stain or style is left
as it is, and `alt` has no effect.
- No undo step is added when nothing moves or changes.
- Dynamic symbols: an instance of a symbol whose `type` is `dynamic` changes the appearance of objects in the symbol's
art for itself only and stays linked. `symbol.instance.setAppearance {id?, path, fill?, stroke?, opacity?, blend?}`
names the object by `path`, child indices in paint order from the art's root down through its groups (`[]` is the
@@ -4768,7 +4827,13 @@ already walks Image Trace. Short agent entry points:
Appearance panel's active row changes. The Fill and Stroke proxies (`paint.proxies`) show those colors, never mixed, the Stroke panel shows
that stroke as it does with nothing selected, and with New Art Has Basic Appearance off the selection's appearance
does not replace them after a command. They are also the fill and stroke for new art, so another tool chosen
afterwards keeps them until a command or a new selection changes them.
afterwards keeps them until a command or a new selection changes them. All of this also holds while a Cmd/Ctrl-click
with the bucket uses the Selection tool, and while the Eyedropper samples into a stop of the bucket's gradient for
the Gradient panel's eyedropper (`tool.select {tool: "eyedropper"}`, then
`tool.setOption {tool: "eyedropper", values: {stop: "livePaintBucket"}}`): the stop
stays selected, and the click's `paint.sampleColor {color, stop}` recolors that stop of the bucket's gradient and
leaves the selection's paint as it is. Once that stop is no longer selected (a Cmd/Ctrl-click selected another
object), the next click ends the pick without sampling and switches back to the bucket.
With the Live Paint Bucket selected and no drag in progress, Left and Right without Shift, Alt or Cmd/Ctrl (which
keep their shortcuts) run `paint.setFill {swatch, ids: []}` (or
`paint.setStroke` when the Stroke proxy is in front) with the color swatch before or after the active paint in the
@@ -5748,12 +5813,15 @@ error.
## Brush libraries
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
Brush libraries are read-only sets of brushes: fifteen 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, Decorative with Leaf Vine, Blossom Chain, Pennant Garland and Lantern String, 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`, 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).
`brush.library {library}` returns one's brushes (`name`, `type`; `library` is an id or a name). A name
that a built-in library and a User Defined or loaded library share selects the built-in one; select the other by its
`user/…` or `loaded/…` id. The exact id `artistic` selects the built-in Artistic Brushes library, and `Artistic`
selects it too when no library is named `Artistic`.
`brush.addFromLibrary {library, name? | names?}` copies brushes into the document's Brushes as one undo step (no
names: the whole library), with the resources their art uses: patterns, symbols, swatches (`swatchConflict` as for
`edit.paste`), graphic styles and images. Brushes the document already has (same name and definition) are reported
@@ -6060,6 +6128,26 @@ at the back in Minus Front, or a line in front in Minus Back), the error says so
{"name":"run_command","arguments":{"command":"object.pathfinder.options","params":{"precision":0.1,"removeUnpainted":true}}}
```
Each Effect › Pathfinder effect (`pathfinder.add` … `pathfinder.softMix`, not Trap) keeps Pathfinder Options of its own
in its params: `precision` (a number, 0.001–10 pt), `removeRedundantPoints` and `removeUnpainted` (true or false), which
mean what they mean for the panel's operations; the other operations ignore `removeUnpainted`. With `removeUnpainted`
on, a compound shape's area counts as filled when the shape has a visible fill of its own, and Divide keeps every piece
when the group or compound shape has one. Outline strokes a compound shape's area in the shape's own fill. `effect.apply`
fills the ones `params` leave out from the current Pathfinder Options, and the values join its journal entry. An effect
saved without them evaluates with precision 0.01 and both switches off, as before effects kept them. `effect.setParams
{index, params: {precision?, removeRedundantPoints?, removeUnpainted?}}` edits them as one undo step; values the
effect already evaluates with record no undo step and return `{ids: []}`. A precision out of range, or a switch that
isn't true or false, is refused with an error and nothing changes. Scale Strokes & Effects scales `precision` with the
object (0.01 when it is missing), and the stored value may then pass 10 or fall below 0.001; the effect evaluates at
the nearest bound, and setting a precision that differs from the stored one is an edit, the bound included. In the app,
a Pathfinder effect's name or a double-click on its row in the Appearance panel opens Pathfinder Options for it (Soft
Mix's dialog also has Mixing Rate). A stored precision out of range opens at the bound, and OK keeps the stored value
unless Precision is set.
```json
{"name":"run_command","arguments":{"command":"effect.setParams","params":{"index":0,"params":{"precision":1,"removeRedundantPoints":true}}}}
```
Compound shapes (the Pathfinder panel menu, and Alt-clicking a Shape Mode button): `object.compoundShape.make
{mode?, ids?}` makes the two or more selected objects (paths, compound paths, groups, compound shapes, type, blends,
envelopes) the members of one live compound shape, each in shape mode `mode` (`"add"`, the default, `"subtract"`,
@@ -6747,6 +6835,14 @@ is not a whole number of 0 or more, such as 1.5, -1 or "1" ("`subpath` must be a
an `anchor` or `segment` in the same way. The document does not change and no undo step is recorded.
`path.moveAnchor` to the point the anchor is at, and `path.setHandle` to the point the handle is at on an anchor that
keeps its kind, leave the document as it is and record no undo step.
`path.setHandle` with `symmetric: true` also places the anchor's other handle opposite the moved one at the same
length, and the anchor keeps its kind. At an open end, where no segment leaves the anchor on the other side,
`symmetric` has no effect and the handle moves as it would without it. Both `symmetric` and `independent` default to false, and a call with both true is
refused with `` `independent` and `symmetric` cannot both be true ``; the document does not change and no undo step
is recorded. Direct Selection sends `symmetric` while Cmd/Ctrl is held during a handle drag, unless that Cmd/Ctrl
press lent Direct Selection for the gesture while another tool, such as the Pen, was chosen and has not been let go
since (#7842). A call that puts both handles where they already are records no undo step. `symmetric: true` with `link: true` is refused
("`link` and `symmetric` cannot both be true"), and so is `symmetric: true` with `link: true` in `object.blend.spine.moveAnchor`.
`path.setHandle` with `link: true` (the Anchor Point tool's Alt-drag on a handle) places the handle and makes the
anchor smooth: the other handle turns to lie in line on the far side of the anchor and keeps its length. A retracted
other handle is pulled out to the placed handle's length when a segment leaves the anchor on its side, and stays
@@ -6873,7 +6969,7 @@ Left out or null, `width` is 8 pt. The range is VectorCraft's own value.
These commands refuse a string, a number or another value that is not true or false with
`` `closed` must be true or false ``, naming the key; the document does not change and no undo step is recorded:
`independent` in `path.close` and `path.setHandle`; `link` in `path.setHandle`; `patterns` in `path.moveAnchors`; `closed`, `keepSelected` and
`independent` in `path.close` and `path.setHandle`; `symmetric` and `link` in `path.setHandle`; `patterns` in `path.moveAnchors`; `closed`, `keepSelected` and
`fill` in `path.freehand` (and in `brush.freehand`); `closed` and the `corner` of a point in `path.curvature`; `corner`
in `path.curvatureEdit`; `perpendicular` in `path.reshapeSegment`; and `keepSelected`, `mergeOnlySelection` and
`merge` in `path.blob`. A null is read as a key left out.
@@ -7307,6 +7403,47 @@ warped (`from`, or the selection's bounds) change nothing and add no undo step.
{"name":"run_command","arguments":{"command":"object.distort","params":{"from":[-100,0,0,100],"angle":90,"corners":[[0,100],[0,0],[120,-20],[100,100]]}}}
```
## Perspective Distort and Free Distort on images
`object.distort` moves an image's four corners exactly where the warp takes them, alone or with other objects, and
draws its pixels in perspective between them. The image is bounded, selected and clicked by the shape its corners
make, and moving, scaling, rotating or shearing it later, or a Transform effect on it, takes the corners along.
Outline view draws its frame through the corners. Blends, the Eyedropper, the Color Theme Picker of Recolor Artwork
and the weed box of Weed Box and Lines (`addon.cutting.weed`) read the image where its corners put it. When the
corners make a parallelogram, the image is placed by its transform as before. Otherwise the native file saves them in
the image's `image_quad` field (top left, top right, bottom right and bottom left of its pixels, in page
coordinates); files without the field open as before. The canvas, printing and every export except DXF, WMF and HP-GL
(an HP-GL plot leaves images out) draw a distorted image as a mesh of affine image pieces, clipped by the corners; no warped copy of the pixels is stored. In
printing and exports the mesh takes as many cells as it needs for the pieces to stay within 0.05 pt of the exact
perspective at the points it checks, with cells at least 2 pt long on the corners' longest side, and each piece reaches
0.5 pt into its neighbors. The canvas cuts the mesh for the zoom, by the view's largest stretch: within a quarter of a
screen pixel at the points it checks, with cells at least 4 pixels long, and each piece reaches 2 pixels into its
neighbors. Either way the mesh takes no more than 64 by 64 cells, and no more cells across than the image has pixels on
its longer side (or 8, if that is more). A stronger perspective, or a smaller image, is drawn with the cells it is
allowed. In EMF each piece stores only the pixels inside its clip, with a pixel more on each side. DXF and WMF cannot
clip, so they write the image as the parallelogram nearest its corners and warn. Corners that would fold the image over
itself, put three corners on one line, join two corners, cross the warp's horizon or lie too close together for a
perspective map are an error, and nothing changes. A transform that squeezes the corners past what a perspective map
can place leaves the image at the parallelogram nearest them. A file whose `image_quad` holds other than four points,
or breaks these rules, opens with the image placed by its transform. A drag is one undo step, and a distort that leaves
the corners where they are records none. Image info (`image.info`) gives a distorted image's resolution at its middle, and Link
Info (`links.info`) gives its scale and rotation there.
Crop Image (`object.cropImage`), Image Trace (`imageTrace.make`, `imageTrace.makeAndExpand`), Relink (`links.relink`),
Embed (`links.embed`), Unembed (`links.unembed`), Create Object Mosaic (`object.createObjectMosaic`) and Place with
Replace (`file.place` with `replace`) of anything but a text file refuse a distorted image with an error that names the
distortion; Place with Replace does not refuse a clipping group that holds a distorted image of a DCS file's plates. Relink and Unembed refuse a named or selected distorted image before they search a folder or write a file.
Create Gradient Mesh (`object.mesh.create`) converts the other objects it is given and lists each distorted image it
leaves as it is in `skipped`, with its `id` and the error as `reason`; with nothing else to convert, it returns that
error. Update Links (`links.update`) puts a changed file's pixels between a distorted
image's corners, without applying its Placement Options. Mask (`object.maskImage`) draws its clipping path through the
image's corners. Rasterize (`object.rasterize`) draws the image between its corners and makes a plain image of the
result. These rules are VectorCraft's own.
```json
{"name":"run_command","arguments":{"command":"object.distort","params":{"corners":[[40,0],[60,0],[100,100],[0,100]]}}}
```
## Transform Each: Relative and Absolute
`object.transformEach` scales by percentages of each object's size (the dialog's Relative, the default), or with
@@ -7393,7 +7530,7 @@ and files saved without it open with it off.
## Live Corners
`object.setLiveShape {id?, ids?, radius?, kind?, corners?, items?}` sets the corners of any path (one undo step): a live
`object.setLiveShape {id?, ids?, radius?, kind?, corners?, rectanglesOnly?, items?}` sets the corners of any path (one undo step): a live
rectangle's or polygon's, a star's, a pen path's. A corner is an anchor where two sides, straight or curved, meet at an angle
(not an open path's ends, not a smooth anchor, not one the sides run straight on through); a curved side is trimmed to
what the cut leaves of it. `radius` (pt) and `kind`
@@ -7412,7 +7549,9 @@ or keeps its size with Scale Corners off), and a rectangle from a file that kept
(elliptical corners) gets circular ones in document units when its corners are next set. Dragging a corner widget
rounds the corners whose widgets show (every corner, or the Direct-Selected ones) on every selected path at once,
outlining in red those that reach their limit; the Selection tool shows the widgets of live rectangles and polygons,
the Direct Selection tool those of any path. Several objects each with their own corners are one call:
the Direct Selection tool those of any path. `rectanglesOnly: true` sets them on the live rectangles among the targets
alone and leaves the other objects as they are (the Rectangle Properties corner fields and menus send it with the
selection, so an action that records them acts on the rectangles selected when it plays). Several objects each with their own corners are one call:
`items: [{id, corners?}]` in place of `ids` and `corners`. Alt-clicking one cycles their kind and double-clicking one opens Corners (`ui.corners {id?, corners?}`,
dialog `corners`: `kind`, `radius`; OK runs `object.setLiveShape`).
`view.shapeWidgets {on?}` (desktop app, the Hide Shape Widgets and Show Shape Widgets button in the Control bar of the
@@ -8011,6 +8150,8 @@ Printing / Exporting, `accurate` by default) does the same for RGB raster export
Print as Bitmap: `rich` draws pure CMYK black as RGB black in the pixels; CMYK ink exports and the document's
colours stay as they are. `antiAliasedBitmaps` (off by default;
desktop app): in View › Pixel Preview, on softens placed and embedded bitmaps; off, their pixels stay hard-edged.
`pdfTextAs` (Preferences › File Handling › PDF Text, `text` by default; `text` or `outlines`): what the text of a PDF
opened or placed embedded from the app becomes when the open or place gives no `textAs` (see `document.open`).
`disableAutoAddDelete` (off by default): on, the Pen no longer adds or deletes an anchor when a click lands on a
segment or an anchor of a selected path.
@@ -8601,6 +8742,27 @@ is kept with the preferences and with the workspace; a workspace or preferences
and a group id the bar does not have is dropped when they are read. Another `group`, or none, fails with "`group` must
be one of …", and a `visible` that is not true or false fails with "`visible` must be true or false"; either leaves
every group as it is. The groups and their contents are VectorCraft's own.
`window.taskBar.actions {action, visible?}` (desktop app) turns one of the Contextual Task Bar's actions or chips on
(`visible: true`), off (`false`) or toggles it (omitted or null), and returns `{action, visible}`. The actions are `imageTrace`,
`cropImage`, `removeBackground`, `removeAnchorPoints`, `join` (Connect and Join), `cutPath`, `convertToCorner`,
`convertToSmooth`, `group`, `makeClippingMask`, `unite`, `expand`, `editClippingPath`, `releaseClippingMask`,
`ungroup`, `isolate`, `editPath`, `releaseCompoundPath`, `createOutlines`, `convertToPointType`, `convertToAreaType`,
`typeOnPathOptions`, `centerOnTop`, `centerOnBottom`, `dynamicText`, `offsetPath`, `simplify`, `smooth`, `duplicate`,
`drawPencil`, `placeImage`, `fidelity` and `smoothToolOptions` (the Smooth tool's), and `resizeArtboard`,
`duplicateArtboards`, `rearrangeArtboards` and `exportArtboards` (the Artboard tool's); the chips are `fill`, `stroke`,
`recolor` (Recolor Artwork), `lock` and `shapeProperties` (a basic shape's Shape Properties, in Lock's place). The bar's
More Options menu has Bar Actions, which lists the actions and chips the bar offers for the current selection or tool,
each checked while it is on and named without a final colon or ellipsis, and runs the command for the one clicked. An
action or chip that is off stays out of the bar and out of More Options wherever the bar would offer it; turning one off
changes only the bar. With every action and chip it would offer off, the bar still shows its handle and More Options,
where Bar Actions turns them on again. Every action starts
on. The type font controls are not in Bar Actions and stay on the bar. Which actions are off is kept with the preferences
and with the workspace; a workspace or preferences saved without them show every action, and an id the bar does not have
is dropped when they are read. A `visible` of null toggles, as an omitted one does. Another `action`, or none, fails
with "`action` must be one of …", and a `visible` that is not true, false or null fails with "`visible` must be true
or false"; either leaves every action as it is.
`window.taskBar.resetActions {}` (More Options › Reset Bar Actions) turns every action and chip on again and returns
the ids it turned on. Choosing the bar's actions is VectorCraft's own.
```json
{"name":"run_command","arguments":{"command":"file.new","params":{"preset":"A4","orientation":"landscape","artboards":4,"artboardLayout":{"columns":2},"bleed":9}}}
@@ -10032,7 +10194,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
@@ -10883,10 +11049,12 @@ undo step. Object › Transform › Scale, the Scale tool and the Transform pane
`text.reshapePath {id, anchors: [[subpath, anchor]…], dx, dy}` does the same for the path of type on a path
(Direct Selection dragging one of its anchors): the start and end brackets keep their fractions of the path and the
text reflows along it.
`text.setPathHandle {id, subpath?, anchor, which: "in"|"out", x, y, independent?}` moves a direction handle of one
of its anchors, as `path.setHandle` moves a path's (Direct Selection dragging a handle of the path, #3565), in one
undo step. A call of `text.reshapeArea`, `text.reshapePath` or `text.setPathHandle` that changes nothing (`dx` and
`dy` both 0, or a handle moved to where it already is) adds no undo step and keeps redo.
`text.setPathHandle {id, subpath?, anchor, which: "in"|"out", x, y, independent?, symmetric?}` moves a direction handle
of one of its anchors, as `path.setHandle` moves a path's (Direct Selection dragging a handle of the path, #3565), in
one undo step. With `symmetric: true` the other handle goes opposite the moved one at the same length, measured on
the page, as in `path.setHandle`; `symmetric` and `independent` cannot both be true. A call of `text.reshapeArea`,
`text.reshapePath` or `text.setPathHandle` that changes nothing (`dx` and `dy` both 0, or handles left where they
already are) adds no undo step and keeps redo.
```json
{"name":"run_command","arguments":{"command":"text.reshapeArea","params":{"id":42,"anchors":[[0,2]],"dx":40,"dy":60}}}
@@ -13570,7 +13738,8 @@ the compound path selected), and the next click starts a new path. Choosing any
A blend's spine is the straight lines between its key centres until it is edited. `object.blend.info` lists it
(`spine.anchors`, `keyAnchors`: the point each key sits on). `object.blend.spine.addAnchor {x, y}` adds a point where
the spine passes nearest, `object.blend.spine.moveAnchor {anchor, x, y}` moves a point (a key on it moves along; with
`handle: "in" | "out"` it places that handle), `object.blend.spine.convertAnchor {anchor, to: "smooth" | "corner", x?, y?}` converts a point's handles (a Smooth drag with `x, y` creates opposite handles; Corner retracts both), `object.blend.spine.reshapeSegment {segment, t, dx, dy, perpendicular?}` bends a segment
`handle: "in" | "out"` it places that handle, and with `symmetric: true` also the other handle opposite it at the
same length, as `path.setHandle` does; `symmetric` needs `handle` and cannot go with `independent`), `object.blend.spine.convertAnchor {anchor, to: "smooth" | "corner", x?, y?}` converts a point's handles (a Smooth drag with `x, y` creates opposite handles; Corner retracts both), `object.blend.spine.reshapeSegment {segment, t, dx, dy, perpendicular?}` bends a segment
so its point at `t` moves by (dx, dy), turning a straight spine into a curve (`perpendicular` works as in `path.reshapeSegment`), and `object.blend.spine.removeAnchor
{anchor}` deletes a point no key sits on; the first edit turns the spine into a path. Moving a key moves its end of the spine. Release
(`object.blend.release`) leaves the spine of a blend that has one as a path that paints nothing (`spines` in the result):
+4 -1
View File
@@ -678,7 +678,10 @@ every attribute:
of JSON: type whose runs and paragraphs don't fit what the type before it in paint order left comes with
`truncated: true` too.
- An image (`"image"`): `pixelSize` is its width and height in pixels; `colorMode` is `"rgb"`, `"cmyk"`, `"gray"` or
`"unknown"`, read from the image itself. An embedded image whose pixels take at most 1 MiB in base64 (443 × 443
`"unknown"`, read from the image itself. An image whose corners Perspective Distort or Free Distort moved to a shape
that is not a parallelogram also has `corners`, its pixel rectangle's corners on the page (top left, top right,
bottom right, bottom left), and its `transform` is then the affine placement nearest them, the one that matches the
perspective at the middle of its pixels. An embedded image whose pixels take at most 1 MiB in base64 (443 × 443
pixels fit) has them in `pixelsBase64`: straight RGBA, 8 bits a channel, row by row from the top, and
`pixelsOmitted: false`. A CMYK image's pixels are its inks through the working CMYK profile, as sRGB. The pixels of
all the images in one input take at most 16 MiB in base64, and an image the host starts to decode takes its size
+6 -4
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+7 -4
View File
File diff suppressed because one or more lines are too long