You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/litegraph/src/LGraphCanvas.ts
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -461,7 +461,7 @@ export class LGraphCanvas
461
461
}
462
462
463
463
constbaseFontSize=LiteGraph.NODE_TEXT_SIZE// 14px
464
-
constdprAdjustment=Math.sqrt(window.devicePixelRatio||1)//Using sqrt here because higher DPR monitors do not linearily scale the readability of the font, instead they increase the font by some heurisitc, and to approximate we use sqrt to say bascially a DPR of 2 increases the readibility by 40%, 3 by 70%
464
+
constdprAdjustment=Math.sqrt(window.devicePixelRatio||1)//Using sqrt here because higher DPR monitors do not linearily scale the readability of the font, instead they increase the font by some heurisitc, and to approximate we use sqrt to say basically a DPR of 2 increases the readability by 40%, 3 by 70%
465
465
466
466
// Calculate the zoom level where text becomes unreadable
0 commit comments