Better editing

This commit is contained in:
space-nuko
2023-04-27 17:09:27 -07:00
parent f2fb491183
commit 8453b831a1
8 changed files with 79 additions and 181 deletions

View File

@@ -2,10 +2,13 @@ import { writable } from 'svelte/store';
import type { Readable, Writable } from 'svelte/store';
export type UIState = {
nodesLocked: boolean,
graphLocked: boolean,
unlocked: boolean,
}
const store: Writable<UIState> = writable({ unlocked: false })
export type WritableUIStateStore = Writable<UIState>;
const store: WritableUIStateStore = writable({ unlocked: false, graphLocked: true, nodesLocked:false })
const uiStateStore: WritableUIStateStore =
{