summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-12 22:57:55 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-12 22:57:55 +0100
commit9f1f7bb5c4c32072db0bf38b192a8e892405b869 (patch)
tree0e14596a67114f437dfbc103c9684a615bc47a77 /dist
parent92d7a57d21405d9253aed332e7686f0edd109718 (diff)
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 <fieldset disabled> in cylindrical mode (opacity 0.45), so the dead controls are visibly inert. * dist: rebuilt.
Diffstat (limited to 'dist')
-rw-r--r--dist/gipfel/gipfel_bg.wasmbin555301 -> 555746 bytes
-rw-r--r--dist/gipfel/style.css11
2 files changed, 11 insertions, 0 deletions
diff --git a/dist/gipfel/gipfel_bg.wasm b/dist/gipfel/gipfel_bg.wasm
index 542019e..01bc96c 100644
--- a/dist/gipfel/gipfel_bg.wasm
+++ b/dist/gipfel/gipfel_bg.wasm
Binary files 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;
+}