dashed lines for automatic edges

This commit is contained in:
David Mosbach 2023-05-05 17:00:56 +02:00
parent 29d2ab5f05
commit 1740c1a1e2

View File

@ -240,6 +240,7 @@ const Graph = ForceGraph()
context.fillText(label, 0, 0); context.fillText(label, 0, 0);
context.restore(); context.restore();
}) })
.linkLineDash(edge => edge.actionData.mode == 'automatic' && [2, 3])
.onNodeDragEnd(node => { .onNodeDragEnd(node => {
node.fx = node.x; node.fx = node.x;
node.fy = node.y; node.fy = node.y;