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.
#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.
#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.
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.
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.