Files
image-studio/commands/payloads.ts
2026-07-03 09:51:26 +02:00

21 lines
644 B
TypeScript

import type { SelectionAddLayerPayload, SelectionSetPayload } from "./selection";
import type {
ViewportPanPayload,
ViewportSetSizePayload,
ViewportSetZoomPayload,
ViewportZoomAroundPointPayload,
} from "./viewport";
export type CommandPayloads = {
"selection.set": SelectionSetPayload;
"selection.clear": void;
"selection.addLayer": SelectionAddLayerPayload;
"viewport.pan": ViewportPanPayload;
"viewport.setZoom": ViewportSetZoomPayload;
"viewport.zoomAroundPoint": ViewportZoomAroundPointPayload;
"viewport.setSize": ViewportSetSizePayload;
"viewport.reset": void;
};
export type CommandId = keyof CommandPayloads;