Library as on the artboard (after Locus Map), renamed from Tracks & Points: find on top (text, kind chips with counts, shown on the map only, Folders | List), one folder level at a time with ← up and the path (the up button takes a dragged item a level up), folders first, an eye per row (● shown, ◐ some of a folder, ○ none; a folder's eye shows or hides everything in it), a track's points open from its ›; while searching or in List every match flat with its folder; totals and Hide all at the foot; uploads, new folders and drops on blank space go to the folder open. The elevation profile docked under the map: the map gives up its height; a route shows its own profile once the terrain is sampled (not while driving) and hides it when cleared
CI / check (push) Successful in 22s
CI / deploy (push) Successful in 18s

This commit is contained in:
randy committed 2026-12-03 09:39:19 +01:00
1 parent fc8564fe3b
commit 91fa9cec41
6 files changed
+545 -155

No files matched your search

+9
View File
@@ -45,11 +45,18 @@ export class TrackProfilePanel {
this._stats = this._panel.querySelector(".profile-panel__stats");
this._chartsContainer = this._panel.querySelector(".profile-panel__charts");
this._panel.querySelector(".profile-panel__close").addEventListener("click", () => this.hide());
// Docked under the map (the Design canvas' Desktop): the map gives up
// the profile's height instead of being covered by it.
new ResizeObserver(() => {
const height = this._panel.hidden ? 0 : this._panel.offsetHeight;
document.documentElement.style.setProperty("--profile-h", `${height}px`);
}).observe(this._panel);
}
show(properties) {
const profile = properties.profile;
if (!profile || profile.length === 0) return;
this.shown = properties; // whose profile this is (route.js hides its own)
this._profile = profile.map((point) => ({ ...point, speed_kmh: typeof point.speed_mps === "number" ? point.speed_mps * 3.6 : null }));
addMovingTime(this._profile);
@@ -204,7 +211,9 @@ export class TrackProfilePanel {
}
hide() {
this.shown = null;
this._panel.hidden = true;
document.documentElement.style.setProperty("--profile-h", "0px");
this._plots?.removeEventListener("pointermove", this._onPointerMove);
this._plots?.removeEventListener("pointerleave", this._onPointerLeave);
this._marker.remove();