summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-16 00:37:11 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-16 00:37:11 +0200
commit0ae9d628fabab8664c38d15bd6b5084a32c8eca2 (patch)
tree47ea4b690a2c65bde76146369355db3e03ad718c /pages
parent10b8fd40921b9e315edc19f8f2a07ce575930d18 (diff)
feat(labels): more sensible label positions
Diffstat (limited to 'pages')
-rw-r--r--pages/index.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/index.tsx b/pages/index.tsx
index e53ba03..4878b0c 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -1219,7 +1219,9 @@ export const Graph = function (props: GraphProps) {
},
nodeCanvasObject: (node, ctx, globalScale) => {
drawLabels({
+ nodeRel: visuals.nodeRel,
filteredLinksByNodeId: filteredLinksByNodeIdRef.current,
+ lastHoverNode: lastHoverNode.current,
...{
node,
ctx,
@@ -1231,6 +1233,7 @@ export const Graph = function (props: GraphProps) {
nodeSize,
labelTextColor,
labelBackgroundColor,
+ hoverNode,
},
})
},