@comfyorg/comfyui-frontend-types 1.43.15 → 1.44.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 +28 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3820,6 +3820,11 @@ export declare class ComfyApp {
|
|
|
3820
3820
|
unpin(): void;
|
|
3821
3821
|
}
|
|
3822
3822
|
|
|
3823
|
+
declare interface IRangeWidget extends IBaseWidget<RangeValue, 'range', IWidgetRangeOptions> {
|
|
3824
|
+
type: 'range';
|
|
3825
|
+
value: RangeValue;
|
|
3826
|
+
}
|
|
3827
|
+
|
|
3823
3828
|
/** Select button widget for selecting from a group of buttons */
|
|
3824
3829
|
declare interface ISelectButtonWidget extends IBaseWidget<string, 'selectbutton', RequiredProps<IWidgetOptions<string[]>, 'values'>> {
|
|
3825
3830
|
type: 'selectbutton';
|
|
@@ -3990,7 +3995,7 @@ export declare class ComfyApp {
|
|
|
3990
3995
|
* Recommend declaration merging any properties that use IWidget (e.g. {@link LGraphNode.widgets}) with a new type alias.
|
|
3991
3996
|
* @see ICustomWidget
|
|
3992
3997
|
*/
|
|
3993
|
-
declare type IWidget = IBooleanWidget | INumericWidget | IStringWidget | IComboWidget | IStringComboWidget | ICustomWidget | ISliderWidget | IGradientSliderWidget | IButtonWidget | IKnobWidget | IFileUploadWidget | IColorWidget | IMarkdownWidget | IImageWidget | ITreeSelectWidget | IMultiSelectWidget | IChartWidget | IGalleriaWidget | IImageCompareWidget | ISelectButtonWidget | ITextareaWidget | IAssetWidget | IImageCropWidget | IBoundingBoxWidget | ICurveWidget | IPainterWidget;
|
|
3998
|
+
declare type IWidget = IBooleanWidget | INumericWidget | IStringWidget | IComboWidget | IStringComboWidget | ICustomWidget | ISliderWidget | IGradientSliderWidget | IButtonWidget | IKnobWidget | IFileUploadWidget | IColorWidget | IMarkdownWidget | IImageWidget | ITreeSelectWidget | IMultiSelectWidget | IChartWidget | IGalleriaWidget | IImageCompareWidget | ISelectButtonWidget | ITextareaWidget | IAssetWidget | IImageCropWidget | IBoundingBoxWidget | ICurveWidget | IPainterWidget | IRangeWidget;
|
|
3994
3999
|
|
|
3995
4000
|
declare interface IWidgetAssetOptions extends IWidgetOptions {
|
|
3996
4001
|
openModal: (widget: IBaseWidget) => void;
|
|
@@ -4073,6 +4078,15 @@ export declare class ComfyApp {
|
|
|
4073
4078
|
hidden?: boolean;
|
|
4074
4079
|
}
|
|
4075
4080
|
|
|
4081
|
+
declare interface IWidgetRangeOptions extends IWidgetOptions {
|
|
4082
|
+
display?: 'plain' | 'gradient' | 'histogram';
|
|
4083
|
+
gradient_stops?: ColorStop[];
|
|
4084
|
+
show_midpoint?: boolean;
|
|
4085
|
+
midpoint_scale?: 'linear' | 'gamma';
|
|
4086
|
+
value_min?: number;
|
|
4087
|
+
value_max?: number;
|
|
4088
|
+
}
|
|
4089
|
+
|
|
4076
4090
|
declare interface IWidgetSliderOptions extends IWidgetOptions<number[]> {
|
|
4077
4091
|
min: number;
|
|
4078
4092
|
max: number;
|
|
@@ -8027,6 +8041,18 @@ export declare class ComfyApp {
|
|
|
8027
8041
|
previewMethod?: PreviewMethod;
|
|
8028
8042
|
}
|
|
8029
8043
|
|
|
8044
|
+
declare interface RangeValue {
|
|
8045
|
+
min: number;
|
|
8046
|
+
max: number;
|
|
8047
|
+
midpoint?: number;
|
|
8048
|
+
}
|
|
8049
|
+
|
|
8050
|
+
declare class RangeWidget extends BaseWidget<IRangeWidget> implements IRangeWidget {
|
|
8051
|
+
type: "range";
|
|
8052
|
+
drawWidget(ctx: CanvasRenderingContext2D, options: DrawWidgetOptions): void;
|
|
8053
|
+
onClick(_options: WidgetEventOptions): void;
|
|
8054
|
+
}
|
|
8055
|
+
|
|
8030
8056
|
declare type RawJobListItem = z.infer<typeof zRawJobListItem>;
|
|
8031
8057
|
|
|
8032
8058
|
declare interface ReadonlyLinkNetwork {
|
|
@@ -9612,6 +9638,7 @@ export declare class ComfyApp {
|
|
|
9612
9638
|
boundingbox: BoundingBoxWidget;
|
|
9613
9639
|
curve: CurveWidget;
|
|
9614
9640
|
painter: PainterWidget;
|
|
9641
|
+
range: RangeWidget;
|
|
9615
9642
|
[key: string]: BaseWidget;
|
|
9616
9643
|
};
|
|
9617
9644
|
|