The transform tool treats a null reflect, copy or origin, and a null
numeric step, as given, but its inputSchema allowed only the non-null
types, so a client that validates against the schema could not send
them. Each of those properties now also allows null. The transform row
in docs/mcp.md says a step that is neither a number nor null is an
error, and that a null dx or dy counts as 0 and still runs the move.
A batch run during a widget drag settles the drag first. A tool or
document switch inside the batch then ended the drag with a Cancel,
which undid the batch's open interaction and its earlier steps in that
document. Deactivating a tool in a batch now leaves the Cancel out, for
the blend, corner, pie and side widgets alike.
- With the Artboard tool chosen, align.toKeyObject fails with "Align to
Key Object isn't available with the Artboard tool" instead of "no key
object": the selected objects can still have a key in that state. The
message has a row in every catalog that has "no key object".
- Align to Key Object is off in Object › Align and the Align panel when
the topmost selected object is inside another selected object, the
case where choosing it already failed.
- The align.toSelection params text says the selected objects keep
their key with the Artboard tool chosen; ui_catalog.rs regenerated.
- A test pins Align to Key Object with a key anchor: checked, the menu
name kept, and the key anchor kept.
`transform` read `reflect` with `as_str`, `copy` with `as_bool` and
passed `origin` through unchecked. A `reflect` of `42` or `true`
skipped the reflect step and reported success for the steps before it,
a `copy` of `"yes"` transformed the original instead of a copy, and an
`origin` that was not two numbers fell back to the selection centre.
The handler now checks all three before it selects `ids` or runs a
step, and returns an error that names the argument. A null value of
any of the three is left out. The tool description and the
`transform` row in docs/mcp.md say so.
Fixes#6448
ui.dialog.confirm used to read a replace that is not a string as empty text, so Replace All could delete every match, and a switch that is not true or false as off. It now returns the error, which shows under the match found, and runs nothing; the match stays for Replace once the field is set right.
Align to Selection, Align to Key Object and Align to Artboard follow the
align items in Object › Align, with the choice the Align panel shows
checked. Each is a UI command (align.toSelection, align.toKeyObject,
align.toArtboard) that sets the choice as the panel's Align To button
does, and Edit › Keyboard Shortcuts lists them under Align with no
default key. align.toKeyObject fails with "no key object" when no
object can be made the key.