mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Follow through the camera port in the remaining tests
- The tests that faked a follow by setting the viewer's tracked entity, or by raising its change event, follow through the camera port (followEntity, or a port with follow and followChanged), and check followedOf: camera handoffs, globe rotation, tilt, ground guard, vessels, ALPR, CCTV, Contacts, radio, orientation, share links and follow offsets, the tracked readout and the shell's camera listeners. - The fake Cesium camera port delivers followChanged from the port itself. - A ride handed to another aircraft is adopted by the follow's change, as the application does, not by the test calling the adoption. - The unbound-factory record lists the scene, the map defaults, share restoration and the World Packet as entries whose caller loads the factories; the map startup test stubs the default renderer load.
This commit is contained in:
1 parent
9a13aeab48
commit
1fbe546531
21 files changed
+476
-148
No files matched your search
@@ -57,8 +57,7 @@ const INJECTED = {};
|
||||
|
||||
/**
|
||||
* Modules whose use of the bridge holds up without the factory: with no
|
||||
* port they read Cesium's `trackedEntity` instead, which is all an unbound
|
||||
* viewer can follow by.
|
||||
* camera port they report nothing followed.
|
||||
*/
|
||||
const FALLS_BACK = new Set(['src/data/followed.js']);
|
||||
|
||||
@@ -192,6 +191,18 @@ const CAMERA_FROM_CALLER = new Set([
|
||||
'./ui/visual-settings',
|
||||
'./application/controls',
|
||||
'./application/data',
|
||||
// The scene binds the renderer it creates (the default one loaded only
|
||||
// when it is given none), so its own viewer needs no factory.
|
||||
'./application/scene',
|
||||
// The map stacks switch through the renderer's map engine or its globe
|
||||
// port (`maps/globeEngine.js`), which a viewer of the caller's own gets
|
||||
// from `./render/cesium/unbound`.
|
||||
'./maps/defaults',
|
||||
// It restores a shared view through the camera, frame and canvas of the
|
||||
// renderer bound to the viewer it is given; it loads no factory.
|
||||
'./ui/share-restoration',
|
||||
// It reads the eye from the camera port's pose, and none without one.
|
||||
'./agent/world-packet',
|
||||
]);
|
||||
|
||||
const pkg = JSON.parse(readFileSync(path.join(root, 'package.json'), 'utf8'));
|
||||
|
||||
Reference in new issue
Block a user