Revert "Use npm to manage litegraph dependency (#45)" (#47)

This reverts commit 4640eaf0ac.
This commit is contained in:
Chenlei Hu
2024-06-20 13:55:36 -04:00
committed by GitHub
parent 4640eaf0ac
commit 3ace859106
31 changed files with 16985 additions and 45 deletions

View File

@@ -9,10 +9,8 @@ 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"

View File

@@ -1,6 +1,5 @@
import { app, ANIM_PREVIEW_WIDGET } from "./app";
import { LGraphCanvas, LGraphNode, LiteGraph } from "comfyui-litegraph";
import type { Vector4 } from "comfyui-litegraph";
import type { LGraphNode, Vector4 } from "/types/litegraph";
const SIZE = Symbol();

View File

@@ -1,4 +1,3 @@
import { LiteGraph } from "comfyui-litegraph";
import { api } from "./api";
export function getPngMetadata(file) {

View File

@@ -1,7 +1,7 @@
import { api } from "./api"
import "./domWidget";
import type { ComfyApp } from "./app";
import type { IWidget, LGraphNode } from "comfyui-litegraph";
import type { IWidget, LGraphNode } from "/types/litegraph";
interface InputDataOptions {
display?: string;