A narrow Preset Details column (an 800 by 600 or 900 by 700 window) now
shows Height and Artboards side by side with Orientation under them, so
Orientation's two buttons stay side by side instead of stacking, and
the Bleed fields in two rows, Top and Bottom above Left and Right, with
the link button after Right. A column at least 11 control heights wide
keeps the one-row layout.
A curve drawn as lines took its line ends from the curve's bending alone.
Where a curve runs out and back twice along almost one line, its two turns
hold almost no bending, so a thin stroke drew it with one step in two
halves: each half held a whole turn, the two halves' gaps canceled, and
the band ran straight from start to end without either turn. A cubic from
(0, 0) out to x = 28.87 and back to x = -28.87 drew only around x = 0.
Each step is now checked against its curve: where the curve lies more
than twice the chord allowance from the step's line, to either side or
past its ends, the step count doubles, up to the curve's equal steps.
Wide strokes draw their long curves the same way and get the same check.
The role list took all the room the panel gave it. In the floating
window the panel opens in (260 by 360 pt), Check and Fold Preview were
drawn below the bottom of the panel, and the Fold Angle row was cut off,
with no scroll to reach them. The list now takes its natural height, as
the Learn panel's skill list does, so the controls show under the four
roles.
The canvas built the outlines, anchors and dots of the selection again in
every pass, walking every selected object three times (the outlines, the
anchors and the dots each count the marks first). They are now kept in the
canvas cache with a key of the document's uid and revision, what the view
hides, Halftone Preview, the tool whose marks show and the Selection &
Anchor Display preferences, and built again only when that key changes.
With 10,000 rectangles selected, an idle frame went from about 290 ms to
about 210 ms on the build host.
Every Fill and Stroke row of a stack now keeps the same room for the
width profile, the stroke notes and the weight, empty where the row has
none, so the swatches line up when a stroke has a non-uniform profile or
notes. The notes' width follows the longest notes in the stack, up to 16
characters; longer notes are cut at the end and show whole in a tooltip.
The Graphic Styles revert test now aims at the object row's thumbnail
past the empty disclosure column that the aligned top-level rows keep.
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.