Use npm to manage litegraph dependency (#45)

* Add comfyui-litegraph dep

* remove static copy

* Remove litegraph impl

* Fix various issues

* LiteGraph import

* Fix test ref issue

* Change to stable version of litegraph

* update README
This commit is contained in:
Chenlei Hu
2024-06-19 23:08:43 -04:00
committed by GitHub
parent cd7fac3fd5
commit 4640eaf0ac
31 changed files with 45 additions and 16985 deletions

View File

@@ -9,8 +9,10 @@ import { createImageHost, calculateImageGrid } from "./ui/imagePreview"
import { DraggableList } from "./ui/draggableList";
import { applyTextReplacements, addStylesheet } from "./utils";
import type { ComfyExtension } from "/types/comfy";
import type { LGraph, LGraphCanvas, LGraphNode } from "/types/litegraph";
import { type ComfyWorkflow, parseComfyWorkflow } from "../types/comfyWorkflow";
import { LGraphCanvas, LGraph, LGraphNode, LiteGraph } from "comfyui-litegraph";
import "comfyui-litegraph/css/litegraph.css"
export const ANIM_PREVIEW_WIDGET = "$$comfy_animation_preview"