Give each engine its own extensions in place of the navaraViews map

What only one engine has now travels with the engine instead of a
WeakMap in navaraMode.js: engine.extensions.navara holds Navara's view,
its SDK classes and the daylight reset, engine.extensions.cesium the
Cesium viewer. The contract documents the field as outside the contract,
and the coupling report counts its reads outside src/globe in place of
the navaraViews reads (27, unchanged).
This commit is contained in:
German Khokhlov committed 2026-11-07 01:28:51 +04:00
1 parent 2213be6566
commit 48988015f1
6 files changed
+61 -47

No files matched your search

+5
View File
@@ -482,6 +482,11 @@
* @property {GlobeLines} lines The layers' dynamic polylines.
* @property {() => void} destroy
* @property {() => boolean} isDestroyed True once destroy() has run.
* @property {{ cesium?: object, navara?: object }} [extensions]
* What only one engine has, under its kind: Cesium's Viewer, Navara's view
* and SDK classes. Not part of the contract: only code written against that
* engine reads it, and scripts/report-engine-coupling.mjs counts each read
* outside src/globe.
*/
export const ENGINE_KINDS = Object.freeze(['cesium', 'navara']);