Skip to content

Commit

Permalink
Adjust d3 forces #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Scobiform committed Apr 20, 2024
1 parent 0337ff9 commit 2d373e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
})
Expand Down

0 comments on commit 2d373e8

Please sign in to comment.