When a command run during a tool drag deletes, hides or locks an object
that the drag's preview names in its ids, the preview applied again
leaves that object out, so the drag still edits the others. A preview
left naming no object records no step.
When the command changes the selection, the journal also records the
drag's own selection after the command (select.set, with its anchors,
segments, guides and key, or its slices, target, symbol part or Objects
on Path member), so replaying the journal moves the objects the drag
moved. A targeted object keeps its guides and key, and a path with
every anchor selected keeps them selected as anchors. The current layer
and the highlighted Layers panel rows are left as the drag left them.
A command run from a panel, a menu or an automation client while a tool
drag was open ran inside the drag. With Real-time Drawing on, the drag's
next move put the document back to where the drag began and dropped the
command's edit, and Escape dropped it too. With Real-time Drawing off,
the release lost what the drag drew or moved.
Such a command now runs on the document without the drag's preview and
records its own undo step and journal entry. The drag then continues
from the command's result: with Real-time Drawing on, its preview is
applied again at once. The release records the drag's step after the
command's, Undo takes back the drag first and the command next, and
Escape cancels only the drag. The drag acts on the objects it started
with, so a selection the command makes does not change what it moves,
and the fill and stroke proxies keep showing those objects' paints.
Objects the command deletes, hides or locks are left out of the drag.
A change the command makes to the current layer or to the new-art paints
stays when the drag ends or is canceled. When the command deletes the
art being dragged, the drag records no step. A warning or an error from
the preview applied again goes to the command's result.
Commands that already kept the drag as a step first still do (Undo,
Redo, command.batch, swatch.renameGroup, edit.newDocumentFromState and
the others that call settle_interaction). Typing in progress is still
kept as a step of its own first. A command run during a Quick Pen press,
object.transform with copy during an Alt-drag, and a command run during
a dialog's or a panel's preview still run inside the interaction.
Docs: docs/mcp.md (undo / redo row), docs/target-app-parity.md.
A color a library pattern's art brings now skips the library's numbered
names while the pattern is imported, instead of being renamed after the
import. The rename also rewrote every other paint in the document linked
to the name the import first gave, such as art still linked to a deleted
"Ink 2", so adding the pattern changed that art. Now the names are held
with placeholder swatches during the import and removed afterwards, and
links that were already in the document stay as they were.
A pattern whose art brings both "Ink" and the library's "Ink 2" keeps the
library's "Ink 2" under its own name when the document gives "Ink"
another color, and the library's "Ink" takes the next free name. A library
pattern with a numbered name, such as "Tiles 2", keeps that name when the
document does not use it.
A global or spot color that a library pattern's art brings under a
numbered name no longer takes a name the library gives another swatch.
Before, adding a pattern whose art uses "Ink" to a document with another
"Ink" brought the color as "Ink 2" even when the library has its own
"Ink 2"; adding that library swatch next then came in as "Ink 2 2". The
brought color now takes the next free name the library does not use
("Ink 3"), and every paint linked to it follows the new name, so adding
the library's "Ink 2" next adds it under its own name and adding both
again adds nothing.
A color the pattern's art brings or takes is the color a library tint
or gradient links to only when it has the library color's paint and its
process, global or spot kind, as for the other lookups in the same add.
The test a_numbered_copy_named_like_another_library_color_is_found now
makes the blue "Ink 2" itself, as an earlier version's pattern add left
it, since a pattern add no longer gives that name.
A press keeps the pointer and the snapped point for the end of the piece it adds. When Alt
changes the action during the press, the end goes through the protractor's tick again for the
new action, so a continuous arc that snapped to a tick and becomes a sharp-corner arc ends at the
pointer, and a piece that becomes a continuous arc goes onto the tick, without waiting for the
next drag. This also covers a press that has not dragged.
A continuous arc that starts a path has no direction to follow and
sweeps the arc size, as a sharp-corner arc does. Moving its end onto a
protractor tick put the end on a circle the drawn arc does not follow,
so `tick_end` now gives no tick for it.
The hover keeps the snap settings it was made with (`SnapSettings` in
guides/snap.rs: the window, zoom, snapping options, tolerances,
Alignment Guides and construction angles). After one of them changes
under a still pointer, the hover's rubber band, protractor, distance
label and Smart Guides are hidden until the pointer moves, also through
a press, so the preview shows no point that a click would not place.
A press also drops the hover, so after a click puts an arc's end on a
tick no preview runs from that end back to the pointer. While the
pointer hovers, the tool asks the canvas to hover it again when the
view, the document or the selection changes (`wants_rehover`).
* svg: cut over CSS transform, CSS string quoting, and symbol unit basis to craft-svg (#789)
* build: repin craft-svg to merged craft-libs main (d20a8248)