@comfyorg/comfyui-frontend-types 1.26.5 → 1.26.6
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 +23 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -466,6 +466,8 @@ declare class CanvasPointer {
|
|
|
466
466
|
* reduced frequency, but much higher deltaX and deltaY values.
|
|
467
467
|
*/
|
|
468
468
|
static trackpadMaxGap: number;
|
|
469
|
+
/** The maximum time in milliseconds to buffer a high-res wheel event. */
|
|
470
|
+
static maxHighResBufferTime: number;
|
|
469
471
|
/** The element this PointerState should capture input against when dragging. */
|
|
470
472
|
element: Element;
|
|
471
473
|
/** Pointer ID used by drag capture. */
|
|
@@ -493,8 +495,18 @@ declare class CanvasPointer {
|
|
|
493
495
|
eMove?: CanvasPointerEvent;
|
|
494
496
|
/** The last pointerup event for the primary button */
|
|
495
497
|
eUp?: CanvasPointerEvent;
|
|
496
|
-
/**
|
|
497
|
-
|
|
498
|
+
/** Currently detected input device type */
|
|
499
|
+
detectedDevice: 'mouse' | 'trackpad';
|
|
500
|
+
/** Timestamp of last wheel event for cooldown tracking */
|
|
501
|
+
lastWheelEventTime: number;
|
|
502
|
+
/** Flag to track if we've received the first wheel event */
|
|
503
|
+
hasReceivedWheelEvent: boolean;
|
|
504
|
+
/** Buffered Linux wheel event awaiting confirmation */
|
|
505
|
+
bufferedLinuxEvent?: WheelEvent;
|
|
506
|
+
/** Timestamp when Linux event was buffered */
|
|
507
|
+
bufferedLinuxEventTime: number;
|
|
508
|
+
/** Timer ID for Linux buffer clearing */
|
|
509
|
+
linuxBufferTimeoutId?: ReturnType<typeof setTimeout>;
|
|
498
510
|
/**
|
|
499
511
|
* If set, as soon as the mouse moves outside the click drift threshold, this action is run once.
|
|
500
512
|
* @param pointer [DEPRECATED] This parameter will be removed in a future release.
|
|
@@ -551,6 +563,7 @@ declare class CanvasPointer {
|
|
|
551
563
|
up(e: CanvasPointerEvent): boolean;
|
|
552
564
|
/**
|
|
553
565
|
* Checks if the given wheel event is part of a trackpad gesture.
|
|
566
|
+
* This method now uses the new device detection internally for improved accuracy.
|
|
554
567
|
* @param e The wheel event to check
|
|
555
568
|
* @returns `true` if the event is part of a trackpad gesture, otherwise `false`
|
|
556
569
|
*/
|
|
@@ -12543,6 +12556,12 @@ export declare class ComfyApp {
|
|
|
12543
12556
|
* https://docs.comfy.org/tutorials/api-nodes/overview
|
|
12544
12557
|
*/
|
|
12545
12558
|
api_node: z.ZodOptional<z.ZodBoolean>;
|
|
12559
|
+
/**
|
|
12560
|
+
* Specifies the order of inputs for each input category.
|
|
12561
|
+
* Used to ensure consistent widget ordering regardless of JSON serialization.
|
|
12562
|
+
* Keys are 'required', 'optional', etc., values are arrays of input names.
|
|
12563
|
+
*/
|
|
12564
|
+
input_order: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
12546
12565
|
}, "strip", z.ZodTypeAny, {
|
|
12547
12566
|
name: string;
|
|
12548
12567
|
description: string;
|
|
@@ -12969,6 +12988,7 @@ export declare class ComfyApp {
|
|
|
12969
12988
|
output_name?: string[] | undefined;
|
|
12970
12989
|
output_tooltips?: string[] | undefined;
|
|
12971
12990
|
api_node?: boolean | undefined;
|
|
12991
|
+
input_order?: Record<string, string[]> | undefined;
|
|
12972
12992
|
}, {
|
|
12973
12993
|
name: string;
|
|
12974
12994
|
description: string;
|
|
@@ -13395,6 +13415,7 @@ export declare class ComfyApp {
|
|
|
13395
13415
|
output_name?: string[] | undefined;
|
|
13396
13416
|
output_tooltips?: string[] | undefined;
|
|
13397
13417
|
api_node?: boolean | undefined;
|
|
13418
|
+
input_order?: Record<string, string[]> | undefined;
|
|
13398
13419
|
}>;
|
|
13399
13420
|
|
|
13400
13421
|
declare const zInputSpec: z.ZodUnion<[z.ZodTuple<[z.ZodLiteral<"INT">, z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|