From 5776fe06f09670234bc8939e24c3de3b55286d8d Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Tue, 27 Jul 2021 16:18:09 +0200 Subject: simplified node color --- pages/index.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index eb86e0d..39e827f 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -382,13 +382,6 @@ export const Graph = function (props: GraphProps) { nodeLabel: (node) => (node as OrgRoamNode).title, nodeColor: (node) => { if (!physics.colorful) { - if (!physics.highlightAnim) { - return Object.keys(highlightedNodes).length === 0 - ? highlightedNodes[node.id!] - ? theme.colors.purple[500] - : theme.colors.gray[400] - : theme.colors.gray[500] - } return Object.keys(highlightedNodes).length === 0 ? lastHoverNode.current?.id! === node.id! ? interPurple(opacity) -- cgit v1.2.3