diff options
author | Kirill Rogovoy <[email protected]> | 2021-07-29 18:55:46 +0300 |
---|---|---|
committer | Kirill Rogovoy <[email protected]> | 2021-07-29 18:55:53 +0300 |
commit | 0f9f3daa3b1cd4bd1a795c61aa9fa3abf5c2ed5e (patch) | |
tree | 2220a917fc4b6307e00cce7c68d1ca47eace2d83 /pages/index.tsx | |
parent | 0f4c025869cc5eaae38c270e8cd8b37457513eff (diff) |
Bring back label backgrounds
Diffstat (limited to 'pages/index.tsx')
-rw-r--r-- | pages/index.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index 2b1ba62..6fc83e2 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -584,7 +584,8 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { ? Math.max(fadeFactor, opacity) : 1 * fadeFactor * (-1 * (0.5 * opacity - 1)) } - if (physics.labels === 2 && (wasHighlightedNode || highlightedNodes[node.id!])) { + + if (physics.labels === 2) { const backgroundOpacity = 0.5 * getLabelOpacity() ctx.fillStyle = `rgba(20, 20, 20, ${backgroundOpacity})` ctx.fillRect( |