Add api endpoint to determine the distance that a token has moved already

This commit is contained in:
Manuel Vögele
2021-04-08 10:45:14 +02:00
parent c66ec46aed
commit 35624a37aa
5 changed files with 29 additions and 12 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ export class DragRulerRuler extends Ruler {
}
}
dragRulerGetRaysFromWaypoints(waypoints, destination) {
static dragRulerGetRaysFromWaypoints(waypoints, destination) {
if ( destination )
waypoints = waypoints.concat([destination]);
return waypoints.slice(1).map((wp, i) => {