mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-21 19:41:23 +01:00
fix: routes - split routes
This commit is contained in:
parent
b4653c1aff
commit
8bd8e298a0
1 changed files with 1 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue