fixes print
This commit is contained in:
@@ -515,7 +515,7 @@ export class ElevationProfile {
|
|||||||
tickColor: "#0002"
|
tickColor: "#0002"
|
||||||
},
|
},
|
||||||
ticks: {
|
ticks: {
|
||||||
stepSize: 1,
|
stepSize: 0.1,
|
||||||
align: "inner",
|
align: "inner",
|
||||||
display: this.settings.displayDistanceLabels,
|
display: this.settings.displayDistanceLabels,
|
||||||
color: this.settings.labelColor,
|
color: this.settings.labelColor,
|
||||||
@@ -794,7 +794,7 @@ export class ElevationProfile {
|
|||||||
if (color !== prevColor) {
|
if (color !== prevColor) {
|
||||||
const percentDone = this.cumulatedDistance[i] / this.cumulatedDistance[this.cumulatedDistance.length - 1]
|
const percentDone = this.cumulatedDistance[i] / this.cumulatedDistance[this.cumulatedDistance.length - 1]
|
||||||
this.gradient.addColorStop(percentDone, color);
|
this.gradient.addColorStop(percentDone, color);
|
||||||
|
|
||||||
prevColor = color;
|
prevColor = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -978,7 +978,7 @@ export class ElevationProfile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.grade.push(this.grade.at(-1) ?? 0);
|
this.grade.push(this.grade.at(-1) ?? 0);
|
||||||
this.cumulatedDPlus.push(cumulatedDPlus);
|
this.cumulatedDPlus.push(cumulatedDPlus);
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
docImgHeight,
|
docImgHeight,
|
||||||
);
|
);
|
||||||
currentHeight += docImgHeight + 11;
|
currentHeight += docImgHeight + 11;
|
||||||
const elevationProfileHeight = currentHeight - 11;
|
const elevationProfileHeight = currentHeight + 6 - 11;
|
||||||
|
|
||||||
// Waypoints
|
// Waypoints
|
||||||
const canvasContainer = map.getCanvasContainer();
|
const canvasContainer = map.getCanvasContainer();
|
||||||
@@ -161,7 +161,7 @@
|
|||||||
"F",
|
"F",
|
||||||
);
|
);
|
||||||
doc.setTextColor("#ffffff");
|
doc.setTextColor("#ffffff");
|
||||||
doc.setFontSize(9);
|
doc.setFontSize(7);
|
||||||
doc.setFont("fa-solid-900", "normal");
|
doc.setFont("fa-solid-900", "normal");
|
||||||
|
|
||||||
const { w: letterWidth, h: letterHeight } =
|
const { w: letterWidth, h: letterHeight } =
|
||||||
@@ -169,8 +169,8 @@
|
|||||||
|
|
||||||
doc.text(
|
doc.text(
|
||||||
iconText,
|
iconText,
|
||||||
iconPositionX + circleRadius - letterWidth / 2 + 0.1,
|
iconPositionX + circleRadius - letterWidth / 2,
|
||||||
iconPositionY + circleRadius + letterHeight / 2 - 0.1,
|
iconPositionY + circleRadius + letterHeight / 2 - 0.33,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -560,7 +560,7 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="min-w-0 basis-full relative"
|
class="min-w-0 basis-full relative text-xs"
|
||||||
id="elevation-profile"
|
id="elevation-profile"
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user