mirror of
git://f0xx.org/ac/ac-be-hub
synced 2026-08-09 20:59:23 +03:00
fix(globe3d=11): zy/zx default 1 as equator/meridian mag multipliers
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -31,7 +31,7 @@ const CONTINENT_INNER_SY = 1.2408477842003853;
|
|||||||
/** Map plate center longitude (extract_red_polygons.py CENTER_LON). */
|
/** Map plate center longitude (extract_red_polygons.py CENTER_LON). */
|
||||||
const MERCATOR_LON_CENTER = (12 * Math.PI) / 180;
|
const MERCATOR_LON_CENTER = (12 * Math.PI) / 180;
|
||||||
/** Default land-plate zoom (?latf / ?lngf / ?zy / ?zx on globe3d=11). */
|
/** 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) {
|
function clampZoomNum(v, min, max, fallback) {
|
||||||
if (typeof v !== 'number' || !isFinite(v)) {
|
if (typeof v !== 'number' || !isFinite(v)) {
|
||||||
@@ -45,8 +45,8 @@ function resolveLandZoom(raw) {
|
|||||||
return {
|
return {
|
||||||
latf: clampZoomNum(r.latf, 0.05, 4, LAND_ZOOM_DEFAULT.latf),
|
latf: clampZoomNum(r.latf, 0.05, 4, LAND_ZOOM_DEFAULT.latf),
|
||||||
lngf: clampZoomNum(r.lngf, 0.05, 4, LAND_ZOOM_DEFAULT.lngf),
|
lngf: clampZoomNum(r.lngf, 0.05, 4, LAND_ZOOM_DEFAULT.lngf),
|
||||||
zy: clampZoomNum(r.zy, -4, 4, LAND_ZOOM_DEFAULT.zy),
|
zy: clampZoomNum(r.zy, 0.05, 4, LAND_ZOOM_DEFAULT.zy),
|
||||||
zx: clampZoomNum(r.zx, -4, 4, LAND_ZOOM_DEFAULT.zx),
|
zx: clampZoomNum(r.zx, 0.05, 4, LAND_ZOOM_DEFAULT.zx),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ function hub_h(string $s): string {
|
|||||||
var supportsLayout = !!(window.CSS && CSS.supports && CSS.supports('object-fit', 'cover'));
|
var supportsLayout = !!(window.CSS && CSS.supports && CSS.supports('object-fit', 'cover'));
|
||||||
var logoEnabled = !!(stage && supportsSvg && supportsLayout);
|
var logoEnabled = !!(stage && supportsSvg && supportsLayout);
|
||||||
|
|
||||||
var logoBuild = '20260704globe26';
|
var logoBuild = '20260704globe27';
|
||||||
|
|
||||||
function hubAsset(rel) {
|
function hubAsset(rel) {
|
||||||
var link = document.querySelector('link[href*="hub.css"]');
|
var link = document.querySelector('link[href*="hub.css"]');
|
||||||
|
|||||||
Reference in New Issue
Block a user