From 9f1f7bb5c4c32072db0bf38b192a8e892405b869 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 12 Nov 2026 22:57:55 +0100 Subject: grey out distortion controls in panorama mode; make core skip the fit Confirmed: the cylindrical projection formulas contain no k0/k1/x0 and its distortion derivative trait defaults are NaN, so a level-2 (distortion) fit cannot move anything there. Worse, comp_params zeroed the distortion parameters before the (doomed) calibration - so enabling 'Fit distortion' in panorama mode silently destroyed distortion a rectilinear fit had established. * core: comp_params probes whether the projection actually provides distortion derivatives (NaN trait default = no) and skips both the calibration reset and the level-2 lsq if not. Regression test asserts k0/k1/x0 survive a fit_distortion=true fit in cylindrical mode. * web: the fit-distortion checkbox AND the whole distortion-profiles group now sit in a
in cylindrical mode (opacity 0.45), so the dead controls are visibly inert. * dist: rebuilt. --- dist/gipfel/gipfel_bg.wasm | Bin 555301 -> 555746 bytes dist/gipfel/style.css | 11 +++++++++++ 2 files changed, 11 insertions(+) (limited to 'dist') diff --git a/dist/gipfel/gipfel_bg.wasm b/dist/gipfel/gipfel_bg.wasm index 542019e..01bc96c 100644 Binary files a/dist/gipfel/gipfel_bg.wasm and b/dist/gipfel/gipfel_bg.wasm differ diff --git a/dist/gipfel/style.css b/dist/gipfel/style.css index 942c569..7e01c5c 100644 --- a/dist/gipfel/style.css +++ b/dist/gipfel/style.css @@ -405,3 +405,14 @@ select.textinput { .zoomctrl button + button { border-top: 1px solid rgba(255, 255, 255, 0.15); } + +/* distortion controls group; greyed out and disabled in panorama mode */ +fieldset.distortion { + border: none; + margin: 0; + padding: 0; + min-width: 0; +} +fieldset.distortion:disabled { + opacity: 0.45; +} -- cgit v1.2.3