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);

View File

@@ -128,7 +128,7 @@
docImgHeight,
);
currentHeight += docImgHeight + 11;
const elevationProfileHeight = currentHeight - 11;
const elevationProfileHeight = currentHeight + 6 - 11;
// Waypoints
const canvasContainer = map.getCanvasContainer();
@@ -161,7 +161,7 @@
"F",
);
doc.setTextColor("#ffffff");
doc.setFontSize(9);
doc.setFontSize(7);
doc.setFont("fa-solid-900", "normal");
const { w: letterWidth, h: letterHeight } =
@@ -169,8 +169,8 @@
doc.text(
iconText,
iconPositionX + circleRadius - letterWidth / 2 + 0.1,
iconPositionY + circleRadius + letterHeight / 2 - 0.1,
iconPositionX + circleRadius - letterWidth / 2,
iconPositionY + circleRadius + letterHeight / 2 - 0.33,
);
}
@@ -560,7 +560,7 @@
>
</div>
<div
class="min-w-0 basis-full relative"
class="min-w-0 basis-full relative text-xs"
id="elevation-profile"
></div>
</div>