Fix convert to subgraph shown on IO node

This commit is contained in:
Blake
2025-06-05 03:21:15 -07:00
committed by filtered
parent 73d2dd7b66
commit b9d2dcac63
3 changed files with 20 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
import type { ColorOption, LGraph } from '@comfyorg/litegraph'
import { ColorOption, LGraph, Reroute } from '@comfyorg/litegraph'
import { LGraphGroup, LGraphNode, isColorable } from '@comfyorg/litegraph'
import type { ISerialisedGraph } from '@comfyorg/litegraph/dist/types/serialisation'
import type {
@@ -50,6 +50,10 @@ export const isLGraphGroup = (item: unknown): item is LGraphGroup => {
return item instanceof LGraphGroup
}
export const isReroute = (item: unknown): item is Reroute => {
return item instanceof Reroute
}
/**
* Get the color option of all canvas items if they are all the same.
* @param items - The items to get the color option of.