From 7b8060e8937756dc66c00ad7d7201cd9be4fefbb Mon Sep 17 00:00:00 2001 From: Antoine Jacquin Date: Sun, 27 Sep 2026 20:24:42 +0200 Subject: [PATCH] =?UTF-8?q?Ajouter=20le=20curseur=20d'intensit=C3=A9=20du?= =?UTF-8?q?=20relief,=20m=C3=A9moris=C3=A9=20et=20partag=C3=A9=20dans=20le?= =?UTF-8?q?=20lien?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- lidar_pipeline/tests/test_mapserve.py | 11 +++++++++ lidar_pipeline/web/map.html | 6 +++++ lidar_pipeline/web/map.js | 34 +++++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 2 deletions(-) diff --git a/lidar_pipeline/tests/test_mapserve.py b/lidar_pipeline/tests/test_mapserve.py index bae5ccb..eae93c7 100644 --- a/lidar_pipeline/tests/test_mapserve.py +++ b/lidar_pipeline/tests/test_mapserve.py @@ -329,6 +329,17 @@ def test_ui_main_layer_and_precision_modes(): assert "'&P=' + STATE.mode" in _MAP_JS +def test_ui_relief_intensity(): + """Curseur d'intensité (contraste) du relief : mémorisé, partagé dans le + lien (&I=, écrit seulement si ≠ 1), masqué en mode précision.""" + from lidar_pipeline.mapui import _MAP_HTML, _MAP_JS + assert 'id="reliefIntensity"' in _MAP_HTML + assert 'min="0.5"' in _MAP_HTML and 'max="2"' in _MAP_HTML and 'step="0.1"' in _MAP_HTML + assert "function clampIntensity(" in _MAP_JS + assert "'contrast(' +" in _MAP_JS + assert "'&I=' +" in _MAP_JS and "seg.I" in _MAP_JS + + def test_map_ui_tile_load_indicator_and_selection_pane(): """Chargement : compteur de tuiles restantes + contour de dalle visible. diff --git a/lidar_pipeline/web/map.html b/lidar_pipeline/web/map.html index e2c60cf..b767438 100644 --- a/lidar_pipeline/web/map.html +++ b/lidar_pipeline/web/map.html @@ -45,6 +45,12 @@ +
+ + + 1× +