summaryrefslogtreecommitdiff
path: root/pages/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'pages/index.tsx')
-rw-r--r--pages/index.tsx10
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}