@comfyorg/comfyui-frontend-types 1.30.0 → 1.30.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 +3 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2229,11 +2229,6 @@ export declare class ComfyApp {
2229
2229
  value: string;
2230
2230
  }
2231
2231
 
2232
- declare interface IAudioRecordWidget extends IBaseWidget<string, 'audiorecord'> {
2233
- type: 'audiorecord';
2234
- value: string;
2235
- }
2236
-
2237
2232
  /**
2238
2233
  * The base type for all widgets. Should not be implemented directly.
2239
2234
  * @template TValue The type of value this widget holds.
@@ -2944,7 +2939,7 @@ export declare class ComfyApp {
2944
2939
  * Recommend declaration merging any properties that use IWidget (e.g. {@link LGraphNode.widgets}) with a new type alias.
2945
2940
  * @see ICustomWidget
2946
2941
  */
2947
- declare type IWidget = IBooleanWidget | INumericWidget | IStringWidget | IComboWidget | IStringComboWidget | ICustomWidget | ISliderWidget | IButtonWidget | IKnobWidget | IFileUploadWidget | IColorWidget | IMarkdownWidget | IImageWidget | ITreeSelectWidget | IMultiSelectWidget | IChartWidget | IGalleriaWidget | IImageCompareWidget | ISelectButtonWidget | ITextareaWidget | IAssetWidget | IAudioRecordWidget;
2942
+ declare type IWidget = IBooleanWidget | INumericWidget | IStringWidget | IComboWidget | IStringComboWidget | ICustomWidget | ISliderWidget | IButtonWidget | IKnobWidget | IFileUploadWidget | IColorWidget | IMarkdownWidget | IImageWidget | ITreeSelectWidget | IMultiSelectWidget | IChartWidget | IGalleriaWidget | IImageCompareWidget | ISelectButtonWidget | ITextareaWidget | IAssetWidget;
2948
2943
 
2949
2944
  declare interface IWidgetKnobOptions extends IWidgetOptions<number[]> {
2950
2945
  min: number;
@@ -3885,7 +3880,7 @@ export declare class ComfyApp {
3885
3880
  * When called without parameters, it copies {@link selectedItems}.
3886
3881
  * @param items The items to copy. If nullish, all selected items are copied.
3887
3882
  */
3888
- copyToClipboard(items?: Iterable<Positionable>): void;
3883
+ copyToClipboard(items?: Iterable<Positionable>): string;
3889
3884
  emitEvent(detail: LGraphCanvasEventMap['litegraph:canvas']): void;
3890
3885
  /** @todo Refactor to where it belongs - e.g. Deleting / creating nodes is not actually canvas event. */
3891
3886
  emitBeforeChange(): void;
@@ -7371,6 +7366,7 @@ export declare class ComfyApp {
7371
7366
  removeWidgetByName(name: string): void;
7372
7367
  ensureWidgetRemoved(widget: IBaseWidget): void;
7373
7368
  onRemoved(): void;
7369
+ drawTitleBox(ctx: CanvasRenderingContext2D, { scale, low_quality, title_height, box_size }: DrawTitleBoxOptions): void;
7374
7370
  /**
7375
7371
  * Synchronizes widget values from this SubgraphNode instance to the
7376
7372
  * corresponding widgets in the subgraph definition before serialization.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.30.0",
3
+ "version": "1.30.2",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"