A round or projecting cap draws a dot for a subpath that never leaves
its first point: a closed lone anchor, or a line or curve back to the
same point. StrokeLayer::hits ruled the click out by the box of the
segments, which leaves out a closed lone anchor, and then measured
only segments with length, so a click on the dot missed. The fast
path for a plain centered stroke in hit_leaf also returned no hit for
a path whose only subpath is a closed lone anchor.
hits now measures each such subpath as the dot the stroke draws: a
disc for a round cap and an axis-aligned square for a projecting cap,
as wide as the stroke's body, on undashed strokes without a width
profile, which are the strokes that draw a dot. Inside and outside
strokes keep to their side of a closed path. Butt caps draw no dot
and still miss. The fast path hands a click near a closed lone anchor
to the full check.
Hover, Select Behind, Direct Selection and the Eyedropper go through
the same hit test, and a marquee over the anchor already selects it.
main added HostClass initializers in host_tests.rs without the reflect
`info` field, a second test named
assigning_undefined_to_the_selection_throws_and_keeps_it, and type and
size checks on DocumentPreset settings.
- host_tests.rs: the six new HostClass initializers give `info`.
- The selection test for an index past the end of pageItems is renamed
assigning_an_index_past_the_end_to_the_selection_throws_and_keeps_it.
- The preset heap tests used titles of 512 KiB and an array of 20,000
booleans as a title, which the setter now refuses. They now reach the
run's heap with 4,092-byte titles, and compare presets holding a
four-number documentBleedOffsetRect with presets holding an eight-byte
title, so each array element still counts.
A symbol instance, text, a blend or an envelope is hit anywhere in its
bounds, and that hit keeps a click from reaching an unfilled path below.
Art on a layer whose Preview is off is hit in outline, so its unfilled
paths are not picked from inside.
main's #9357 grouped ui.pdfSummary.* under File and ui.runInstalledScript
under File > Scripts. On this branch a UI command whose params doc starts
{path} or {path: ...} needs a path, so neither is listed in Keyboard
Shortcuts, and commands_no_menu_holds_are_grouped_by_their_menu_or_panel
failed on the merged tree because those two GROUPS rows grouped nothing.
The two footer buttons open menus but set no popup kind, so the footer
drew no dropdown arrow under them and screen readers were not told they
open a menu. Both now call `.popup(PopupKind::Menu)`, as the menu
buttons in the Brushes, Graphic Styles, Symbols and library panel
footers do.
`panel_harness` gains `Panel::popup_kind`, which reads the popup kind a
control reports from the accessibility tree.
A straight segment's handles sit on its anchors, so bending it moved
them straight out of the anchors and curled its ends. bend_segment now
gives it its handles at its thirds first (the same line) and maps the
grab position onto that form, so it bows evenly and the grabbed point
still follows the pointer.
A geometry effect is given the object's box as its reference, for
example the center a Transform effect scales and rotates about. Drawing,
the preview bounds, Expand Appearance's first step, shape art, the
outline check of the .ai reader and a stroke's effects before a Transform
that makes the stroke a path of its own measured that box with kurbo's
bounding_box, which counts only segments. A lone anchor was left out, and
a path of one anchor measured a box at the origin, so it scaled about
(0, 0). PathData::bounds, which the selection's box, Align, Transform
Each and every later effect in the stack use, holds lone anchors.
- geom: anchored_curve_bounds measures a BezPath as PathData::bounds
measures the path it stands for.
- render, effects and the .ai reader give geometry effects that box.
Gradient reference boxes and clip regions are unchanged.
main moved the pen input onto the craft UI framework's PenSource, which
queues each reading and pairs the readings with a frame's pointer moves.
The web build now writes one reading per move, coalesced positions
included, with the wheel from Pointer Events' tangentialPressure, in
place of the StylusFeed moves the branch used before. The wheel rules
are unchanged: 0 reads as no wheel until the pen reports another value,
and another pen, the other end, a canceled press or a pen that left the
hover range reads it afresh.
The canvas-side pairing (frame_moves, StylusFeed::set_move) is gone on
main, so the branch's two ui-egui tests for it are dropped; the
vectorcraft-web tests check the readings written for each move.
Window is defined now that ScriptUI dialogs run, so new Window('dialog') no longer fails with the advice that names the `vc` object. an_error_names_the_script_its_place_and_kind and failed_script_report_keeps_message_and_adds_origin use new BridgeTalk() instead, which still fails with that advice.
The plug-in runtime keeps main's JavaScript plug-ins beside the web worker's module bytes and checked loads: a JavaScript plug-in's bundle is kept for the worker like a module, and load_checked loads it from its bundle.
The merge of main left object literal methods without a `name`, since
main named them with SetFunctionName and the branch defines them through
InitMethod. Methods and accessors defined with a home object are now
named as they are defined: after their key, with `get ` or `set ` before
an accessor's name and a Symbol's description in brackets.
- A named class's constructor takes the class's name before its methods
are defined, so a static `name` member replaces it. An anonymous class
takes the name it is assigned to unless a static member defines `name`.
- Computed methods and accessors in object literals have the object as
their home object (new InitMethodKey), so `super` works in them.
- Class method keys and `super[key]` keep Symbol keys instead of
converting them to strings.
- Classes have generator methods (`*m() {}`); a generator constructor is
a syntax error.
- docs/target-app-parity.md and docs/mcp.md describe the new behavior;
the class line drops test262 counts measured before main added
destructuring, generators and function names.
main does not compile its ui-egui tests: crates/ui-egui/src/tests/scripts_menu.rs uses
Duration at lines 37, 320 and 324 without importing it (error E0433, "cannot find type
`Duration`"). #9816 removed the `use std::time::Duration;` line when its own uses went
away, and a354d09af4, merged at about the same time, added new uses of Duration in the
same file. Each passed CI on its own head; the two together do not build.
app.documents now lists the active document first, so after file.new the new document is
documents[0] and the document with the three frames is documents[1]. The test picks each
document by that order.
With Run Startup Scripts on, File › Scripts runs the chosen script as
`script.startup.run`'s `then`, and the app gave the Actions panel's
actions only to `script.run`'s own parameters. `app.doScript` in that
script then found no action set. The app now gives `then` the panel's
actions as well, unless the caller gave its own.
The dialog host now ties each held record to one opening of a dialog,
and drops a record whose dialog was opened again under the same id.
Reopening the radius dialog straight through the host left the new
opening with no record, so its Cancel never cleared the open dialog
(a_second_click_replaces_the_open_dialog failed). The dialog now opens
the replacement with open_held_with, which gives it its own OK and
cancel hook.
main added `Value::Symbol`, a binary_octal argument to `string_to_number` and its own
ES2015_BUILT_INS and ES2015_FEATURES in the test262 runner.
- A Map or Set key compares a Symbol by identity, as SameValueZero does.
- CanonicalNumericIndexString reads a typed array property name with the ES2015 ToNumber.
- The collection and binary-data test262 runner uses ES2015_COLLECTION_BUILT_INS and
ES2015_COLLECTION_FEATURES, writes its failures to `es2015-builtins-failures.txt` so it does
not overwrite the ES2015 subset's `es2015-failures.txt`, and runs each test through `run_one`.