With Scale or Width on a pen input, a pattern tile or art brush art was
bent by checking the outline at evenly spaced positions, so a pen change
that fell between two of them was drawn at the size on either side. A
10 x 4 pt tile on a 10 pt path with a pressure peak at 2.2 pt was 2 pt
either side there instead of 6 pt.
The bent outline is now split at the recorded pen samples where the size
turns by more than the outline's tolerance, in both the fitted curves and
the chords, so those samples land on anchors. Samples that keep the size
on a straight course add no anchors.
new Map, new Set, new WeakMap and new WeakSet read their argument by
index (an array, a string or an object with a length), so a generator,
a Map, a Set or any other iterable was a TypeError, and an array whose
@@iterator was replaced was still read by index. They now read it
through GetIterator and close the iterator when adding an entry throws
(ECMAScript 2015, sections 23.1.1.1, 23.2.1.1, 23.3.1.1 and 23.4.1.1).
A Map or WeakMap entry that is not an object is a TypeError.
The typed array constructors and %TypedArray%.from read a source with
an @@iterator method through its iterator to the end before mapping
it, and any other source as an array-like object (sections 22.2.1.4
and 22.2.2.1).
Map.prototype[@@iterator] is entries, Set.prototype[@@iterator] is
values, %TypedArray%.prototype[@@iterator] is values, and the Map, Set
and array iterators inherit %IteratorPrototype%, so for-of and spread
walk them.
Changed behavior: an array-like object without @@iterator passed to
new Set or new Map is now a TypeError, and Uint8Array.from([1, 1], f)
with an f that changes the array maps the values read before f ran.
The params text and docs/mcp.md now say that a move by 0, 0 changes only
the anchors it makes corners, so a live shape whose listed anchors need no
change stays live, and one with an anchor made a corner becomes a plain
path.
Each frame with the Layers panel open, every row's selection square
walked the art below its node to find whether it held a selected
object, so a layer with 10,000 objects walked all of them in every
frame. The rows now list the nodes that hold selected art in one pass
over the tree when they are listed again (on each revision or
selection change), and the square reads that list.
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.
Panel::in_view reported a control as visible when its rect lay past the
fixture's window, because the fixture's visible check clips only to the
arena. A click or press then aimed at a point outside the window, hit
nothing, and the test failed later on an unrelated assertion.
in_view now also clips to the window (the room, at least 800 by 600
points). click, press, double and right clicks, drags, typing and
click_part check that the point they aim at is inside the window and
fail with a message that names the control, its rect and the window.
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.