Commit Graph
8105 Commits
Author SHA1 Message Date
BFlat 41b70ed172 Merge pull request #8333 from dotCooCoo/fix/issue-6117
Enclosing Lasso: the tool is in the Lasso tool's flyout
2026-11-18 03:23:25 +07:00
BFlat 521e5ac158 Merge pull request #8258 from dotCooCoo/feat/type-forced-line-break
Type: Forced Line Break inserts a line break in the paragraph, at the caret
2026-11-18 03:23:16 +07:00
BFlat 0d8315801f Merge pull request #8207 from dotCooCoo/fix/issue-8090
Fix #8090: the Eyedropper samples into picked gradient mesh points
2026-11-18 03:23:07 +07:00
BFlat 7429d7247f Merge pull request #8265 from dotCooCoo/feat/live-paint-isolation-adds-paths
Live Paint: paths drawn in an isolated Live Paint group join it when isolation ends
2026-11-18 03:22:58 +07:00
BFlat bb0329a885 Merge pull request #7750 from dotCooCoo/feat/mesh-drop-color-point
Gradient mesh: a color dropped or eyedropped on a point or patch recolors it
2026-11-18 03:22:38 +07:00
BFlat a18fef053f Merge pull request #8288 from dotCooCoo/fix/metafile-loss-warnings
Metafile import: warn about images, clips and raster operations the reader leaves out
2026-11-18 03:22:29 +07:00
BFlat 496f1e351e Merge pull request #8287 from dotCooCoo/fix/pdf-large-images-64-bit
PDF import: 64-bit desktop builds open images up to 4 GB and 2^30 pixels
2026-11-18 03:22:18 +07:00
BFlat d55a967dde Merge pull request #8157 from dotCooCoo/fix/hfp-full-tone
Image Trace: High Fidelity Photo traces in Full Tone with abutting shapes
2026-11-18 03:22:09 +07:00
BFlat e1b12a5640 Merge pull request #8060 from dotCooCoo/feat/hyphenation-languages
Type: text hyphenates in Bulgarian, Turkish and Russian, and in German, Polish, Portuguese and Italian with CRAFT_I18N_DIR
2026-11-18 03:22:00 +07:00
BFlat a3a9b081e2 Merge pull request #8062 from dotCooCoo/feat/loaded-text-link-cursor
Selection: loaded text shows a link cursor over an object a click threads it into
2026-11-18 03:21:40 +07:00
BFlat 5088d9c6ec Merge pull request #8272 from dotCooCoo/feat/emf-font-width-scale
Metafile import: a LOGFONT average character width becomes Horizontal Scale
2026-11-18 03:21:07 +07:00
BFlat d7556fbae5 Merge pull request #8249 from dotCooCoo/feat/swatches-drag-to-delete
Swatches: swatches dragged onto the Delete Swatch button are deleted
2026-11-18 03:20:53 +07:00
BFlat 3ab5db4c64 Merge pull request #8092 from dotCooCoo/fix/issue-8047-group-marquee
Group Selection: a marquee selects the objects it touches, whole
2026-11-18 03:20:42 +07:00
BFlat aa8ef006da Merge pull request #7446 from dotCooCoo/fix/ai-transform-guide-reach
.ai import: guides past an object's art keep the drawn look under Transform and Free Distort
2026-11-18 03:20:32 +07:00
dotCooCoo 527d97bf7f Merge main into fix/ai-scatter-brush-art-upright 2026-11-17 12:20:28 -08:00
dotCooCoo c0077d1b89 Merge main into fix/metafile-empty-artboard-first 2026-11-17 12:20:23 -08:00
BFlat 0d681e804d Merge pull request #8339 from dotCooCoo/fix/bounds-reference-number
Fix #8334: setBounds reads whole-number float references correctly
2026-11-18 03:20:23 +07:00
BFlat 40f1080a86 Merge pull request #8215 from dotCooCoo/fix/trim-line-end-on-curve
Path Precision Tools: a path that ends on a curve still divides it after the curve is cut
2026-11-18 03:20:13 +07:00
BFlat a3a3f2dfec Merge pull request #8108 from dotCooCoo/feat/spiral-constrain-angle
Spiral: dragging turns the spiral to the pointer, and the click dialog starts it along Constrain Angle
2026-11-18 03:20:05 +07:00
BFlat 409b8ce9d1 Merge pull request #8058 from dotCooCoo/perf/selection-batch-toggle
Selection: select.toggle and select.add with many ids go through the selection once
2026-11-18 03:19:52 +07:00
BFlat 3bdc7400a3 Merge pull request #8045 from dotCooCoo/fix/ai-legacy-perceptual-gradient
Legacy .ai: write Perceptual gradients with the stops on their curve
2026-11-18 03:19:43 +07:00
BFlat ba6e0683a5 Merge pull request #8328 from dotCooCoo/fix/followup-8305
Color Guide: a script run or a resting link keeps the base color it showed
2026-11-18 03:19:34 +07:00
dotCooCoo 393fe5dc80 OpenType: the panel menu has a Stylistic Sets submenu
The OpenType panel menu gains a Stylistic Sets submenu after Reset
OpenType Features. It lists the same sets, labels and checks as the
panel's Stylistic Sets button, and a set chosen there turns on or off
for the characters the panel acts on in one undo step, keeping their
other features. The submenu is disabled with no text selected or when
the font offers no sets.
2026-11-17 12:16:59 -08:00
dotCooCoo 1480cb77da Shape Builder: the hover and drag hatch tests each line only against the edges spanning it
The hatch over the region under the pointer, and over each region a drag
has touched, tested every flattened edge of the region on every hatch
line, on every repaint. The edges are now sorted by their lower end once,
and each line tests the edges that span it (plus any edge with a NaN or
infinite end height, which keeps the old test on every line). The
crossing test, the crossing formula, the sort and the pairing are
unchanged, so the hatch lines are the same coordinate for coordinate.

Tests compare every coordinate's bits against a copy of the old function
on 12 paths at three gaps, check the sweep's crossings line by line
against the old test, and count the edges tested on a 2,000-sided region.
2026-11-17 12:14:51 -08:00
dotCooCoo 4a60b78b5c Actions: action.batch errors count steps from 1 and name the member they reject
action.batch refused a bad step before any file opened as `commands[i]`,
counted from 0, while a step that failed as it ran was named
`action step N (`id`)`, counted from 1. A step whose params its command
refused gave only the command's own error, without saying which step it
was.

- The checks before the batch (no command, an unknown command, a nested
  batch, prefs.import) now name the step as `action step N (`id`) failed:`,
  from 1, as the runtime errors do. A long unknown id is cut short in the
  message, as an unknown key is.
- The parameter check names the action.batch step whose params it
  refuses the same way. command.batch keeps passing the step's error on
  as it is.
- Override Open matches only document.open, and Override Save only
  document.save and file.saveAs: file.open, file.save and document.close
  are not engine commands, and a step with one is refused as unknown.
  The params text no longer lists them, and docs/mcp.md says a step with
  file.open or file.save is refused as an unknown command.
2026-11-17 12:09:17 -08:00
dotCooCoo 12f7e34f21 Messages: a success token, and the docs state the plug-in and rollback rules
- The success level takes a new `success` theme token (the same green)
  instead of the 3D axis color.
- docs/mcp.md names the plug-in conditions for `vc_call`, says no step is
  recorded while a drag or typing is in progress, says a failed script run
  keeps the messages it raised, and names the headless MCP server and
  `vectorcraft-cli run` as the sessions without a window. Lines wrap like
  the rest of the file.
- The params text and the error say "whitespace", which is what the check
  rejects.
- A new test runs a script that draws, raises a message and throws: the
  drawing is put back and the message is kept.
- The long-message test also checks that the stack stays inside the
  window.
- The evidence line in docs/target-app-parity.md moves after the Scripts
  entries.
2026-11-17 12:06:08 -08:00
ruchirguitar d6ff2f54ce Production Preflight: add output checks and repair panel 2026-11-18 01:35:12 +05:30
dotCooCoo 987f8572c4 Print: an overprinting gradient's paper-white padding at a hard end stop keeps the ink below
When two stops share an end's offset, Level 2's stepped bands pad past
that end with the end stop's color and a Level 3 shading pads with the
color of the stretch next to it. The plate clip now decides whether the
padding is paper white by the color the painter in use draws, so a
paper-white padding no longer knocks out the ink below at Level 2, and
an inked one is no longer drawn over the ink below at Level 3 where the
shading pads with paper white.
2026-11-17 12:03:28 -08:00
dotCooCoo 6252d4b29e Pencil: path.freehand refuses connect without extend
path.freehand ignored a connect given without extend and drew a new
path. It now refuses it with "connect needs extend". A connect given
with extend is checked (its id, a path other than the one extended
with an open end, and an end of "start" or "end") before a stroke of
one point returns, so a bad connect is refused there too, and
brush.freehand no longer changes the path's brush or the selection
before refusing it. A null connect is still a key left out.

Docs: params text, docs/mcp.md, docs/target-app-parity.md. i18n: the
new message in the catalogs that carry the other connect messages.
2026-11-17 11:56:49 -08:00
dotCooCoo 0febd204d7 EMF/WMF: Use Artboards applies live effects once for all artboards
An EMF or WMF export with Use Artboards applied the document's live
effects (geometry effects, and symbol art with effects) once for each
chosen artboard. vectorcraft_metafile::export_regions now checks every
region, applies the effects once and writes one metafile per region.
export is its one-region case, and the engine's encode calls
export_regions once for all chosen artboards. Each file's bytes and
warnings are unchanged.
2026-11-17 11:56:35 -08:00
dotCooCoo 3919a1a5df Symbols: Shift with Redefine Symbol keeps the art as ordinary art
Redefine Symbol chosen from the Symbols panel menu with Shift held now
updates the symbol and its instances from the selected art and leaves
that art as ordinary art, as the Edit symbols help page describes
(https://helpx.adobe.com/illustrator/desktop/manage-objects/traces-mockups-symbols/edit-symbols.html).
Without Shift the art still becomes an instance.

- symbol.update takes keepArt (default false). With true the art keeps
  its ids, layer and stacking position and stays selected, apart from
  art that is hidden or locked, and the result's id is null. A keepArt
  that is not true or false is an error.
- Redefining the symbol being edited with keepArt still leaves symbol
  editing mode in the same undo step.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-17 11:51:44 -08:00
dotCooCoo e24d15c40c Tile: other panes keep their selected objects' outlines between frames
Each pane other than the current document's, under Window > Arrange >
Tile and in floating document windows, made and flattened the outlines
of its document's selected objects on every frame, and with more points
than are outlined it measured the bounds of every selected object on
every frame. The pane now keeps the outline shapes by slot and makes
them again when the document's revision, the document, the selection or
the pane's screen mapping changes. The shapes drawn are the same as
before. A pane with View > Edges off keeps none, and the outlines of
panes that no longer show are dropped with the pane's other state.

With every object selected, one frame of a pane's outlines with their
tessellation takes 28.9 ms of CPU time in a release build instead of
40.1 ms for 20,000 rectangles, 116.7 ms instead of 197.2 ms for 20,000
ellipses, and 0.05 ms instead of 32.0 ms for 150,000 rectangles (medians
of seven interleaved runs of 20 frames, pane_outlines_timing).
2026-11-17 11:47:47 -08:00
dotCooCoo 7f801a3ec3 Panels: update native floating window geometry 2026-11-17 11:42:10 -08:00
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 58d53b477a Type: the font menu's Document filter counts type in scatter brushes
The Document filter listed the families of type in layers, symbols,
patterns and graph designs, but not type kept in the art of a stored
brush. A scatter brush draws copies of its art along a stroke, type
included, so a family used only there was missing from the filter.

The filter now reads the stored brush library and counts type in each
scatter brush's art. Art and pattern brushes leave type out when they
bend their art, so their type is not counted. Malformed library
entries are skipped.
2026-11-17 11:27:35 -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 a9ff12b7b4 i18n: remove the obsolete File Info control characters rows from ten catalogs
File Info refuses a value with control characters with one of two whole
messages, "{k} has control characters" and "{k} has control characters
or line breaks". The cs, fr, hu, ja, ka, ko, nl, ru, tr and zh-hant
catalogs still had a row for the single message those two replaced,
"{k} has control characters{_1}", which no message uses. The rows are
removed, and a test checks that no catalog has a row for that message.
2026-11-17 11:15:28 -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
ruchirguitar d360c176ea docs: drop shipped Dimension tool, Touch Type and Snap to Glyph from the gap lists (#8387) 2026-11-18 00:33:26 +05:30
dotCooCoo 556e1552d8 Print: an overprinting gradient keeps the ink below where it puts none on PostScript plates
A PostScript plate has no blending modes, so an overprinting gradient
whose stops mix zero and nonzero ink of a plate was drawn whole on it,
and its paper-white part knocked out the ink below.

On a plate, the EPS writer now clips an overprinting gradient to where
it puts the plate's ink down. Linear, radial and diamond gradients leave
out the stretches between paper-white stops and the padding past a
paper-white end stop. Conic gradients leave out their paper-white
wedges, and freeform gradients leave out their paper-white cells (masked
at Level 3, clipped at Level 2). Fills, strokes (within, along and
across) and characters are covered, on process and spot plates. Where
the gradient puts ink down it is drawn as before, and a gradient with
ink everywhere is written unchanged.

On PostScript plates, a stop or point of an overprinting gradient whose
color counts as black, with up to half a percent of another ink, now
puts none of that other ink down, as a solid fill of that color already
does. PDF plates are unchanged.
2026-11-17 11:02:04 -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 c0e4624358 Links: frames that fetch nothing reuse the cached rows without copying them
The Links panel kept its links.list rows and Link Info in panel state by
value, so every frame copied the whole JSON list out of egui memory and
wrote another copy back, even when nothing was fetched. The cache is now
stored behind an Arc: a frame reads it without a copy and stores a new
one only when the list is fetched again (document revision, Show, Sort,
DCS option or the 2-second recheck) or Link Info changes. The flyout
reads the same cache by reference.
2026-11-17 10:59:10 -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 ba3c7197f7 Twist: preserve boundary tangents 2026-11-17 10:45:19 -08:00
dotCooCoo 76078f1991 PDF import: a DeviceCMYK image in a PDF/X file opens with the output intent's profile
A file whose catalog has a CMYK /GTS_PDFX output intent describes its
DeviceCMYK colors with that intent's profile. A DeviceCMYK image in
such a file now opens tagged with that profile, so a CMYK image that a
PDF/X export writes as DeviceCMYK opens with its profile again.

An image drawn where a /DefaultCMYK is in scope keeps no profile, since
the default replaces DeviceCMYK there. The scope is read per image from
the resources it is drawn with, and the image cache keeps the tagged and
untagged reads apart.
2026-11-17 10:44:47 -08:00
dotCooCoo cc57835f8f Font menu: a new sample size keeps the list on its rows
A size picked from inside the open menu changed the row height while the
list kept its scroll offset in points, so the rows in view moved to other
families. The list now keeps the same row at the top of its view at the
new height.

Screen readers find Small, Medium and Large as radio buttons in a group
named Font Preview Size, with the current size chosen. Tests check both,
and the module doc is rewrapped to the file's width.
2026-11-17 10:42:53 -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