From 7a466db2a3732bf63c6a9ac1c550e8539580554a Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Mon, 13 Sep 2021 15:36:03 +0200 Subject: feat: node scale oom invariance --- components/config.ts | 1 + components/tweaks.tsx | 13 +++++++++++++ 2 files changed, 14 insertions(+) (limited to 'components') diff --git a/components/config.ts b/components/config.ts index dce9b7d..56664df 100644 --- a/components/config.ts +++ b/components/config.ts @@ -103,6 +103,7 @@ export const initialVisuals = { refLinkHighlightColor: '', refNodeColor: 'black', nodeSizeLinks: 0.5, + nodeZoomSize: 1.3, } export interface TagColors { 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 })} /> + + setVisuals((prev: typeof initialVisuals) => ({ + ...prev, + nodeZoomSize: value, + })) + } + /> {threeDim && ( <>