From 7c39bc7124f89aa28aaeaffb60b71af9e6335295 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 17 Aug 2026 10:34:06 +0200 Subject: refactor(web): split ride detail rendering concerns --- web/frontend/ride-detail-map.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/frontend/ride-detail-map.ts') diff --git a/web/frontend/ride-detail-map.ts b/web/frontend/ride-detail-map.ts index bd19412..dcc2b60 100644 --- a/web/frontend/ride-detail-map.ts +++ b/web/frontend/ride-detail-map.ts @@ -1,5 +1,5 @@ import { clamp } from "./ride-detail-logic.js"; -import type { ClimbBounds, RideDetailColors, RideProfilePoint, RideRoute } from "./types.js"; +import type { ClimbBounds, RideMapColors, RideProfilePoint, RideRoute } from "./types.js"; import type { CircleMarker, LeafletMouseEvent, Map as LeafletMap, Polyline } from "leaflet"; type LeafletApi = typeof import("leaflet"); @@ -10,13 +10,13 @@ interface RideDetailMapOptions { route: RideRoute; points: RideProfilePoint[]; climbs: ClimbBounds[]; - colors: RideDetailColors; + colors: RideMapColors; } export class RideDetailMap { private readonly leaflet: LeafletApi; private readonly points: RideProfilePoint[]; - private readonly colors: RideDetailColors; + private readonly colors: RideMapColors; private readonly map: LeafletMap; private readonly climbLayers: (Polyline | null)[]; private readonly routeCursor: CircleMarker; -- cgit v1.2.3