feat(commands): add selection commands

This commit is contained in:
syntaxbullet
2026-07-03 09:51:26 +02:00
parent d77bdc22a9
commit ca9e265614
5 changed files with 96 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import { createCommandRegistry } from "@commands/registry";
import { selectionCommands } from "@commands/selection";
import { viewportCommands } from "@commands/viewport";
import { createInitialAppState } from "@editor/initial-state";
import { createAppStore } from "@editor/store";
@@ -6,7 +7,7 @@ import { createAppStore } from "@editor/store";
export type ImageStudioApp = ReturnType<typeof createImageStudioApp>;
export function createImageStudioApp(options?: { documentName?: string }) {
const registry = createCommandRegistry([...viewportCommands]);
const registry = createCommandRegistry([...viewportCommands, ...selectionCommands]);
const store = createAppStore(createInitialAppState(options?.documentName), registry);
return {