23650 Commits

Author SHA1 Message Date
FredApps 33b27831cf Merge pull request #10414 from storytold/release-candidate/vectorcraft-0.25.2
Release candidate: VectorCraft 0.25.2 hotfix
2026-12-02 19:34:21 +01:00
FredApps 7c71788994 Tests: count PDF reads by buffer address and length
reads_of kept one process-wide count per buffer address and never forgot it, so a
buffer freed by a test running alongside could pass its count to a new buffer the
allocator put at the same address. On Windows, linked_pages_read_the_file_once_and_a_blank_page_keeps_its_crop_box
saw 2 such stale reads in the full cargo test run of 7481fd3a while passing alone.
Keying by address and length keeps a freed buffer's count from carrying over.
2026-12-02 13:00:26 +07:00
Codex 7481fd3af8 Keep one regression for oversized image headers 2026-12-01 20:47:06 +01:00
Codex 3fa02146d0 Bound forced PDF raster resampling for extreme dimensions 2026-12-01 20:46:08 +01:00
yunustopalogullari-sudo 2961f880b0 PDF export: an image over 2^27 pixels is written scaled down instead of left out
A placed image of more pixels than the writer is given (2^27) was left out of
the PDF, with the warning for an image that can't be decoded (#10490). It is
now decoded as Open and Place decode it, within MAX_RASTER_ALLOC and by the
decoders that refuse a file too short for the pixels it declares, and scaled
down to the most pixels that fit before the Compression and Output settings
apply. The warning gives its size and the size written. An image that can't
be scaled down (beyond the allowance, or CMYK) is still left out, and the
warning gives its size as the cause.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
(cherry picked from commit df730ecbcd)
2026-12-01 20:43:43 +01:00
Codex 73bbd005f3 Honor an explicit Crop Box when opening editable PDFs
Backport the PDF option handling from 82d4ec4336. Apply it to editable and linked opens while preserving the original file when an alternate box was requested.
2026-12-01 20:30:22 +01:00
Codex f29d0a70dd Report omitted PDF images above pixel limit 2026-12-01 19:51:50 +01:00
Terra854 e05460088d fix(ai): normalize and outline incompatible dash patterns 2026-12-01 19:48:22 +01:00
dotCooCoo 37e31a9c31 Import PDF: unlocking a file refreshes the box Crop To started on
A box set while the file was locked no longer leaves the old starting box,
so a later pick of Crop Box is still named.
2026-12-01 19:48:16 +01:00
dotCooCoo eb6fda20cb Import PDF: name Crop To only when it differs from the box it started on
A keyboard preview canceled with Escape restores the starting box, so it no
longer counts as a pick.
2026-12-01 19:48:14 +01:00
dotCooCoo a73dd2ad29 Import PDF: a PDF with editing data opens on its trim boxes unless a box is picked
Opening a PDF with editing data without naming a box gives its trim boxes,
but the Import PDF dialog always sent cropTo, so OK with Crop To left as it
started opened the crop boxes instead. Opening such a file, Crop To now
starts on Trim Box, also once a password unlocks it, and OK names the box
only when one was picked. Picking Crop Box still opens the crop boxes, and
a place still starts on Crop Box.
2026-12-01 19:48:11 +01:00
Codex 5daa42eb24 Update generated Live Paint command catalog 2026-12-01 19:44:05 +01:00
Codex cc54974df6 Test Divide preserves artwork at complexity limit 2026-12-01 18:54:04 +01:00
dotCooCoo f8c7115775 Pathfinder: Divide and Live Paint report paths too complex to map
When the planar map is skipped because the paths have too many pieces
(SHAPE_BUILDER_MAX_MAP_EDGES, added in 7a46d5ec56), too many segments
or exceed the sweep's work budget, Divide with open paths fell back to
the filled areas. It replaced the selection with the uncut shapes and
deleted the cutting paths without saying so. Live Paint built no faces:
Make reported the paths as too degenerate to paint, and with Gap
Detection a group could get its edges and no faces.

pathops now has try_pathfinder_with, try_live_paint and
try_live_paint_with_gaps, which return TooManyPieces in those cases
without sweeping the filled areas. Divide, Live Paint Make, Merge and
Gap Options use them and stop with an error that leaves the art
unchanged. The caps, and the fallbacks of pathfinder_with, live_paint,
live_paint_with_gaps and the Shape Builder, are unchanged.

When a Gap Options preview fails after one that found gaps, the dialog
no longer keeps drawing the earlier preview's gaps over the groups the
failure put back.

Docs: docs/mcp.md, the commands' params text and the Divide line in
docs/target-app-parity.md.
2026-12-01 18:50:01 +01:00
Codex 85b5b5c5b0 Restore hover wheel in Transform fields 2026-12-01 17:17:14 +01:00
Codex b3dc9a7355 Restore decoder documentation punctuation 2026-12-01 16:55:36 +01:00
yoriswind 23711dda71 Read alpha from the TIFF regression decoder bytes
(cherry picked from commit 1f14015ebe)
2026-12-01 16:54:27 +01:00
yoriswind b71d7c63e2 Use fixed-size chunks for layered TIFF blend ranges
(cherry picked from commit bd595646d3)
2026-12-01 16:54:27 +01:00
yoriswind 4364a98354 Preserve transparency in single-layer Photoshop TIFFs
(cherry picked from commit d337a29e00)
2026-12-01 16:54:18 +01:00
yoriswind fe9fb3a1b3 Make TOML available to the desktop regression test
(cherry picked from commit 957c7fc793)
2026-12-01 16:45:37 +01:00
yoriswind f74e13140a Hide the floating Tools palette on Home
(cherry picked from commit 0a6166936e)
2026-12-01 16:45:37 +01:00
yoriswind 2a289b32e8 Document direct control protocol authentication
(cherry picked from commit 9e84a049f7)
2026-12-01 16:45:37 +01:00
yoriswind 819df31426 Document the control token for live MCP sessions
(cherry picked from commit 946ffdf7f5)
2026-12-01 16:45:36 +01:00
dotCooCoo ce07b37630 Paste: an empty or padded raw bitmap reads as the old PNG path read it
A raw bitmap with no width or no height is not taken in place of the
text beside it, so the text is pasted. Bytes past a raw bitmap's pixels
are dropped before the pixels are stored, so the PNG encoder is given
exactly the pixels the size names and the paste goes through.

(cherry picked from commit 6a4c1e6af9)
2026-12-01 16:45:32 +01:00
dotCooCoo 3be8bcd875 Paste: a cut-short bitmap read off the UI thread gives way to its text
When a picture is read later in place of text that only names it, a raw
bitmap whose pixels don't fill the size in its header is not taken: the
text beside it is pasted, as for any picture that can't be read. A raw
bitmap with no text beside it is still read and its error reported.

read_pixels documents what happens when the renderers' store refuses
the decoded pixels: they are dropped, and the PNG is decoded as any
other image is. A render test covers that case.

(cherry picked from commit 438ffdcebe)
2026-12-01 16:45:32 +01:00
dotCooCoo 01b47b8349 Paste: a bitmap copied in another app is not encoded and decoded again
A paste of a picture copied in a browser or another app read the
clipboard's pixels, encoded them as PNG, then decoded that PNG again to
check it before keeping it. The paste now encodes the pixels once for the
document and keeps the pixels it already has as the decoded image the
canvas draws, so the read decodes nothing.

decode::decodes counts the images decode_image decodes on a thread, and
the new test checks that such a paste decodes none.

(cherry picked from commit ea828714fb)
2026-12-01 16:45:08 +01:00
Codex b2ee88ca82 Format the Windows File URI conversion 2026-12-01 16:41:42 +01:00
Codex d689f09e46 Use regional decimals in remaining UI fixtures 2026-12-01 16:35:00 +01:00
Codex 2a66d0fe6b Check trusted XMP temporary paths on Windows 2026-12-01 16:34:11 +01:00
Codex f37b5811ad Use ordinary canonical paths in script fixtures 2026-12-01 16:31:45 +01:00
Codex 7507fdece4 Resolve Windows File URIs in evalFile 2026-12-01 16:28:39 +01:00
Codex 4208649d63 Use regional decimal marks in UI fixtures 2026-12-01 16:22:05 +01:00
Codex 81294d068f Check the combined framework revision in the PDF dependency gate 2026-12-01 11:41:14 +01:00
Codex 5b990d637c Locate both color wells by their reported radio values
The shared swatch pair exposes unnamed radio parts. Drive real clicks on the exposed area of Stroke and Fill and keep the original paint and modifier assertions.
2026-12-01 11:36:57 +01:00
Codex 1dde4db0f3 Restore Animated Zoom for mouse-wheel notches
Restore the glide when Zoom with Scroll Wheel and Animated Zoom are both on, as in 0.24.1. The canvas keeps precision point input and pinches immediate. Tracks #10418.
2026-12-01 10:46:21 +01:00
Codex 4c62e2f504 Move whole-selection anchors with cached marks 2026-12-01 10:42:31 +01:00
yoriswind f37e7b2017 Color panel: apply picks to the selected Fill or Stroke well
(cherry picked from commit 30a387f708)
2026-12-01 09:53:42 +01:00
Codex 33f07e81f0 Format the outlined Pen cursor regression 2026-12-01 09:50:04 +01:00
Codex 755763a046 Cascade newly opened floating panels from the Window menu
[skip ci]

(cherry picked from commit 9af51c41f6)
2026-12-01 09:42:42 +01:00
dotCooCoo 6efb0dda4b Images: a selected image's color mode is read from its file header
With one image selected, the Control bar and the Properties panel ask
image.info for its details again after every change to the document,
each step of a drag included. image.info decoded the whole image to
find its color mode, so dragging or redrawing a large placed image
(about 8000 x 4000 px) spent hundreds of milliseconds per step on the
UI thread. A group holding the image did not lag.

image.info and file.place.info now read the color mode from the
header of a PNG, JPEG, TIFF, PSD, GIF or BMP file, and report RGB for
WebP, without decoding the pixels. Other formats are still decoded.

(cherry picked from commit 194de01a52)
2026-12-01 09:42:23 +01:00
Codex 480ba8a742 Update version-qualified local workspace references in the release lockfile 2026-12-01 09:26:29 +01:00
dotCooCoo ac25ac5c1a Canvas: a move of the selection moves its marks instead of building them again
The canvas kept the selection's outlines, anchors and dots only while the
document revision stayed the same, so every move command, nudge and drag
step built them again from every selected object. With 10,000 selected
rectangles one build took about 26 ms in a release build.

A move of whole objects now records the documents before and after it
and the distance (DocState::moved). The record is made only when each
moved object is still the node the transform left (no later pass, such
as the pixel grid snap, changed it), none is a member of a blend, and
every object the selection shows, the key object and the key anchor's
object included, is a moved object or inside one. Copies, scales, moves
of patterns alone and moves that resize type areas make no record.

The canvas moves its kept marks by that distance when the record names
the document they show, or the document a drag began with. It also keeps
them through a new revision of the same document and selection, as at
the end of a drag. Every other change builds them as before.

(cherry picked from commit 389fc65631)
2026-12-01 09:17:43 +01:00
yoriswind 781f3d2de7 View: keep Cmd+0 on Fit Artboard in Window
(cherry picked from commit d6497ecebb)
2026-12-01 09:17:28 +01:00
Codex eed591b4a6 Restore pointer-anchored pasteboard zoom and Ctrl-wheel sideways scrolling 2026-12-01 09:17:15 +01:00
dotCooCoo 1412834495 Cursors: tool cursors keep their size under UI Scaling unless Scale Cursor Proportional to UI is on
The Scale Cursor Proportional to UI preference was never passed to the
interface, so painted tool cursors always grew with UI Scaling and showed
twice as large at 200%. The preference now decides it, and it is off by
default.

(cherry picked from commit 0ef22709c1)
2026-12-01 08:57:55 +01:00
dotCooCoo c019f87fcc Shape Builder: name sliver drops in the over-cap region note
(cherry picked from commit bb80cc827c)
2026-12-01 08:56:39 +01:00
dotCooCoo 313073b41c Shape Builder: say the filled areas keep their own cap past the map's
When the sweep cuts the paths into more than SHAPE_BUILDER_MAX_MAP_EDGES
pieces, the Shape Builder falls back to the regions of the filled areas,
which are capped separately. The docs said it then finds no regions.

(cherry picked from commit 1b59873456)
2026-12-01 08:56:38 +01:00
dotCooCoo 96eec0d25c Shape Builder: stop building regions of paths that cross too often
Paths that cross each other many times are cut by the sweep into far
more pieces than they have segments, and building the regions and edges
of those pieces took minutes and gigabytes of memory. 400 circles
stacked nearly on top of each other (1,600 segments) were cut into
about 320,000 pieces, and their map took 60 s and 4.2 GB, enough to
make the whole computer unresponsive.

The Shape Builder now stops after the sweep when it cuts the paths into
more than SHAPE_BUILDER_MAX_MAP_EDGES pieces (twice
SHAPE_BUILDER_MAX_SEGMENTS, what open paths that cross nothing make at
that cap) and finds no regions. The filled-area regions it falls back
to are capped the same way.

(cherry picked from commit 7a46d5ec56)
2026-12-01 08:56:36 +01:00
dotCooCoo 45de39a138 Render: a thin stroke takes the corners of its own subpath
A corner in one subpath gave the stroke's join to the lines of a curve
in another subpath that met at the same point, so a miter could be
drawn there instead of a round join. The corners are now kept per
subpath and each subpath of the outline reads only its own.

Test: a curve's outline is the same with and without a second subpath
that has a corner at the curve's start.

(cherry picked from commit f1ef1a4e39)
2026-12-01 08:56:09 +01:00
dotCooCoo 57eb47befe Render: thin strokes keep smooth curves round where their lines turn sharply
Since #9972 a thin stroke along a curve is drawn as lines, and where two
of those lines met at a sharp angle the stroke's own join was drawn
there. Along smooth anchors that sit close together after a bend, or a
curve that bends tightly, the lines turn sharply, so a miter join drew a
spike past the stroke and the smooth curve showed sharp corners on the
canvas. The document's anchors are unchanged; only the drawing was
wrong.

The stroke's join is now drawn only at the path's own corners, where
two segments meet with tangents that are not in line. Where the lines a
curve is drawn with turn sharply they meet with a round join, as the
stroke along the curve itself is round there.

Tests: a bend followed by smooth anchors 0.1 and 1 apart keeps every
outline point within the stroke's width of the curve and covers it;
with long handles the outline matches the curve's own outline away
from its edge; 200 random cubics with a miter join keep their outline
within the stroke's width of the curve.

(cherry picked from commit 69ff74a63b)
2026-12-01 08:56:07 +01:00