diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-27 16:18:09 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-27 16:18:09 +0200 |
commit | 5776fe06f09670234bc8939e24c3de3b55286d8d (patch) | |
tree | c26c49fb0ddf788af485562d728465f7d54c320a | |
parent | 56160511ce62cb2ca85e21fcc591807bcf7a3442 (diff) |
simplified node color
-rw-r--r-- | pages/index.tsx | 7 |
1 files changed, 0 insertions, 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) |