@comfyorg/comfyui-frontend-types 1.47.9 → 1.47.11
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 +46 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1496,6 +1496,7 @@ export declare class ComfyApp {
|
|
|
1496
1496
|
}): Promise<void>;
|
|
1497
1497
|
refreshMissingModels(options?: {
|
|
1498
1498
|
silent?: boolean;
|
|
1499
|
+
reloadDefs?: boolean;
|
|
1499
1500
|
}): Promise<MissingModelPipelineResult>;
|
|
1500
1501
|
private cacheMediaCandidates;
|
|
1501
1502
|
private runMissingMediaPipeline;
|
|
@@ -1503,7 +1504,8 @@ export declare class ComfyApp {
|
|
|
1503
1504
|
workflow: ComfyWorkflowJSON;
|
|
1504
1505
|
output: ComfyApiWorkflow;
|
|
1505
1506
|
}>;
|
|
1506
|
-
queuePrompt(number: number, batchCount?: number,
|
|
1507
|
+
queuePrompt(number: number, batchCount?: number, options?: QueuePromptOptions_2): Promise<boolean>;
|
|
1508
|
+
queuePrompt(number: number, batchCount: number, queueNodeIds: NodeExecutionId[]): Promise<boolean>;
|
|
1507
1509
|
showErrorOnFileLoad(file: File): void;
|
|
1508
1510
|
/**
|
|
1509
1511
|
* Loads workflow data from the specified file
|
|
@@ -3179,6 +3181,10 @@ export declare class ComfyApp {
|
|
|
3179
3181
|
|
|
3180
3182
|
declare type ExecutionSuccessWsMessage = z.infer<typeof zExecutionSuccessWsMessage>;
|
|
3181
3183
|
|
|
3184
|
+
declare type ExecutionTriggerSource = (typeof executionTriggerSources)[number];
|
|
3185
|
+
|
|
3186
|
+
declare const executionTriggerSources: readonly ["button", "keybinding", "legacy_ui", "unknown", "linear", "auto_queue"];
|
|
3187
|
+
|
|
3182
3188
|
/**
|
|
3183
3189
|
* Defines a subgraph and its contents.
|
|
3184
3190
|
* Can be referenced multiple times in a schema.
|
|
@@ -5048,6 +5054,13 @@ export declare class ComfyApp {
|
|
|
5048
5054
|
highlighted_links: Dictionary<boolean>;
|
|
5049
5055
|
private _visibleReroutes;
|
|
5050
5056
|
private _autoPan;
|
|
5057
|
+
/**
|
|
5058
|
+
* Modifier state of the most recent drag pointer event, so the auto-pan
|
|
5059
|
+
* callback resolves the same dragged-item set as normal pointer movement
|
|
5060
|
+
* (e.g. Cmd/Ctrl-drag moves a group without its contents). Updated on every
|
|
5061
|
+
* drag move and seeded from the pointer-down event when a drag starts.
|
|
5062
|
+
*/
|
|
5063
|
+
private _lastDragModifiers;
|
|
5051
5064
|
private _ghostPointerHandler;
|
|
5052
5065
|
private _ghostKeyHandler;
|
|
5053
5066
|
dirty_canvas: boolean;
|
|
@@ -6118,8 +6131,27 @@ export declare class ComfyApp {
|
|
|
6118
6131
|
* Set the node position to an absolute location.
|
|
6119
6132
|
*/
|
|
6120
6133
|
setPos(x: number, y: number): void;
|
|
6134
|
+
private _sizeProxy?;
|
|
6135
|
+
/**
|
|
6136
|
+
* A Proxy over {@link _size} so that element mutations (`node.size[1] = h`) —
|
|
6137
|
+
* the idiom many custom nodes use to grow a node at runtime — commit to the
|
|
6138
|
+
* layout store, exactly like assigning `node.size = [w, h]`. Without this a
|
|
6139
|
+
* bare element write bypasses the setter and a Vue node keeps its stale
|
|
6140
|
+
* height until a manual resize.
|
|
6141
|
+
*
|
|
6142
|
+
* The Proxy is created once and reused; index writes pass straight through to
|
|
6143
|
+
* the backing `Float64Array`, and function/length access is forwarded to the
|
|
6144
|
+
* real typed array so spread, iteration and `.length` keep working. In-place
|
|
6145
|
+
* mutating methods ({@link MUTATING_SIZE_METHODS}) also commit, so growing the
|
|
6146
|
+
* node via `node.size.set(...)` reflows just like a bare element write.
|
|
6147
|
+
*
|
|
6148
|
+
* TODO(litegraph-stable-resize-api): interim shim — remove once a stable resize
|
|
6149
|
+
* API replaces direct typed-array size access.
|
|
6150
|
+
*/
|
|
6121
6151
|
get size(): Size;
|
|
6122
6152
|
set size(value: Size);
|
|
6153
|
+
/** Mirror the current {@link _size} into the layout store for Vue nodes. */
|
|
6154
|
+
private _sizeUpdated;
|
|
6123
6155
|
/**
|
|
6124
6156
|
* The size of the node used for rendering.
|
|
6125
6157
|
*/
|
|
@@ -8346,6 +8378,15 @@ export declare class ComfyApp {
|
|
|
8346
8378
|
previewMethod?: PreviewMethod;
|
|
8347
8379
|
}
|
|
8348
8380
|
|
|
8381
|
+
/**
|
|
8382
|
+
* Optional inputs to {@link ComfyApp.queuePrompt}. `intent` is telemetry
|
|
8383
|
+
* attribution only and never affects what gets executed.
|
|
8384
|
+
*/
|
|
8385
|
+
declare interface QueuePromptOptions_2 {
|
|
8386
|
+
queueNodeIds?: NodeExecutionId[];
|
|
8387
|
+
intent?: WorkflowQueueIntent;
|
|
8388
|
+
}
|
|
8389
|
+
|
|
8349
8390
|
declare interface RangeValue {
|
|
8350
8391
|
min: number;
|
|
8351
8392
|
max: number;
|
|
@@ -47090,6 +47131,10 @@ export declare class ComfyApp {
|
|
|
47090
47131
|
*/
|
|
47091
47132
|
declare type WorkflowOpenSource = NonNullable<WorkflowImportMetadata['open_source']>;
|
|
47092
47133
|
|
|
47134
|
+
declare interface WorkflowQueueIntent {
|
|
47135
|
+
trigger_source?: ExecutionTriggerSource;
|
|
47136
|
+
}
|
|
47137
|
+
|
|
47093
47138
|
declare interface WorkflowTemplates {
|
|
47094
47139
|
moduleName: string;
|
|
47095
47140
|
templates: TemplateInfo[];
|