sparser data transfers

This commit is contained in:
vcoppe committed 2026-10-18 16:20:32 +02:00
1 parent 4583874e7e
commit a07da16163
15 files changed
+22 -24

No files matched your search

+1 -1
View File
@@ -56,6 +56,7 @@ async function point(index: number): Promise<SelectionPoint | undefined> {
}
const segment = intervalAt(slopeSegmentStarts, index);
return {
slope: data.slope[index],
time: data.timestamps[index],
slopeSegmentSlope: data.slopeSegmentSlopes[segment],
slopeSegmentDistance: data.slopeSegmentDistances[segment],
@@ -66,7 +67,6 @@ export const exampleStatistics: SelectionStatistics = {
global: data.global,
length,
totalDistance: Float64Array.from(data.totalDistance),
slope: Float64Array.from(data.slope),
lng: Float64Array.from(data.lng),
lat: Float64Array.from(data.lat),
ele: Float64Array.from(data.ele),