Files
gods-eye-view/src/geo/index.js
T
German Khokhlov b8305de14b Run the Navara paths without the Cesium SDK, and load it on demand for the features that still build on it
Every Cesium read that a Navara page made was surveyed with the strict acceptance (GEV_QA_CESIUM_TRAP=record). Math on those paths now uses src/geo: screen annotations, weather and wind center readings, cyclone picks, scene data pack polygons and images (new navaraGeometry.js), the awareness subject, the orbit offset of camera verbs, voice frame_overhead, the agent world packet and Directions colours and ground picks. The celestial ring's Sun and Moon come from a bit-identical port of Cesium's Simon1994 model, JulianDate and TEME rotation (src/geo/simon1994.js, julianDate.js, transforms.js); a Cesium globe still applies its ICRF rotation once loaded.

Traffic, Street Level, the Nepal event and locator and geo import build on Cesium's math or entity model on either globe; their enable (or the import) now loads the SDK first through src/app/loadCesium.js, synchronously when it is already there. A production page guards the global so a missed read is reported and starts the load. No module reads Cesium while it loads (scripts/check-cesium-load-time.mjs, run by npm test). Cesium.js is still loaded by index.html here.
2026-11-04 17:15:21 +04:00

21 lines
873 B
JavaScript

// Engine-neutral geometry (WGS84, vectors, matrices, local frames) ported from
// CesiumJS 1.138 (Apache-2.0). Never imports Cesium; see docs/CODE-BOUNDARIES.md.
//
// import * as geo from '../geo/index.js';
// geo.cartesian3.fromDegrees(lon, lat, height);
export * as math from './math.js';
export * as ellipsoid from './ellipsoid.js';
export * as cartographic from './cartographic.js';
export * as cartesian2 from './cartesian2.js';
export * as cartesian3 from './cartesian3.js';
export * as matrix3 from './matrix3.js';
export * as matrix4 from './matrix4.js';
export * as quaternion from './quaternion.js';
export * as transforms from './transforms.js';
export * as ellipsoidGeodesic from './ellipsoidGeodesic.js';
export * as boundingSphere from './boundingSphere.js';
export * as julianDate from './julianDate.js';
export * as simon1994 from './simon1994.js';