feat: routes overview - fix distanceScale value

This commit is contained in:
Azgaar 2024-08-01 13:36:14 +02:00
parent 28bc6ccde6
commit 834d6f6cc7
17 changed files with 328 additions and 130 deletions

View file

@ -601,6 +601,11 @@ window.Routes = (function () {
return routePoints;
}
function getLength(routeId) {
const path = routes.select("#route" + routeId).node();
return path.getTotalLength();
}
function remove(route) {
const routes = pack.cells.routes;
@ -630,6 +635,7 @@ window.Routes = (function () {
generateName,
preparePointsArray,
getPoints,
getLength,
remove
};
})();