From 0f09f235a72a2b8539128cdbd1e7f08cb0a26d5f Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Wed, 5 Aug 2026 19:35:19 +0200 Subject: [PATCH] fix(globe3d=11): zy/zx default 1 as equator/meridian mag multipliers Co-authored-by: Cursor --- assets/hub-globe.js | 6 +++--- index.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/hub-globe.js b/assets/hub-globe.js index 4ae14f9..ad91ded 100644 --- a/assets/hub-globe.js +++ b/assets/hub-globe.js @@ -31,7 +31,7 @@ const CONTINENT_INNER_SY = 1.2408477842003853; /** Map plate center longitude (extract_red_polygons.py CENTER_LON). */ const MERCATOR_LON_CENTER = (12 * Math.PI) / 180; /** Default land-plate zoom (?latf / ?lngf / ?zy / ?zx on globe3d=11). */ -const LAND_ZOOM_DEFAULT = { latf: 1.25, lngf: 1, zy: 0, zx: 0 }; +const LAND_ZOOM_DEFAULT = { latf: 1.25, lngf: 1, zy: 1, zx: 1 }; function clampZoomNum(v, min, max, fallback) { if (typeof v !== 'number' || !isFinite(v)) { @@ -45,8 +45,8 @@ function resolveLandZoom(raw) { return { latf: clampZoomNum(r.latf, 0.05, 4, LAND_ZOOM_DEFAULT.latf), lngf: clampZoomNum(r.lngf, 0.05, 4, LAND_ZOOM_DEFAULT.lngf), - zy: clampZoomNum(r.zy, -4, 4, LAND_ZOOM_DEFAULT.zy), - zx: clampZoomNum(r.zx, -4, 4, LAND_ZOOM_DEFAULT.zx), + zy: clampZoomNum(r.zy, 0.05, 4, LAND_ZOOM_DEFAULT.zy), + zx: clampZoomNum(r.zx, 0.05, 4, LAND_ZOOM_DEFAULT.zx), }; } diff --git a/index.php b/index.php index 2d389de..dcfcf91 100644 --- a/index.php +++ b/index.php @@ -187,7 +187,7 @@ function hub_h(string $s): string { var supportsLayout = !!(window.CSS && CSS.supports && CSS.supports('object-fit', 'cover')); var logoEnabled = !!(stage && supportsSvg && supportsLayout); - var logoBuild = '20260704globe26'; + var logoBuild = '20260704globe27'; function hubAsset(rel) { var link = document.querySelector('link[href*="hub.css"]');