feat(app): construct the globe engine with the viewer

The scene builds the page's Cesium engine right after the viewer
(src/app/globeEngine.js), names the startup Google tileset to it once
loaded, returns it beside the viewer and destroys it before the viewer.
The debug handle exposes it as window.__godsEyeView.engine. Nothing
consumes it yet; render holds taken before the governor is installed
apply at install.

qa-globe-contract now runs on the app's engine (self-built only when the
app has none); a throwaway engine checks creation and destroy leave the
scene untouched.
This commit is contained in:
German Khokhlov committed 2026-10-15 18:02:11 +04:00
1 parent ab2368f3f3
commit a5c98c6b07
7 files changed
+141 -2

No files matched your search

+2 -1
View File
@@ -28,7 +28,7 @@ export function createApplicationTools({
signal,
defer,
}) {
const { viewer, tileset, mapStackController, operations } = scene;
const { viewer, engine, tileset, mapStackController, operations } = scene;
const { styleManager, weatherEffects, cockpitCloudEffects } = controls;
const { dataManager } = data;
const sceneDirector = new SceneDirector(viewer, styleManager, dataManager, {
@@ -144,6 +144,7 @@ export function createApplicationTools({
window.__godsEyeView = {
viewer,
engine,
styleManager,
tileset,
dataManager,