summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pages/index.tsx3
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(