@comfyorg/comfyui-frontend-types 1.26.9 → 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.
Files changed (2) hide show
  1. package/index.d.ts +14 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3292,8 +3292,15 @@ export declare class ComfyApp {
3292
3292
  * @deprecated Use {@link LiteGraphGlobal.ROUND_RADIUS} instead.
3293
3293
  */
3294
3294
  set round_radius(value: number);
3295
+ private _lowQualityZoomThreshold;
3296
+ private _isLowQuality;
3295
3297
  /**
3296
- * Render low quality when zoomed out.
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.
3297
3304
  */
3298
3305
  get low_quality(): boolean;
3299
3306
  options: {
@@ -3351,8 +3358,12 @@ export declare class ComfyApp {
3351
3358
  /** Shape of the markers shown at the midpoint of links. Default: Circle */
3352
3359
  linkMarkerShape: LinkMarkerShape;
3353
3360
  links_render_mode: number;
3354
- /** Zoom threshold for low quality rendering. Zoom below this threshold will render low quality. */
3355
- low_quality_zoom_threshold: number;
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);
3356
3367
  /** mouse in canvas coordinates, where 0,0 is the top-left corner of the blue rectangle */
3357
3368
  readonly mouse: Point;
3358
3369
  /** mouse in graph coordinates, where 0,0 is the top-left corner of the blue rectangle */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.26.9",
3
+ "version": "1.26.10",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"