mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-25 17:24:07 +00:00
Add support for LiteGraph to convert to classes (#334)
* Add support for LiteGraph to convert to classes * Fix large context menu search regression * Remove debug code * Fix regression from rename & prototype change * Fix super() calls to match LGraphNode
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