summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-23 18:38:43 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-23 18:38:43 +0200
commite69515e108a64ea82a3ab3030de8e7ab366591d9 (patch)
tree210387450ec11d95cb444a626b1cc5ddd3d969a5 /pages
parentfcd3a49506908aff4e8552650ee6249ddf42a1ca (diff)
commented out the orphans
Diffstat (limited to 'pages')
-rw-r--r--pages/index.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/pages/index.tsx b/pages/index.tsx
index 0e1c413..86ad7b3 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -459,7 +459,7 @@ export const Tweaks = function (props: TweakProps) {
divider={<StackDivider borderColor="gray.200" />}
align="stretch"
>
- <Box>
+ {/* <Box>
<Text>Kill orphans</Text>
<Switch
colorScheme="purple"
@@ -468,7 +468,7 @@ export const Tweaks = function (props: TweakProps) {
}}
isChecked={physics.orphans}
></Switch>
- </Box>
+ </Box> */}
<SliderWithInfo
label="Node size"
value={physics.nodeRel}
@@ -626,9 +626,9 @@ export const Graph = function (props: GraphProps) {
const scopedNodes = graphData.nodes.filter((node) => {
const links = linksByNodeId[node.id as string] ?? []
- if (physics.orphans && links.length === 0) {
- return false
- }
+ /* if (physics.orphans && links.length === 0) {
+ * return false
+ * } */
return (
scope.nodeIds.includes(node.id as string) ||
links.some((link) => {