diff --git a/src/scripts/domWidget.ts b/src/scripts/domWidget.ts index 52f1f5c9b..1e9f6bf90 100644 --- a/src/scripts/domWidget.ts +++ b/src/scripts/domWidget.ts @@ -1,15 +1,14 @@ -import { LGraphCanvas, LGraphNode, LiteGraph } from '@comfyorg/litegraph' +import { LGraphCanvas, LGraphNode } from '@comfyorg/litegraph' import type { Size, Vector4 } from '@comfyorg/litegraph' import type { ISerialisedNode } from '@comfyorg/litegraph/dist/types/serialisation' import type { ICustomWidget, - IWidget, IWidgetOptions } from '@comfyorg/litegraph/dist/types/widgets' import { useSettingStore } from '@/stores/settingStore' -import { ANIM_PREVIEW_WIDGET, app } from './app' +import { app } from './app' const SIZE = Symbol() @@ -20,13 +19,6 @@ interface Rect { y: number } -interface SizeInfo { - minHeight: number - prefHeight?: number - w: IWidget - diff?: number -} - export interface DOMWidget extends ICustomWidget { // All unrecognized types will be treated the same way as 'custom' in litegraph internally.