The check that chooses between taking removed objects out of the
selection's paints and reading the selection again counted a type object
once, while taking it out reads one stroke weight per run. Deselecting a
type object of 10,000 runs beside two squares took 10,002 weights out
instead of reading the two squares again.
Reads now counts a type object once for each of its runs. A test in
large_edits.rs counts the stroke weights read or taken out; it fails
without the change (10,002 weights).
Follows #9930, which made the same check count the contents of groups.
With nothing selected, `paint.invert` and `paint.complement` recolored the
default fill or stroke before reading `target` and `aligned`, so a bad value
was accepted and changed the default. They now read both before the default
branch, as #8099 does for `paint.setFill` and `paint.setStroke`.
All 40 outputs keep their shape, subpath and anchor counts. Their areas
and lengths agree with the earlier pins to better than 1e-6 relative;
only the last digits of the coordinates changed.
The sweep now gives the triangle and the self-crossing operand of #5478
windings that add up, and 2,000,000 random pairs of a triangle and a
five-point polygon on a 4 by 4 grid found no input that it gets wrong.
The test now checks that the sweep's windings add up on that input and
that a winding counting the triangle twice is caught.
Since craft-libs#721 the sweep places output curves on their inputs near
a flat end. Where a ring's hole and a disk share a circle, it now puts
the two copies of the circle less than the flattening tolerance apart
where they leave a vertex. leaving_angle flattened each edge, after its
ends were moved onto the vertex, so the two copies could swap places
around the vertex and a face was lost: at unit size the ring's face
reported the disk as its source, and livePaint.make gave 2 faces
instead of 3.
leaving_angle now measures each edge as the sweep placed it, before its
ends were moved, and finds the point at distance r on the curve itself
by bisection.
Every storytold/craft-libs crate and the hayro, krilla and linesweeper
patches move from 51fcc3b041 to 610c86792a, the head of craft-libs main.
xtask pdf-deps expects the new rev.
#9964's floating-group test took the last grip matching the tab's row with filter(..).last(), which clippy's -D warnings rejects on a double-ended iterator (double_ended_iterator_last, then filter_next_back), so main's gate failed at clippy on crates/ui-egui/src/panel_docking/tests.rs:1118. It now uses rfind, which returns the same grip.
A radial or mirror repeat with an effect of its own, such as a drop shadow,
takes its bounds from the object-effects branch, which falls back to
`own_box`. `own_box` measured the placed steps of a spine-aligned blend but
not the rotated or reflected copies of a repeat, so moving such a repeat left
the copies' geometry effects outside the redrawn area. `own_box` now unions
a repeat's placed copies as #9936 does in `cull_bounds_in`.
`placed_live_effect_bounds` now looks for effects below the node only: the
node's own effects run on the placed whole and its callers measure them, so a
repeat or blend whose only effect is its own no longer expands its copies or
steps to measure them.
The Transparency panel's Blend Mode, the Libraries panel's Library and
the font fields' Style select are bound to a value the code compares
with the document after each pass. Under the default write-through
policy, an entry highlighted with the arrow keys was written to that
value, so the code ran transparency.set, library.setCurrent or the
font command before the entry was chosen, and Escape ran it again to
put the value back. Each binding now writes only on commit
(EditPolicy::OnCommit), so Enter or a click applies the entry.
An `arguments` object keeps a map with one entry per argument, which the heap estimate left out
at allocation and at collection, so a script that kept many of them could grow past the heap
limit. The object now reserves and charges the map, the collector counts it, and the call's
up-front reservation includes it (arrow functions, which make no `arguments` object, reserve
none). Same accounting as #9928 gave host object handles.
Each line end of a curve drawn as lines moved out by the curve's whole gap
from the chords beside it, including the part along the chord. Where a
curve runs out and back along almost one line, that part points along the
curve, so the end moved past the turn: a cubic from (0, 0) out to x = 75
and back drew its band out to x = 112.5. The ends now move only across
their chords.
The Japanese pass of gallery_cutout_setting_uses_its_localized_label and
compact_objects_on_path_options_pivot_rotate_reset_and_save measures
controls in one frame and clicks the saved positions in later frames.
When the CJK font lookup finishes in between, the labels change width
and the click can miss. Both tests now call wait_for_cjk_fonts() before
measuring, as #9898 did for the Effect Gallery and Hyphenation tests.
Hue and saturation jitter replaced a linked solid paint with an unlinked
one whenever the adjustment returned a color, even when rounding to f32
gave back the same components (a hue jitter of 1e-50 degrees, or a Lab
saturation jitter of 1e-6). recolor_paint now keeps the paint, and its
link, when the adjusted color equals the original. Follows #9929, which
added the same rule for Brightness Jitter.
The DXF and HP-GL writers set the expanded-object count to the 16,000,000
limit when one symbol instance was too large for what was left, so every
later instance was left out even when it fit. A rejected instance now
leaves the count unchanged, as the PDF and .ai editing writers do. Tests
preload the count per test instead of starting every export near the limit.
Follows #9751, which made the same change in the EPS, legacy .ai and
metafile writers.
With Display Print Size on, 100% is not one screen point per document
point, so a stop at either end of the list can fall outside the view's
zoom range (WindowView::ZOOM_RANGE). Picking it set the nearest end of
the range instead: at 96 PPI the 64000% entry showed 48000%. The menu
now lists only the stops that view.setZoom sets exactly.
path.moveHandles with dx and dy of 0 only changes anchors that become
corners (both handles listed, or `independent`). It still passed every
listed handle on to the edit, so a live shape whose listed anchor needed
no change was expanded to a plain path. The listed anchors that need no
change are now left out, and the command returns without an edit when
none is left.
Follows #9921, which added path.moveHandles.
The panel model is out of the app while the swatch browser draws, so the
footer read an empty selection and the default kind filter: Swatch
Options and Delete Swatch stayed disabled with a swatch selected, and
Show Swatch Kinds never showed as pressed. The footer now takes its
state from the model the browser holds.
Show Missing or another filter can leave the list empty while the document still holds images, and the empty panel said "No images". The filtered empty state now says "No matching images"; Show All keeps "No images".
Main now reads the editing copy decoded as its streams are read
(#9922: ai_alone_decoded, ai_layers_alone_decoded, AiLayers::decoded)
and renamed the text document's patterns to paints (#9782:
text_patterns, Texts::with_paints). The decoded entry points take the
PDF part's widths as the ones they wrap did, AiLayers::decode goes
through AiLayers::decoded, and the text document still takes the widths
when it is first read, before its paints. The docs keep both sides'
entries.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>