summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-31 00:35:29 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-31 00:35:29 +0200
commitbecbc14293c38e131c8ce579ef459783b988a9f5 (patch)
treed54a631ce29233d2e71c66fd4609f25e7b9c7925 /pages
parent1845a260fb81018294a8673e5af545f30928c40a (diff)
removed ! which made orphans fail
Diffstat (limited to 'pages')
-rw-r--r--pages/index.tsx13
1 files changed, 1 insertions, 12 deletions
diff --git a/pages/index.tsx b/pages/index.tsx
index 4ff3aee..75e6b17 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -309,7 +309,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
return false
}
- return !links.some((link) => !['parent', 'cite'].includes(link.type))
+ return links.some((link) => !['parent', 'cite', 'ref'].includes(link.type))
})
const filteredLinks = graphData.links.filter((linkArg) => {
@@ -355,17 +355,6 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
if (physics.gravityOn) {
fg.d3Force('x', d3.forceX().strength(physics.gravity))
fg.d3Force('y', d3.forceY().strength(physics.gravity))
- if (threeDim) {
- if (physics.galaxy) {
- fg.d3Force('x', d3.forceX().strength(physics.gravity / 5))
- fg.d3Force('z', d3.forceZ().strength(physics.gravity / 5))
- } else {
- fg.d3Force('x', d3.forceX().strength(physics.gravity))
- fg.d3Force('z', d3.forceZ().strength(physics.gravity))
- }
- } else {
- fg.d3Force('z', null)
- }
} else {
fg.d3Force('x', null)
fg.d3Force('y', null)