From 7c1d531016087f71204eef85244c2aada0f12293 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 22 Jul 2021 16:24:22 +0200 Subject: add visual options --- pages/index.tsx | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'pages') diff --git a/pages/index.tsx b/pages/index.tsx index 70bb568..c3b2100 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -414,6 +414,48 @@ export const Tweaks = function (props: TweakProps) { divider={} align="stretch" > + setPhysics({ ...physics, nodeRel: value })} + /> + setPhysics({ ...physics, linkWidth: value })} + /> + setPhysics({ ...physics, labels: !physics.labels })} + label="Label Appearance Scale" + value={physics.labelScale * 5} + onChange={(value) => setPhysics({ ...physics, labelScale: value / 5 })} + /> + + + setPhysics({ ...physics, labels: physics.particles ? 0 : 1 }) + } + label="Particle Number" + value={physics.particles} + max={5} + step={1} + onChange={(value) => setPhysics({ ...physics, particles: value })} + /> + setPhysics({ ...physics, particleWidth: value })} + /> + + setPhysics({ ...physics, nodeRel: value })} + /> Ayyyy -- cgit v1.2.3