mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-12-02 10:02:12 +00:00
fix speed computation when no time data
This commit is contained in:
@@ -1982,7 +1982,8 @@ function timeWindowSmoothing(
|
|||||||
): number[] {
|
): number[] {
|
||||||
return windowSmoothing(
|
return windowSmoothing(
|
||||||
points.length,
|
points.length,
|
||||||
(index1, index2) => points[index2].time?.getTime() - points[index1].time?.getTime() || 0,
|
(index1, index2) =>
|
||||||
|
points[index2].time?.getTime() - points[index1].time?.getTime() || 2 * window,
|
||||||
window,
|
window,
|
||||||
compute
|
compute
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user