Commit Graph
1106 Commits
Author SHA1 Message Date
BFlat 4ce43b1091 Merge pull request #8532 from dotCooCoo/feat/distorted-image-commands
Links: Relink, Embed and Unembed keep a distorted image's corners
2026-11-21 11:01:53 +07:00
BFlat ada693c03c Merge pull request #8868 from dotCooCoo/perf/legacy-ai-gradient-index
Legacy .ai: gradient definitions are found by a key of their gradient
2026-11-21 10:34:44 +07:00
dotCooCoo e2d62de4fe Merge main into feat/distorted-image-commands 2026-11-20 18:54:01 -08:00
Dylan M. Taylor ef2cf470e3 eps: bound DSC header/trailer scan with craft-eps and add regressions (#8855)
* eps: delegate DSC header comments to craft-eps, pin craft-ps, and add regressions

* eps: use Document::walk and NodeKind::Image in TIFF preview round-trip test

* eps: fix readline EOF bool expectation in tests_reads

* eps: use 2x2 image in truncated currentfile filter test so EOF is hit

* eps: exercise truncated currentfile filter without panicking and assert Err on unterminated EOF

* eps: preserve last in-range header box in Dsc::read and remove pin change
2026-11-20 20:27:33 -05:00
dotCooCoo d9dba9c467 Legacy .ai: gradient definitions are found by a key of their gradient
Each gradient fill looked for its definition by comparing its gradient
with every definition written so far, so a document with thousands of
distinct gradients spent most of the export in these comparisons.

The writer now keeps each definition's place under a key made from
every field of its gradient, the same key the editing data's writer
uses, which moves to a module both writers share. Each candidate under
a key is still compared in full, and the first equal definition in
definition order is used. Spot color names, written spot colors and
fonts are also found through maps and sets, while the lists the file is
written from keep their order. The written file is unchanged, byte for
byte.

On Linux, writing 10,006 gradient fills (5,000 distinct and 5,000 of 50
others) took 79 ms of thread CPU time through the index and 291 ms
comparing each definition in turn (median of 7 runs, release build).
2026-11-20 15:02:27 -08:00
Dylan M. Taylor c43c35e8d4 eps: add smooth shading edge-case tests (#8841)
* eps: add smooth shading edge-case tests

* eps: fix hard-edge padded stop assertion in shading test
2026-11-20 12:04:13 -05:00
dotCooCoo 09e095baeb Merge main into feat/distorted-image-commands 2026-11-20 05:39:58 -08:00
Dylan M. Taylor f987648e96 eps: delegate scene-writer shading, image stream, and line style syntax to craft-ps (#8810)
* eps: delegate scene-writer shading, image stream, and line style syntax to craft-ps

* chore(eps): repin craft-ps to merged craft-libs main (cfcc86242)
2026-11-20 03:01:58 -05:00
Dylan M. Taylor 2848526796 fix: resolve two coverage test failures on main (#8813)
- eps: restore linear-time memchr::memmem::find in lex::find so
  search_in_a_loop_runs_out_of_the_budget does not hit O(N*M) under
  craft_ps::read::lex::find.
- ui-egui: wait for FontDb background scan and ensure >20 font families
  in menu_access_stationary_pointer_repeat_and_rerun_do_not_retarget_or_double_invoke
  so coverage/minimal runners do not race or fall short of 20 families.
2026-11-20 02:32:03 -05:00
Dylan M. Taylor 54f58fff31 eps: cut over PostScript scanner (lex.rs) to craft-ps (#8793)
* eps: cut over PostScript scanner (lex.rs) to craft-ps

* chore: repin craft-ps to craft-libs main
2026-11-19 21:05:18 -05:00
dotCooCoo 3f8e4b1fdc Merge main into feat/distorted-image-commands 2026-11-19 16:54:09 -08:00
BFlat 6dd1363d75 Merge pull request #8784 from storytold/cutover/eps-shared-epsi
refactor(eps): delegate EPSI preview decoding to craft-eps
2026-11-20 07:10:30 +07:00
Dylan M. Taylor 7c81cd7df8 eps: document and test shared EPSI preview compatibility 2026-11-19 17:42:11 -05:00
Dylan M. Taylor 4b1d0b257b refactor(eps): delegate EPSI preview decoding to craft-eps 2026-11-19 16:26:07 -05:00
dotCooCoo 70a36623ad Merge main into feat/distorted-image-commands 2026-11-19 11:17:21 -08:00
BFlat 9d334e90ea Merge pull request #8392 from dotCooCoo/feat/distort-images
Free Transform: Perspective Distort and Free Distort put an image's corners on the handles
2026-11-20 02:02:42 +07:00
BFlat 1c75bf4a04 Merge pull request #8747 from Silvertree2010/hand/ai-dynamic-symbols
Illustrator editing data keeps dynamic symbols and per-instance changes
2026-11-20 01:34:20 +07:00
NetterSilver f8ae50c823 AI editing data keeps dynamic symbols and their instance changes 2026-11-19 17:13:54 +00:00
dotCooCoo f8a5534abb Merge main into feat/distorted-image-commands 2026-11-19 07:42:56 -08:00
dotCooCoo 82ef5176bc Merge main into feat/distort-images 2026-11-19 06:39:02 -08:00
BFlat 16756500bf Merge pull request #8700 from dotCooCoo/fix/print-perceptual-paper-plateau
Print: a Perceptual gradient keeps the ink below across a paper-white stretch
2026-11-19 21:33:06 +07:00
dotCooCoo 55438151f3 Merge main into feat/distort-images 2026-11-19 06:08:29 -08:00
dotCooCoo 173d72a867 Merge main into feat/distorted-image-commands 2026-11-19 04:49:23 -08:00
dotCooCoo ce009c54a8 Print: a Perceptual gradient keeps the ink below across a paper-white stretch
Follow-up to #8400. A Perceptual gradient expands each segment into
stops on its OKLab curve. Between two stops of the same color the round
trip through OKLab rounded the color, so a stretch between two
paper-white stops came out as nearly white RGB. On a PostScript plate
the separator then saw ink there, and an overprinting gradient painted
over the ink below across that stretch.

Gradient::expanded now gives a stop between two stops of the same color
that color, unchanged, for every method. GradientMethod::mix and
Gradient::sample are not changed.
2026-11-19 04:48:33 -08:00
Sven Lafebre 4c20c3e21f Merge remote-tracking branch 'origin/main' into fix/8188-ai-arrowheads
# Conflicts:
#	crates/engine/src/cmd/stroke.rs
#	crates/eps/src/import/ai/read/ops.rs
#	docs/file-format-parity.md
2026-11-19 12:34:27 +01:00
bflatastic 618fb1416d Merge main into #8201
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 15:24:38 +07:00
BFlat 38dbb7c086 Merge pull request #8643 from dotCooCoo/fix/eps-frameless-diamond-color
EPS: a diamond gradient without a frame is its color at 1
2026-11-19 15:08:29 +07:00
BFlat 462503c3f8 Merge pull request #8642 from dotCooCoo/fix/print-hard-stop-test-checks-ink
Print: the hard-stop plate test checks where each gradient puts cyan
2026-11-19 15:08:20 +07:00
BFlat 3f0707e64f Merge pull request #7103 from dotCooCoo/feat/stylus-wheel
Brushes: an airbrush pen's stylus wheel varies brush size and width
2026-11-19 14:46:40 +07:00
Juan ManuelandClaude Opus 5.5 bf3d27e2b9 .ai import: blank area type keeps its frame, blank point type is left out quietly (#8348)
* .ai import: blank area type keeps its frame, blank point type quiet

A text object whose story is blank (nothing but spaces and line ends)
was never made (`Story::node`), so its slot
was left empty and counted in the note "text objects on hidden layers
or hidden objects couldn't be read", shown or not.

A slot of a blank story that neither the text document nor the page
fills is now settled after the page is matched, so the page's type
still takes it where the page has some for it alone:

- Blank area type and type on a path come in as a text object that
  keeps its frame or path and draws nothing (`Story::blank_frame_node`),
  as VectorCraft's Type tool keeps an empty frame (#85, #154). That
  covers a frame the page's spare type went past (`Merged`) too. It is
  kept without being weighed against the page, and so are the later
  frames of its thread.
- Blank point type draws nothing and has nothing to keep, so it is left
  out without a note, as the Type tool discards empty point type.
- A blank slot takes the page's type left over only when no other open
  slot can (`readable_first`), so it no longer takes another object's
  type by painting order.
- A blank story's thread isn't held against an unread object that takes
  one of its frames, and a thread lists only the frames still there.
  Its frames are still threaded type to warps and envelopes, which
  never take the place of such a frame.

The note for text objects still left out no longer says they are
hidden: "text objects whose type couldn't be read from the file's text
document or its page are left out".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* .ai import: a blank frame an unread object leaves alone isn't threaded type

When an unread object takes one frame of a blank story's two-frame
thread with it, the other frame is no longer threaded in the document,
but warps and envelopes still treated it as threaded type and so never
weighed it against its look. They now get the frames of the threads
actually kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test: the lone blank frame in a warp comes in as its look, no text left

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:53:38 -05:00
jmvergesandClaude Opus 5.5 dc57c26f69 Merge main (8fcadbc3c) into fix/ai-art-brush-tints-of-a-spot-color
Conflicts in docs only (status lines, changelog rows and table rows):
main's entries and this branch's are both kept, each once. Main now has
this branch's first File formats row fix (#868) itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 05:43:15 +00:00
dotCooCoo f4b015cf08 EPS: a diamond gradient without a frame is its color at 1
A diamond gradient whose vector has no length has no inside, and the
renderer draws it with its color at 1 everywhere. With two stops at 1,
that is the first of them, which ends the stretch before it. The EPS
writer painted the last stop instead, so such a diamond came out in the
other color, and on a PostScript plate an overprinting one whose last
stop is paper white knocked out the ink below at Level 3. The writer now
paints the color at 1, and on a plate leaves the ink below when that color
is paper white, at both levels.
2026-11-18 19:13:08 -08:00
dotCooCoo c5afb93d67 Print: the hard-stop plate test checks where each gradient puts cyan
an_overprinting_gradient_with_a_hard_stop_at_an_end_keeps_the_ink_below_on_a_postscript_plate
compared each PostScript plate with the PostScript plate of the gradient
alone, so a writer that dropped the gradient from both still passed. It
now also reads the plates at fixed points (halfway along the vector, before
its start for the linear gradient, and past its end) and checks that the
gradient's own cyan prints there, alone and over the cyan below, where the
level's painter puts some down, and that the cyan below prints elsewhere.
2026-11-18 19:12:08 -08:00
dotCooCoo 3f253b4da2 Merge main into feat/distort-images 2026-11-18 18:48:32 -08:00
dotCooCoo fb0a82b095 Distort: keep blend steps, saved corners, previews and deep masks right
- A blend step whose interpolated corners and nearer key's corners both
  fail the check is placed as the nearer key is.
- Corners an image can't take are dropped when a file is read, so a
  later transform does not make them its distortion.
- The .ai editing data writes a distorted image at any nesting depth, as
  it does a gradient mesh, so an opacity mask at the limit keeps it.
- A linked image's preview keeps the clipping path its file keeps, so a
  document reopened from its preview still knows the file's clip group
  and Update Links replaces it instead of nesting a new one.
- Docs: `corners` in the plugin API covers only corners that are not a
  parallelogram; Relink's warning for distorted images needs `preserve`.
2026-11-18 17:44:10 -08:00
dotCooCoo 4080708714 Merge main into feat/stylus-wheel 2026-11-18 17:25:37 -08:00
dotCooCoo 621c06bd26 Free Transform: distorted images keep their corners and placement through files, exports and refusals
- A file's corners are kept only when there are exactly four that the
  image can take; a longer list is skipped without decoding it. Corners
  the affine map misses stay a distortion, and a scale past the
  perspective limit leaves the image at its nearest affine placement.
- Distort checks the corners in a frame local to the quad, so a missed
  corner far from the origin is still refused.
- Relink and Unembed refuse a named or selected distorted image before
  searching a folder or writing a file. Create Gradient Mesh lists the
  distorted images it leaves in `skipped`. Place with Replace refuses
  only when the measured image is distorted and the file is not text.
- SVG cuts a distorted image in a scaled symbol instance at the placed
  size. EMF pieces store only the pixels inside their clip. PDF mesh
  pieces of a CMYK image keep a same-corner mask as its soft mask, color
  mask included. Both `.ai` writers write an image at the nesting limit
  at its nearest placement with a warning. DXF warns only when it writes
  the image.
- The canvas cuts the mesh by the view's largest stretch. Warped images
  with a singular placement keep finite corners.
- docs/mcp.md and docs/plugins.md describe the tolerances, the DXF and
  WMF fallback, the partial result of Create Gradient Mesh, and when a
  plug-in sees `corners`.
2026-11-18 17:13:56 -08:00
dotCooCoo d6bc984cad Merge main into feat/distorted-image-commands 2026-11-18 16:24:18 -08:00
jmvergesandClaude Opus 5.5 482981a248 Merge main (4cae5249e) into fix/ai-art-brush-tints-of-a-spot-color
Conflicts in docs only (status lines, changelog rows and table rows):
main's entries and this branch's are both kept, each once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 18:21:32 +00:00
jmvergesandClaude Opus 5.5 3d2bbf5d69 Merge main (4cae5249e) into fix/ai-grouped-clipping-paths-in-compound
Conflicts in docs only (status lines, changelog rows and table rows):
main's entries and this branch's are both kept, each once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 18:21:32 +00:00
bflatastic a87f042c7a combo: #8240
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:12:54 +07:00
bflatastic 1e19e9f2dd combo: #8197
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:12:47 +07:00
bflatastic 7987b81b3f combo: #8155
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:12:42 +07:00
bflatastic 123ed49734 combo: #8107
# Conflicts:
#	docs/roadmap.md
2026-11-19 01:12:38 +07:00
bflatastic ff7870ba7f combo: #6060 2026-11-19 01:12:31 +07:00
bflatastic 2a83263f14 combo: #6048 2026-11-19 01:12:31 +07:00
bflatastic 99280586fd combo: #6040 2026-11-19 01:12:30 +07:00
bflatastic da922c49e3 Merge main into #8240
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:06:40 +07:00
bflatastic eab8a25837 Merge main into #8197
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:06:29 +07:00
bflatastic 56b56463aa Merge main into #8155
# Conflicts:
#	docs/file-format-parity.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-19 01:06:24 +07:00