From c15201bfe24749840f2dd0dc7e50790eb2f5d9a1 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Fri, 14 Feb 2025 22:09:27 -0500 Subject: [PATCH] [Cleanup] Remove unused imports in domWidget (#2559) --- src/scripts/domWidget.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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.