mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
[Cleanup] Remove unused imports in domWidget (#2559)
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user