Import ComfyReroute

This commit is contained in:
space-nuko
2023-04-07 04:50:16 -05:00
parent 1ad77f49ef
commit e6bab41563
21 changed files with 1411 additions and 2090 deletions

View File

@@ -1,5 +1,6 @@
<script lang="ts">
import { onMount } from "svelte";
import { get } from "svelte/store";
import { Pane, Splitpanes } from 'svelte-splitpanes';
import { Button } from "@gradio/button";
import { Backpack, Gear } from 'radix-icons-svelte';
@@ -7,7 +8,7 @@
import ComfyApp from "./ComfyApp";
import widgetState from "$lib/stores/widgetState";
import { LGraphNode } from "litegraph.js";
import { LGraphNode } from "@litegraph-ts/core";
let app: ComfyApp = undefined;
let uiPane: ComfyUIPane = undefined;
@@ -17,7 +18,7 @@
}
function queuePrompt() {
const state = uiPane.getState();
const state = get(widgetState);
console.log("Queuing!", state);
app.queuePrompt(0, 1, state);
}