feat(commands): add image asset layer commands

This commit is contained in:
syntaxbullet
2026-07-03 16:18:40 +02:00
parent 97c3d3b7ae
commit 75466d2aa6
5 changed files with 110 additions and 5 deletions

View File

@@ -1,5 +1,10 @@
import { commandIds } from "./ids";
import type { DocumentAddArtboardPayload, DocumentSetArtboardBoundsPayload } from "./document";
import type {
DocumentAddArtboardPayload,
DocumentAddAssetPayload,
DocumentAddImageLayerPayload,
DocumentSetArtboardBoundsPayload,
} from "./document";
import type { SelectionAddLayerPayload, SelectionSetPayload } from "./selection";
import type { ToolSetActivePayload } from "./tool";
import type { TransformBeginPayload, TransformUpdatePayload } from "./transform";
@@ -14,6 +19,8 @@ import type {
export type CommandPayloads = {
[commandIds.documentAddArtboard]: DocumentAddArtboardPayload;
[commandIds.documentSetArtboardBounds]: DocumentSetArtboardBoundsPayload;
[commandIds.documentAddAsset]: DocumentAddAssetPayload;
[commandIds.documentAddImageLayer]: DocumentAddImageLayerPayload;
[commandIds.selectionSet]: SelectionSetPayload;
[commandIds.selectionClear]: void;
[commandIds.selectionAddLayer]: SelectionAddLayerPayload;