[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 { 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<T extends HTMLElement, V extends object | string>
extends ICustomWidget<T> {
// All unrecognized types will be treated the same way as 'custom' in litegraph internally.