From 0ae9d628fabab8664c38d15bd6b5084a32c8eca2 Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Sat, 16 Oct 2021 00:37:11 +0200
Subject: feat(labels): more sensible label positions

---
 pages/index.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'pages/index.tsx')

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,
         },
       })
     },
-- 
cgit v1.2.3

