Commit Graph
5941 Commits
Author SHA1 Message Date
dotCooCoo 15b3aa1d68 Brushes: Add original Pressure Sensitive library 2026-11-17 11:39:00 -08:00
dotCooCoo a1e3d6b5bb Graphic Styles: a style dropped on another with Alt replaces that style
A graphic style dragged onto another style in the Graphic Styles panel
with Alt held gives that style the dragged style's look. The replaced
style keeps its name, place and id, and the art still linked to it
takes the new look in one undo step; the dragged style and its art stay
as they are. Without Alt the style moves, as before.

graphicStyle.redefine takes {name, from} for this. A style dropped on
itself, or on a style with the same look, records nothing. A `from` that
names no style or is not a string, or `from` with `id`, is an error.
2026-11-17 11:31:04 -08:00
dotCooCoo 2a3019fcfe Type: editing type set in a missing font asks to confirm first
A Type tool click, or a Selection or Direct Selection double-click, on
type whose story is drawn in a font that isn't available as named (a
missing family, or a style its family lacks) now opens a question that
names those fonts instead of starting to edit. OK starts editing with
the caret where the type was clicked; Cancel leaves the document, its
undo history and the selection as they were. Each new edit asks again;
a click within the type being edited, or in another frame of its story,
does not. The fonts the type names are not changed.

The check reads only the clicked story's runs. As in text.missingFonts,
it leaves out CSS generic families and names over 256 bytes; it also
skips inline graphics and empty runs. The CSS generic family list moves
to vectorcraft-text so both share it. The question is the
missingFontEdit dialog, answered through the Type tool's
missingFontEdit option.
2026-11-17 11:28:52 -08:00
dotCooCoo feed8f47b2 Transform: Ellipse Properties has a Constrain Pie Angle link that keeps the pie span
Ellipse Properties in the Transform panel and the Properties panel's
Transform section now has a Constrain Pie Angle link beside Pie Start and
Pie End Angle. While it is on, a typed angle moves the other angle by the
same amount, so the pie keeps its size, as the help page describes:
https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-live-shapes/live-shape-properties.html

- object.setLiveShape takes constrainPie with one of pieStart and pieEnd.
  Every selected ellipse keeps its own span in one undo step; an angle
  equal to the current one records none. constrainPie with both angles,
  with neither, or with invertPie is a parameter error.
- VectorCraft's own rules: the link is off at every launch and is not
  saved; the two panels share it; the span is counted counterclockwise
  from the start angle to the end angle, across 0 degrees; a whole ellipse
  stays whole; after Invert Pie the swapped span is kept; the on-canvas
  pie widgets still move one angle at a time.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 11:24:44 -08:00
dotCooCoo a533aec0fe Transform: a line length too small to move its ends records no undo step, and both Line fields send together
object.setLiveShape reports no change when the rounded ends stay where they
are. The Line Length and Line Angle fields send every edited value in one
call, so a length committed in the same frame as an angle step is applied.
2026-11-17 11:18:57 -08:00
dotCooCoo 8887fc9d00 Live Paint: leaving nested isolated Live Paint groups adds the drawn paths to each
Leaving isolation mode in a Live Paint group drawn in another isolated
Live Paint group, and that group too (object.exitIsolation, or
object.isolate on a level outside both), now adds the drawn paths to each
group, innermost first, one undo step each, so the inner group joins the
outer one. Before, only the innermost group took its paths, and the inner
group and the paths drawn directly in the outer group stayed beside the
outer group's faces.

A Live Paint group drawn in another one now counts as drawn art: its
hidden sources group no longer keeps it out of the outer group.
2026-11-17 11:14:38 -08:00
dotCooCoo 0e2ac0b4f9 Layers: Locate Object locates the frontmost of several selected objects
With several objects selected, Locate Object (and Locate Layer) now
finds the one frontmost in the stacking order instead of the one
selected last. Objects on different layers and sublayers compare by the
layers' order, and a member selected with its group counts as in front
of it. An id given to layer.locate still locates that object.
2026-11-17 11:01:15 -08:00
dotCooCoo bbf11feac3 Stroke: Delete and Escape skip width points hidden on a brushed stroke
Width points selected before their stroke took a brush show no handles,
but the Width tool still took Delete, Backspace and Escape for them. The
tool now leaves those keys to the app, as it does with no width points
selected.

- The Profile list shows its hover border whenever a click opens it,
  including on a brushed stroke with a profile, where it lists Uniform.
- A test checks that the list's hover text and the Width tool's status
  message are the same string, so the two share their catalog rows.
- An engine test checks that a press or a double-click on a brushed
  compound path puts the message in the status bar and runs no command.
- The doc comment of Session::brushed_strokes_profiled says when type
  counts, and the progress-doc line names the double-click and says that
  art and pattern brushes do not follow a width profile yet.
2026-11-17 10:45:44 -08: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 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 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 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 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 17a8152cd0 Merge main into feat/object-mosaic-dialog 2026-11-17 09:44:16 -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 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 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
dotCooCoo 8d7708f1c0 Graphic Styles: art or an appearance dropped on a style with Alt replaces that style
Art dragged off the canvas, or the Appearance panel's thumbnail, dropped
on a style in the Graphic Styles panel with Alt held runs
graphicStyle.redefine with that style's name and the object's id (the
first object of the art), in one undo step. The style keeps its name,
id and place in the list, and the art still linked to it takes the new
look. The style is outlined while one is held over it with Alt. An
object already linked to the style with its look changes nothing.
Without Alt the drop still makes a new style, and a style dropped on a
style still moves it.
2026-11-17 09:04:01 -08:00
dotCooCoo 22d44c6fae Tools: the Spiral and Arc tools refuse the values they would keep as others
The Spiral tool's option check took a decay up to 150 while the tool keeps
at most 99.99, so `tool.setOption` reported success with another value. It
now takes 5 to 99.99. The Arc tool's lengths are checked from 1e-9 to 1e6,
the lengths it keeps. The Spiral dialog sends a typed decay past 99.99 as
99.99, the decay the spiral was already drawn with.

The Arc dialog test now expects OK to refuse a slope outside -100 to 100
and a Base Along other than X or Y, leaving the dialog open and the options
unchanged. The Slope field and its slider keep a typed value within that
range.
2026-11-17 08:55:24 -08:00
dotCooCoo ee10fbc9f6 Merge main into fix/symbol-drop-across-documents 2026-11-17 08:42:42 -08:00
dotCooCoo 6e44c63cc3 Undo: undo and redo keep the settings changed without an undo step
Undo and redo put back the whole document a step stored, so settings
that change without an undo step went back with it. Undoing any
earlier edit turned the perspective grid's Lock Grid off again, turned
its Snap to Grid back on, showed a hidden grid and switched the active
plane back. It also reset the grid from Gridline every and
Subdivisions, the export settings assets.settings.set stores, and the
current brush and symbol.

Each undo step now also records these settings as the step left them.
Undo and redo compare that record with the document they bring back:
a setting the step did not change stays as it is now, and a setting
the step changed comes back with the step. So undoing a perspective
grid preset still hides the grid the preset showed, and undoing a grid
definition that locked the grid unlocks it. The point Automatic Plane
Positioning holds still follows the steps, and is let go when the
active plane kept is another one.
2026-11-17 08:40:50 -08:00
dotCooCoo 4d1a36fb34 Merge main into fix/instance-row-effects-outline-hit 2026-11-17 08:37:25 -08:00
dotCooCoo 63eeb73a26 Merge main into feat/toast-messages 2026-11-17 08:35:45 -08:00
dotCooCoo 04c65a85af Messages: app.toast shows a message over the window without stopping work
`app.toast {message, level?, seconds?}` queues a short message that the
desktop app shows at the window's bottom right. It closes after its time
(4 seconds by default, 0.5 to 60) or when clicked. At most 5 show at
once, the newest lowest; a message shows at most 6 lines with the whole
text on hover, and a stack taller than the window scrolls. `level`
(info, success, warning, error) sets the color of its edge.

Scripts raise one with `vc.run`, MCP clients and plug-ins through the
command, and an action records it as a step. The app's own code calls
`Session::toast`. The command edits no document and adds no undo step;
invalid values are errors. Part of #7523: the tick sound is not
included.

Docs: docs/mcp.md, the Automation evidence in docs/target-app-parity.md.
2026-11-17 08:30:51 -08:00
dotCooCoo c4ead8e46f Transform: Rotate Bounding Box… turns the selection's bounding box without moving the art
Object › Transform › Rotate Bounding Box… asks for an angle and turns the
bounding box of the selected objects by it, leaving their art where it
is. Reset Bounding Box squares it again.

- object.rotateBoundingBox {angle, absolute?}: by default the box turns
  by angle from the angle the selected objects share (0 when theirs
  differ); absolute: true turns it to angle. Objects with different
  angles get one shared angle, and the objects inside a group or a
  linked opacity mask turn with it and keep their relative angle. A path
  of a compound path selected on its own turns only its own box, the
  same objects the transforms move. An angle within 1e-6° of 0 is
  stored as 0. One undo step, none when every box is already at the
  angle. A missing or non-numeric angle is an error. changed counts
  every box that turned, as object.resetBoundingBox counts the boxes it
  squares.
- object.resetBoundingBox squares only the box of a compound path's
  path selected on its own, instead of the whole compound path.
- Menu labels in every catalog.

Docs: docs/mcp.md, docs/target-app-parity.md.

Part of #5954.
2026-11-17 08:28:29 -08:00
dotCooCoo 9ae9da71b8 Fix numeric reference points in bounds transforms 2026-11-17 08:02:50 -08:00
yoriswind 5f0e011379 Preserve open outlines painted by ancestor strokes 2026-11-17 07:48:02 -08:00
BFlat 36b5a5920c Merge pull request #8098 from el-j/feat/save-pdf-transparency-confirmation-8097
Fix #8097: Save PDF: show flattener rasterization resolutions in Summary warning and Advanced section
2026-11-17 22:38:24 +07:00
dotCooCoo 3c7f03f62d Stroke: the Profile list is dimmed while the stroke's brush keeps its own size
Brush art does not follow a stroke's width profile, so picking a profile
for a brushed stroke changed nothing on the canvas.

- While every stroke the Profile list edits draws with a brush, the list
  in the Stroke panel, the Properties panel and the Control bar is
  dimmed and says why when hovered. It opens no list while those strokes
  are uniform, and offers only Uniform, which removes the profiles, while
  one has a profile. The Flip Along and Flip Across buttons beside it
  are off. The strokes are the ones stroke.set edits: the
  active Appearance stroke row, a selected group's or compound shape's
  own stroke, or the objects' top strokes. Images and symbol instances
  do not count. A selection where one stroke has no brush keeps the full
  list.
- The Width tool adds, edits and deletes no width points on a brushed
  stroke; a press or double-click on one, or Delete with its width
  points selected, shows the same reason in the status bar. Without
  Shift, the press deselects the width points of other strokes. A
  plain stroke under a
  selected brushed one stays reachable, and width points selected
  before their stroke took a brush show no handles.
- The reason has a row in every complete catalog.
2026-11-17 07:30:44 -08:00
dotCooCoo 12977ec543 Fix #1954: PDF/X CMYK in the output intent's profile is written as DeviceCMYK
A PDF/X-3 or PDF/X-4 export tagged every CMYK color with an ICC-based
space of the same profile that the output intent embeds. In PDF/X-3 and PDF/X-4, CMYK colors in the
profile of a CMYK output intent are now DeviceCMYK, and the profile is
written once, as the output intent's DestOutputProfile (ISO 32000-1,
14.11.5:
https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#page=641).

- With output.profiles none and a CMYK output intent, PDF/X-3 and PDF/X-4
  write every CMYK color as DeviceCMYK, unless colors are converted to a
  CMYK destination of another profile, which keeps its tag. Before, those
  standards tagged every color whatever profiles said.
- RGB and gray colors stay tagged, and so do CMYK colors and images in
  another profile.
- A CMYK image that carries the output intent's profile is DeviceCMYK,
  and so is every CMYK image when none makes CMYK colors DeviceCMYK. A
  CMYK JPEG then loses its ICC_PROFILE segments.
- Transparency groups blend in DeviceCMYK when CMYK colors are
  DeviceCMYK, also when the file has no ICC-based CMYK space.
- Files without a standard keep the tags that profiles asks for.
- The Save PDF dialog's note for PDF/X-3 and PDF/X-4 says that CMYK
  colors in the output intent's profile are written as DeviceCMYK.

Docs: docs/mcp.md, docs/target-app-parity.md and the document.exportPdf
params text.
2026-11-17 07:30:22 -08:00
dotCooCoo cce26edfa0 Merge main into fix/metafile-loss-warnings
# Conflicts:
#	Cargo.toml
2026-11-17 07:25:38 -08:00
dotCooCoo af09fc2064 Scripts: open files are written in the order they were opened
When two File objects held changes to the same file, copy, length, a
new open of the file and a withdrawn grant wrote them in no fixed
order, so the copy or the file could end up with the older object's
bytes. They now write them in the order the objects were opened, as
the end of the run does.
2026-11-17 07:14:42 -08:00
dotCooCoo d63d45a0bd Merge main into feat/editable-flares 2026-11-17 07:01:52 -08:00
dotCooCoo 0b114972a9 Merge main into feat/hold-shortcuts 2026-11-17 06:47:09 -08:00
dotCooCoo 78f40746f7 Direct Selection: a re-mapped segment keeps a retracted handle exactly retracted
With Interpolate Control Points on, a retracted handle was mapped like
any other and could land a rounding error away from its anchor. On a
smooth anchor, lining the handles up then read that error as a
direction and turned the other handle. A retracted handle now goes to
its anchor's new place exactly.
2026-11-17 06:45:47 -08:00
dotCooCoo 3447568dea Merge main into fix/variable-library-warning-kind-names-i18n 2026-11-17 06:36:21 -08:00
BFlat c4147826a3 Merge pull request #7353 from dotCooCoo/fix/i18n-adjacent-placeholders
i18n: messages with values side by side can be translated
2026-11-17 21:32:55 +07:00
BFlat f20bc1c97f Merge pull request #8320 from dotCooCoo/fix/flare-ring-seed-mixing
Flare: distribute the first ring for small seeds
2026-11-17 21:32:44 +07:00
dotCooCoo 1b3a1a3eef Direct Selection: setBounds and guide.move check the interpolate param
object.setBounds and guide.move move direct-selected anchors through the
same path as object.move, so they already followed the Interpolate
Control Points preference. They now list `interpolate` in their params
text and reject a value that is not true or false, also when the change
only scales the anchors or only guides are selected. A test covers both
commands with the preference on and off and with the param.
2026-11-17 06:25:45 -08:00
dotCooCoo 9ef93eb563 Swatches: a library pattern keeps a global color whose name the document uses
When Add to Swatches brought a library pattern whose art links to a global
or spot color, and the document had that name for another color, the
pattern was relinked to the document's color. Adding the library's color
then made a numbered copy that the pattern did not use. The color now comes
in under a numbered name and the pattern links to it, as an added color
does, and the check for a pattern already in the document compares it the
same way.
2026-11-17 06:20:11 -08:00
dotCooCoo badaf937e3 Fix #8316: preserve native CMYK PSD composites 2026-11-17 06:19:51 -08:00
el-j 5665114718 Save PDF: include flattener resolutions in Summary warning and Advanced section 2026-11-17 15:00:11 +01:00
dotCooCoo fd03766101 Add Dashed Arrow brush with separated shaft and persistence coverage 2026-11-17 05:52:43 -08:00