From becbc14293c38e131c8ce579ef459783b988a9f5 Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <thomasfkjorna@gmail.com>
Date: Sat, 31 Jul 2021 00:35:29 +0200
Subject: removed ! which made orphans fail

---
 pages/index.tsx | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

(limited to 'pages/index.tsx')

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)
-- 
cgit v1.2.3

