mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 08:30:06 +00:00
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:
@@ -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"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { app, ANIM_PREVIEW_WIDGET } from "./app";
|
||||
import type { LGraphNode, Vector4 } from "/types/litegraph";
|
||||
import { LGraphCanvas, LGraphNode, LiteGraph } from "comfyui-litegraph";
|
||||
import type { Vector4 } from "comfyui-litegraph";
|
||||
|
||||
|
||||
const SIZE = Symbol();
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { LiteGraph } from "comfyui-litegraph";
|
||||
import { api } from "./api";
|
||||
|
||||
export function getPngMetadata(file) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { api } from "./api"
|
||||
import "./domWidget";
|
||||
import type { ComfyApp } from "./app";
|
||||
import type { IWidget, LGraphNode } from "/types/litegraph";
|
||||
import type { IWidget, LGraphNode } from "comfyui-litegraph";
|
||||
|
||||
interface InputDataOptions {
|
||||
display?: string;
|
||||
|
||||
Reference in New Issue
Block a user