From 1740c1a1e2c2ab82877fa430f2ae6e9361598366 Mon Sep 17 00:00:00 2001 From: David Mosbach Date: Fri, 5 May 2023 17:00:56 +0200 Subject: [PATCH] dashed lines for automatic edges --- editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/editor.js b/editor.js index f122803..ab6ad51 100644 --- a/editor.js +++ b/editor.js @@ -240,6 +240,7 @@ const Graph = ForceGraph() context.fillText(label, 0, 0); context.restore(); }) + .linkLineDash(edge => edge.actionData.mode == 'automatic' && [2, 3]) .onNodeDragEnd(node => { node.fx = node.x; node.fy = node.y;