Realm::add_es2015 no longer turns on Options::es2015, which now also
selects the ECMAScript 2015 syntax. A realm made without the option gets
Promise and still reads ES5.1 until set_es2015 changes it; the engine
calls set_es2015 for each run before it adds Promise.
Supervised nightly switch-on, merged under Skylar's explicit Nightly 758 override after green CI, CodeRabbit on this head with no open threads, Sonar passing, and an independent adversarial review with no blockers.
Merge-only delta: CodeRabbit reviewed 91c7634e, the last authored head; this head adds only a merge of main, so its CodeRabbit check is a skip.
A selected ruler guide that a transform turns to an angle becomes a
selected guide path, but the reply's ids left it out: object.rotate
with copy on a lone guide returned {"ids": []}. transform_ruler_guides
now returns the ids of the paths it adds, and the transform commands
add them after the transformed objects, on the direct-selected anchor
route too.
Type made from a file's text document has no layout when the import
matches it with the page's type, so the box it was matched by was the
estimate of type without a layout: as wide as an average font would set
it, running right from its anchor. Right-aligned point type draws on the
other side of its anchor, centered type lies half outside that box, and
vertical type runs down the page across it. Where the text document
makes the type of every text object that shows (`made_only`), the page's
type there was then nobody's: the import noted "some of the page's type
has no text object in the layers, so it is left out" for type that is in
the layers, and the made type, not seen on the page, was weighed against
the page as type the page may not draw, and sometimes taken out.
`made_only` (`crates/eps/src/import/native/plan.rs`) now takes the box
of made point type that shows from its layout (`drawn_box`), in the
fonts the import has, as the document measures it once it is open. The
node itself keeps no layout, so the document's type is measured when it
opens, as before. Area type and type on a path are matched by their
frame and path, as before.
Where some text object's type isn't made (`plan`), the box stays the
estimate: there the page's pieces in the box where made type draws can
belong to text objects stacked on it whose type isn't made, and the
made type would take them all.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- `toString()` on a page item list from a closed or replaced document throws
"Stale document", as its other members do.
- A member a host class declares unavailable is not reported by
`hasOwnProperty` or `propertyIsEnumerable` even when a parent class has it.
- Assigning a name an object of a host class inherits from a prototype no
longer calls the class's indexer, so a non-strict assignment is ignored
instead of throwing.
- Assigning a selection checks repeated objects with a set instead of
scanning the list for each object.
- The script report test throws a text that names `Window` for the case of
an error the script wrote itself.
window.toolbar.dock and window.toolbar.float were still listed in the
command catalogs, but the move to the framework dock removed their
handlers, so both returned "unknown command".
- window.toolbar.dock docks a toolbar made with New Toolbar as a column
of the left or right edge's dock, at the column `order` asks for.
Without `side` it uses the edge it docks at, else the edge of the
docked panel it left, else the left.
- window.toolbar.float floats it at x, y, or as the dock floats a panel.
- A hidden toolbar that either command shows brings back the groups torn
off it, and both commands end a Tab hide.
- window.toolbar.list reports that same edge for a floating toolbar
instead of always "left".
- place_floating moves an open OS window's record with its rect, as
float_actions does.
Docs: the params text in both catalogs, docs/mcp.md and
docs/control-protocol.md describe dock columns instead of lanes.
The view info the canvas gives the tools never set its precise flag, so
the Blob Brush and the Eraser drew their tip outline around the precise
crosshair whatever the setting. Nothing passed the host's Caps Lock
state to the session either, so `view.capsLock` changed nothing.
- The view info's precise flag is on while Use Precise Cursors or Caps
Lock is on, as before the move to the shared canvas.
- The canvas passes each change of the host's Caps Lock state to
`view.capsLock`; a `view.capsLock` call stays in effect until the next
change.
- The canvas's pointer follows the same flag, so with both on the
drawing tools keep the crosshair.
clip_to kept a piece of an unfilled outline only when its middle tested
inside the mask, and a point on the mask's own outline tests inside on
some sides and outside on others. A square clipped by the same square
kept two sides, so Fill Area found no area inside it.
A piece whose middle lies on the mask's outline now counts as shown when
the mask's filled area lies on one side of it. A piece just outside the
mask, and a piece on an outline of the mask that bounds no filled area,
stay hidden.
The Live Paint Bucket's three cursors and the Knife's put the hotspot at
(2, 22), the lower-left corner of the icon box, where none of their icons
draws anything, so a click landed away from the drop, the brush or the
blade. Each hotspot now sits on the point its cursors.toml entry names:
the bottom of the drop for the bucket and the filled diamond, the middle
of the brush's bristle edge, and the blade's point. The Eyedropper keeps
its pipette tip at (2, 22).
A new test draws every tool cursor's image and checks that the icon's
own mark color, not only its halo, covers the hotspot pixel or one next
to it.
In a document whose frames take over 8 ms, every frame of an edit went to
the render worker once the frame shown came from it, so a Pen drag's curve
trailed the pointer by the worker's render time plus the wait for a busy
worker. The changed part of a worker's frame is now drawn again on the UI
thread, as it already was for frames rendered there, when the part's share
of the frame's last render time is at most 8 ms.
The part is not drawn there, and the frame goes to the worker as before,
when the frame shown drew raster effects made before their objects moved,
holds pixels copied from the worker's last frame, or drew art in a way that
depends on the frame's size, or when the part itself draws such art. A
worker frame on its way blocks the part only when it is of another document
or not older than the edit.
Part of #8296.
docs/mcp.md still listed ui.imageTracePresetDialog, which main no longer
has: the UI port (#8800) removed the Save as New Preset and Rename
dialog and the command. The Image Trace section now describes the
Preset row's Manage presets menu: Save as New Preset… and Rename… open
a name field in the row, Enter or OK runs imageTrace.presets.save,
Escape or Cancel saves nothing, a taken name keeps the field open, and
Delete runs imageTrace.presets.delete.
When the view was turned to an angle that is not one of the Rotate View
presets (with the Rotate View tool, or view.rotate with angle 17), the
status bar's Rotation box showed no text: the select held no entry for
the angle and had no placeholder. The box now shows the angle rounded to
a whole degree as its placeholder, as Crop Image's PPI select does for a
resolution outside its list. A preset angle still shows its
row, and a pick from the list still turns the view.
The pen that took the Wintab readings now reads the latest packet of its
own cursor whenever that cursor is still near the context, instead of
only when it is the one cursor read. Another tablet's airbrush moving
while the pen is held still no longer drops the pen's wheel.
The status bar's zoom field and the Navigator edit the canvas view, whose
zoom is the view's zoom divided by UI Scaling. Both sent that canvas zoom
to view.setZoom, which stores the zoom it is given, so at 150% UI Scaling
typing 200% zoomed the view to 133.33%.
View::zoom_of_canvas turns a canvas view's zoom back into the view's zoom,
the inverse of View::canvas, and View::set_canvas uses it. The status bar
and the Navigator convert the edited zoom with it before they run
view.setZoom.
File › Revert keeps the document's uid and clears its history, so a
drag started before it could still duplicate or delete a swatch of the
reverted document that has the same name and paint. The drag now also
records the document's revert count, and New Swatch and Delete Swatch
take no rows when it has changed.
The native menu bar handed AppKit items without shortcuts: only the Window
rows carried one, and Settings › General… carried the default ⌘K. Save,
Open, Undo, Group and the other items showed no keys and had no key
equivalents.
- The native menu now gives each item the shortcut the menus show for it,
else its command's chord in the window's keymap, the user's own set
included, as the in-window bar's rows look it up. A rebound command shows
its new key.
- Settings › General… shows Preferences' current shortcut instead of the
default one.
- The Window rows' and Settings' shortcuts are read when the native menu is
laid out, so they no longer stay empty after the first frame.
Every built-in workspace took its layout from default_workspace, which
lays the Tools panel out in one column, so Painting lost the two-column
Tools it had before the craft framework port, and Window > Toolbars >
Double Column read unchecked after switching to it. A built-in now
names its Tools column count, and Painting asks for two. No other
built-in set a toolbar option of its own before the port.
- Each pen's end is kept by its pointer id, so only the same pen turning over
starts the readings afresh; another pen's message with the other end does not.
- A cursor whose WTInfoW query failed is asked again 2 s of the message clock
later, and only a cursor the driver describes without a wheel is cached as
having none.
- Whether the app is active is asked again right before WTOpenW, after the
close and WTInfoW calls before it.
- docs/target-app-parity.md: a pen first reads the wheel from a packet within
200 ms of its message, then holds the readings until they start afresh.
The checks behind `opacity` and `blendingMode` assignments, and the
captures `object.setProps` runs for object opacity and blend mode, now
find an object's graph series or label kind through its parents instead
of walking the whole document. Assigning modes to many objects no longer
costs a pass over the document for each one.
A new test covers a blend mode a graph mark or axis label already has,
in an open layer and in a hidden or locked one.
A Color Picker opened from a dialog's color row (effect dialogs,
Artboard Options, Layer Options, Recolor Artwork), from the Dimension
options and from Preferences had no Color Swatches button, because only
the Fill/Stroke proxy's picker was given the swatch view. Recolor
Artwork's Pick from Swatches asked for the swatches, but the picker
drew its color models.
- Every picker now has the swatch view: the document's swatches and the
color libraries.
- A picker over Recolor Artwork shows the library that Limit to Library
limits the rows to.
The new test starts a row drag through the drag session and runs Delete,
Undo and an unrelated edit with no pass of the panel in between. The
check that runs after every command then keeps New Swatch from
duplicating the restored swatch and Delete Swatch from deleting it.
The Paragraph group was one ranked member at its call site, and a narrowing row drops a ranked
member whole, so the link left with the Align left, Align center and Align right buttons.
`panels/paragraph.rs::control_bar` now shows the link and the buttons as two members of
`rank::TYPE`, and within one rank the bar drops the last member first.
A key request for the canvas menu reaches the app at the view's centre.
The menu treated it as a right-click there: it selected the object
under the centre, listed the locked objects and the misspelled word
found there, and with the Artboard tool selected the artboard there.
The canvas now passes the request's source on. A key request keeps the
selection, opens the menu at the part of the selection in view (the
selected artboards with the Artboard tool), or at the view's centre when
none of it is in view, and looks up nothing under a point. A right-click
still selects what is under the pointer.
The release modifiers are read from the pointer frame's pick_mods, the
modifiers of the pass's button release with the latched ones added, in
place of raw egui pointer events. The release-modifier tests drive the
whole app through testing::app_frame.
The opacity row re-keyed only the remembered HSB after its edit, so a
hue given to a gray in the HSL or OKLCH rows jumped back to the gray's
own hue when Opacity changed. One helper now moves all three records
to the edited paint.
The list is a Stack with a vertical scroll, and each line is a Lazy child,
so only the lines in view run. The row whose Revoke was clicked is returned
from the list's body and revoked after the list is shown.