The Image Trace panel, the Tracing Presets details and the preset editor
gave each settings row its own label column, so the Threshold, Paths,
Corners, Noise and Stroke sliders started at different x positions and
had different lengths. The rows now share one FieldGroup, so every
select and slider starts at the width of the widest label, including
across the Advanced section.
The Weight, Arrowheads, Scale, Align and Profile rows each sized their
own label column, so their controls started at different x positions.
The panel now shows its rows in one FieldGroup, and they share the
widest label.
When the window is too short for every tool, the Tools panel, toolbars
made with New Toolbar and torn-off tool strips scroll their tools. The
scroll bar showed only while the pointer was over the rail, so nothing
showed that tools were hidden. The rail now keeps its scroll bar visible
whenever its tools do not fit (ToolRail::bar_at_rest).
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).
The progress lines for the ES5 language runs, the ECMAScript 2015
collections and binary data runs, and the generator runs gave counts from
before later changes. On main at 0ac2b74614, cargo xtask test262 reports
4,676 of 4,682 ES5 language runs, 1,514 of 1,514 collection and binary
data runs, and 1,285 of 1,289 generator runs (669 tests) passing. The
generator tests that use classes now parse, so the 4 remaining generator
failures are the caller and arguments restrictions.
Each Fill and Stroke row drew its swatch at the control height, the
same height as the row, so the swatches of neighboring rows touched.
The swatch is now a small control, so it sits inside its row with room
above and below.
In a .js script, `class B extends A { m() { return eval("super.x"); } }`
and `class B extends A { constructor() { eval("super()"); } }` threw a
SyntaxError: eval code was parsed with only `new.target` allowed, never
`super` (ECMA-262 2015 section 18.2.1.1).
Each compiled code now records what `super` and `new.target` may do in
eval code it runs: the rules of its function's body, the rules of the
code around an arrow function, or the rules the eval code itself was read
with. A direct eval parses its code with the caller's rules, so
`super.name` and `super[key]` work inside a method, accessor or class
constructor, and `super(...)` works inside a derived class's
constructor, also from an arrow function or a nested eval there. A plain
function inside a method, the top of a script, an indirect eval and a
`Function` body still give a SyntaxError. `super(...)` in eval code binds
`this` once; a second call is a ReferenceError.
Two tests in es2015_tests.rs cover the allowed and SyntaxError cases and
fail without the change; a third checks that a `Function` body reads its
own `new.target`. docs/mcp.md describes the rule. Follows #9094.
With Use Preview Bounds on, dragging a bounding-box handle with the
Selection tool, a shape tool or Free Transform lined up the outside of
the selection's stroke with the other art's geometric bounds, which
Smart Guides use for the targets. A stroked object then stopped half a
stroke short of the edge it showed a guide for, the same mismatch moves
had before.
- The handle still drags the visual box, and the edges of the
selection's geometric bounds line up with the targets and with even
spacing. The margins between the two boxes keep their size unless
Scale Strokes & Effects is on, when they scale with the box. Snap to
Grid and Snap to Pixel still use the bounds the box shows, and the
Slice Selection tool is unchanged.
- Tool contexts carry the Scale Strokes & Effects preference.
- New tests drag the right-middle handle of a rectangle with a 20 pt
stroke toward another rectangle with the Selection tool and with Free
Transform.
Part of #6436
export_bytes_match_shared_writer_goldens compares the DXF writer's output
with crates/cad/tests/data/shapes_r12.dxf and shapes_r2018.dxf byte for
byte. With core.autocrlf=true, git checked both files out with CRLF line
endings while the writer emits LF, and the test failed. A root
.gitattributes now marks those files -text, so git checks them out with
the LF bytes stored in the index.
The parameter dialog on main builds its rows through the craft UI
framework, so the unit rule for the Hairline Slivers width rows moves
there: `Setting` carries the stroke unit's `LengthUnits` for
`object.path.cleanUp` and `select.object.hairlineSlivers`, or points
when the stroke unit rounds 0.001 pt to 0.
- Every craft-libs crate moves from 610c86792a to f762f98a (craft-libs
main), which adds the fixed corner-widget inset, the ruler corner's
plus, popover padding, and a native window's move recorded once.
- The status bar's Zoom field uses ZoomField::status_bar, so it draws
without an outline in the status bar's look.
- The Rotate View compass is placed in CanvasScrollbars::clear_of
instead of a copy of the scroll bars' sizes.
- The tools' corner-widget inset is public, and a test holds it equal
to CornerWidgets::INSET, the inset the canvas draws the widgets at.
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.