From 00fdc78a486e94ae6bdece1a4cd8ab8d3830b238 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Fri, 30 Jul 2021 22:08:16 +0200 Subject: added extra check for wanting labels in 3d --- pages/index.tsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pages') diff --git a/pages/index.tsx b/pages/index.tsx index ae3c048..3ecda92 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -708,6 +708,9 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { if (!physics.labels) { return } + if (physics.labels === 2) { + return + } if (physics.labels === 1 && !highlightedNodes[node.id!]) { return } -- cgit v1.2.3