From 8bd8e298a097259d041d151f34d3139dbcc840d8 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 12 Aug 2024 00:36:40 +0200 Subject: [PATCH] fix: routes - split routes --- modules/ui/routes-editor.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/ui/routes-editor.js b/modules/ui/routes-editor.js index 82411544..3a137623 100644 --- a/modules/ui/routes-editor.js +++ b/modules/ui/routes-editor.js @@ -208,12 +208,10 @@ function editRoute(id) { if (nextPoint) addConnection(cellId, nextPoint[2], newRoute.i); } - const lineGen = d3.line(); - lineGen.curve(ROUTE_CURVES[newRoute.group] || ROUTE_CURVES.default); routes .select("#" + newRoute.group) .append("path") - .attr("d", round(lineGen(newRoutePoints), 1)) + .attr("d", Routes.getPath(newRoute)) .attr("id", "route" + newRoute.i); byId("routeSplit").classList.remove("pressed");