@comfyorg/comfyui-frontend-types 1.26.8 → 1.26.10
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 +19 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -896,6 +896,9 @@ export declare class ComfyApi extends EventTarget {
|
|
|
896
896
|
getRawLogs(): Promise<LogsRawResponse>;
|
|
897
897
|
subscribeLogs(enabled: boolean): Promise<void>;
|
|
898
898
|
getFolderPaths(): Promise<Record<string, string[]>>;
|
|
899
|
+
freeMemory(options: {
|
|
900
|
+
freeExecutionCache: boolean;
|
|
901
|
+
}): Promise<void>;
|
|
899
902
|
/**
|
|
900
903
|
* Gets the custom nodes i18n data from the server.
|
|
901
904
|
*
|
|
@@ -904,13 +907,13 @@ export declare class ComfyApi extends EventTarget {
|
|
|
904
907
|
getCustomNodesI18n(): Promise<Record<string, any>>;
|
|
905
908
|
/**
|
|
906
909
|
* Checks if the server supports a specific feature.
|
|
907
|
-
* @param featureName The name of the feature to check
|
|
910
|
+
* @param featureName The name of the feature to check (supports dot notation for nested values)
|
|
908
911
|
* @returns true if the feature is supported, false otherwise
|
|
909
912
|
*/
|
|
910
913
|
serverSupportsFeature(featureName: string): boolean;
|
|
911
914
|
/**
|
|
912
915
|
* Gets a server feature flag value.
|
|
913
|
-
* @param featureName The name of the feature to get
|
|
916
|
+
* @param featureName The name of the feature to get (supports dot notation for nested values)
|
|
914
917
|
* @param defaultValue The default value if the feature is not found
|
|
915
918
|
* @returns The feature value or default
|
|
916
919
|
*/
|
|
@@ -3289,8 +3292,15 @@ export declare class ComfyApp {
|
|
|
3289
3292
|
* @deprecated Use {@link LiteGraphGlobal.ROUND_RADIUS} instead.
|
|
3290
3293
|
*/
|
|
3291
3294
|
set round_radius(value: number);
|
|
3295
|
+
private _lowQualityZoomThreshold;
|
|
3296
|
+
private _isLowQuality;
|
|
3292
3297
|
/**
|
|
3293
|
-
*
|
|
3298
|
+
* Updates the low quality zoom threshold based on current settings.
|
|
3299
|
+
* Called when min_font_size_for_lod or DPR changes.
|
|
3300
|
+
*/
|
|
3301
|
+
private updateLowQualityThreshold;
|
|
3302
|
+
/**
|
|
3303
|
+
* Render low quality when zoomed out based on minimum readable font size.
|
|
3294
3304
|
*/
|
|
3295
3305
|
get low_quality(): boolean;
|
|
3296
3306
|
options: {
|
|
@@ -3348,8 +3358,12 @@ export declare class ComfyApp {
|
|
|
3348
3358
|
/** Shape of the markers shown at the midpoint of links. Default: Circle */
|
|
3349
3359
|
linkMarkerShape: LinkMarkerShape;
|
|
3350
3360
|
links_render_mode: number;
|
|
3351
|
-
/**
|
|
3352
|
-
|
|
3361
|
+
/** Minimum font size in pixels before switching to low quality rendering.
|
|
3362
|
+
* This intializes first and if we cant get the value from the settings we default to 8px
|
|
3363
|
+
*/
|
|
3364
|
+
private _min_font_size_for_lod;
|
|
3365
|
+
get min_font_size_for_lod(): number;
|
|
3366
|
+
set min_font_size_for_lod(value: number);
|
|
3353
3367
|
/** mouse in canvas coordinates, where 0,0 is the top-left corner of the blue rectangle */
|
|
3354
3368
|
readonly mouse: Point;
|
|
3355
3369
|
/** mouse in graph coordinates, where 0,0 is the top-left corner of the blue rectangle */
|