From 84f8c888ff3fb78326460766bcc8e36142016eb5 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 8 Dec 2014 01:06:45 +0200 Subject: straight links (one line, SVG rocks) --- src/rz_core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rz_core.js b/src/rz_core.js index 4dfda95b..772fc9e2 100644 --- a/src/rz_core.js +++ b/src/rz_core.js @@ -618,7 +618,7 @@ function tick(e) { var dx = d.__dst.x - d.__src.x, dy = d.__dst.y - d.__src.y, dr = Math.sqrt(dx * dx + dy * dy); - d_val = "M" + d.__src.x + "," + d.__src.y + "A" + dr + "," + dr + " 0 0,1 " + d.__dst.x + "," + d.__dst.y; + d_val = "M" + d.__src.x + "," + d.__src.y + "L" + d.__dst.x + "," + d.__dst.y; // update ghostlink position ghost = $(this.nextElementSibling); ghost.attr("d", d_val); -- cgit v1.3.1