@comfyorg/comfyui-frontend-types 1.28.0 → 1.28.2

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.
Files changed (2) hide show
  1. package/index.d.ts +4 -9
  2. 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
@@ -6255,6 +6249,7 @@ export declare class ComfyApp {
6255
6249
  * @default 0,0
6256
6250
  */
6257
6251
  readonly pos: Point;
6252
+ readonly size?: Size;
6258
6253
  /** true if this object is part of the selection, otherwise false. */
6259
6254
  selected?: boolean;
6260
6255
  /** See {@link IPinnable.pinned} */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.28.0",
3
+ "version": "1.28.2",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"