mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-10 07:30:08 +00:00
Add events for Subgraph input/output changes (#1094)
This commit is contained in:
43
src/infrastructure/SubgraphEventMap.ts
Normal file
43
src/infrastructure/SubgraphEventMap.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import type { LGraphEventMap } from "./LGraphEventMap"
|
||||
import type { SubgraphInput } from "@/subgraph/SubgraphInput"
|
||||
import type { SubgraphOutput } from "@/subgraph/SubgraphOutput"
|
||||
|
||||
export interface SubgraphEventMap extends LGraphEventMap {
|
||||
"adding-input": {
|
||||
name: string
|
||||
type: string
|
||||
}
|
||||
"adding-output": {
|
||||
name: string
|
||||
type: string
|
||||
}
|
||||
|
||||
"input-added": {
|
||||
input: SubgraphInput
|
||||
}
|
||||
"output-added": {
|
||||
output: SubgraphOutput
|
||||
}
|
||||
|
||||
"removing-input": {
|
||||
input: SubgraphInput
|
||||
index: number
|
||||
}
|
||||
"removing-output": {
|
||||
output: SubgraphOutput
|
||||
index: number
|
||||
}
|
||||
|
||||
"renaming-input": {
|
||||
input: SubgraphInput
|
||||
index: number
|
||||
oldName: string
|
||||
newName: string
|
||||
}
|
||||
"renaming-output": {
|
||||
output: SubgraphOutput
|
||||
index: number
|
||||
oldName: string
|
||||
newName: string
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user