Commit Graph
18448 Commits
Author SHA1 Message Date
jmvergesandClaude Opus 5.5 911efc9549 .ai import: a stack's pattern the drawn look places two ways keeps the look
The check that a stack's patterns are each its own took each style item's
pattern once, but not that the drawn look places it one way:
`placed_paints` keeps a pattern's first placement, so a look filling with
one pattern at two placements, for a style that names it once, came in
with the first placement for both. `placed_paints` now also notes each
pattern the look places otherwise than its first placement, and a stack
with such a pattern keeps its drawn look. The same placement again, as a
compound path's look has for each subpath, is still one.

Test `a_look_placing_a_stacks_pattern_twice_keeps_the_drawn_look` (two
placements keep the look; the same one twice comes in as the path).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:52 +00:00
jmvergesandClaude Opus 5.5 3ae72821b4 docs: a path or compound path filled with a pattern through its art style comes in with it (.ai import)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:51 +00:00
jmvergesandClaude Opus 5.5 be9684ed9f .ai import: a path or compound path filled with a pattern through its art style comes in with it
A path or compound path whose art style fills it with a pattern (alone,
or among other fills and strokes) came in as its drawn look: the style's
stack (`ArtStyle::stacked`) took solid colors and gradients only, though
the reader already places a style's pattern fill, as type takes it
(#6856).

A style's pattern fill now counts in the stack. As for the stack's
gradients, the reader takes it only where the drawn look paints with that
pattern (fills only), once (`placed_paints` keeps the first placement of
each name), and places it as the look does; otherwise the drawn look
stays. Type keeps taking its style's pattern from wherever its look paints
with it, as before.

Under effects on the object, a stack with a pattern fill keeps its drawn
look: a conservative rule, as in one garment file a Scribble over such a
fill drew unlike the look though the tiles were placed as the look's are,
for a reason not established.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:51 +00:00
jmvergesandClaude Opus 5.5 e463d06579 docs: roadmap M4 Files row notes #8196
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:50 +00:00
jmvergesandClaude Opus 5.5 500f583110 .ai import: the reads of a file apart from its layers spend none of the layers' checks
Besides the reader of its layers, a file whose layers come from its PDF
part is read again over all of its data for its artboards (once more for
the page scale), its variable library, its swatches, brushes, graphic
styles and symbols. Each of those readers started with every envelope
check (`MAX_CHECKED`) and every aligned-dash check (`MAX_DASH_CHECKS`)
an import has, so such a file could draw several times the strokes the
limit allows.

- The artboard and variable-library readers start with no checks
  (`reader_aside`): neither depends on how a stroke or an envelope draws.
- The swatch, brush, style and symbol readers, which need only what
  comes before the first layer, make no more checks once they reach it
  (`Reader::defs_only`). What they read is unchanged in files that write
  their definitions before their layers, as saved files do (symbols after
  the first layer aren't read at all). A pattern tile or brush art defined
  after the first layer is still read, without checks: it draws the same,
  and keeps its drawn art where it could have come in live.

Definitions read before the layers (pattern tiles, brush art, symbols)
are still checked by each of those readers within the limit.

Test `the_reads_apart_from_the_layers_check_no_aligned_dashes`, which
counts the checks made (`DASH_CHECKS_MADE`, in tests only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:50 +00:00
jmvergesandClaude Opus 5.5 2093d5aa52 docs: dashes aligned to corners come in live where they draw as their look (.ai import)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:50 +00:00
jmvergesandClaude Opus 5.5 04e226902e docs: roadmap M4 Files row: the envelope's drawn art paints nothing too (#8154)
The row said an envelope of type that paints nothing opens live, which
reads as if the type painting nothing were enough. It also takes drawn
art that paints nothing, as the other docs say.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:49 +00:00
jmvergesandClaude Opus 5.5 ccbdef2ac0 .ai import: dashes aligned to corners come in live where they draw as their look
A stroke in an art style whose dictionary turns on aligning dashes to
corners and path ends (`BSDashAdj`) made the reader keep the object's
drawn look, the dashes fitted to the path as outlines that can't be
edited. VectorCraft draws such dashes itself (`Dash::align_corners`).

The style now reads the stroke with its dashes aligned. The reason the
look was kept (#1439: the style's dash array doesn't hold the fitted
pattern) still holds, as the fitting is VectorCraft's own, so the reader
takes the stroke only where the object with it draws as its drawn look,
through the check images with a Warp already use (now `look_alike`).
Aligned dashes have checks of their own (`MAX_DASH_CHECKS`) and don't
weigh the page, so the envelopes' checks and share of the page check stay
theirs. Elsewhere, past those checks and on type, the look stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:49 +00:00
jmvergesandClaude Opus 5.5 bd2e5ed737 docs: roadmap M4 Files row notes #8154
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:49 +00:00
jmvergesandClaude Opus 5.5 1f974b5cd9 docs: the evidence for envelopes of type that paint nothing (#8154) states its limit
When nothing paints the shapes aren't compared, so a fill added to the
type later may bend it unlike the unpainted outlines the file saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:49 +00:00
jmvergesandClaude Opus 5.5 00598bfa2a docs: the first File formats row names the saved editing copy's limits (#868)
It still said Illustrator's editing data isn't written, while the other
two File formats rows give what a saved `.ai`'s editing copy leaves out.
It now has their words. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:48 +00:00
jmvergesandClaude Opus 5.5 33942295e5 docs: note envelopes of type that paint nothing (#8154) in the File formats rows and evidence
The area rows and the evidence list name the change and its tests, as
AGENTS.md asks of a change that lands. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:48 +00:00
jmvergesandClaude Opus 5.5 b08135cb66 docs: an envelope of type that paints nothing opens live (.ai import)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:48 +00:00
jmvergesandClaude Opus 5.5 46745dbf85 .ai import: an envelope of type that paints nothing, as its drawn art, opens live
An envelope of type whose type has no fill and no stroke, its drawn art
unpainted too, inks no pixel either way. The drawn-art check took that
as a difference and kept the drawn art, with its type hidden.

`alike_within` now first asks whether either side has any paint at all
(`paints`). When neither has any, they draw alike (nothing) and add
nothing to the page check's share. Art that paints, however faintly, is
compared as before. The shapes aren't compared when nothing paints: the
first way tried (the envelope as saved) is taken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:48 +00:00
jmvergesandClaude Opus 5.5 ae08b3f3d0 docs: roadmap M4 Files row notes #8128
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:47 +00:00
jmvergesandClaude Opus 5.5 7f30dab913 docs: the first File formats row names the saved editing copy's limits (#868)
It still said Illustrator's editing data isn't written, while the other
two File formats rows give what a saved `.ai`'s editing copy leaves out.
It now has their words. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:47 +00:00
jmvergesandClaude Opus 5.5 6d920ea6ec docs: note grouped clipping paths in a compound path (#8128) in the File formats rows and evidence
The area rows and the evidence list name the change and its test, as
AGENTS.md asks of a change that lands. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:47 +00:00
jmvergesandClaude Opus 5.5 6d3c56ccb1 docs: clipping paths grouped in a compound path (.ai import)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:47 +00:00
jmvergesandClaude Opus 5.5 a34140bd6a .ai import: clipping paths grouped in a compound path are its subpaths
A compound clipping path can hold its clipping paths in groups
(`*u u <path> W n … U *U`, possibly nested in other groups). The
reader passed a group of nothing but clipping paths up only to a clipping
group (`q` … `Q`). In a compound path it read each such group as a
clipping group of its own: several clipping paths in one group nested one
clipping group per path (their intersection), so the compound path held
clipping groups instead of subpaths and clipped nothing, and past the
document's depth limit (some files hold hundreds of them) the whole file
opened from its PDF part ("its clipping masks are nested too deeply").

`Reader::end_container` now also passes such a group's clipping paths up
when the group is in a compound path, directly or through other groups
(`Reader::in_compound`). The compound path takes them as subpaths, as it
already takes the other paths grouped in it (`ungrouped`), and as a
compound path of clipping paths it is one clipping path, their union,
which clips its clipping group. A group of clipping paths anywhere else is
read as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:47 +00:00
jmvergesandClaude Opus 5.5 c7ab67d6c5 docs: roadmap M4 Files row notes #8106
The status line, the M4 Files row and the revision history name the
change, as AGENTS.md asks of a change that lands. Estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:46 +00:00
jmvergesandClaude Opus 5.5 90ba03faa9 docs: the first File formats row names the saved editing copy's limits (#868)
It still said Illustrator's editing data isn't written, while the other
two File formats rows give what a saved `.ai`'s editing copy leaves out.
It now has their words. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:46 +00:00
jmvergesandClaude Opus 5.5 88c2c3558f docs: note type clipping masks (#8106) in the File formats rows and evidence
The area rows and the evidence list name the change and its tests, as
AGENTS.md asks of a change that lands. Scores and estimates unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:46 +00:00
jmvergesandClaude Opus 5.5 f71fe2e5d8 .ai import: type that ends a clipping group without a clipping path clips it
Illustrator writes a clipping mask of type from the text document as a
clipping group (`q` ... `Q`) with no clipping path (`W`), the text object
(`/AI11Text`) last. The reader took only `W` paths (and legacy type in
rendering modes 4 to 7) as clipping paths, so it read such a group unclipped:
its art painted past the letters, and where the layers then differed too much
from the page the file opened as its page.

- `Reader::end_container` records each clipping group with no clipping path
  whose last object is a text slot (not the type a look draws) in
  `Structure::type_clips`, by the group's id. The group is still read as it is:
  the slot is filled later.
- `clip_by_type` (crates/eps/src/import/ai/read.rs) moves the type to the
  front as the group's clipping path once its slot became one text object that
  is still the group's last object. A slot left empty or filled with several
  objects (type and the strokes the page draws around it) leaves the group as
  read, unclipped, as before.
- The layers apply it after `fill_slots`; such type is never weighed as type
  the page doesn't draw (`MADE` is taken off), since the page shows it by what
  it clips. Envelopes of type apply it to their contents after `put_type`, so
  one opens live where its drawn art shows the clip (`WarpedType::type_clips`).

Measured on 224 garment files we own (used locally, never committed): 14 renders
change; 12 come closer to the file's own page (for example 15.7 % → 0.07 %,
26.5 % → 0.28 %, 58.5 % → 1.4 % of the page differing), one file has no PDF
content to compare with, and in one the texture inside a word changes along
the letters' edges (0.35 % → 0.56 %). Envelopes of type that open live stay at
185; no file opens another way and no note changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:42:46 +00:00
dotCooCoo 30693f211b PDF/X: PDF/X-4 files carry xmp:MetadataDate, equal to xmp:ModifyDate
A PDF/X-4 export wrote xmp:ModifyDate and xmp:CreateDate in its XMP
metadata but no xmp:MetadataDate. The PDF/X-4 metadata edit now adds
xmp:MetadataDate next to xmp:ModifyDate, with the same value, and grows
the stream's /Length to match. When the export dates the file as modified
later, post::modification_date already rewrites every xmp:MetadataDate,
so the two dates stay equal.

PDF/X-1a, PDF/X-3, PDF/A and plain PDF exports are unchanged.
2026-11-16 23:41:52 -08:00
dotCooCoo 566d5263b9 Merge main into feat/ai-editing-data-meshes 2026-11-16 23:38:43 -08:00
dotCooCoo c61d429df2 Merge main into fix/ai-brush-mask-art 2026-11-16 23:36:04 -08:00
HassanKhan b12bacf3c8 Merge remote-tracking branch 'upstream/main' into fix-8015-pdf-text-fill-stroke
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-17 12:34:29 +05:00
BFlat b4d45f2b0d Merge pull request #8291 from dotCooCoo/fix/rasterize-choice-controls
Rasterize: Anti Alias and Background are dropdowns in the dialog
2026-11-17 14:32:35 +07: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
BFlat ed2bbe0a2f Merge pull request #8234 from datatimp/fix/8217-layers-alt-drag-copy-cursor
Layers panel: Alt shows the copy cursor while rows are dragged
2026-11-17 14:32:15 +07:00
BFlat 4a9a93584a Merge pull request #8290 from dotCooCoo/fix/shallow-crossing-placement
Path Precision Tools: shallow crossings are placed where the paths meet
2026-11-17 14:32:05 +07:00
dotCooCoo 10b33033ac Save PDF: the Summary is computed again when flattener presets, profiles or fonts change
The cached Summary's stamp now also includes the saved flattener presets, the loaded color profiles and the available fonts, so deleting the flattener preset the dialog names, or removing the profile it converts to, while the dialog stays open no longer leaves the Summary section and ui.pdfSummary.save showing settings that a fresh computation refuses.
2026-11-16 23:16:55 -08:00
dotCooCoo 84e9cf26b7 Save for Web: an Optimize to File Size result stops holding when the selected slices change 2026-11-16 23:01:31 -08:00
HassanKhan 971b13843b PDF import: translucent fill-and-stroke type stays two objects (#8015)
A fill and a stroke at the same opacity below 1 were joined into one
type object whose opacity then applies to both together, losing the
darker overlap the file composites. stroke_filled now takes a stroke
only when the fill and the stroke are opaque.

An upright glyph filled and stroked was kept as an outline for the
reshaped-outline fallback while upright glyphs filled only were not;
it is no longer kept either, so such a line can't come in as the
outlines of its stroked glyphs alone.

Docs: the #8015 entries say what is left (translucent type, and a TJ
that starts a new line part way through).
2026-11-17 11:59:20 +05:00
dotCooCoo 47bfa3d1c5 Save PDF: the Summary is computed again when a saved preset changes
The cached Summary's stamp now includes the saved PDF presets, so replacing the preset the dialog compares against while the dialog stays open no longer leaves the Summary section and ui.pdfSummary.save showing the old comparison.
2026-11-16 22:50:28 -08: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
datatimp 47c3de29f1 Merge upstream/main into fix/8237-layers-alt-drop-copy-beside-itself 2026-11-17 01:39:23 -05:00
HassanKhan 0c3e886675 Merge remote-tracking branch 'upstream/main' into fix-7821-harakat-tsume-arial 2026-11-17 11:34:26 +05:00
HassanKhan d3640da834 Merge remote-tracking branch 'upstream/main' into fix-8015-pdf-text-fill-stroke
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-17 11:33:21 +05:00
dotCooCoo 485a1e5ae8 Swatches: a color a pattern brings in is not added again in the same call
When one Add to Swatches call added a pattern swatch and then a global or
spot color its art links to, the pattern brought the color in and the color
was added a second time as a numbered copy. The color the pattern brought
now takes the library swatch's place and color group instead.
2026-11-16 22:30:20 -08:00
dotCooCoo aafe3b7296 Add built-in Arrows brush library 2026-11-16 22:29:41 -08:00
dotCooCoo a4faf28146 Merge main into feat/print-ink-spot-to-process 2026-11-16 22:16:20 -08:00
dotCooCoo bf1ab043f5 Merge main into feat/prefs-descriptions-smart-guides 2026-11-16 22:15:59 -08:00
dotCooCoo ab0abba22b Merge main into feat/save-pdf-save-summary 2026-11-16 22:14:48 -08:00
dotCooCoo b963e41e85 Merge main into feat/smooth-bridge-many 2026-11-16 22:14:28 -08:00
dotCooCoo 8d4011f997 Merge main into feat/prefs-descriptions-type 2026-11-16 22:10:27 -08:00
datatimp 6c3809ab2c Merge upstream/main into fix/8217-layers-alt-drag-copy-cursor 2026-11-17 01:09:30 -05: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 eb07fb4a82 Merge pull request #8199 from dotCooCoo/feat/prefs-descriptions-general
Preferences: the line under the fields describes each General setting
2026-11-17 13:08:45 +07:00
BFlat 338fbada9d Merge pull request #8184 from dotCooCoo/feat/ellipse-dialog-height-copies-width
Ellipse: a click on the word Height in the click dialog copies Width into Height
2026-11-17 13:08:35 +07:00