[feat] Add containerNode property for DOM widget positioning in subgraphs (#1128)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Christian Byrne
2025-07-20 18:36:33 -07:00
committed by GitHub
parent 2fd94319bc
commit 0a8f16fe19
7 changed files with 380 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
import type { LGraphEventMap } from "./LGraphEventMap"
import type { SubgraphInput } from "@/subgraph/SubgraphInput"
import type { SubgraphNode } from "@/subgraph/SubgraphNode"
import type { SubgraphOutput } from "@/subgraph/SubgraphOutput"
import type { IBaseWidget } from "@/types/widgets"
export interface SubgraphEventMap extends LGraphEventMap {
"adding-input": {
@@ -40,4 +42,13 @@ export interface SubgraphEventMap extends LGraphEventMap {
oldName: string
newName: string
}
"widget-promoted": {
widget: IBaseWidget
subgraphNode: SubgraphNode
}
"widget-unpromoted": {
widget: IBaseWidget
subgraphNode: SubgraphNode
}
}