@comfyorg/comfyui-frontend-types 1.27.5 → 1.28.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 +15 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -79,6 +79,8 @@ declare type AsCustomEvents<T> = {
|
|
|
79
79
|
|
|
80
80
|
declare class AssetWidget extends BaseWidget<IAssetWidget> implements IAssetWidget {
|
|
81
81
|
constructor(widget: IAssetWidget, node: LGraphNode);
|
|
82
|
+
set value(value: IAssetWidget['value']);
|
|
83
|
+
get value(): IAssetWidget['value'];
|
|
82
84
|
get _displayValue(): string;
|
|
83
85
|
drawWidget(ctx: CanvasRenderingContext2D, { width, showText }: DrawWidgetOptions): void;
|
|
84
86
|
onClick(): void;
|
|
@@ -5791,15 +5793,7 @@ export declare class ComfyApp {
|
|
|
5791
5793
|
num_sublines?: number;
|
|
5792
5794
|
disabled?: boolean;
|
|
5793
5795
|
}): void;
|
|
5794
|
-
|
|
5795
|
-
* Render a link being dragged from a slot to mouse position
|
|
5796
|
-
* Used during link creation/reconnection
|
|
5797
|
-
*/
|
|
5798
|
-
renderDraggingLink(ctx: CanvasRenderingContext2D, fromNode: LGraphNode | null, fromSlot: INodeOutputSlot | INodeInputSlot, fromSlotIndex: number, toPosition: ReadOnlyPoint, context: LinkRenderContext, options?: {
|
|
5799
|
-
fromInput?: boolean;
|
|
5800
|
-
color?: CanvasColour;
|
|
5801
|
-
disabled?: boolean;
|
|
5802
|
-
}): void;
|
|
5796
|
+
renderDraggingLink(ctx: CanvasRenderingContext2D, from: ReadOnlyPoint, to: ReadOnlyPoint, colour: CanvasColour, startDir: LinkDirection, endDir: LinkDirection, context: LinkRenderContext): void;
|
|
5803
5797
|
/**
|
|
5804
5798
|
* Calculate bounding box for a link
|
|
5805
5799
|
* Includes padding for line width and control points
|
|
@@ -6003,10 +5997,7 @@ export declare class ComfyApp {
|
|
|
6003
5997
|
};
|
|
6004
5998
|
};
|
|
6005
5999
|
|
|
6006
|
-
declare
|
|
6007
|
-
name: string;
|
|
6008
|
-
pathIndex: number;
|
|
6009
|
-
}
|
|
6000
|
+
declare type ModelFile = z.infer<typeof zModelFile>;
|
|
6010
6001
|
|
|
6011
6002
|
declare interface ModelFolderInfo {
|
|
6012
6003
|
name: string;
|
|
@@ -11275,4 +11266,15 @@ export declare class ComfyApp {
|
|
|
11275
11266
|
targetElementId?: string | undefined;
|
|
11276
11267
|
}>;
|
|
11277
11268
|
|
|
11269
|
+
declare const zModelFile: z.ZodObject<{
|
|
11270
|
+
name: z.ZodString;
|
|
11271
|
+
pathIndex: z.ZodNumber;
|
|
11272
|
+
}, "strip", z.ZodTypeAny, {
|
|
11273
|
+
name: string;
|
|
11274
|
+
pathIndex: number;
|
|
11275
|
+
}, {
|
|
11276
|
+
name: string;
|
|
11277
|
+
pathIndex: number;
|
|
11278
|
+
}>;
|
|
11279
|
+
|
|
11278
11280
|
export { }
|