From e4249979b67127dbeaf8d78bab6500154dcf6cde Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 15 Jul 2021 15:06:41 +0200 Subject: added 3d and expandable mode --- app/components/tweaks/tweaks.tsx | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'app/components/tweaks/tweaks.tsx') diff --git a/app/components/tweaks/tweaks.tsx b/app/components/tweaks/tweaks.tsx index d1c8c2a..e7bbd6f 100644 --- a/app/components/tweaks/tweaks.tsx +++ b/app/components/tweaks/tweaks.tsx @@ -34,29 +34,45 @@ export const Tweaks = observer(function Tweaks(props: TweaksProps) { const styles = flatten([CONTAINER, style]) return ( - <> - + + { setPhysics({...physics, charge: value}) }} value={physics.charge} step={1}/> - + { setPhysics({...physics, linkStrength: value}) }} value={physics.linkStrength} - step={1}/> - + + { setPhysics({...physics, linkIts: value}) }} value={physics.linkIts} step={1}/> - + {setPhysics({...physics, collision: !physics.collision})}} /> - + + + {setPhysics({...physics, collapse: !physics.collapse})}} + /> + + {setPhysics({...physics, threedim: !physics.threedim})}} + /> + ) }) -- cgit v1.2.3