From 7a466db2a3732bf63c6a9ac1c550e8539580554a Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <thomasfkjorna@gmail.com>
Date: Mon, 13 Sep 2021 15:36:03 +0200
Subject: feat: node scale oom invariance

---
 components/tweaks.tsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'components/tweaks.tsx')

diff --git a/components/tweaks.tsx b/components/tweaks.tsx
index e03cea5..f03339b 100644
--- a/components/tweaks.tsx
+++ b/components/tweaks.tsx
@@ -761,6 +761,19 @@ export const Tweaks = (props: TweakProps) => {
                             max={2}
                             onChange={(value) => setVisuals({ ...visuals, nodeSizeLinks: value })}
                           />
+                          <SliderWithInfo
+                            label="Node zoom invariance"
+                            value={visuals.nodeZoomSize}
+                            min={0}
+                            max={2}
+                            infoText="How much the graph will try to keep the nodesize consistent across zoom scales. 0 is no consistency, node will always be their true size, 1 is linear, 2 is quadratic."
+                            onChange={(value) =>
+                              setVisuals((prev: typeof initialVisuals) => ({
+                                ...prev,
+                                nodeZoomSize: value,
+                              }))
+                            }
+                          />
                           {threeDim && (
                             <>
                               <SliderWithInfo
-- 
cgit v1.2.3

