feat(editor): add tool interaction state

This commit is contained in:
syntaxbullet
2026-07-03 10:10:50 +02:00
parent ac2a156a1f
commit c23efeb397
4 changed files with 21 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
import type { AppState, EditorState } from "./state";
import { initialToolState } from "./tools";
export const initialEditorState: EditorState = {
viewport: {
@@ -10,6 +11,7 @@ export const initialEditorState: EditorState = {
selection: {
layerIds: [],
},
tools: initialToolState,
};
export function createInitialAppState(name = "Untitled"): AppState {