summaryrefslogtreecommitdiff
path: root/components/tweaks.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/tweaks.tsx')
-rw-r--r--components/tweaks.tsx13
1 files changed, 13 insertions, 0 deletions
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