mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
Object › Artboards › Fit to Artwork Bounds and Fit to Selected Art ran artboard.fitToArt and artboard.fitToSelection without an index, so they resized artboard 1 whichever artboard was active. The Artboards panel menu's Fit to Artwork Bounds already passed the active artboard. The app now passes its active artboard as the index of the two commands when a call names none, as it passes the artboard to Align to Artboard, All on Active Artboard and Paste in Place, in Front and in Back. That covers the menu items, keyboard shortcuts, the command palette and MCP's run_command in remote mode. A batch passes its artboard as the index to their steps that name none, and a recorded action leaves the index out, so an action resizes the artboard that is active when it plays. The params texts of the two commands and of command.batch describe where the index comes from. Docs: docs/mcp.md, docs/target-app-parity.md.