Commit Graph
5180 Commits
Author SHA1 Message Date
dotCooCoo 97a1a363b8 Merge main into feat/print-overprint-black 2026-11-16 15:09:39 -08:00
BFlat 3e75a7eae7 Merge pull request #8013 from dotCooCoo/fix/transform-copies-raster-effects-groups
Effects: each copy of a group's or layer's Transform effect carries the raster effects before it
2026-11-17 02:50:52 +07:00
BFlat fb6845b07a Merge pull request #8161 from dotCooCoo/perf/cut-selection-one-pass
Cut: take the cut objects out of the selection in one pass
2026-11-17 02:50:44 +07:00
BFlat 3e9947ac9d Merge pull request #8179 from dotCooCoo/feat/graphic-styles-drag-to-new-duplicates
Graphic Styles: a style dropped on New Graphic Style is duplicated at the end of the list
2026-11-17 02:50:36 +07:00
BFlat 40e2aecad3 Merge pull request #8174 from dotCooCoo/perf/anchors-many-set
Select: anchorsMany updates the selected objects in one pass
2026-11-17 02:50:10 +07:00
BFlat 5190f99c6c Merge pull request #8173 from dotCooCoo/fix/editing-data-fallback-says-why
.ai import: a refused PDF part's error says why the editing data couldn't be read
2026-11-17 02:50:01 +07:00
dotCooCoo 4133419a31 Merge main into feat/print-overprint-black 2026-11-16 11:23:14 -08:00
dotCooCoo 097eaba2b5 Merge main into fix/transform-copies-raster-effects-groups 2026-11-16 10:35:16 -08:00
BFlat 9669720367 Merge pull request #8138 from dotCooCoo/feat/live-paint-stroke-drag
Live Paint: a Bucket drag from an edge strokes every edge it crosses
2026-11-16 23:54:02 +07:00
BFlat e6ad615815 Merge pull request #8116 from dotCooCoo/fix/arc-params-reject-invalid
Shapes: invalid arc options and grid counts are errors instead of defaults
2026-11-16 23:53:53 +07:00
BFlat bf73a1450b Merge pull request #8110 from dotCooCoo/feat/place-linked-eps
Place: Link keeps a placed EPS linked to its file, as a placed PDF page already is
2026-11-16 23:53:44 +07:00
BFlat f11272cfe1 Merge pull request #8102 from slafebre/fix/8093-pathfinder-clip-masks
Fix #8093: Pathfinder takes a clip group's members where its mask shows them
2026-11-16 23:53:15 +07:00
dotCooCoo 739aa8e6ea Merge main into feat/graphic-styles-drag-to-new-duplicates 2026-11-16 08:12:34 -08:00
BFlat 36c1f37ac6 Merge pull request #8096 from dotCooCoo/feat/packaging-check-fold-lines
Packaging Tools: Check Fold Lines finds the panels and hinges of a blank and lists what is wrong
2026-11-16 23:08:07 +07:00
BFlat d9870d379f Merge pull request #8137 from dotCooCoo/perf/symbols-panel-current-symbol
Symbols: the panel reads the current symbol without running symbol.list
2026-11-16 23:07:36 +07:00
BFlat b86585d1b4 Merge pull request #8109 from dotCooCoo/feat/ai-graph-filled-lines
.ai graphs: Draw Filled Lines and its Line Width open live and save through the Gy record
2026-11-16 23:07:27 +07:00
BFlat 7d90d4ad8e Merge pull request #8115 from dotCooCoo/feat/split-resets-stroke-align
Scissors: paths a cut makes have every stroke aligned Center
2026-11-16 23:07:06 +07:00
BFlat b00aa7cd98 Merge pull request #8136 from dotCooCoo/fix/export-screens-single-pdf
Export for Screens: Single file PDFs are refused for assets, layers and each object
2026-11-16 23:06:47 +07:00
BFlat a6a2919b2c Merge pull request #8112 from dotCooCoo/fix/similar-fonts-no-numbers
Type: Show Similar Fonts lists a family with no numbers in common after the measured ones
2026-11-16 23:06:36 +07:00
BFlat 9dbd107205 Merge pull request #8126 from dotCooCoo/feat/shape-drag-grave-copies
Shape tools: Backtick held while dragging leaves copies of the shape
2026-11-16 23:06:28 +07:00
BFlat e157e9c737 Merge pull request #8111 from dotCooCoo/perf/eps-readhex-readline-one-pass
EPS import: readhexstring and readline read the data in one pass
2026-11-16 23:06:11 +07:00
BFlat 3275ae1951 Merge pull request #8132 from dotCooCoo/feat/magic-wand-cmyk
Magic Wand: Fill Color and Stroke Color tolerances compare CMYK values in a CMYK document
2026-11-16 23:05:25 +07:00
BFlat ee59999a00 Merge pull request #7982 from dotCooCoo/feat/common-tangents
Path Precision Tools: Common Tangents draws the lines touching two closed paths
2026-11-16 23:05:15 +07:00
dotCooCoo 8797e43f4d Merge main into feat/graphic-styles-drag-to-new-duplicates 2026-11-16 07:58:37 -08:00
dotCooCoo 139f881f81 .ai import: a refused PDF part's error says why the editing data couldn't be read
When the import refuses a file's PDF part and its editing data can't be
read either, the error named only the PDF part. It now adds "its editing
data couldn't be read either (<why>)", as layers already do
(crates/eps/src/import.rs). The reasons come from the editing data
reader (a size limit, damaged compression) and from the private data
streams (larger than 256 MB, another filter or decode parameters,
damaged zlib data). A file without editing data, and an open with pages
picked, layers off or the editing data off, keep the PDF part's error.

Part of #4366.
2026-11-16 07:56:57 -08:00
dotCooCoo 33f464faac Merge main into perf/anchors-many-set 2026-11-16 07:54:42 -08:00
dotCooCoo 5371149bf1 Select: anchorsMany updates the selected objects in one pass
select.anchorsMany, which the Direct Selection and Group Selection
marquees, the Lasso and Smart Pen send, checked and changed membership
through Selection::contains, add and remove for each item, each a scan
of the selected objects. It now keeps the selected objects in a map
while the items run and writes them back once. The objects, their
order, the anchors, segments, key, key anchor and the other selection
fields come out as before, repeated ids and ids deselected and
selected again included.

Tests compare the result with the item-by-item loop for every mode,
four starting selections and fifteen item lists, and bound the passes
over the selected objects. An ignored benchmark times both loops on
2,000, 20,000 and 50,000 rectangles.
2026-11-16 07:50:19 -08:00
dotCooCoo 7508f7cfe3 Graphic Styles: a style dropped on New Graphic Style is duplicated at the end of the list
A graphic style dragged from the panel onto the New Graphic Style button
runs Duplicate Graphic Style. The button takes the drop with no art
selected and is outlined while a style is held over it. A dragged style
that is highlighted brings the other highlighted styles, copied in panel
order in one undo step, and the copies are highlighted.

graphicStyle.duplicate now adds the copy at the end of the list instead
of right after its source, for the panel menu's command and the drop.

The list's drop zone no longer reaches over the footer when the list is
shorter than 220 pt, so a style released on New Graphic Style or Delete
is not moved to the end of the list.
2026-11-16 07:49:56 -08:00
dotCooCoo 60ae8985fc Print: Overprint Black overprints solid black art on separations
The Print dialog's Output section has an Overprint Black checkbox under
Convert All Spot Colors to Process, off by default and available with
Separations (print.setup output.overprintBlack, kept with the document
and in print presets). With it on, solid 100% process K or 100% gray
fills, strokes and characters, and gradients whose every stop (or every
freeform point) is, overprint in the printed copy, so the inks under them
stay on the other plates. Rich, RGB, Lab, spot-linked and lighter blacks
knock out. The document and its own overprint settings do not change, and
composite output ignores the option.

Plates draw an overprinting paint that puts no ink on them as nothing, so
PostScript separations keep the inks below it too. Overprinting character
fills and strokes now darken on PDF plates like fills and strokes, a type
object's own fill in a PDF is drawn with its blending mode, and Edit >
Edit Colors > Overprint Black counts a gradient with a spot-linked stop as
a spot black and a freeform gradient by its color points.
2026-11-16 07:33:12 -08:00
dotCooCoo 33e7a8893b Cut: take the cut objects out of the selection in one pass
Clear with `ids`, which Cut uses for the objects it copied, removed each
id from the selection with its own scan of the selected objects. It now
calls Selection::remove_all once, which gives the same selection.

With 50,000 objects selected and all of them cut, the selection step
takes 5.5 ms instead of 572 ms (release build, median of 7 wall-clock
runs, measured while other builds were running). The new tests compare
the result with removing each id in turn, including Undo and Redo, and
an ignored benchmark times both.
2026-11-16 07:25:45 -08:00
BFlat a6e94de555 Merge pull request #5484 from ruchirguitar/feat/4943-more-indian-languages
Complete #4943: Nepali, Konkani and Sindhi language options
2026-11-16 21:48:41 +07:00
dotCooCoo a1364474ca Place: the Place dialog's Link tooltip offers an EPS file as one locked object
With Link, File > Place now places an EPS file, a PostScript file and a
PostScript .ai as a linked placed document, but the Place dialog still
counted them as other files, so Link's tooltip did not say they become one
locked object, and the dialog test expected a PostScript .ai to be
embedded.

- `is_vectorcraft_file` counts an EPS, EPSF or PostScript file on disk, and
  a PostScript .ai, as a document, and leaves out a DCS file, which is
  placed as a linked image.
- Where the platform reads part of a file, it reads only the file's start
  and tells a DCS file from it with `place::head_is_dcs` (the check Links
  uses), binary EPS headers included.
- The dialog test now checks the .ai, .eps and .ps cases, the bounded read,
  DCS files plain and behind a binary header, and a file named .eps that
  isn't PostScript.
2026-11-16 06:46:09 -08:00
dotCooCoo 2a464df744 Magic Wand: test that magicWand.set refuses a reset that is not true, false or null
The rejection test now gives `reset` a string and checks that the call returns an error and leaves the settings unchanged.
2026-11-16 06:10:21 -08:00
dotCooCoo 70fdab8445 Export for Screens: Single file PDFs are refused for assets, layers and each object
With `pdfs: "single"` and several assets, layers or selected objects
(`selection: "each"`), document.exportForScreens wrote one PDF named
after the document holding only the first item's art, and every other
item's PDF was left out. Single file puts artboards on the pages of one
PDF; each asset, layer or object is cut out of the document with its own
art, so the export now refuses that combination before it writes any
file, and the Example line refuses it too. `pdfs: "multiple"` still
writes a PDF of each item, and `selection: "one"` writes one PDF either
way.

Docs: params text, docs/mcp.md, docs/target-app-parity.md.
2026-11-16 05:50:00 -08:00
dotCooCoo f76735fcb4 Merge main into fix/similar-fonts-no-numbers 2026-11-16 05:38:12 -08:00
dotCooCoo ebeffa15ab Live Paint: a Bucket drag from an edge strokes every edge it crosses
A press on an edge (Shift with Paint Fills alone, or a plain press with
Paint Strokes on) now starts a drag, as a press on a face does. The drag
paints the edge and every visible edge of the same group that it crosses
or comes within 0.0001 pt of, between pointer events and on the release,
as one undo step; Escape cancels it. Edges of other groups and hidden
edges keep their strokes, a drag over edges that already have the stroke
records no undo step, and a drag that starts on a face still fills only
faces. A double-click after such a drag joins through the edges the drag
stroked as the paint they had before it.

livePaint.strokeEdge takes the drag's points and continuation as
livePaint.fill does, and both refuse them with scope connected or
samePaint.

Help page: https://helpx.adobe.com/illustrator/desktop/paint-and-fill/learn-painting-basics/paint-with-the-live-paint-bucket-tool.html
2026-11-16 05:32:00 -08:00
dotCooCoo 75b02ea8df Symbols: the panel reads the current symbol without running symbol.list
The Symbols panel and its panel menu asked for the current symbol on
every frame by running symbol.list, which builds a row per symbol and
walks the whole document once per symbol to count its instances. They
now read it from the active document with cmd::current_symbol, the
rule symbol.list itself uses for its `current`: the stored name while
a symbol has it, else the first symbol. symbol.sortByName,
symbol.place, symbol.options and text.insertInline use the same
function, and symbol.list's reply is unchanged.

An idle frame of the panel or its menu now runs no command, so on
macOS the native menu is not brought up to date on every frame while
the panel is open. In a document with 200 symbols and 50,000 objects
the read takes 0.035 us instead of 48.5 ms in a release build (thread
CPU time on Linux, median of 7 runs). The gain matters on large
documents; on small ones it is too small to notice.
2026-11-16 05:29:31 -08:00
dotCooCoo 8a47799f17 Magic Wand: Fill Color and Stroke Color tolerances compare CMYK values in a CMYK document
In a CMYK document the Fill Color and Stroke Color tolerances run from 0
to 100 and measure the Euclidean distance between the C, M, Y and K
percentages; RGB, Gray and Lab colors are converted to CMYK. RGB
documents keep the 0 to 255 RGB distance. The panel's fields take the
range of the active document.

A tolerance above 100 set in an RGB document is kept and applies as 100
while a CMYK document is active. magicWand.set now returns an error for
a tolerance that is out of range or not a number, and for a switch that
is not true or false, and then changes no setting, reset included;
before, it clamped the values and applied reset first.
2026-11-16 05:15:24 -08:00
dotCooCoo 9ecc8087c3 Shape tools: Backtick held while dragging leaves copies of the shape
Holding Backtick while dragging out a rectangle, rounded rectangle,
ellipse, polygon, star or line leaves a copy of the shape being drawn
each time the pointer has moved 8 screen points with the key down, up to
128 copies a drag. Each copy is its own object, drawn as the drag showed
it then. The release keeps the copies and the last shape as one undo
step, and Escape takes them all back. The spacing and the limit are
VectorCraft's own values.

The `backquote` descriptions of `pointer_gesture` name the shape tools.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 04:53:06 -08:00
Sven Lafebre ab141cfa10 Fix #8093: members of a clipping path that clips by nothing are hidden
A clip group whose clipping path clips by nothing (an empty group) hides its
members on the canvas, but Pathfinder skipped the group altogether, so
Intersect gave the other objects' overlap. Its members now get an empty
region and count as hidden like any other masked art.
2026-11-16 13:45:59 +01:00
dotCooCoo 4e8ff28cb4 .ai graphs: a filled-line series keeps no stroke, so turning Draw Filled Lines off draws its thin line
A series read from bands with unstroked markers, or bands alone, kept an
explicit no-stroke paint. With Draw Filled Lines turned off, the thin line
took that paint and was not drawn. Such a series now keeps no stroke, as a
graph drawn here does, and its thin line is drawn in the series color at
1 pt. A series whose markers carry a stroke keeps it.
2026-11-16 04:36:43 -08:00
dotCooCoo 9e58e137e1 Merge main into feat/place-linked-eps 2026-11-16 04:24:51 -08:00
dotCooCoo 549d1fb967 Package: copy a placed document's held PostScript bytes only under a PostScript file name
When a placed EPS or PostScript .ai file is gone, File > Package writes
the PostScript bytes the document holds only for a placed document whose
file name ends in .eps, .epsf, .ps, .ai or .ait. Under any other name,
or for a linked image, the link is reported as missing and nothing is
written for it.
2026-11-16 04:23:06 -08:00
Sven Lafebre 099ab6ea13 Fix #8093: a hidden operand is an empty shape where it changes the result
A selected object its clipping masks hide altogether was left out of the
operation. For Intersect, Minus Front (hidden at the back), Minus Back
(hidden in front) and Crop (hidden on top) that changed the result: the
others' overlap or the next object down took its place. It now stays in as
an empty shape for those four, which then give nothing. The other operations
still leave it out, which gives the same art and keeps its style off the
result.
2026-11-16 13:11:07 +01:00
dotCooCoo f54a3faa39 Packaging Tools: Check Fold Lines reports overshooting and stacked fold lines
- A crease that runs past the cut outline by the tolerance or more is
  reported as outside, though its hinge is still built.
- Two lines that fold, of any role, on top of each other are reported as
  duplicate; a line drawn twice is still checked for where it lies.
- Hidden lines are left out in every scope, members of a selected group
  included.
- The ids scope gets its own noCut message.
- The notStraight, ambiguous and summary texts say what the check finds:
  the summary counts hinges, not creases.
- The fold angle fields, which nothing in this change reads, are removed.
- A window drawn as open cut lines stays a hole when a cut line crosses
  it or when slits join it to an outline of open lines, so that three
  lines meet at a corner. Cut lines drawn whole that cross a cell leave
  it material.
- A slot drawn across the outline is a notch, not a hole, as when the
  notch is drawn in the outline; a crease in it lies outside the blank.
- notStraight measures each hinge piece at its farthest point from the
  hinge line instead of at five samples.
- Cut lines drawn on top of each other so many times that the gap search
  would look at more than 16,777,216 pairs are reported as tooComplex
  before the search.
2026-11-16 04:10:41 -08:00
dotCooCoo 5e36bba7d6 Merge main into fix/arc-params-reject-invalid 2026-11-16 03:52:45 -08:00
dotCooCoo 66c7dcd38f Shapes: invalid arc options and grid counts are errors instead of defaults
shape.arc returns an error for a reference that is not a whole number
from 0 to 8, a baseAlong other than x or y (either case), null included
for both, and a slope outside -100 to 100, in both of its forms. Before,
such a value drew the arc from reference point 0 or 8, along the X axis
or with the nearest slope. shape.rectangularGrid and shape.polarGrid
return an error for a divider count that is not a whole number of at
least 0; before, it took the default 5. Each error names the key,
nothing is drawn and no undo step is added. Left-out values keep their
defaults.
2026-11-16 03:52:38 -08:00
dotCooCoo 52bbca2ecb Type: Show Similar Fonts lists a family with no numbers in common after the measured ones
FontLikeness::distance left out every number either face does not give,
so a family whose faces give none of them (static faces with no OS/2 or
post table) was 0 from every family, and Show Similar Fonts could list
it right after the chosen family, as an exact match. Faces that share
no number to compare are now f32::INFINITY apart, so such a family
comes after every family of its script group that shares one, and
families equally far keep their order. The order of measured families
does not change. This is VectorCraft's own rule.

Builds on #7983, which added Show Similar Fonts.
2026-11-16 03:47:51 -08:00
dotCooCoo a10c403df6 Scissors: paths a cut makes have every stroke aligned Center
path.split (Scissors) and path.cutAtAnchors (Cut Path at Selected
Anchor Points) keep the source path's fill and stroke settings on the
paths they make, and now set every stroke's alignment to Center in the
same undo step, as the help page describes:
https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/modify-paths/split-paths.html

Every stroke row is reset, hidden ones included. A path of several
subpaths has one appearance, so its other subpaths' strokes are
centered too, and a cut member of a compound path centers the compound
path's strokes. An appearance whose strokes are already centered is
left shared. Knife, the erasers and Divide are unchanged.
2026-11-16 03:46:53 -08:00
dotCooCoo 0b0267159f Place: Link keeps a placed EPS linked to its file, as a placed PDF page already is
File > Place with Link (the default) now places an EPS file, a PostScript file or a PostScript .ai from a path as one locked placed document instead of an embedded group. It shows the art that placing without Link gives (clipped to the bounding box, or the art's bounds with crop: "bounding"). Links check, update and relink it, Break Link and Object > Expand give the Link-false group, a save keeps its preview, every output draws its vectors, and Package copies the file, also from the bytes the document holds when the file is gone. Links lists it as EPS or PostScript, also after a save that kept only its preview. A DCS file stays a linked image; Link off and dataBase64 still embed.
2026-11-16 03:44:23 -08:00