@comfyorg/comfyui-frontend-types 1.47.9 → 1.47.10
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 +27 -0
- 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;
|
|
@@ -5048,6 +5049,13 @@ export declare class ComfyApp {
|
|
|
5048
5049
|
highlighted_links: Dictionary<boolean>;
|
|
5049
5050
|
private _visibleReroutes;
|
|
5050
5051
|
private _autoPan;
|
|
5052
|
+
/**
|
|
5053
|
+
* Modifier state of the most recent drag pointer event, so the auto-pan
|
|
5054
|
+
* callback resolves the same dragged-item set as normal pointer movement
|
|
5055
|
+
* (e.g. Cmd/Ctrl-drag moves a group without its contents). Updated on every
|
|
5056
|
+
* drag move and seeded from the pointer-down event when a drag starts.
|
|
5057
|
+
*/
|
|
5058
|
+
private _lastDragModifiers;
|
|
5051
5059
|
private _ghostPointerHandler;
|
|
5052
5060
|
private _ghostKeyHandler;
|
|
5053
5061
|
dirty_canvas: boolean;
|
|
@@ -6118,8 +6126,27 @@ export declare class ComfyApp {
|
|
|
6118
6126
|
* Set the node position to an absolute location.
|
|
6119
6127
|
*/
|
|
6120
6128
|
setPos(x: number, y: number): void;
|
|
6129
|
+
private _sizeProxy?;
|
|
6130
|
+
/**
|
|
6131
|
+
* A Proxy over {@link _size} so that element mutations (`node.size[1] = h`) —
|
|
6132
|
+
* the idiom many custom nodes use to grow a node at runtime — commit to the
|
|
6133
|
+
* layout store, exactly like assigning `node.size = [w, h]`. Without this a
|
|
6134
|
+
* bare element write bypasses the setter and a Vue node keeps its stale
|
|
6135
|
+
* height until a manual resize.
|
|
6136
|
+
*
|
|
6137
|
+
* The Proxy is created once and reused; index writes pass straight through to
|
|
6138
|
+
* the backing `Float64Array`, and function/length access is forwarded to the
|
|
6139
|
+
* real typed array so spread, iteration and `.length` keep working. In-place
|
|
6140
|
+
* mutating methods ({@link MUTATING_SIZE_METHODS}) also commit, so growing the
|
|
6141
|
+
* node via `node.size.set(...)` reflows just like a bare element write.
|
|
6142
|
+
*
|
|
6143
|
+
* TODO(litegraph-stable-resize-api): interim shim — remove once a stable resize
|
|
6144
|
+
* API replaces direct typed-array size access.
|
|
6145
|
+
*/
|
|
6121
6146
|
get size(): Size;
|
|
6122
6147
|
set size(value: Size);
|
|
6148
|
+
/** Mirror the current {@link _size} into the layout store for Vue nodes. */
|
|
6149
|
+
private _sizeUpdated;
|
|
6123
6150
|
/**
|
|
6124
6151
|
* The size of the node used for rendering.
|
|
6125
6152
|
*/
|