feat(commands): add tool mode commands

This commit is contained in:
syntaxbullet
2026-07-03 10:12:28 +02:00
parent c23efeb397
commit 9e1050e5f3
5 changed files with 91 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import type { DocumentAddArtboardPayload } from "./document";
import type { SelectionAddLayerPayload, SelectionSetPayload } from "./selection";
import type { ToolSetActivePayload } from "./tool";
import type {
ViewportPanPayload,
ViewportSetSizePayload,
@@ -12,6 +13,9 @@ export type CommandPayloads = {
"selection.set": SelectionSetPayload;
"selection.clear": void;
"selection.addLayer": SelectionAddLayerPayload;
"tool.setActive": ToolSetActivePayload;
"tool.enterTemporaryPan": void;
"tool.exitTemporaryPan": void;
"viewport.pan": ViewportPanPayload;
"viewport.setZoom": ViewportSetZoomPayload;
"viewport.zoomAroundPoint": ViewportZoomAroundPointPayload;