@comfyorg/comfyui-frontend-types 1.41.13 → 1.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +17 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -641,6 +641,14 @@ declare class ChangeTracker {
|
|
|
641
641
|
*/
|
|
642
642
|
initialState: ComfyWorkflowJSON;
|
|
643
643
|
static MAX_HISTORY: number;
|
|
644
|
+
/**
|
|
645
|
+
* Guard flag to prevent checkState from running during loadGraphData.
|
|
646
|
+
* Between rootGraph.configure() and afterLoadNewGraph(), the rootGraph
|
|
647
|
+
* contains the NEW workflow's data while activeWorkflow still points to
|
|
648
|
+
* the OLD workflow. Any checkState call in that window would serialize
|
|
649
|
+
* the wrong graph into the old workflow's activeState, corrupting it.
|
|
650
|
+
*/
|
|
651
|
+
static isLoadingGraph: boolean;
|
|
644
652
|
/**
|
|
645
653
|
* The active state of the workflow.
|
|
646
654
|
*/
|
|
@@ -2055,7 +2063,7 @@ export declare class ComfyApp {
|
|
|
2055
2063
|
}, ZodTypeAny, "passthrough">> | undefined;
|
|
2056
2064
|
'Comfy.ConfirmClear'?: boolean | undefined;
|
|
2057
2065
|
'Comfy.DevMode'?: boolean | undefined;
|
|
2058
|
-
'Comfy.UI.TabBarLayout'?: "Default" | "
|
|
2066
|
+
'Comfy.UI.TabBarLayout'?: "Default" | "Legacy" | undefined;
|
|
2059
2067
|
'Comfy.Workflow.ShowMissingNodesWarning'?: boolean | undefined;
|
|
2060
2068
|
'Comfy.Workflow.ShowMissingModelsWarning'?: boolean | undefined;
|
|
2061
2069
|
'Comfy.Workflow.WarnBlueprintOverwrite'?: boolean | undefined;
|
|
@@ -4625,6 +4633,8 @@ export declare class ComfyApp {
|
|
|
4625
4633
|
clear_background_color: string;
|
|
4626
4634
|
render_only_selected: boolean;
|
|
4627
4635
|
show_info: boolean;
|
|
4636
|
+
/** Additional text appended to the canvas info overlay (rendered by {@link renderInfo}). */
|
|
4637
|
+
info_text: string | undefined;
|
|
4628
4638
|
allow_dragcanvas: boolean;
|
|
4629
4639
|
allow_dragnodes: boolean;
|
|
4630
4640
|
allow_interaction: boolean;
|
|
@@ -5017,7 +5027,6 @@ export declare class ComfyApp {
|
|
|
5017
5027
|
* Called when a mouse wheel event has to be processed
|
|
5018
5028
|
*/
|
|
5019
5029
|
processMouseWheel(e: WheelEvent): void;
|
|
5020
|
-
private _noItemsSelected;
|
|
5021
5030
|
/**
|
|
5022
5031
|
* process a key event
|
|
5023
5032
|
*/
|
|
@@ -8882,6 +8891,7 @@ export declare class ComfyApp {
|
|
|
8882
8891
|
private _addSubgraphInputListeners;
|
|
8883
8892
|
configure(info: ExportedSubgraphInstance): void;
|
|
8884
8893
|
_internalConfigureAfterSlots(): void;
|
|
8894
|
+
private _resolveInputWidget;
|
|
8885
8895
|
private _setWidget;
|
|
8886
8896
|
private _flushPendingPromotions;
|
|
8887
8897
|
onAdded(_graph: LGraph): void;
|
|
@@ -9487,18 +9497,18 @@ export declare class ComfyApp {
|
|
|
9487
9497
|
status: "running" | "completed" | "failed" | "created";
|
|
9488
9498
|
progress: number;
|
|
9489
9499
|
task_id: string;
|
|
9500
|
+
bytes_downloaded: number;
|
|
9490
9501
|
asset_name: string;
|
|
9491
9502
|
bytes_total: number;
|
|
9492
|
-
bytes_downloaded: number;
|
|
9493
9503
|
error?: string | undefined;
|
|
9494
9504
|
asset_id?: string | undefined;
|
|
9495
9505
|
}, {
|
|
9496
9506
|
status: "running" | "completed" | "failed" | "created";
|
|
9497
9507
|
progress: number;
|
|
9498
9508
|
task_id: string;
|
|
9509
|
+
bytes_downloaded: number;
|
|
9499
9510
|
asset_name: string;
|
|
9500
9511
|
bytes_total: number;
|
|
9501
|
-
bytes_downloaded: number;
|
|
9502
9512
|
error?: string | undefined;
|
|
9503
9513
|
asset_id?: string | undefined;
|
|
9504
9514
|
}>;
|
|
@@ -16394,7 +16404,7 @@ export declare class ComfyApp {
|
|
|
16394
16404
|
'Comfy.Canvas.BackgroundImage': z.ZodOptional<z.ZodString>;
|
|
16395
16405
|
'Comfy.ConfirmClear': z.ZodBoolean;
|
|
16396
16406
|
'Comfy.DevMode': z.ZodBoolean;
|
|
16397
|
-
'Comfy.UI.TabBarLayout': z.ZodEnum<["Default", "
|
|
16407
|
+
'Comfy.UI.TabBarLayout': z.ZodEnum<["Default", "Legacy"]>;
|
|
16398
16408
|
'Comfy.Workflow.ShowMissingNodesWarning': z.ZodBoolean;
|
|
16399
16409
|
'Comfy.Workflow.ShowMissingModelsWarning': z.ZodBoolean;
|
|
16400
16410
|
'Comfy.Workflow.WarnBlueprintOverwrite': z.ZodBoolean;
|
|
@@ -17018,7 +17028,7 @@ export declare class ComfyApp {
|
|
|
17018
17028
|
}, z.ZodTypeAny, "passthrough">>;
|
|
17019
17029
|
'Comfy.ConfirmClear': boolean;
|
|
17020
17030
|
'Comfy.DevMode': boolean;
|
|
17021
|
-
'Comfy.UI.TabBarLayout': "Default" | "
|
|
17031
|
+
'Comfy.UI.TabBarLayout': "Default" | "Legacy";
|
|
17022
17032
|
'Comfy.Workflow.ShowMissingNodesWarning': boolean;
|
|
17023
17033
|
'Comfy.Workflow.ShowMissingModelsWarning': boolean;
|
|
17024
17034
|
'Comfy.Workflow.WarnBlueprintOverwrite': boolean;
|
|
@@ -17569,7 +17579,7 @@ export declare class ComfyApp {
|
|
|
17569
17579
|
}, z.ZodTypeAny, "passthrough">>;
|
|
17570
17580
|
'Comfy.ConfirmClear': boolean;
|
|
17571
17581
|
'Comfy.DevMode': boolean;
|
|
17572
|
-
'Comfy.UI.TabBarLayout': "Default" | "
|
|
17582
|
+
'Comfy.UI.TabBarLayout': "Default" | "Legacy";
|
|
17573
17583
|
'Comfy.Workflow.ShowMissingNodesWarning': boolean;
|
|
17574
17584
|
'Comfy.Workflow.ShowMissingModelsWarning': boolean;
|
|
17575
17585
|
'Comfy.Workflow.WarnBlueprintOverwrite': boolean;
|