mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-22 19:08:39 +00:00
Artboards: an action or Batch… that reverts or switches documents keeps the active artboard
With the Artboard tool, File › Revert kept the active artboard, but a command.batch with a file.revert step made artboard 1 the active one. A batch that switched to another document and back, and the Actions panel menu's Batch… over a folder whose files it closes or over data sets with a Revert step, did the same. Each of them starts the tool afresh and ends in the document it started in, and the app moved the view to the fresh tool's artboard 1. Only a plain file.revert was handled, by its command id. The engine now counts the times switching or closing documents, or replacing the active one, starts the tool afresh (Session::tool_resets), and records whether the tool's options were set after that (Session::tool_set_since_reset). When the count changes during a command and nothing set the tool's options after it, the app starts the tool on the active artboard, as it does when a command chooses another document. When a later step chose the tool's artboards (a Paste or Cut after the revert), the artboard the tool then has active becomes the active one. Docs: docs/mcp.md, docs/target-app-parity.md.
This commit is contained in:
1 parent
24fadbd322
commit
44c306f142
7 files changed
+156
-15
No files matched your search
@@ -2525,6 +2525,10 @@ and its steps of these commands get the artboard that is active when the action
|
||||
Direct Selection or Group Selection tool inside an artboard makes that artboard the active one; with the Selection
|
||||
tool, a Shift-click on an empty spot inside an artboard makes it active and keeps the selection. Choosing the Artboard
|
||||
tool (`tool.select {tool: "artboard"}`) starts it on the active artboard: its `active` option is that artboard's index.
|
||||
A command that starts the Artboard tool afresh in the same document (`file.revert`, or a `command.batch` or
|
||||
`action.batch` that reverts the document or switches to another document and back) keeps the active artboard and
|
||||
starts the tool on it. When a later step of the batch chooses the tool's artboards (a Paste or Cut), the artboard the
|
||||
tool then has active becomes the active one.
|
||||
|
||||
`artboard.fitToArt {index? | indices?}` (Object › Artboards › Fit to Artwork Bounds) fits each artboard it names to
|
||||
the art on that artboard, in one undo step. The art is what an export draws, measured with its strokes and with the
|
||||
|
||||
Reference in new issue
Block a user