From becbc14293c38e131c8ce579ef459783b988a9f5 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 31 Jul 2021 00:35:29 +0200 Subject: removed ! which made orphans fail --- components/tweaks.tsx | 13 +++---------- pages/index.tsx | 13 +------------ 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/components/tweaks.tsx b/components/tweaks.tsx index 393a0fe..e7653df 100644 --- a/components/tweaks.tsx +++ b/components/tweaks.tsx @@ -1072,31 +1072,24 @@ export const Tweaks = (props: TweakProps) => { setVisuals({ ...visuals, animationSpeed: v })} - value={physics.animationSpeed} + value={visuals.animationSpeed} infoText="Slower speed has a chance of being buggy" min={50} max={1000} step={10} /> - {/* - setVisuals({ ...visuals, algorithmName: { option } }), - )} - /> */} 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