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.
`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.
ui.paramDialog for edit.findReplace used to drop a field of the wrong type, such as a number for find, and open on the last search. It now returns an error and leaves the dialog closed. A null field still gives none, as the menu item's does.
Double-clicking one of several Shift-selected width points with the
Width tool now keeps the selection and opens Width Point Edit for all of
them; a double-click on an unselected point still edits that point
alone. ui.widthPointEdit takes {id, indices} for the same dialog, and
refuses an empty, malformed or out-of-range list, or indices given with
index or t. Either half of a discontinuous point brings the other.
Side 1, Side 2 and Total Width show a value only where every selected
point has it, and are blank otherwise. A side width typed in sets that
side of every point and keeps each point's other side (both sides with
the link on); Total Width scales each point's own two sides. With a
discontinuous point among them, Incoming and Outgoing edit its two
halves and both edit the continuous points. OK sets them all with one
stroke.widthProfile.set, one undo step, and nothing when no width
changed; Delete removes them all. With Adjust Adjoining Width Points,
each changed point changes the nearest unselected point before and
after it in proportion to its change since the dialog opened. OK and
Delete are refused when the points moved or changed since the dialog
opened.
Help page: https://helpx.adobe.com/illustrator/using/stroke-object.html
describes Shift-clicking to select several width points and setting
Side 1 and Side 2 for all of them in Width Point Edit. The blank fields,
keeping each point's other side, per-point Total Width and the adjoining
rule for several points are VectorCraft's own.
The transform tool runs move, rotate, scale, reflect and shear as separate
commands. A shear angle that object.shear refuses, such as 90, a reflect
axis other than vertical or horizontal, or a scale of 0 failed only after
the earlier steps had changed the art and recorded undo steps. The tool now
checks those params first with the rules the commands use
(scale_factors, reflect_axis and shear_tangent, shared with object.scale,
object.reflect and object.shear), so a refused request changes nothing and
records no undo step.