mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 04:58:11 +08:00
* Fix double click to enter path tool * Fix error * Fix transform bug * Fix squaring scale on images * Shift node position and refresh graph * Downscale node seperate * Fix mirror * Remove duplicate transform * Always show node graph * Correctly set freehand and spline tool positions * Run cargo format * Maybe fix the scale * Downscaled image is always smaller than origional * Fix one crash * Don't show node graph on welcome screen * Reduce default graph panel height --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
19 lines
475 B
TypeScript
19 lines
475 B
TypeScript
/* 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>;
|