feat(commands): add transparent artboard creation
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { documentCommands } from "@commands/document";
|
||||
import { createCommandRegistry } from "@commands/registry";
|
||||
import { selectionCommands } from "@commands/selection";
|
||||
import { viewportCommands } from "@commands/viewport";
|
||||
@@ -7,7 +8,7 @@ import { createAppStore } from "@editor/store";
|
||||
export type ImageStudioApp = ReturnType<typeof createImageStudioApp>;
|
||||
|
||||
export function createImageStudioApp(options?: { documentName?: string }) {
|
||||
const registry = createCommandRegistry([...viewportCommands, ...selectionCommands]);
|
||||
const registry = createCommandRegistry([...viewportCommands, ...selectionCommands, ...documentCommands]);
|
||||
const store = createAppStore(createInitialAppState(options?.documentName), registry);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user