mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 07:30:11 +00:00
Add litegraph input indicator helper class (#842)
Example usage with ComfyUI_frontend, via console / devtools: ```ts const inputIndicators = new InputIndicators(app.canvas) // Dispose: inputIndicators.dispose() ```
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { Dictionary, ISlotType, Rect, WhenNullish } from "./interfaces"
|
||||
|
||||
import { InputIndicators } from "./canvas/InputIndicators"
|
||||
import { ContextMenu } from "./ContextMenu"
|
||||
import { CurveEditor } from "./CurveEditor"
|
||||
import { DragAndScale } from "./DragAndScale"
|
||||
@@ -270,6 +271,7 @@ export class LiteGraphGlobal {
|
||||
ContextMenu = ContextMenu
|
||||
CurveEditor = CurveEditor
|
||||
Reroute = Reroute
|
||||
InputIndicators = InputIndicators
|
||||
|
||||
onNodeTypeRegistered?(type: string, base_class: typeof LGraphNode): void
|
||||
onNodeTypeReplaced?(type: string, base_class: typeof LGraphNode, prev: unknown): void
|
||||
|
||||
Reference in New Issue
Block a user