From 0ba686b64fcdbedffd636791e6d20d8eb1791693 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 22 Jul 2021 19:50:27 +0200 Subject: more merging --- pages/index.tsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'pages/index.tsx') diff --git a/pages/index.tsx b/pages/index.tsx index 16a0f31..75f2db7 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -287,7 +287,7 @@ export interface TweakProps { setPhysics: any threeDim: boolean } -export const Tweaks = function(props: TweakProps) { +export const Tweaks = function (props: TweakProps) { const { physics, setPhysics, threeDim } = props return ( (null) @@ -603,12 +603,12 @@ export const Graph = function(props: GraphProps) { scope.nodeIds.length === 0 ? graphData : { - nodes: scopedNodes, - links: scopedLinks, - } + nodes: scopedNodes, + links: scopedLinks, + } useEffect(() => { - ; (async () => { + ;(async () => { const fg = threeDim ? graph3dRef.current : graph2dRef.current const d3 = await d3promise if (physics.gravityOn) { @@ -699,13 +699,9 @@ export const Graph = function(props: GraphProps) { nodeRelSize: physics.nodeRel, nodeVal: (node) => { const links = linksByNodeId[node.id!] ?? [] -<<<<<<< variant A const basicSize = 3 + links.length const highlightSize = highlightedNodes[node.id!] ? physics.highlightNodeSize : 1 return basicSize * highlightSize ->>>>>>> variant B - return 3 + links.length -======= end }, nodeCanvasObject: (node, ctx, globalScale) => { if (!physics.labels) { -- cgit v1.2.3