fixes print

This commit is contained in:
Christian Beutel
2024-12-02 20:48:58 +01:00
parent b40505d287
commit a40e1be511
2 changed files with 8 additions and 8 deletions

View File

@@ -515,7 +515,7 @@ export class ElevationProfile {
tickColor: "#0002"
},
ticks: {
stepSize: 1,
stepSize: 0.1,
align: "inner",
display: this.settings.displayDistanceLabels,
color: this.settings.labelColor,
@@ -794,7 +794,7 @@ export class ElevationProfile {
if (color !== prevColor) {
const percentDone = this.cumulatedDistance[i] / this.cumulatedDistance[this.cumulatedDistance.length - 1]
this.gradient.addColorStop(percentDone, color);
prevColor = color;
}
@@ -978,7 +978,7 @@ export class ElevationProfile {
}
}
}
this.grade.push(this.grade.at(-1) ?? 0);
this.cumulatedDPlus.push(cumulatedDPlus);