summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-27 16:18:09 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-27 16:18:09 +0200
commit5776fe06f09670234bc8939e24c3de3b55286d8d (patch)
treec26c49fb0ddf788af485562d728465f7d54c320a
parent56160511ce62cb2ca85e21fcc591807bcf7a3442 (diff)
simplified node color
-rw-r--r--pages/index.tsx7
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)