Better editing
This commit is contained in:
@@ -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 =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user