mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-01 04:07:18 +00:00
fix last type error
This commit is contained in:
1 parent
fbd8775528
commit
c778766293
1 file changed
+4
-1
@@ -346,7 +346,8 @@ export class ElevationProfile {
|
||||
grid: {
|
||||
display: false,
|
||||
},
|
||||
reverse: () => id === 'speed' && get(velocityUnits) === 'pace',
|
||||
// the pace axis is reversed: set with the data, which the units change
|
||||
reverse: false,
|
||||
display: false,
|
||||
};
|
||||
});
|
||||
@@ -562,6 +563,8 @@ export class ElevationProfile {
|
||||
global.totalDistance,
|
||||
units.distance
|
||||
);
|
||||
// a faster pace is a lower value, it goes up like a higher speed
|
||||
this._chart.options.scales!.yspeed!.reverse = units.velocity === 'pace';
|
||||
|
||||
this.setVisibility();
|
||||
this.setFill();
|
||||
|
||||
Reference in new issue
Block a user