diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-23 16:38:14 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-23 16:38:14 +0200 |
commit | 44248cb4eb0839a111e9f5db91c96b707d76d78e (patch) | |
tree | 35254feb46c0caba402fce250e3f4e23540e768e /pages/index.tsx | |
parent | 7f8afb99e24d546973662ef2d59cf85db9d019dd (diff) |
add orphan toggle
Diffstat (limited to 'pages/index.tsx')
-rw-r--r-- | pages/index.tsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index 170935e..8462d31 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -444,6 +444,16 @@ export const Tweaks = function (props: TweakProps) { divider={<StackDivider borderColor="gray.200" />} align="stretch" > + <Box> + <Text>Kill orphans</Text> + <Switch + colorScheme="purple" + onChange={() => { + setPhysics({ ...physics, orphans: !physics.orphans }) + }} + isChecked={physics.orphans} + ></Switch> + </Box> <SliderWithInfo label="Node size" value={physics.nodeRel} |