Commit Graph
19258 Commits
Author SHA1 Message Date
dotCooCoo d0de758155 Rerun CI 2026-11-17 16:30:39 -08:00
dotCooCoo be920daf04 Rerun CI 2026-11-17 16:30:37 -08:00
dotCooCoo 1901799b76 Shapes: Circle Tool Options set what the Circle tool shows and where its anchors go
Double-clicking the Circle tool, or `tool.options {tool: "circle"}`, opens
Circle Tool Options. Show Center, Show Radii and Show Diameter switch the
center cross, the radius lines and the diameter label the tool shows while
a circle is drawn, and Color sets the color of the cross and the lines
(red, blue, magenta, green, black or gray). With Anchors at Standard
Positions off, the circle's anchors are at the points it was drawn
through, plus evenly spaced anchors between them so that no curve turns
more than a quarter of the circle. With Third Point by Dragging off, a
second click places the second point and a third click draws the circle
through the three; a double-click on the second point draws the circle on
the two. Every option is on by default, and the options are kept with the
preferences.

`shape.circleThroughPoints` takes `anchors: "standard"|"points"`.
`tool.setOption` rejects a value the Circle tool's options do not take.
2026-11-17 16:30:02 -08:00
dotCooCoo ed0a241b7d Brushes: Make bristle strokes follow recorded pen pose 2026-11-17 16:27:47 -08:00
dotCooCoo 1328d4a7aa Reflect tool: Escape during a drag from the first point drops the axis
Escape canceled a drag that drew the axis from its first point but kept
that first point waiting, so the next click reflected the selection.
Escape now drops the axis along with the drag.
2026-11-17 16:26:36 -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 de501d73f2 PDF export: Patch::apply finds where each object moved with a binary search
Patch::apply wrote each cross-reference entry by walking every edit, so a
pass with many edits took time in proportion to objects times edits. It
now keeps the running total of the length changes and finds, by binary
search over the edits' ends, how far each object moved. For every edit
set that apply still accepts, the written file is byte for byte the same.

An offset that no longer fits the ten digits of a cross-reference entry
(ISO 32000-1, 7.5.4) is now refused with an error instead of writing an
eleven-digit entry that breaks the table. A change in length too large
for an isize is refused with an error instead of wrapping.
2026-11-17 16:24:59 -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 ad03873c06 Merge main into feat/distort-images 2026-11-17 16:21:37 -08:00
dotCooCoo e44b5fee40 Merge main into feat/graph-designs-from-other-document 2026-11-17 16:21:18 -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 2fa56b60e8 Reflect tool: Escape during the second click also cancels that click
Escape dropped a Reflect axis waiting for its second point but kept the
press of a click not yet released, so the release set a new first point
and the click after it reflected the selection. Escape now ends that
press too, and the release sets no point.
2026-11-17 16:15:50 -08:00
dotCooCoo ced7bccc90 i18n: drop the Georgian PSD rows that main already has
main's ka.tsv already carries the PSD Import Options labels and the PSD
layer and slice messages, so the branch's 22 copies of them are removed
and main's rows are kept.
2026-11-17 16:11:33 -08:00
dotCooCoo f516d74fcd Place: a file read in the background goes into the layer it was placed in
File › Place and a file dropped on the canvas read the file off the UI
thread, and the file was then placed wherever new art went when the read
ended. When the user made another layer current, isolated a group or
selected an object in another layer while a large file was read, the file
went into that layer or group.

The file now goes into the layer or isolated group that was current at
the dialog's OK or the drop, as a bitmap pasted from another app already
does, and the layer or isolation the user changed meanwhile stays as the
user left it.

When that layer or group is deleted, hidden or locked while the file is
read or the bitmap is decoded, the placed file or the pasted bitmap goes
where new art goes at that point, not into the topmost layer. A paste in
Draw Inside still goes inside the object it draws into while that object
can be edited.
2026-11-17 16:06:36 -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 21d16d79c7 Preferences: Clipboard Handling settings show a sentence on hover and focus
The line under the Preferences fields now shows a sentence for each of
the 5 Clipboard Handling settings, from Include SVG Code to When pasting
text, when the pointer is over the row or its control has the keyboard
focus. A screen reader gets the same sentence as the control's
description. Every complete catalog has a row for each one.

The sentences state what VectorCraft does today: the PDF checkbox puts a
PDF on the system clipboard on Windows only, and both legacy vector
clipboard settings are stored but not used yet.

Tests: the one-sentence test covers the Clipboard Handling category, and
new tests check the hover and keyboard-focus sentences of all five rows.
2026-11-17 15:52:25 -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 1c89800023 Twist: keep fractional boundary tangents accurate 2026-11-17 15:34:20 -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
dotCooCoo 177236f401 Brushes: Localize Artistic library name distinctly 2026-11-17 15:32:07 -08:00
dotCooCoo 56c9d73a8a Reflect tool: a second click reflects across the line through both points
A click with the Reflect tool now also sets the first point of an axis.
The next click on the same selection reflects it across the line through
the two points as one undo step, and Alt held at that release reflects a
copy. A drag after the first click draws the axis from it, and a dashed
line runs from the first point to the pointer until the second click.

A second click within 3 px of the first point does nothing. Escape,
Enter, a double-click, a changed selection or document, a new reference
point and switching tools drop the waiting axis. Alt on a first click
still opens the Reflect dialog. Rotate, Scale and Shear are unchanged.
2026-11-17 15:24:01 -08:00
jayzed80 104c185e84 All Tools drawer: dim a tool the toolbar holds in the readable dim colour
A tool already in the toolbar was drawn in the disabled text colour
(about 2.6:1 on the panel), unreadable at the drawer's 12.5 px, and
the shipped toolbars hold most tools, so most of the drawer read that
way (#8294). Its name, shortcut and icon now take the dim text colour
instead (4.5:1 or better in every brightness), one step dimmer than a
tool not in the toolbar, so the distinction the dimming makes (#1018)
is unchanged.

The drawer test now also asserts the painted colour's contrast against
the panel.
2026-11-17 23:22:48 +00:00
dotCooCoo a01bf5e0ad Recolor Artwork: Undo Changes is available after a field is set before the first frame
ui.recolorUndo already went back to the fields the dialog opened with
when ui.dialog.set changed one before the dialog's first frame, but the
command list reported Undo Changes as unavailable. The availability
check now compares the fields with those the dialog opened with until
the first frame or step. Rows that the art's reduction is about to
replace do not count, so the check matches what ui.recolorUndo does.
2026-11-17 15:21:21 -08:00
dotCooCoo 1f41683f58 Color Themes: Set Active Color paints the current fill or stroke with the selected color
A button on the Create tab, beside the pipette that copies the current
color into the theme, does the reverse: it sends the selected theme color
to the proxy in front, through paint.setFill or paint.setStroke with
keepModel, so the selection and the default for new art take it in its
own color model. A click is one undo step; a click that changes no art
adds none. The button is off without a document.

The help page describes this action for creating a color theme:
https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=222
2026-11-17 15:12:20 -08:00
dotCooCoo dde485f853 Preferences: File Handling settings show a sentence on hover and focus
The line under the Preferences fields now shows a sentence for each of
the 14 File Handling settings, from Enable Background Save to Use
Compression, when the pointer is over the row or its control has the
keyboard focus. A screen reader gets the same sentence as the control's
description. Every complete catalog has a row for each one.

Tests: the one-sentence test covers the File Handling category, and new
tests check the hover sentence of every File Handling row and the
keyboard-focus sentences of the first four.
2026-11-17 15:03:47 -08:00
dotCooCoo 07f852fb59 Brushes: Add original Artistic brush library 2026-11-17 14:52:57 -08:00
dotCooCoo c894fd6a2d Recolor Artwork: an edit with the pointer down from the first frame is an Undo Changes step
The dialog's history takes the fields it read from the art as its first
state on the first frame, before the controls run. A pointer held from
that frame no longer leaves the first state unset until release, which
made the first edit the starting state with nothing to undo.

The docs say that fields set with ui.dialog.set become one step at the
next frame or step, and that Save All Colors and Save Prominent Colors
add a color group to the document at once, which Cancel and Undo
Changes leave in place.
2026-11-17 14:52:39 -08:00
dotCooCoo a5b3a216df Pen: the Info panel shows W, H, D and the angle while a drag pulls out a handle
While a Pen drag past the drag threshold shapes a handle, the Info
panel shows the change in x and y, the distance and the angle from
the anchor to the handle's end: the outgoing handle of a new, added
or last anchor, and the incoming handle of the first anchor when the
drag closes the path. Shift gives the constrained handle and Space
moves the anchor with it. The readout clears on release, a dropped
press and a tool change.
2026-11-17 14:52:13 -08:00
dotCooCoo ef366997ec .ai save: keep at most 4,096 parsed style texts per save
The writer kept every style text it checked, with its parse, until the
save ended, including texts the reader does not accept. A gradient style
placed on each object's outline is often a different text per object,
so memory grew with the number of objects checked.

The first 4,096 texts, up to 8 MiB of text, are kept parsed. Past that,
only the last text checked is kept, so the brush check that follows an
object's check reuses its parse, and other texts are parsed again when
checked. The written file is unchanged.
2026-11-17 14:51:14 -08:00
dotCooCoo dedff4e91e Save for Web: ui.dialog.set accepts __editColor to open the Color Picker
The color table's __editColor control opens the Color Picker on a source color, as a double-click on its swatch does. ui.dialog.set refused it as a protected field; Save for Web now lists it with its other controls.
2026-11-17 14:48:43 -08:00
dotCooCoo 3546b3765b Merge feat/symbols-new-symbol-shift-keeps-art into feat/symbols-panel-options-button 2026-11-17 14:44:36 -08:00
dotCooCoo 681830b35d Symbols: the headless UI catalog lists Symbol Options' edit and keepArt parameters
crates/mcp/src/ui_catalog.rs is generated from the desktop UI command
table, and was not regenerated after symbolOptions gained edit and
keepArt. cargo xtask ui-commands regenerates it, and
cargo xtask ui-commands --check passes.
2026-11-17 14:43:49 -08:00
dotCooCoo 9e6c2b7c23 Merge branch 'feat/eps-options-custom-flattener' into feat/save-pdf-custom-flattener 2026-11-17 14:43:34 -08:00