Another test thread that changes the font database between the two pump passes makes the
second pass list the fonts again, so the one-listing assertion could fail. The test now repeats
the edit until the generation stays the same across both passes, as kept_over_frames does.
A row moves its value under the label when the two do not fit on one
line, but a value wider than the whole panel, such as a long document
name, still ran past the panel's edge. The value now shows as
multiline selectable text, so it wraps inside the panel. Short values
still stand at the row end.
The dialog pump ran text.fonts and the missing-font check on every new
version of the active document, with or without Find Font open, so each
edit walked the whole document twice. On a 20,000-object document that
was 2.2 ms and 23,443 allocations per edit frame.
The pump now returns at once when the dialog is closed. Opening the
dialog still lists the fonts, and an edit while it is open lists them
again.
#9963 took wrapping off Document Info rows so each value stands at the panel's right edge. In a narrow panel in German the Flattener Preset row then ran past the panel, and main's gate failed on panels::tests_panel_rows::the_document_info_rows_wrap_in_a_narrow_panel_in_german. A row now measures its label and value: when both fit on one line it does not wrap, so the value stays at the right edge, and otherwise it wraps.
In a .js script, `function F() { return eval("new.target"); } new F()`
threw a SyntaxError: eval code was always parsed as if it were at the
top of a script, where `new.target` is not allowed (ECMA-262 2015
section 18.2.1.1).
A function that calls eval now keeps its new.target in the hidden
binding arrow functions already use, also when it was compiled as ES5.1.
A direct eval looks that binding up through the caller's scopes (one
unit of fuel per scope); when it finds one, the eval code may use
`new.target` and reads that value. At the top of a script, in an arrow
function there, and through an indirect eval it stays a SyntaxError.
`super` in eval code is still not supported.
A test in es2015_tests.rs covers plain, strict, arrow, nested-eval and
class-constructor callers and the three SyntaxError cases; it fails
without the change. Follows #9094.
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.
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.
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.