From 2d373e8aa21cde6b6a157254ff4b7940ea52611a Mon Sep 17 00:00:00 2001 From: Scobiform Date: Sat, 20 Apr 2024 18:48:26 +0200 Subject: [PATCH] Adjust d3 forces #15 --- templates/graph.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/graph.html b/templates/graph.html index 4cc9d51..b54799f 100644 --- a/templates/graph.html +++ b/templates/graph.html @@ -231,9 +231,7 @@ // Set the text color only white for instance nodes ctx.fillStyle = node.type === 'instance' ? '#F9F5F1' : ctx.fillStyle; - - // Draw the text label based on the node type (instance larger) - ctx.fillText(label, node.x, node.y + imgSize / 2 + fontSize); + ctx.fillText(label, node.x, node.y); ctx.restore(); })