Commit Graph
5279 Commits
Author SHA1 Message Date
dotCooCoo 21feb686cf Merge main into feat/ai-editing-data-meshes 2026-11-17 04:04:45 -08:00
BFlat 277e0f2742 Merge pull request #7330 from dotCooCoo/fix/blob-params-rejected
Blob Brush: path.blob rejects invalid fidelity, angle and roundness
2026-11-17 18:49:52 +07:00
BFlat cbd9872749 Merge pull request #8303 from Hamza0101/fix/scale-text-attributes-area-frame
Scale Text Attributes: an area's frame and a path type's path keep their size
2026-11-17 18:49:25 +07:00
BFlat 990c8cc916 Merge pull request #8233 from dotCooCoo/feat/save-for-web-optimize-to-size
Save for Web: Optimize to File Size picks the settings that bring the image under a typed size
2026-11-17 17:28:44 +07:00
BFlat 567485aa12 Merge pull request #8263 from dotCooCoo/feat/print-ink-spot-to-process
Print: Document Ink Options converts one chosen spot ink to process
2026-11-17 17:28:34 +07:00
Hamza 957cd66a82 Scale Text Attributes: path type bakes only the uniform part of a scale
Type on a path sits at fractions of its path's length. Scaling the path
non-uniformly changes where a fraction lands (CodeRabbit's case: M0 0 L100 0
L100 100 under diag(2, 1) moves the start bracket from (200, 0) to (150, 0)).

Path type now bakes the vertical scale into the character sizes and scales
its path uniformly by it, which keeps every fraction where it was; the
horizontal stretch stays in the transform.
2026-11-17 14:17:49 +05:00
Hamza 586db4da06 Scale Text Attributes: an area's frame and a path type's path keep their size
Baking an object's scale into the character attributes removed that scale
from the type's transform, but the area frame (and a path type's path), which
is drawn through that transform too, kept its unscaled size. A 120 x 80 frame
scaled 200% shrank back to 120 x 80 on the page, so the 24 pt type broke into
two lines and the rest became overset.

The frame and the path now take the scale the transform loses, so they, the
line breaks and every glyph stay where they were.

Fixes #8297
2026-11-17 13:41:14 +05:00
dotCooCoo 566d5263b9 Merge main into feat/ai-editing-data-meshes 2026-11-16 23:38:43 -08:00
BFlat 6a2fa16cd1 Merge pull request #8289 from dotCooCoo/feat/ai-blends-in-editing-copy
.ai save: the editing copy keeps live blends
2026-11-17 14:32:25 +07:00
dotCooCoo 437b477241 Save for Web: Optimize to File Size's params text says Auto Select blends over the matte 2026-11-16 22:49:03 -08:00
dotCooCoo a4faf28146 Merge main into feat/print-ink-spot-to-process 2026-11-16 22:16:20 -08:00
dotCooCoo 6a6d6fb801 Save for Web: Auto Select counts the colors written over the matte
With Transparency off, Optimize to File Size's Auto Select counts the
colors of the pixels blended over the matte, which are the colors the
file is written with, so art whose blended pixels need more than 256
colors starts with JPEG instead of GIF.
2026-11-16 22:09:06 -08:00
BFlat ee1a2a8816 Merge pull request #8253 from dotCooCoo/feat/color-guide-spot-tints
Color Guide: a spot color base gives tints of that spot color
2026-11-17 13:08:18 +07:00
BFlat 60bf9bcc89 Merge pull request #8170 from dotCooCoo/feat/print-overprint-black
Print: Overprint Black overprints solid black art on separations
2026-11-17 13:08:09 +07:00
BFlat b506bdc525 Merge pull request #8228 from dotCooCoo/feat/webp-lossy-quality
WebP: Lossy with a Quality setting writes a lossy WebP file
2026-11-17 11:45:05 +07:00
dotCooCoo 7ce855ce97 Merge main into feat/print-overprint-black 2026-11-16 19:56:05 -08:00
dotCooCoo 913c5c88b9 Merge main into feat/save-for-web-optimize-to-size 2026-11-16 19:49:10 -08:00
dotCooCoo dea8ab9b68 Merge main into feat/color-guide-spot-tints 2026-11-16 19:47:49 -08:00
BFlat 973a33e1fb Merge pull request #7949 from dotCooCoo/feat/circle-through-three-points
Shapes: draw the circle through three points
2026-11-17 09:49:57 +07:00
BFlat 685e77af6b Merge pull request #8236 from dotCooCoo/feat/print-custom-scale-link
Print: a link button keeps Custom Scale W and H equal
2026-11-17 09:49:36 +07:00
BFlat dff94107d9 Merge pull request #8247 from dotCooCoo/feat/rasterize-transform-copies
Effects: each copy of a Transform effect listed after Rasterize carries the Rasterize image
2026-11-17 09:48:50 +07:00
BFlat d40909a873 Merge pull request #8267 from dotCooCoo/perf/select-same-parent-walk
Select: Same and Select by Color read each object's parent from the walk
2026-11-17 09:48:26 +07:00
BFlat 9f1da49a92 Merge pull request #8205 from dotCooCoo/fix/package-eps-carried-links
Package: copy the files a placed EPS file's native document links beside its copy
2026-11-17 09:47:44 +07:00
BFlat 39b7ed38f8 Merge pull request #8261 from dotCooCoo/feat/place-shift-click-import-options
Place: a Shift-click with the loaded place cursor shows the file's import options
2026-11-17 09:47:24 +07:00
BFlat db99ecb535 Merge pull request #8104 from dotCooCoo/fix/expand-pieces-raster-budget-ids
Effects: a member the raster budget leaves keeps its random move through Expand Appearance
2026-11-17 09:47:13 +07:00
BFlat 5caa7954b7 Merge pull request #8230 from dotCooCoo/perf/direction-handles-select-set
Select: Object > Direction Handles selects the paths with one set call
2026-11-17 09:47:06 +07:00
BFlat 435f603a37 Merge pull request #8214 from dotCooCoo/perf/cut-at-anchors-select-set
Cut Path: the cut ends are selected with one set call
2026-11-17 09:46:50 +07:00
BFlat 25ae8943d8 Merge pull request #8213 from dotCooCoo/perf/trim-selection-one-pass
Trim at Crossings: the selection is updated in one pass
2026-11-17 09:46:42 +07:00
BFlat 6d8db923c2 Merge pull request #8221 from dotCooCoo/feat/flare-alt-click-default
Flare: an Alt-click draws a flare at the click with the tool's options
2026-11-17 09:46:34 +07:00
BFlat 46b7894231 Merge pull request #8238 from dotCooCoo/feat/blend-options-id-fields
Blend: options on several blends set only the values given; `id` edits one blend
2026-11-17 09:46:15 +07:00
BFlat 457c5fba1c Merge pull request #8251 from dotCooCoo/perf/magic-wand-membership-sets
Magic Wand: compound and selection membership checks use hash sets
2026-11-17 09:45:57 +07:00
BFlat 2d393d8a8a Merge pull request #8094 from el-j/fix/pdfx-transparency-reduction-6861
Fix #6861: Automated transparency reduction for PDF/X and PDF 1.3
2026-11-17 09:45:49 +07:00
dotCooCoo 6dae0b77e5 Merge main into feat/webp-lossy-quality 2026-11-16 17:39:20 -08:00
dotCooCoo 4b2868bd07 .ai save: the editing copy keeps live blends
The editing copy of a PDF-compatible .ai wrote every blend as its steps.
Blends the .ai reader opens live are now written live:

- The blend's key objects and, when it has a spine of its own, its
  spine are written as a group on hidden lines, each key's dictionary
  naming it a key and its id and the spine's naming it the spine. Its
  steps follow as a group, then the Path Blends record of its spacing
  (Smooth Color, Specified Steps, Specified Distance with its distance),
  orientation (Align to Page, Align to Path) and keys, then its
  dictionary (name, text wrap options, variables) and its opacity and
  blending mode as a group's after its end. A spine edited on the canvas
  is written with each key's anchor on the key. A replaced spine is
  written with an anchor where each key sits, so it opens with those
  anchors and lays out the same steps.
- Each blend is checked with the reader's own reading before it is
  written, and the blends together against the objects the reader lays
  out in one file. Written as their steps with a warning: blends with
  easing, a color shift or start points; with effects, an appearance or
  an opacity mask of their own; of objects other than paths, compound
  paths and groups, of clipping groups, of more than 62 key objects, of
  hidden keys or keys holding a blend; of keys with geometry or
  Pathfinder effects or a group's own fills and strokes, which the
  editing copy writes as their result; of keys the editing copy would
  change otherwise (empty paths or subpaths, paths and compound path
  members of several subpaths, several fills or strokes, strokes a plain
  line can't draw, dashes of more than 64 lengths, hidden fills or strokes, fills or strokes other than
  a color, in a Lab color or with transparency or effects of their own,
  effects, opacity masks); blends where one key has a fill or stroke of
  no paint or a stroke of no width and another has one that draws;
  blends whose spine has more than one part;
  blends whose step count is close to where rounding the written
  coordinates and colors changes it; blends the reader would open with
  other settings or not as drawn; blends inside objects with geometry or
  Pathfinder effects or a group's own fills and strokes; blends in
  opacity masks, pattern tiles, symbols and art cut to a clipping object
  or nested eight levels deep in art written in place of other objects;
  blends whose art would pass the most objects the reader reads; and
  every blend on a large canvas.
- The steps set their own transparency and lock and hidden state after
  the hidden lines, for readers of the printed form.

Each construct is written in the form the .ai reader reads (blend.rs,
read/document.rs blend roles, read/containers.rs end_blend, read/ops.rs
XP and transparency), and every object written counts toward the
reader's object limit as the reader counts it. The record's orientation
word and a blend with no spine part are read as #8243 reads them.

Blend Options, key objects and spines:
https://helpx.adobe.com/illustrator/desktop/manage-colors/apply-transparency-and-blending/blend-options-overview.html
https://help.adobe.com/archive/en_US/illustrator/cs5/illustrator_cs5_help.pdf#page=260

Tests: the round trip of blends of each spacing and orientation, with
no spine of their own, an edited spine and replaced curved spines,
named, at half opacity, hidden and locked, with text wrap options, of
compound paths, of groups and of 62 keys, each laying out the same steps
as the document's blend; the record's words (Align to Path's angle
included) and the dictionaries; the steps' own state after the hidden
lines; the same bytes on a second write; each case written as its
steps, with as many steps as are drawn, where they are drawn (among
them Specified Distance 0.03 pt from where its count changes, on a
spine of 200 segments, which comes back live on a spine of two); blends in
pattern tiles, opacity masks, symbols, art cut to a clipping object and
eight levels down; the object limit; the reader's blend limit; a large
canvas; fuzz cases for damaged written blends.

Docs: docs/file-format-parity.md.
2026-11-16 17:31:04 -08:00
BFlat 5232789973 Merge pull request #8076 from dotCooCoo/fix/export-screens-pdf-bleed
Export for Screens: Include Bleed keeps a PDF page's TrimBox at the artboard
2026-11-17 08:20:09 +07:00
BFlat 7c65af31ce Merge pull request #8067 from dotCooCoo/feat/align-3d-preview-bounds-1302
Use Preview Bounds: Extrude & Bevel, Revolve, Inflate and Rotate are measured by their 3D art
2026-11-17 08:19:29 +07:00
BFlat 2510109da1 Merge pull request #8100 from dotCooCoo/perf/brush-targets-dedup-set
Brushes: brush_targets drops repeated paths with a set instead of a linear search of its output
2026-11-17 08:19:20 +07:00
BFlat 79d2536e8e Merge pull request #8089 from dotCooCoo/fix/issue-8063
Part of #8063: Dimension tool points snap to drawn dimensions and show anchor and path labels
2026-11-17 08:19:12 +07:00
BFlat f619888fe2 Merge pull request #8074 from dotCooCoo/feat/intertwine-layers-drop
Layers: dragging objects into an Intertwine group adds them to it
2026-11-17 08:19:04 +07:00
dotCooCoo de53385081 Print: Overprint Black docs say which paints are not marked
Rich, RGB, Lab, spot-linked and lighter blacks are not marked to
overprint, and paints already set to overprint keep that setting. The
docs, params text and progress line said these blacks knock out.

docs/mcp.md also says that a symbol instance print leaves unplaced, past
16,000,000 objects of printed art or 128 drawn levels, is judged by its
symbol's own art.
2026-11-16 16:14:01 -08:00
el-j 7194204871 Address review comments: reuse clear_transparency helper and run layer normalization only without transparency 2026-11-17 01:04:57 +01:00
dotCooCoo 0278088909 Tests: the selection export warnings test uses an option WebP doesn't read
Lossy WebP is now written without a note, so the WebP case of
export_selection_reports_the_encoders_warnings asks for interlaced,
which WebP files don't read, and checks that the selection export and
the whole-document export both name it.
2026-11-16 15:55:08 -08:00
el-j a0edcf73c4 Merge remote-tracking branch 'upstream/main' into fix/pdfx-transparency-reduction-6861 2026-11-17 00:42:30 +01:00
dotCooCoo 68dbb1e6e4 Select: Same and Select by Color read each object's parent from the walk
Select > Same, Select by Color (select.color) and document.find looked up
the parent of every object they checked by its id, through
Document::parent_of and Document::node, to tell members of a compound
path and faces of a Live Paint group from other objects. The walk
already stands on that parent, so it now hands it to the check with the
object. walk_selectable keeps its signature and visits the same objects
in the same order.

The selected objects, their order and the count reply are the same as
before, and so is the Reselect state of Select > Same. Tests compare the
walk and the parents it hands out with the old walk and
Document::parent_of, and the results of six Same commands and
select.color with the old per-id loop, in four isolation scopes, from
rectangles at the top level, in a group and in a sublayer, compound path
members, Live Paint faces and a compound path. In a damaged document
that holds an id twice, the parent read is the one that holds the
object being checked.

The gain shows on large documents. With 220,482 objects, the search of
Select > Same > Fill Color takes a median of 24 ms of CPU time instead
of 83 ms, and of Stroke Color 22 ms instead of 60 ms (release build on
Linux, seven alternating runs of both loops in one process; an ignored
test, select_same_perf, times them).
2026-11-16 15:18:22 -08:00
dotCooCoo 97a1a363b8 Merge main into feat/print-overprint-black 2026-11-16 15:09:39 -08:00
dotCooCoo 562021f185 Blend: Blend Options sends only what was set; unknown orientation is an error
- The Blend Options dialog sends the spacing, count or orientation only
  when it was set in the dialog or differs from the first blend's, so
  OK on several blends no longer copies the first blend's spacing and
  orientation onto the others.
- object.blend.options: a spacing mode without a count keeps the count
  of a blend already in that mode. An orientation other than page or
  path, a spacing that is not a string, and `value` without `spacing`
  are errors (orientation also in object.blend.make and the options new
  blends start with).
- The Blend panel dims Type and Ramp while any selected blend has no
  spine, since the command refuses easing for such a selection.
- Tests check the live preview while a Ramp or Shift drag is under way.

Supersedes #8022 by ruchirguitar.
2026-11-16 14:38:00 -08:00
dotCooCoo 757b4f7b8f Print: Document Ink Options converts one chosen spot ink to process
Each spot ink in the Output section's Document Ink Options list now has
an icon before its name. Clicking it prints that ink as process: its art
separates onto the process plates and it gets no plate of its own, while
the other spot inks keep theirs. Clicking again keeps it as a spot ink.
While Convert All Spot Colors to Process is on, every spot ink converts
and the icons are dimmed; each ink keeps its own choice for when the
option is turned off. A converted ink's Print box, frequency and angle
are dimmed.

file.print and print.preview take convertToProcess on an output.inks
entry, and print.preview lists every document ink, converted ones
included, in documentInks.
2026-11-16 14:36:05 -08:00
dotCooCoo 94f4a63270 .ai save: a mesh patch folded at one corner is written as its drawn look
The writer measured which way each patch turns only at its first corner,
along the straight lines to the next corners. A patch whose point is
dragged across it, or whose handles cross at a corner, passed as a
plain patch and was written as a mesh. Each corner of each patch is now
measured along the straight lines and along its handles, and a mesh
whose corners turn different ways is written as its drawn look with the
warning.

- Tests: a patch folded at a corner by a moved point and by crossed
  handles; a reflected mesh read back draws the same points and opacity
  across each patch; an envelope in a symbol's art with its grid and
  contents in the symbol's own space opens as the art it draws, and one
  in a file without a template box is left unread.
- The fuzz case for written meshes moves next to the other editing-data
  cases in import_fuzz.rs.
- Docs: file-format-parity.md says a reflected mesh opens with each
  row's points in reverse order, and how envelopes in symbols open;
  target-app-parity.md links the help page on mesh point opacity.
2026-11-16 14:27:47 -08:00
dotCooCoo 2d1ecbab32 Place: a Shift-click with the loaded place cursor shows the file's import options
A Shift-click with the place cursor now opens the current file's import
options (Text, DXF, Place PDF or Place PSD) before it is placed, whether
the cursor was loaded with Show Import Options on or off or by
file.place.queue. OK places the file at the click and the cursor moves to
the next file. The options the cursor was loaded with for the file's
format are put aside so the dialog opens, and are used when no dialog
opens for the file (a PNG image, a one-page PDF, a linked PSD file). A
Shift-drag places at the dragged size, as a drag does. Headless, where no
dialog can open, a Shift-click places as a click does.

The place tool marks a Shift-click's file.place with
showImportOptions: true.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-16 14:18:21 -08:00
dotCooCoo 8970de7da5 Magic Wand: compound and selection membership checks use hash sets
select.magicWand searched lists in three places: paintable looked up
each object's parent in the list of compound paths, add mode looked up
each hit in the selection, and subtract mode looked up each selected
object in the hits. These lookups now use HashSets. The output is still
built by walking the lists, so the wand selects the same objects in the
same order as before.

A test compares paintable, added, subtracted and select.magicWand in
set, add and subtract mode with copies of the earlier searches on a
20,000-path document. An ignored release-build probe times both.
2026-11-16 14:18:19 -08:00