mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
Relands "Add support for LiteGraph to convert to classes" (#667)
* Revert "Revert "Add support for LiteGraph to convert to classes (#334)" (#386)"
This reverts commit d607f6c7f7.
* Format
This commit is contained in:
11
src/types/litegraph-augmentation.d.ts
vendored
11
src/types/litegraph-augmentation.d.ts
vendored
@@ -14,6 +14,13 @@ declare module '@comfyorg/litegraph' {
|
||||
* If the node is a frontend only node and should not be serialized into the prompt.
|
||||
*/
|
||||
isVirtualNode?: boolean
|
||||
|
||||
addDOMWidget(
|
||||
name: string,
|
||||
type: string,
|
||||
element: HTMLElement,
|
||||
options: Record<string, any>
|
||||
): DOMWidget
|
||||
}
|
||||
|
||||
interface IWidget<TValue = any, TOptions = any> {
|
||||
@@ -67,4 +74,8 @@ declare module '@comfyorg/litegraph' {
|
||||
slotPos: Vector2
|
||||
): number
|
||||
}
|
||||
|
||||
interface ContextMenu {
|
||||
root?: HTMLDivElement
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user