@comfyorg/comfyui-frontend-types 1.41.10 → 1.41.12
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 +25 -14
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ declare type ApiToEventType<T = ApiCalls> = {
|
|
|
78
78
|
[K in keyof T]: K extends 'status' ? StatusWsMessageStatus : K extends 'executing' ? NodeId_2 : T[K];
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
declare type AppMode = 'graph' | 'app' | 'builder:
|
|
81
|
+
declare type AppMode = 'graph' | 'app' | 'builder:inputs' | 'builder:outputs' | 'builder:arrange';
|
|
82
82
|
|
|
83
83
|
/** Wraps all properties in {@link CustomEvent}. */
|
|
84
84
|
declare type AsCustomEvents<T> = {
|
|
@@ -2179,6 +2179,7 @@ export declare class ComfyApp {
|
|
|
2179
2179
|
'Comfy.VueNodes.AutoScaleLayout'?: boolean | undefined;
|
|
2180
2180
|
'Comfy.Assets.UseAssetAPI'?: boolean | undefined;
|
|
2181
2181
|
'Comfy.Queue.QPOV2'?: boolean | undefined;
|
|
2182
|
+
'Comfy.Queue.ShowRunProgressBar'?: boolean | undefined;
|
|
2182
2183
|
'Comfy-Desktop.AutoUpdate'?: boolean | undefined;
|
|
2183
2184
|
'Comfy-Desktop.SendStatistics'?: boolean | undefined;
|
|
2184
2185
|
'Comfy-Desktop.WindowStyle'?: string | undefined;
|
|
@@ -2318,11 +2319,6 @@ export declare class ComfyApp {
|
|
|
2318
2319
|
* Takes precedence over initialMode when present.
|
|
2319
2320
|
*/
|
|
2320
2321
|
activeMode: AppMode | null;
|
|
2321
|
-
/**
|
|
2322
|
-
* In-progress builder selections not yet persisted via save.
|
|
2323
|
-
* Preserved across tab switches, discarded on exitBuilder.
|
|
2324
|
-
*/
|
|
2325
|
-
dirtyLinearData: LinearData | null;
|
|
2326
2322
|
/**
|
|
2327
2323
|
* @param options The path, modified, and size of the workflow.
|
|
2328
2324
|
* Note: path is the full path, including the 'workflows/' prefix.
|
|
@@ -2489,6 +2485,22 @@ export declare class ComfyApp {
|
|
|
2489
2485
|
*/
|
|
2490
2486
|
export declare function createNodeLocatorId(subgraphUuid: string, localNodeId: NodeId_2): NodeLocatorId;
|
|
2491
2487
|
|
|
2488
|
+
/** Options for {@link LiteGraphGlobal.createNode}. Shallow-copied onto the new node. */
|
|
2489
|
+
declare interface CreateNodeOptions {
|
|
2490
|
+
pos?: Point;
|
|
2491
|
+
size?: Size;
|
|
2492
|
+
properties?: Dictionary<NodeProperty | undefined>;
|
|
2493
|
+
flags?: Partial<INodeFlags>;
|
|
2494
|
+
mode?: LGraphEventMode;
|
|
2495
|
+
color?: string;
|
|
2496
|
+
bgcolor?: string;
|
|
2497
|
+
boxcolor?: string;
|
|
2498
|
+
title?: string;
|
|
2499
|
+
shape?: RenderShape;
|
|
2500
|
+
inputs?: Partial<INodeInputSlot>[];
|
|
2501
|
+
outputs?: Partial<INodeOutputSlot>[];
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2492
2504
|
/**
|
|
2493
2505
|
* Creates a UUIDv4 string.
|
|
2494
2506
|
* @returns A new UUIDv4 string
|
|
@@ -4530,6 +4542,7 @@ export declare class ComfyApp {
|
|
|
4530
4542
|
dispatch<T extends keyof NeverNever<LGraphCanvasEventMap>>(type: T, detail: LGraphCanvasEventMap[T]): boolean;
|
|
4531
4543
|
dispatch<T extends keyof PickNevers<LGraphCanvasEventMap>>(type: T): boolean;
|
|
4532
4544
|
dispatchEvent<TEvent extends keyof LGraphCanvasEventMap>(type: TEvent, detail: LGraphCanvasEventMap[TEvent]): void;
|
|
4545
|
+
private _setCursor;
|
|
4533
4546
|
private _updateCursorStyle;
|
|
4534
4547
|
private _previously_dragging_canvas;
|
|
4535
4548
|
/** @deprecated @inheritdoc {@link LGraphCanvasState.readOnly} */
|
|
@@ -6531,11 +6544,6 @@ export declare class ComfyApp {
|
|
|
6531
6544
|
type: A;
|
|
6532
6545
|
}>;
|
|
6533
6546
|
|
|
6534
|
-
declare interface LinearData {
|
|
6535
|
-
inputs: [NodeId, string][];
|
|
6536
|
-
outputs: NodeId[];
|
|
6537
|
-
}
|
|
6538
|
-
|
|
6539
6547
|
/**
|
|
6540
6548
|
* Component of {@link LGraphCanvas} that handles connecting and moving links.
|
|
6541
6549
|
* @see {@link LLink}
|
|
@@ -7123,7 +7131,7 @@ export declare class ComfyApp {
|
|
|
7123
7131
|
* @param title a name to distinguish from other nodes
|
|
7124
7132
|
* @param options to set options
|
|
7125
7133
|
*/
|
|
7126
|
-
createNode(type: string, title?: string, options?:
|
|
7134
|
+
createNode(type: string, title?: string, options?: CreateNodeOptions): LGraphNode | null;
|
|
7127
7135
|
/**
|
|
7128
7136
|
* Returns a registered node type with a given name
|
|
7129
7137
|
* @param type full name of the node class. p.e. "math/sin"
|
|
@@ -9470,18 +9478,18 @@ export declare class ComfyApp {
|
|
|
9470
9478
|
status: "running" | "completed" | "failed" | "created";
|
|
9471
9479
|
progress: number;
|
|
9472
9480
|
task_id: string;
|
|
9473
|
-
bytes_downloaded: number;
|
|
9474
9481
|
asset_name: string;
|
|
9475
9482
|
bytes_total: number;
|
|
9483
|
+
bytes_downloaded: number;
|
|
9476
9484
|
error?: string | undefined;
|
|
9477
9485
|
asset_id?: string | undefined;
|
|
9478
9486
|
}, {
|
|
9479
9487
|
status: "running" | "completed" | "failed" | "created";
|
|
9480
9488
|
progress: number;
|
|
9481
9489
|
task_id: string;
|
|
9482
|
-
bytes_downloaded: number;
|
|
9483
9490
|
asset_name: string;
|
|
9484
9491
|
bytes_total: number;
|
|
9492
|
+
bytes_downloaded: number;
|
|
9485
9493
|
error?: string | undefined;
|
|
9486
9494
|
asset_id?: string | undefined;
|
|
9487
9495
|
}>;
|
|
@@ -16578,6 +16586,7 @@ export declare class ComfyApp {
|
|
|
16578
16586
|
'Comfy.VueNodes.AutoScaleLayout': z.ZodBoolean;
|
|
16579
16587
|
'Comfy.Assets.UseAssetAPI': z.ZodBoolean;
|
|
16580
16588
|
'Comfy.Queue.QPOV2': z.ZodBoolean;
|
|
16589
|
+
'Comfy.Queue.ShowRunProgressBar': z.ZodBoolean;
|
|
16581
16590
|
'Comfy-Desktop.AutoUpdate': z.ZodBoolean;
|
|
16582
16591
|
'Comfy-Desktop.SendStatistics': z.ZodBoolean;
|
|
16583
16592
|
'Comfy-Desktop.WindowStyle': z.ZodString;
|
|
@@ -17131,6 +17140,7 @@ export declare class ComfyApp {
|
|
|
17131
17140
|
'Comfy.VueNodes.AutoScaleLayout': boolean;
|
|
17132
17141
|
'Comfy.Assets.UseAssetAPI': boolean;
|
|
17133
17142
|
'Comfy.Queue.QPOV2': boolean;
|
|
17143
|
+
'Comfy.Queue.ShowRunProgressBar': boolean;
|
|
17134
17144
|
'Comfy-Desktop.AutoUpdate': boolean;
|
|
17135
17145
|
'Comfy-Desktop.SendStatistics': boolean;
|
|
17136
17146
|
'Comfy-Desktop.WindowStyle': string;
|
|
@@ -17681,6 +17691,7 @@ export declare class ComfyApp {
|
|
|
17681
17691
|
'Comfy.VueNodes.AutoScaleLayout': boolean;
|
|
17682
17692
|
'Comfy.Assets.UseAssetAPI': boolean;
|
|
17683
17693
|
'Comfy.Queue.QPOV2': boolean;
|
|
17694
|
+
'Comfy.Queue.ShowRunProgressBar': boolean;
|
|
17684
17695
|
'Comfy-Desktop.AutoUpdate': boolean;
|
|
17685
17696
|
'Comfy-Desktop.SendStatistics': boolean;
|
|
17686
17697
|
'Comfy-Desktop.WindowStyle': string;
|