Files
Graphite/frontend/src/state-providers/workspace.ts
T
0HyperCubeandKeavon Chambers d710285029 Fix regressions introduced in the vector nodes migration (#1100)
* 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>
2023-03-31 21:15:49 +01:00

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>;