Switch between workflows

This commit is contained in:
space-nuko
2023-05-20 20:27:43 -05:00
parent 61d9803e17
commit 1ca069b35f
8 changed files with 78 additions and 42 deletions

View File

@@ -2,6 +2,7 @@ import ComfyGraph from '$lib/ComfyGraph';
import { LGraphCanvas, LiteGraph, Subgraph } from '@litegraph-ts/core';
import layoutStates from './stores/layoutStates';
import { get } from 'svelte/store';
import workflowState from './stores/workflowState';
export function configureLitegraph(isMobile: boolean = false) {
LiteGraph.catch_exceptions = false;
@@ -28,5 +29,7 @@ export function configureLitegraph(isMobile: boolean = false) {
(window as any).LiteGraph = LiteGraph;
(window as any).LGraphCanvas = LGraphCanvas;
(window as any).layoutStates = get(layoutStates)
(window as any).layoutStates = layoutStates;
(window as any).workflowState = workflowState;
(window as any).svelteGet = get;
}