feat(commands): add artboard bounds command

This commit is contained in:
syntaxbullet
2026-07-03 16:05:15 +02:00
parent 4d77288450
commit e90b829e62
4 changed files with 37 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { commandIds } from "./ids";
import type { DocumentAddArtboardPayload } from "./document";
import type { DocumentAddArtboardPayload, DocumentSetArtboardBoundsPayload } from "./document";
import type { SelectionAddLayerPayload, SelectionSetPayload } from "./selection";
import type { ToolSetActivePayload } from "./tool";
import type {
@@ -12,6 +12,7 @@ import type {
export type CommandPayloads = {
[commandIds.documentAddArtboard]: DocumentAddArtboardPayload;
[commandIds.documentSetArtboardBounds]: DocumentSetArtboardBoundsPayload;
[commandIds.selectionSet]: SelectionSetPayload;
[commandIds.selectionClear]: void;
[commandIds.selectionAddLayer]: SelectionAddLayerPayload;