The Set Corners dialog did not bind its values to the host fields that
the preview reads, so after typing a radius of 7 and a lower angle of
120 the host fields still held 10 and 0. The dialog now binds its
values with Bind::bound(fields), as the Arrange dialogs do.
Extrude & Bevel's Depth and bevel Width and Height, and Revolve's Offset,
showed px in a points document. The classic Extrude & Bevel and Revolve
rows and the Map Art X and Y rows showed the document's unit after a
number of points. These sliders show the number of points they hold, so
each now shows pt, or px in a pixels document, through one rule
(three_d_classic::length_unit).
Document::node went through index_path, which copied the node's index
path out of the lookup cache into a new Vec, walked the tree to check it,
and walked it again to return the node. The menus' states call it for
every selected object in many of their checks, so a rebuild of the menu
states with 10,000 objects selected made hundreds of thousands of copies.
node now follows the place the cache has for the id once, without a
copy. When the cache has no single place for it, the path is deeper than
32 levels, or the node there no longer has the id, it looks the node up
as index_path does.
vectorcraft_doc::path_copies counts the paths the cache copies out, for
the new test.
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.
The shared add-on dialogs checked only the document's uid, which
File › Revert keeps while it replaces the drawing. A dialog left open
across a revert previewed on and applied to the restored art. They now
record the revert count with the uid, stop previewing after a revert, and
refuse OK with "The document was reverted. Reopen this dialog to
continue.", as Vector Halftone does since #9943.