mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 13:23:22 +00:00
With the Artboard tool, the canvas context menu lists the entries of the public Use the artboard context menu page in its order, in place of the entries for objects and the view. Lock Artboards and Unlock Artboards are two submenus. An entry that cannot run is left out, and Undo and Redo stay dimmed. A right-click on an artboard that is not selected selects it alone first, and the menu measures the art for Delete Empty Artboards and Fit to Artwork Bounds once, at the right-click. Cut, Copy, Duplicate Artboards, Rename, Delete Artboards, Lock Selected, Unlock Selected, Fit to Artwork Bounds, Switch Orientation and Export act on the artboards the tool has selected, else the active one. docs/mcp.md lists what the other entries act on. - artboard.rename renames in one undo step and numbers several names. The menu's Rename opens a dialog that runs it, and the Artboards panel's name field runs it too. - artboard.switchOrientation swaps width and height and keeps the top-left corner, skipping square and locked artboards. - artboard.selectAll chooses the tool and selects every artboard. - edit.paste takes artboardsAt, and the menu's Paste centers copied artboards on the right-click's point. - The menu's Cut and Copy run artboard.cut and artboard.copy. In the desktop app those commands publish to the system clipboard, and the menu shows the Cut and Copy shortcuts for them. - artboard.fitToArt and the panel's name field record no undo step when nothing changes. artboard.duplicate, copy, cut, rename and switchOrientation take their artboards from the tool's selection when a call names none. Each now records them in the journal as selectedArtboards, which a replay reads and a recorded action leaves out. The copy commands also record art. switchOrientation records scaleArt, and it takes patterns and lockedAndHidden and records what its artboard.setProps step resolved for them. While the Artboard tool is in use, a command chosen from any menu or the command palette moves the tool's selection as the Artboards panel does: artboard.new makes the new artboard active, artboard.duplicate selects the copies, and artboard.delete and artboard.deleteEmpty make a remaining artboard active.