Convert Group Nodes to Subgraph (#4972)

* fix: Convert groupNodes to Subgraph Properly

* fix: Use correct positioning with requestAnimationFrame when groupnodes are converted to Subgraph
This commit is contained in:
Johnpaul Chiwetelu
2025-08-19 04:58:56 +01:00
committed by GitHub
parent 30d48f2356
commit 7d2d006c07
4 changed files with 42 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
import { PREFIX, SEPARATOR } from '@/constants/groupNodeConstants'
import { t } from '@/i18n'
import { type NodeId } from '@/lib/litegraph/src/LGraphNode'
import {
@@ -35,11 +36,6 @@ type GroupNodeWorkflowData = {
nodes: ComfyNode[]
}
// v1 Prefix + Separator: workflow/
// v2 Prefix + Separator: workflow> (ComfyUI_frontend v1.2.63)
const PREFIX = 'workflow'
const SEPARATOR = '>'
const Workflow = {
InUse: {
Free: 0,