Fix node colors; fix spacebar not closing graph

This commit is contained in:
Keavon Chambers
2023-08-20 23:32:27 -07:00
parent 8fbf0cbb69
commit 0e97a256b7
6 changed files with 40 additions and 62 deletions
-18
View File
@@ -1,18 +0,0 @@
/* eslint-disable max-classes-per-file */
import {writable} from "svelte/store";
import { type Editor } from "@graphite/wasm-communication/editor";
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createWorkspaceState(editor: Editor) {
const { subscribe, update } = writable({});
// Set up message subscriptions on creation
return {
subscribe,
};
}
export type WorkspaceState = ReturnType<typeof createWorkspaceState>;