Commit Graph
8580 Commits
Author SHA1 Message Date
dotCooCoo 6caa857cf1 Brushes: Chevron Arrow's second chevron keeps its length on a long path
Chevron Arrow stretches only the shaft before its second chevron, so
both chevrons keep their length however long the path is. The Bundled
content row counts the Arrows library.
2026-11-17 18:24:19 -08:00
dotCooCoo c66272a9e3 Layers: in Draw Behind a new layer goes directly below the current layer
layer.new without `top` or `below` now reads the drawing mode: in Draw
Behind the new layer goes directly below the current layer, at its level
(a sibling below a current sublayer), as the help page describes
(https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=234).
The Layers panel button, the panel menu, Ctrl/Cmd+L and the Layer
Options dialog all go through layer.new. `top` and `below` keep their
meaning in every mode, Draw Normal and Draw Inside keep a new layer
above the current one, and New Sublayer is not affected.
2026-11-17 18:19:14 -08:00
dotCooCoo 958b5645f3 Save PDF: a link button keeps the four bleed values the same
Marks and Bleeds in the Save PDF dialog and the PDF preset editor gets a
link button beside Top, Bottom, Left and Right. While it is on, editing
one value sets all four; turning it on gives every side the top value.
It opens on when the four values are equal, and choosing a preset or
Reset sets it again from that preset's values. With Use Document Bleed
Settings on, the button is grayed out and the custom values stay as they
were. The link is not an export option or a preset setting;
ui.dialog.set sets it as __bleedLinked and refuses anything other than
true or false.
2026-11-17 18:16:26 -08:00
dotCooCoo fbf6b4144b Merge main into feat/artboard-edge-button-tooltips 2026-11-17 18:11:36 -08:00
dotCooCoo 149b9dc93c Docs: the PDF format entry appears once
docs/target-app-parity.md listed the SVG/SVGZ and PDF format entry twice; the shorter copy is removed and the entry that also names the .ai and EPS image sources stays.
2026-11-17 18:10:09 -08:00
dotCooCoo 21e0b780e7 Path Precision Tools: Common Tangents draws the lines from a point to a closed path
Common Tangents (addon.pathtools.commonTangents) now also takes a point,
a path of one anchor, together with a convex closed path. The lines run
from the point to where they touch the path: two from a point outside
it, one from a point on its outline (centered on the point and as long
as the path is wide along it, or the whole straight side the point lies
on), and none from a point inside, which leaves the document unchanged
and returns a warning. Centerline adds the line from the point to the
path's center. Every Tangents value gives the same lines; two points
are refused.

The geometry treats the point as an outline whose support value is
p . n, so the existing root search finds the lines.

Docs: docs/mcp.md, docs/target-app-parity.md, ROADMAP. The new warning
has a row in every catalog.
2026-11-17 18:03:55 -08:00
dotCooCoo 254226aff6 Brushes: the progress documents list the Arrows library
The brush library evidence in docs/target-app-parity.md names Arrows and describes its five brushes, the Strokes rows and the M10 row in docs/roadmap.md count eleven libraries, and the docs/ui-parity.md checklist row lists Arrows.
2026-11-17 17:58:12 -08:00
dotCooCoo 5ac41ee089 Save for Web: Delete Color skips selected colors the table no longer shows
A selection made before the reduction or the color count changed, or set
through ui.dialog.set, could name a color the table no longer holds. Delete
Color stayed enabled for it, added the absent color to colorTable.deleted
and fixed the table as a Custom palette although no shown color was
deleted. Delete Color is now enabled only for selected colors the table
shows and deletes only those; a selection with none of them is cleared and
the table is left unchanged.
2026-11-17 17:56:55 -08:00
dotCooCoo 688baab2db Layers: a Shift-click range looks rows up in a set instead of searching them for each row
layer.highlight searched the highlighted rows once for every id it was
given, so a range of n rows took about n^2/2 comparisons, and the panel's
preview of the rows (apply_row_click) did the same before sending the
command. Both now keep a set of the highlighted rows beside the ordered
list. layer.highlight builds the set only for more than 8 ids, so a
one-row Ctrl/Cmd-click toggle does not pay for it.

The rows, their order, the returned rows, the current layer and the
revision are unchanged; tests compare the command with the per-id search
on 3,000 rows and the widget with it on 5,000 rows.
2026-11-17 17:52:43 -08:00
dotCooCoo 200bea74af Select: Next Object Above and Below check only the selected object's siblings
Each press collected every object Select All can reach into a set and then
tested only the siblings of the selected object. The siblings are now tested
one at a time against the layers and groups that hold them, with the same
rules as the walk: sublayers and the ruler guides of a layer are passed over,
and an isolated object on its own is the one there is to select. The selected
object is the same.

A random-document test compares every node and every step, isolation mode
included, with a copy of the earlier search. On 100,000 rectangles a step
took a median of 11.5 ms of thread CPU time before and 0.08 us after
(next_object_perf, release build).
2026-11-17 17:52:37 -08:00
dotCooCoo e69c4f880d Merge main into fix/pl-catalog-translates-art-artwork-two-ways-in 2026-11-17 17:50:58 -08:00
dotCooCoo 385b4c5e82 Cut: direct-selection Cut removes whole and emptied paths in one pass per parent
Cut with direct-selected anchors or segments removed each object selected
whole, and each path it left with no segment, with its own remove. Every
removal shifted the siblings after it, so later lookups walked the
document's tree again. With 2,000 roots removed whole, the old loop
walked the tree 10,005 times.

These removals now go through the same batch that already places the
surviving pieces, which rebuilds the children of each layer or group
once, and compound paths left with no members are removed after it. A
compound path left with one member stays a compound path. The document,
the selection, the clipboard and the undo step are the same as before.

With 2,000 of 10,000 squares on one layer selected whole and two anchors
of another picked, Cut walks the tree 8 times instead of 10,005 and
takes a median of 11 ms of CPU time instead of 573 ms (release build on
Linux, seven alternating runs in one process).
2026-11-17 17:49:21 -08:00
dotCooCoo b4c40b3f8a Merge fix/shear-angle-range into fix/transform-panel-shear-range 2026-11-17 17:46:57 -08:00
dotCooCoo 9f84820d88 MCP: transform checks scale, reflect and shear before any step runs
The transform tool runs move, rotate, scale, reflect and shear as separate
commands. A shear angle that object.shear refuses, such as 90, a reflect
axis other than vertical or horizontal, or a scale of 0 failed only after
the earlier steps had changed the art and recorded undo steps. The tool now
checks those params first with the rules the commands use
(scale_factors, reflect_axis and shear_tangent, shared with object.scale,
object.reflect and object.shear), so a refused request changes nothing and
records no undo step.
2026-11-17 17:42:44 -08:00
yoriswind 0dd87f8921 Merge main into the qualified Eraser group-stroke repair 2026-11-17 17:40:53 -08:00
dotCooCoo 38a178154b Merge main into feat/smooth-bridge 2026-11-17 17:38:12 -08:00
dotCooCoo f6c512920a Save for Web: a fixed palette keeps an opaque color when it maps colors to transparent
With a fixed palette (Custom table), the colors listed in colorTable.transparent
all become the one transparent entry, so together they now take a single slot of
Colors, and the opaque colors fill the remaining slots in palette order. Before,
the palette was cut to its first entries; when those were all mapped to
transparent, every opaque pixel took one of them and the whole image turned
transparent, and with a deleted color the export was refused although an opaque
color was left past the cut. The check that a deletion leaves an opaque color
now reads the whole palette.

When no pixel is transparent and no pixel takes a color mapped to transparent,
that slot goes to the next opaque color. At 256 colors one entry stays for a
color mapped to transparent.
2026-11-17 17:29:11 -08:00
dotCooCoo 3d51edc9dc Merge main into feat/transform-show-on-shape-creation 2026-11-17 17:21:36 -08:00
dotCooCoo 375b2a23e1 Preview Bristle brush tip for rotation-capable pens 2026-11-17 17:14:05 -08:00
dotCooCoo de06497716 Commands: each built-in command's parameter keys are parsed once per process
Session::execute asked about a command's params description several
times per command (the key check, whether `id` stands for `ids`, whether
it takes `ids`), and each question parsed the description again, with a
command lookup for each word after the first of each `…` entry. The
engine now reads every built-in description, and the ones its `…`
entries name, once into a table keyed by the description's address and
length, and answers accepted_keys, takes_key, id_stands_for_ids and
check_keys from it.

A plug-in command's description, and a built-in description whose `…`
entries name a plug-in command, are still parsed where they are used,
since plug-ins change while the app runs. The keys, answers and error
messages are the same; tests::params_cache compares them for every
built-in command against a fresh parse.

In a release build on a one-object document, object.move with ids and
dx takes 48 us of thread CPU time per command instead of 61 us, and
select.set with ids 2.3 us instead of 3.2 us (medians of 7 alternating
runs of 20,000 commands in one process, while other builds were running;
tests::params_cache::bench_params_keys_once). The time is saved per
command, in scripts, batches and MCP or plug-in call loops, and does not
grow with the size of the document.
2026-11-17 17:12:35 -08:00
dotCooCoo e5d1186412 Color Themes: the Create tab edits the selected color with CMYK, RGB, Lab and HSB sliders
The Create tab had only a hex field for typing the selected theme
color's values. The help page describes changing the selected color's
values in CMYK, RGB, Lab, HSB or hex while making a theme:
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=221

A Color Mode menu (CMYK, RGB, Lab, HSB) under the theme's colors shows
a rail and a number field for each component, beside the hex field. The
rails are the Recolor dialog's, so they step with the arrow keys and
take screen readers' set-value action.

VectorCraft's own rules: the menu starts in the selected color's model
(HSB for a gray) and keeps the mode picked while the app runs; picking a
mode changes no color. Ranges and whole-number steps are the Color
panel's (Lab a and b from -128 to 127); a number past the range sets its
end and text that is not a number changes nothing. A CMYK edit keeps the
color CMYK and a Lab edit keeps it Lab; RGB and HSB edits make it RGB.
An edit works as a hex edit does: with a harmony rule the edited color
becomes the theme's base and is selected, and in Custom only the
selected color changes. The sliders keep the numbers they set, so a
color taken to no saturation keeps its hue on the H slider.
2026-11-17 17:10:50 -08:00
dotCooCoo 43022b6a9e Layers: isolation mode lists only the isolated art
In isolation mode the Layers panel lists the isolated layer, sublayer,
group or object as its top row, with the open rows inside it, and lists
every layer again when isolation mode ends. The help page describes the
panel showing only the isolated art
(https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=212);
which row heads the list, and the rules below, are VectorCraft's own.

- Entering isolation mode opens the isolated row; leaving it scrolls back
  to that row. Search and Filter look only inside it.
- Nothing is dropped beside the isolated row or into the empty space
  under the rows, so a drag cannot move art out of the isolated art.
- Rows highlighted outside the isolated art are no longer highlighted.
- With no row highlighted, Delete Selection is off and the trash
  returns an error instead of deleting a current layer outside the
  isolated art.
- New Layer, New Sublayer and Duplicate (panel menu and row context
  menu) are off while the layer or copy they make would be outside the
  isolated art. ui.newLayer, and OK in New Layer Options, return "exit
  isolation mode first" then.
- Rename refuses an object outside the isolated art, and Locate Object
  opens no rows outside it.
2026-11-17 17:08:36 -08:00
dotCooCoo 309bff22e3 Merge fix/shear-angle-range into fix/transform-panel-shear-range 2026-11-17 17:06:19 -08:00
dotCooCoo 51d09113f7 Fields: x multiplies in value fields, as * does
Value fields and length strings read `x`, `X` and `×` as a
multiplication sign: `10x2` is 20, `2x3 mm` is 6 mm and `3cmx50%` is
1.5 cm. A lowercase `x` right after a `p` stays the `px` unit, so
`2px x 3` is 6 px and `2px3` is not read. The change is in
`Unit::parse` and `parse_number`, so every field that reads its text
through them takes it. Each sign counts toward the 128-sign limit,
which is checked before the text is copied.

Docs: docs/mcp.md, docs/ui-parity.md, docs/target-app-parity.md.
2026-11-17 17:05:56 -08:00
dotCooCoo cd259b9fa8 Shear: 180 and -180 leave the art unchanged
The tangent of 180 degrees in radians is about 1e-16, not 0, so a shear
by 180 or -180 moved coordinates very slightly and recorded an undo
step. Angles within 1e-9 degrees of 0, 180 or -180 now shear by 0:
without `copy`, nothing moves and no undo step is recorded.

Docs: params text, docs/mcp.md.
2026-11-17 17:04:12 -08:00
dotCooCoo dfd5fe71f4 Image Trace: the panel finds the object Trace acts on once per document revision
On every frame the Image Trace panel put the whole selection in paint
order twice and scanned it a third time to find the object Trace acts
on; its panel menu scanned it again. The panel and its menu now look it
up once for each document revision and reuse the result on later
frames. The lookup puts only the selected images and Image Trace
objects in paint order, and reads the target in place instead of
copying it.

The target, its flags, its stored settings and whether any selected
object is an Image Trace object are the same as before, field for
field. With 100,000 selected paths in nested groups and one selected
image, a frame's lookups took a median 120 ms before; the first frame
after a change now takes 10 ms and later frames about 50 ns.
2026-11-17 16:54:21 -08:00
dotCooCoo ed0a241b7d Brushes: Make bristle strokes follow recorded pen pose 2026-11-17 16:27:47 -08:00
dotCooCoo 20201c98e9 Merge main into feat/swatch-options-gamut-warnings 2026-11-17 16:26:12 -08:00
dotCooCoo 771e190c9a Merge main into feat/shear-angle-axis 2026-11-17 16:25:50 -08:00
dotCooCoo dc30166813 Merge main into feat/save-for-web-delete-color 2026-11-17 16:25:37 -08:00
dotCooCoo fc294d56b6 Transform panel: the Shear field takes -359 to 359 and shows the error for an angle Shear refuses
The Shear field stopped at -89 and dropped any value of 90 or more without a word.
It now sends every typed, stepped or picked value to `object.shear`, which shears by
the tangent of an angle from -359 to 359. For ±90, ±270 and an angle outside that
range the status bar shows the command's error; the art is unchanged and no undo step
is recorded.
2026-11-17 16:25:32 -08:00
dotCooCoo 18ee377382 Recolor Artwork: ui.recolorUndo and ui.recolorRedo preview the step at once
The commands restored the dialog's fields, but the art kept showing the
previous recolor until the next frame drew the dialog. They now run the
dialog's preview for the step they went to, with Find and Preview as
the dialog has them. A command that finds no step leaves the art and
the preview as they are.
2026-11-17 16:23:38 -08:00
dotCooCoo 336cde15fe Merge main into fix/action-batch-step-numbers 2026-11-17 16:21:50 -08:00
dotCooCoo 7083061f11 Merge main into perf/shape-builder-hatch-sweep 2026-11-17 16:21:48 -08:00
dotCooCoo b8fcb2e38f PDF 1.3: flattened rasters keep no alpha whatever the flattener options
A PDF 1.3 save with `flattener.preserveAlpha: true` failed on transparent
art that the flattener rasterized: the rasters kept their alpha as soft
masks, and the writer refuses soft masks in a PDF 1.3 file. The writer
now turns Preserve Alpha Transparency off, as it already turns Clip
Complex Regions on.

Custom Transparency Flattener Options shows Preserve Alpha Transparency
off and locked, as the save writes it, and its OK stores the preset's
value.
2026-11-17 16:20:45 -08:00
dotCooCoo b16e5f633e Docs: SVG export's single type layout is for its writers
The progress line now says that the writers share one layout of each
type object, and that the check for glyphs hanging outside a path's
brackets and the advances a reader gives live text can still lay out
a changed copy.
2026-11-17 16:15:56 -08:00
dotCooCoo 5e0496cd2e 3D and Materials: the Export 3D Object button's state is worked out once per document revision
The 3D and Materials panel checked on every frame whether a selected object has a 3D effect that Export 3D Object exports, looking up each selected object's parent and the node twice. With a plain selection of 200,000 paths that scan ran in full on every frame, about 60 ms of thread CPU time. The state is now kept in the canvas cache for the document's uid and revision, beside the other per-revision panel states, and the button shows the same state.
2026-11-17 16:05:31 -08:00
dotCooCoo c580548ef2 Symbols: find selected symbol instances once per document revision
The Properties panel's Reset quick action and the Symbols panel's Break
Link to Symbol each walked the selected subtrees on every repaint,
reading each one in full until one held an instance, to learn whether
the selection holds a symbol instance. One walk per document revision
now records the instances and whether one has appearance changes of
its own, and later frames reuse it. Whether Reset Transformation would
change an instance is worked out from those instances on the first
request and kept with them.

The buttons and menu items are enabled exactly as before. With one
selected group of 300,000 paths, the two panels' reads took a median
5.1 to 5.7 ms of thread CPU time per repaint; the first read after a
change now takes about 3 ms and later repaints about 5 ns.
2026-11-17 15:59:15 -08:00
dotCooCoo 9ed14dd264 Color Themes: Show Find Field lists My Themes by theme name
On the My Themes tab, the panel menu has a checked Show Find Field item
that shows a Find field above the list. The list then shows only the
saved themes whose names hold the field's text, anywhere and in any
letter case, in their saved order; colors are not searched, and a
search with no result shows "No matches.". A picked theme the field
hides stays picked, but Edit Theme, Add to Swatches and Delete Theme
are off until the list shows it again. The field is off in a new
session and does not change the saved themes or colorTheme.list.

The help page describes searching saved themes by name this way:
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=255
2026-11-17 15:58:21 -08:00
dotCooCoo b029a20c2b Blend: selected blends, envelopes and meshes are found along one path per object
The Blend panel, the Object › Blend, Envelope Distort and Gradient Mesh
menu items and their commands looked up every ancestor of each selected
object by id to find its nearest blend, envelope or mesh, and dropped
repeats with a linear scan. They now read the object's cached place in
the tree once, test the nodes on that path, and keep a set of the ones
already listed. The checks of whether one is selected stop at the first
selected object that has one. An id that the lookup cache does not
place on that path (a repeated id, or a cache older than the tree) is
still looked up by id, so the results, their order and the errors are
the same. Explicit ids given to the live commands drop nested ones with
a set as well.

With Select All of 102,200 objects (100,000 rectangles, 2,000 blends and
200 envelopes), a release build took a median of 16.5 ms of thread CPU
time for the Blend check before and 0.5 ms after.
2026-11-17 15:58:02 -08:00
dotCooCoo b4d5d192ba Shear: angles from -359 to 359 shear by their own tangent instead of stopping at 89
object.shear clamped its angle to -89..89 without an error, so any angle
past 89 sheared by 89. It now takes the Shear dialog's documented range
of -359 to 359 degrees and shears by the angle's tangent, so 120 slants
as -60. An angle outside that range, and +-90 and +-270 (within 1e-9
degrees), where the tangent is unbounded, return an error naming
`angle`; nothing moves and no undo step is recorded.

Docs: params text, docs/mcp.md, docs/target-app-parity.md.
2026-11-17 15:57:45 -08:00
dotCooCoo 8dcedfce3a Merge main into fix/i18n-psd-import-options-and-slices 2026-11-17 15:53:37 -08:00
dotCooCoo 6253a6eff1 Recolor Artwork: weights set before the art is read do not make Undo Changes available
When the art's reduction runs on the dialog's first frame or command,
it drops the Prominent Colors weights along with replacing the rows,
so weights set before then make no step. The availability check now
leaves out both, as ui.recolorUndo does.

The docs say that fields set with ui.dialog.set become a step at the
next frame with the pointer up, so they group across frames drawn while
the pointer is down, and the progress line names the new tests.
2026-11-17 15:52:57 -08:00
dotCooCoo 8cc5f194c8 Color Themes: Set Active Color paints selected characters as a swatch click does
With characters selected with the Type tool, the button colors only those
characters and leaves the default for new art as it was, as a Color panel
or Swatches click does through the same paint.setFill and paint.setStroke
path. The code comment and the docs/target-app-parity.md line now say so,
and a test compares the button with paint.setFill on a selected range.
2026-11-17 15:50:52 -08:00
dotCooCoo 70e10dd553 Width Point Edit: a discontinuous point shows and edits both sets of side widths
Opening Width Point Edit on either half of a discontinuous width point
now shows the Incoming and Outgoing side widths, each with Side 1,
Side 2, Total Width and its own link. OK sets both halves in one
stroke.widthPoint.set and one undo step, and Delete removes both.
Single Width Only keeps the incoming or the outgoing widths as one
continuous point. A continuous point keeps the one-set layout.

stroke.widthPoint.set takes outIndex, outLeft, outRight and single for
this. With adjustAdjoining, the nearest point before follows the
incoming change and the nearest point after follows the outgoing
change, once each. Indices that are not the two halves of one
discontinuous point, another t, or another single value are refused
without changing the document or its history.

Help page: https://helpx.adobe.com/illustrator/using/stroke-object.html
describes editing the widths on each side of a discontinuous point in
this dialog. The group labels, the adjoining rule and Delete removing
both halves are VectorCraft's own.
2026-11-17 15:44:09 -08:00
dotCooCoo ad5db819be Merge main into fix/issue-7849 2026-11-17 15:41:34 -08:00
dotCooCoo 1aef05110b SVG export: type is laid out once for its live, on-path, outline and character-stroke writers
SVG export lays out each type object once and hands that layout to the
writer for live text, type on a path, outlines and inside or outside
character strokes, where each of them laid the same type out again.
Type on a path, bidirectional type and type that falls back to
outlines go from two layouts to one; inside or outside character
strokes and the object's own fills go from up to four to one. The
outline and character-stroke writers also group glyphs by run in one
pass instead of filtering every glyph for each run. The written SVG,
warnings and notes are unchanged.

A test compares the export with each writer laying the type out on
its own over 17 kinds of type and checks the layout counts; an ignored
test times a large document.
2026-11-17 15:37:54 -08:00
dotCooCoo da010c6598 Isolation: Exit Isolation Mode on a sublayer goes back one layer at a time
With a sublayer isolated, Exit Isolation Mode now isolates its parent layer
and selects the sublayer, so repeated use goes up one layer at a time and
leaves isolation mode from the top-level layer, as the help page describes:
https://helpx.adobe.com/illustrator/desktop/manage-objects/select-objects/isolate-objects.html
This applies to the Layers panel menu item, the isolation bar's back arrow,
the Control bar button, the canvas context menu, a double-click outside the
art and object.exitIsolation {}. Before, each of them left isolation mode in
one step.

- object.exitIsolation takes all (default false); all: true leaves
  isolation mode from a sublayer at any depth. Any other value is an error.
- Esc and the top-level layer's crumb on the isolation bar pass all: true,
  so they still leave in one step. A sublayer's crumb isolates that
  sublayer.
- A hidden or locked parent layer is not isolated; the call leaves
  isolation mode. A step up records no undo step. Groups keep their rule.
2026-11-17 15:35:46 -08:00
dotCooCoo 949171b715 Save for Web: GIF lossy moves no pixel into or out of a shifted color
Lossy compression compared each pixel with the reduction's colors, so a pixel next to a color shifted by hand could join that color and be written in its new color, and a pixel of the shifted color could leave it. Lossy now leaves the entries of shifted colors alone, as it does the transparent entry.
2026-11-17 15:32:51 -08:00
dotCooCoo 33a0a3ab02 Save PDF: Custom… beside Flattener preset sets the flattener options the save uses
Save PDF › Advanced gets Custom… beside Flattener preset, enabled when the
file is flattened (PDF 1.3, PDF/X-1a, PDF/X-3). It opens Custom
Transparency Flattener Options on the settings the save would use. OK
sets them as `flattener` and the preset shows [Custom]; settings equal to
the preset's leave its name, choosing a preset drops them, and Cancel goes
back unchanged. Clip Complex Regions shows on and can't be changed, since
the PDF 1.3 writer always clips, and overprints follow Overprint.

ui.savePdfDialog keeps a `flattener` it is given instead of dropping it,
and refuses one that is not an object, has an unknown key or a value out
of range. Save Preset… says that PDF presets keep the flattener preset but
not these settings.

The shared flattener editor takes the keys of the switches to lock, so
EPS Options locks its two Preserve switches as before.
2026-11-17 15:32:34 -08:00