Queuing from mobile UI

This commit is contained in:
space-nuko
2023-04-28 16:50:16 -07:00
parent eec4fcaf2e
commit 234c280959
11 changed files with 553 additions and 57 deletions

View File

@@ -1,11 +1,11 @@
<script lang="ts">
import { Page, Navbar, Block, Tab, BlockHeader, Segmented, Button, Icon } from 'framework7-svelte';
import { LGraphCanvas } from "@litegraph-ts/core";
import { LiteGraph, LGraphCanvas } from "@litegraph-ts/core";
import ComfyApp, { type SerializedAppState } from "$lib/components/ComfyApp";
import ComfyGraphCanvas from "$lib/ComfyGraphCanvas";
import { onMount } from 'svelte';
export let app: ComfyApp = undefined;
const app: ComfyApp = ComfyApp.instance;
let lCanvas: LGraphCanvas | null = null;
let canvasEl: HTMLCanvasElement | null = null;
@@ -21,6 +21,9 @@
if (!lCanvas) {
lCanvas = new ComfyGraphCanvas(app, canvasEl);
lCanvas.allow_interaction = false;
LiteGraph.dialog_close_on_mouse_leave = false;
LiteGraph.search_hide_on_mouse_leave = false;
LiteGraph.pointerevents_method = "pointer";
}
resizeCanvas();
}