Commit Graph
18594 Commits
Author SHA1 Message Date
bflatastic 82c9631b57 Render: a gradient mesh past any buffer draws without flattening its outline
A damaged .ai can give a gradient mesh whose outline is enormous but finite.
draw_mesh_raster flattened that whole outline in device pixels (grown_outline),
and kurbo's flatten then asked for more segments than memory holds: a
"capacity overflow" panic (seen in import_fuzz's ai_written_meshes_never_panic).
An outline wider or taller than 2^24 device pixels now goes to the per-quad
drawing path the function already falls back to.
2026-11-18 01:41:52 +07:00
dotCooCoo a9ac500b1e Separations Preview: a second Alt-click on the only visible plate's eye shows every plate
An Alt-click (Option-click on macOS) on a plate's eye in the Separations
Preview panel shows that plate alone. Alt-clicking the same eye again,
while that plate is the only one of the document's plates shown, now
shows every plate, spot plates included, as the help page describes:
https://helpx.adobe.com/illustrator/using/printing-color-separations.html

- view.separationsPreview takes soloToggle: plate for this click. A
  plate shown among others becomes the only plate shown, as the help
  page describes for the first Alt-click. A hidden plate, another plate
  while one shows alone, or any plate while none is shown also becomes
  the only plate shown (VectorCraft's own rules). only still shows just
  the named plate when repeated. Neither adds an undo step.
- The eye's tooltip names the second Alt-click, in every catalog.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 10:40:17 -08:00
dotCooCoo 999e538fd6 Symbols: Alt-dragging art onto a symbol in the panel redefines it
Art dragged off the canvas and released on a symbol's tile or row in the
Symbols panel with Alt (Option on macOS) held now runs Redefine Symbol
(symbol.update) for that symbol, in thumbnail view and both list views.
The symbol under the pointer is outlined while the art is held over it
with Alt. A drop without Alt still makes a new symbol.

- A canvas art drag records the document it came from; art of another
  document, objects the document no longer has and an empty drag are
  not taken.
- symbol.update refuses art that holds an instance of the symbol it
  redefines, directly, in an opacity mask or through the art of the
  symbols it nests, so neither the menu nor the drop can make a symbol
  hold itself. The symbol-editing check shares the walk and now also
  looks inside opacity masks.
- Panel art drops take only a release of the primary button.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 10:36:06 -08:00
dotCooCoo 0aede64dbd Layers: a path dragged from a Live Paint group's paths into the group keeps its faces' paint
Dragging one of a Live Paint group's own paths from its hidden sources
into the group made the group's faces and edges again before adding the
path back, so the merge read the paint from the rebuilt parts. With the
path as the only source every face and edge was dropped; with others,
the faces the path bounded lost their fill. The group the rows join is
now made again by the merge alone, which carries the paint of the faces
and edges as they were before the move.
2026-11-17 10:29:05 -08:00
dotCooCoo 34587834ac SVG import: an image's bytes are hashed for its key once per import
Importer::image hashed the whole image buffer for its key on every <image> and <use> that showed it, and doc.images then kept only the first result. Every use of one data URL or linked file gets the same buffer, so the key is now kept for that buffer, by its address, for the rest of the import, with the buffer held so the address is not reused. Keys, stored images, links and warnings are unchanged; the tests compare the whole document with an import that hashes every image. With one 3.4 MB PNG data URL shown by 500 <use> elements, the import took a median 1,883 ms of thread CPU time when every image was hashed and 28 ms with the keys kept.
2026-11-17 10:28:46 -08:00
dotCooCoo b4145b3a1a ci: retry timed-out Stipple gate 2026-11-17 10:26:44 -08:00
dotCooCoo f3fa4e0a17 PDF/.ai import: the text document reader moves its stories out instead of copying them
Texts::read copied the stories, the default styles, the paragraph
defaults and the frames out of the parsed text document and then
dropped the document. It now looks every required path up first,
reads the styles, Kinsoku sets and fonts from the whole document, and
then moves those four parts out. Every document that read before reads
to equal values, and every one that did not still does not.

Reading a synthetic editing copy with 2,000 point-type stories
(1.8 MB) takes a median of 60 ms of CPU time instead of 109 ms (7
alternating runs each, one process). The gain matters on documents
with a lot of type.
2026-11-17 10:26:17 -08:00
dotCooCoo b3cbba36df Swatches: a Cmd/Ctrl-dropped tint makes its spot color from the color the drag showed
The spot swatch is now made from the dragged paint's own color instead of
resolving the base swatch and tint again at the drop, so a base that changed
during the drag does not change the new swatch.
2026-11-17 10:25:08 -08:00
dotCooCoo 0ee110abfe Appearance: row edits look up written objects in a set
appearance.setItem, appearance.duplicateItem and fill and stroke edits
aimed at a row (`item`) keep, for graph labels and lines, the objects
whose shown row the edit wrote. Each object was looked up in a list of
the written objects, so that step took time that grows with the square
of the number of objects. The written objects are now collected into a
set first. The objects kept, their order and the rows a graph keeps are
the same.

crates/engine/examples/appearance_rows_bench.rs times both lookups on
the same ids in one process and the whole commands. With 20,000
squares, each command given every square's id, the lookup takes 0.4 ms
of thread CPU time on Linux against 57 ms, and appearance.setItem takes
96 ms against 158 ms. At 2,000 objects the difference is about 2 ms.
2026-11-17 10:24:55 -08:00
dotCooCoo 73e5d2e0f0 Merge main into fix/raster-supplied-options 2026-11-17 10:21:56 -08:00
dotCooCoo 4d57b638ed Preferences: Hyphenation settings show a sentence on hover and focus
The line under the Preferences fields now shows a sentence for Default
Language and Exceptions (comma separated) 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 Hyphenation category, and new
tests check the hover and keyboard-focus sentences.
2026-11-17 10:16:22 -08:00
dotCooCoo 6007ea7b06 PDF import: a Type 3 font's glyph procedures are checked for color once per document
The scan that looks for d0 glyph procedures ran every time a page or a
form listed a Type 3 font in a font dictionary of its own, and its result
was dropped once the font had been noted. It now runs when the font is
first noted for the document. Each page still maps the font's glyphs,
and the note the import keeps for the font is unchanged.
2026-11-17 10:11:06 -08:00
dotCooCoo f1dba281bf Shapes: a double-click on a polygon's side widget does nothing
With the Selection tool, a double-click on the side widget went on to the
art under it, or left isolation mode when no art was under it. The widget
now takes the double-click, as the blend widget does.
2026-11-17 10:08:30 -08:00
dotCooCoo 24e0208d31 Type: inline graphics are checked again only in the layer trees an edit changed
After an edit of a document with symbols, the refresh of inline graphics
walked every node of every layer. It now keeps the document the last
refresh left resolved, with the symbol bounds it measured, and checks
only the layer trees that are not the same nodes as that document's,
as long as the symbols, graph designs, pattern tiles and foreign data
(which holds the symbols' natural sizes and 9-slice guides) are the
same and each measured symbol still measures the same. Otherwise the
full pass runs, as before. Visit order is unchanged, so the document
and the ids of the texts laid out again equal the full pass's.
2026-11-17 10:08:24 -08:00
dotCooCoo f0d4abcdcc Live Paint: paths in a Live Paint group can't take the names Face and Edge
A path directly in a Live Paint group named Face or Edge is taken for one of
the group's faces or edges, so the next rebuild (Merge, Gap Options, a path
dragged in or out, leaving isolation mode) drops it. layer.setProps and
object.setProps now return an error when they would give either name to a
path in the group that does not have it already, and a path pasted directly
into the group under either name is pasted without its name.
2026-11-17 10:07:22 -08:00
dotCooCoo 13ccd5281c Docs: the shape tools' widgets show only while Hide Shape Widgets has not hidden them
The UI chrome rows for pie widgets, the side widget and the shape tools' bounding box and widgets now say that the Control bar's Hide Shape Widgets hides the widgets and leaves the bounding box.
2026-11-17 10:00:09 -08:00
dotCooCoo f9e6399195 Layers: with Show Layers Only on, Locate Object becomes Locate Layer
With Panel Options > Show Layers Only on, the panel lists no object
rows, so Locate Object highlighted a row that was not there. The panel
menu, the bottom bar's button and a row's menu now read Locate Layer in
that mode and send layer.locate with layersOnly: true, which highlights
the innermost layer or sublayer holding the object (a layer locates
itself) and returns {id, objectId, ancestry}. The panel opens the layers
around it and scrolls to it. With the option off nothing changes.

Help page: https://helpx.adobe.com/illustrator/desktop/manage-layers/create-and-organize-layers/locate-objects-in-the-layers-panel.html

Adds Locate Layer rows to the 28 catalogs that translate Locate Object.
2026-11-17 09:58:54 -08:00
datatimp f531179713 Merge upstream/main into fix/8237-layers-alt-drop-copy-beside-itself 2026-11-17 12:58:32 -05:00
dotCooCoo 57601ec0a4 .ai import: pattern fills in brush art turn over with the art
A Scatter or Art brush's art is read turned over, and the tiles of its
pattern fills now turn over with it, so they keep their place on the
art. The version 7 pattern test reads a Scatter brush's tile moves in
the file's own space (y up), as the art now is.
2026-11-17 09:57:58 -08:00
dotCooCoo cd4e9e9506 Transform: a live line shows Line Properties with Line Length and Line Angle
A line drawn with the Line Segment tool now shows Line Properties in the
Transform panel and the Properties panel's Transform section, with the two
properties the help page lists for a line:
https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-live-shapes/live-shape-properties.html

- object.setLiveShape takes lineLength (pt, above 0) and lineAngle
  (degrees, brought into 0 to 360). Every selected line changes in one
  undo step; a value that changes nothing records none.
- VectorCraft's own rules: the angle runs counterclockwise from 3 o'clock,
  as the Rotate field does; a new length keeps the first end in place and
  a new angle turns the line about its midpoint; a line whose ends meet
  reads 0 degrees; the section shows only while every selected object is a
  live line; a line that would reach past the coordinate limit is an error
  that changes no line.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 09:57:07 -08:00
dotCooCoo 70545c5e2b Shapes: a very long side widget drag stops at 3 or 11 sides without overflowing
sides_after adds the drag steps with saturating arithmetic, so a drag to an
extreme coordinate gives 3 or 11 sides instead of an overflow. A drag whose
distance is too long to measure keeps its direction and also stops at 3 or
11, and a pointer position that is not finite leaves the count and the
readout as they were.
2026-11-17 09:57:06 -08:00
dotCooCoo c7c14be61b Save PDF: the PDF/X note covers a loaded Don't Include Profiles
Params or a preset can open the dialog with PDF/X-3 or PDF/X-4 and
Profile inclusion set to none, without the standard being chosen. The
dialog keeps that value, and with a CMYK output intent every CMYK color
is then written as DeviceCMYK unless it is converted to a CMYK
destination of another profile. The Output section now says so under
the PDF/X note, in every catalog.
2026-11-17 09:56:43 -08:00
dotCooCoo a09bcb3ecd Free Transform: a shear drag shows its angle next to the pointer
With Smart Guides' Transform Tools on, a Cmd/Ctrl side-handle shear with
the Free Transform tool now shows its angle next to the pointer, with
the same sign and one decimal place as the Shear tool's label. Before,
a shear showed no value, and a scale drag turned into a shear kept
showing the scale's size. Transform Tools off still hides the label.

Docs: docs/mcp.md (transformToolsGuides), docs/target-app-parity.md.
2026-11-17 09:52:11 -08:00
dotCooCoo 2559231664 Print: a near black linked to a missing swatch keeps its faint ink off PostScript plates
On PostScript separations, up to half a percent of another ink in a color
that counts as 100% black is left off that ink's plate, so an overprinting
near black does not knock out the ink below it. A color linked to a swatch
the document does not have was left out of that rule, although it separates
from its own values like an unlinked color and Overprint Black marks it to
overprint. A 100% K with 0.4% cyan linked to such a name then stayed on the
cyan plate and knocked out the cyan under it.

A link to a missing swatch now counts as unlinked for this rule, on solid
fills, strokes, character fills and gradient stops. Spot swatches and
Registration are still excluded, and PDF plates still draw the faint ink.
2026-11-17 09:49:50 -08:00
dotCooCoo c226533bc9 Swatches: linking the selection's paints checks ancestors through a set
Add Used Colors and New Color Group link the selected art's paints to
global swatches through Document::map_solid_paints_in, which drops each
id that sits inside another listed id. It searched the whole id list for
each ancestor of each id, so the work grew with the square of the
selection. It now looks each ancestor up in a set of the ids, as
without_inner in crates/engine/src/cmd/edit.rs does. The roots keep the
order of the list, duplicates and ids missing from the document, so the
same paints are linked in the same order.

- mapping_within_ids_matches_a_search_of_the_ids compares the count, the
  paints visited and the resulting document with the search for every
  list of up to three ids from a nested tree (nested ids in both orders,
  duplicates, a missing id and an empty list).
- crates/engine/examples/link_colors_bench.rs times both ways in one
  process. With 20,000 selected rectangles the call takes 16 ms of CPU
  time instead of 128 ms; with 2,000 it takes 1.4 ms instead of 2.5 ms.
2026-11-17 09:49:45 -08:00
dotCooCoo f40f085d21 Stroke panel: stroke.set collects its targets through a set
A Stroke panel edit with no item lists the selected groups and layers
that have a stroke of their own, then adds the leaves of the other
targets, and it checked each leaf against the growing list, so
collecting the targets took time that grows with the square of the
object count. The command now checks each leaf against a set seeded
with the listed groups and layers. The list is the same: its order is
kept, a group or layer named twice is still listed twice, and a leaf is
listed once.

crates/engine/examples/stroke_targets_bench.rs times both merges on the
same leaves in one process. With 20,000 paths in one group, collecting
the targets takes 0.66 ms of thread CPU time against 55 ms with the list
search, and the whole command takes 60 ms.
2026-11-17 09:49:10 -08:00
dotCooCoo 623d0b48e7 Merge main into feat/polygon-side-widget 2026-11-17 09:45:34 -08:00
dotCooCoo 6f12103147 .ai import: Scatter brush art turns over with its unlinked opacity masks
Scatter brush art is read turned over, as Art brush art is. The turn now
goes through the same helper as Art brushes, so the art of opacity masks
that don't move with their objects is turned over too and stays lined up
with the art. Fixes the "Unlinked spray" case of
scatter_and_art_brush_mask_art_round_trips.
2026-11-17 09:45:03 -08:00
dotCooCoo 17a8152cd0 Merge main into feat/object-mosaic-dialog 2026-11-17 09:44:16 -08:00
dotCooCoo 2733c8c85c Merge main into fix/ai-scatter-brush-art-upright 2026-11-17 09:41:16 -08:00
dotCooCoo 6a9106b8d7 Shapes: a very long side widget drag stops at 3 or 11 sides without overflowing
sides_after adds the drag steps with saturating arithmetic, so a drag to an extreme coordinate gives 3 or 11 sides instead of an overflow.
2026-11-17 09:33:33 -08:00
dotCooCoo 9e905635bf Preferences: Slices settings show a sentence on hover and focus
The line under the Preferences fields now shows a sentence for Show
Slice Numbers and Line Color 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 Slices category, and new tests
check the hover and keyboard-focus sentences.
2026-11-17 09:32:25 -08:00
dotCooCoo 99cb4f4190 Import PDF: All checks Import PDF pages as links and Range clears it
File > Open's Import PDF dialog now starts with Import PDF pages as links
checked for All, so every page of a PDF opened from its file opens
linked, and clears the box when Range is picked, so a range opens as
art. A box checked or cleared by hand keeps that state until the other
of All and Range is picked; ui.dialog.set of allPages does the same.
The box stays clear for a file without its path, with a password, or
over the 256 MB that linkPages takes (fileio::pages_can_link).

Docs: docs/mcp.md, docs/target-app-parity.md, docs/file-format-parity.md.
2026-11-17 09:30:55 -08:00
dotCooCoo ea782ca87e Swatches: a user swatch whose name starts with [ can be deleted and edited
The panel's Delete Swatch and Swatch Options, in the footer and the panel
menu, treated every selected name starting with "[" as reserved, so a
user swatch such as [Mine] or a color group such as [Team] could not be
deleted or edited there, and New Color Group and Save Swatch Library left
them out. The checks now use Swatch::is_reserved, as the engine's
swatch.delete and swatch.edit and the item context menu already do, so
only None and [Registration] stay protected. Selected names the document
no longer holds are left out instead of reaching the command as errors.
2026-11-17 09:22:26 -08:00
dotCooCoo 9e18b39ec6 Save PDF: choosing PDF/X-3 or PDF/X-4 unsets Profile inclusion
Profile inclusion is disabled with a standard. A Don't Include Profiles
choice made before picking PDF/X-3 or PDF/X-4 stayed in the dialog and
wrote every CMYK color as DeviceCMYK, which the PDF/X note does not
describe. Choosing either standard now sets it back to unset.
2026-11-17 09:15:14 -08:00
jmvergesandClaude Opus 5.5 02555b2f95 Merge main (36b5a5920) into fix/ai-dashes-aligned-to-corners
Conflicts in docs (the status lines, the changelog rows, the M4 Files row
and the File formats rows): main's entries and this branch's are both
kept, each once. In crates/eps/src/import/ai.rs main's brush re-export
(now with `turn_over as turn_brush_art_over`) and this branch's
test-only `DASH_CHECKS_MADE` re-export are both kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:10:38 +00:00
jmvergesandClaude Opus 5.5 560227c195 Merge main (36b5a5920) into fix/ai-art-brush-tints-of-a-spot-color
Conflicts in docs only (the status lines, the changelog rows, the M4 Files
row and the File formats rows): main's entries and this branch's are both
kept, each once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:10:15 +00:00
jmvergesandClaude Opus 5.5 e5571b5c15 Merge main (36b5a5920) into fix/ai-grouped-clipping-paths-in-compound
Conflicts in docs only (the status lines, the changelog rows, the M4 Files
row and the File formats rows): main's entries and this branch's are both
kept, each once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:10:15 +00:00
jmvergesandClaude Opus 5.5 518301e848 Merge main (36b5a5920) into fix/ai-pattern-fill-in-an-art-style
Conflicts in docs only (the status lines, the changelog rows, the M4 Files
row and the File formats rows): main's entries and this branch's are both
kept, each once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:10:15 +00:00
jmvergesandClaude Opus 5.5 e344e510d6 Merge main (36b5a5920) into fix/ai-envelope-of-type-that-draws-nothing
Conflicts in docs only (the status lines, the changelog rows, the M4 Files
row and the File formats rows): main's entries and this branch's are both
kept, each once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:10:15 +00:00
jmvergesandClaude Opus 5.5 9f372756ed Merge main (36b5a5920) into fix/ai-type-clipping-mask
Conflicts in docs only (the status lines, the changelog rows, the M4 Files
row and the File formats rows): main's entries and this branch's are both
kept, each once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:10:14 +00:00
dotCooCoo a36ab077f6 Merge main into perf/ai-save-images-decode-once 2026-11-17 09:09:11 -08:00
dotCooCoo 93da5fea01 Merge main into feat/swatches-cmd-drop-spot 2026-11-17 09:08:51 -08:00
dotCooCoo a0491aa8df Swatches: a color dropped with Cmd/Ctrl on the panel makes a spot swatch
A solid color dragged into the Swatches panel from the Fill and Stroke
squares, a Recent Colors chip or the Color Guide, and released with Cmd
(macOS) or Ctrl (Windows, Linux) held, becomes a global spot color
swatch (swatch.new {spot: true}) in the dragged color's model. It joins
the color group it is dropped on, takes a name of its own and is one
undo step. A tint becomes a new spot color of the tinted color. With
Alt also held, Alt's replacement of a solid swatch applies first.
Gradients, patterns, Registration and swatches dragged within the panel
are unchanged.
2026-11-17 09:08:47 -08:00
dotCooCoo f47035a6bb Merge main into feat/layers-drag-into-live-paint
# Conflicts:
#	crates/engine/src/cmd/layer.rs
2026-11-17 09:07:33 -08:00
dotCooCoo ac2a05f358 Merge main into feat/control-bar-shape-widgets 2026-11-17 09:06:54 -08:00
dotCooCoo b1d958ce17 MCP docs: view.shapeWidgets toggles when on is null 2026-11-17 09:06:53 -08:00
dotCooCoo 7c2129d9df Merge feat/live-paint-isolation-adds-paths into feat/layers-drag-into-live-paint 2026-11-17 09:06:41 -08:00
dotCooCoo a2c91044e0 Layers: dragging a path into a Live Paint group adds it to the group as Live Paint › Merge does
A path, compound path or group of them dropped inside a Live Paint group
in the Layers panel, or above or below one of its rows, now joins the
group's paths as livePaint.merge adds them, in one "Merge Live Paint"
undo step that selects the group. An Alt-drag adds copies, and node.move
into the group does the same. With type, an image or another object
among the rows, the drop is refused with Merge's message and nothing
moves.

A row moved into or out of the group's hidden sources makes the group's
faces and edges again, keeping the paint of those that stay; with no
path left the group has no faces until a path joins it again. Before, a
dropped path became a plain child that cut no faces, and a source dragged
out left stale faces behind.
2026-11-17 09:06:36 -08:00
dotCooCoo ffae374bac Merge main into feat/graphic-styles-alt-drag-replace 2026-11-17 09:04:06 -08:00