mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Attach the tools, data and controls bound to one globe as scene parts
Each phase builds its session objects once (shell, layer manager and presentation, Director, annotation board, Draw, Import, voice, debug handle) and registers the parts bound to one globe: the shell's later attachments, Cockpit clouds, the catalog binding and sonar, the Director's scene, the Cesium or Navara tools and the debug handle's globe fields. A page with a scene host attaches them to every engine; a host that never switches attaches them once, as before. The shell releases its globe before the data layers detach, and the Navara notice goes with its engine.
This commit is contained in:
1 parent
061ed1b682
commit
2bac200c01
8 files changed
+432
-170
No files matched your search
@@ -13,9 +13,14 @@ test('the controls pass the scene engine to the shell', () => {
|
||||
const controls = read('./controls.js');
|
||||
assert.match(
|
||||
controls,
|
||||
/scene: \{ viewer, engine, mapStackController, operations \}/,
|
||||
/const \{ viewer, engine, mapStackController, operations \} = scene;/,
|
||||
);
|
||||
assert.match(controls, /new Controls\(viewer, \{[\s\S]*?\n\s+engine,\n/);
|
||||
// A later globe reaches the shell with its own engine.
|
||||
assert.match(
|
||||
controls,
|
||||
/styleManager\.attachScene\(\{\s+viewer: next\.viewer,\s+engine: next\.engine,/,
|
||||
);
|
||||
});
|
||||
|
||||
test('the shell initializes the world overlay on its engine', () => {
|
||||
|
||||
Reference in new issue
Block a user