The menu model is rebuilt on every edit and selection change, and each
rebuild made the command catalog again: the keymap's 1,544 rows with
their icons and keys, the menu references, AppCatalog::new, the linked
sets' keys and the Type tool's keys.
The model now keeps the catalog's rows and the catalog while what they
are made from is the same: the shortcut editor's entries, the platform,
the actions' function keys, the menu references with their labels, the
user's shortcuts, and the language, plug-ins, scripts, fonts and listed
names. A rebuild after an edit or a selection change sets only the
rows' states. A refused catalog is made again on the next rebuild.
The Tools tab took every command of the tool kind in the window's keymap, which also holds the tools of the image workspaces' dialogs. The tab opened on those tools with no heading and listed Hand, Zoom and Lasso twice. It now takes tools in the app's scope only.
The Opacity number box sat bare beside the Blend Mode menu with no visible label. It now sits in a Field labeled Opacity on one line, as the Properties panel's Opacity row does.
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.
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