mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 15:18:12 +08:00
Fix node colors; fix spacebar not closing graph
This commit is contained in:
@@ -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>;
|
||||
Reference in New Issue
Block a user