Variable LOD for background dots when zooming out
diff --git a/ui/src/widgets/nodegraph.ts b/ui/src/widgets/nodegraph.ts index 384674e..fe8feab 100644 --- a/ui/src/widgets/nodegraph.ts +++ b/ui/src/widgets/nodegraph.ts
@@ -2370,7 +2370,12 @@ } }, style: { - backgroundSize: `${20 * canvasState.zoom}px ${20 * canvasState.zoom}px`, + backgroundSize: (() => { + const BASE = 20; + const lodSpacing = canvasState.zoom < 0.2 ? BASE * 5 : BASE; + const size = lodSpacing * canvasState.zoom; + return `${size}px ${size}px`; + })(), backgroundPosition: `${canvasState.panOffset.x}px ${canvasState.panOffset.y}px`, ...vnode.attrs.style, },