[Cleanup] Remove unused imports in domWidget (#2559)

This commit is contained in:
Chenlei Hu
2025-02-14 22:09:27 -05:00
committed by GitHub
parent 0e2ce5e1ca
commit c15201bfe2

View File

@@ -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 { Size, Vector4 } from '@comfyorg/litegraph'
import type { ISerialisedNode } from '@comfyorg/litegraph/dist/types/serialisation' import type { ISerialisedNode } from '@comfyorg/litegraph/dist/types/serialisation'
import type { import type {
ICustomWidget, ICustomWidget,
IWidget,
IWidgetOptions IWidgetOptions
} from '@comfyorg/litegraph/dist/types/widgets' } from '@comfyorg/litegraph/dist/types/widgets'
import { useSettingStore } from '@/stores/settingStore' import { useSettingStore } from '@/stores/settingStore'
import { ANIM_PREVIEW_WIDGET, app } from './app' import { app } from './app'
const SIZE = Symbol() const SIZE = Symbol()
@@ -20,13 +19,6 @@ interface Rect {
y: number y: number
} }
interface SizeInfo {
minHeight: number
prefHeight?: number
w: IWidget
diff?: number
}
export interface DOMWidget<T extends HTMLElement, V extends object | string> export interface DOMWidget<T extends HTMLElement, V extends object | string>
extends ICustomWidget<T> { extends ICustomWidget<T> {
// All unrecognized types will be treated the same way as 'custom' in litegraph internally. // All unrecognized types will be treated the same way as 'custom' in litegraph internally.