mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Read the voice actions' camera and picks through the renderer ports and take them off the Cesium list
The voice actions now take the camera pose, view target picks and screen projection from the camera and query ports, and do their ellipsoid and bounding-sphere maths with the geo modules. The HUD hands its own camera port to the basemap label lookup. The only scene object still read is the canvas, for its size.
This commit is contained in:
1 parent
491c58cdc6
commit
8480abf41c
6 files changed
+148
-106
No files matched your search
@@ -26,6 +26,7 @@ import { presentResult } from './resultDisplay.js';
|
||||
import { attachVoiceResult } from './speech.js';
|
||||
import { withEntityRecord } from '../data/entityRecords.js';
|
||||
import { bindFakeCesiumCamera } from '../testSupport/fakeCameraPort.mjs';
|
||||
import { fakeSceneQuery } from '../testSupport/fakeCesiumScene.mjs';
|
||||
import { cameraOf } from '../render/rendererOf.js';
|
||||
|
||||
test('every live basemap is reachable by its own id — no enum value without a voice alias', () => {
|
||||
@@ -2668,6 +2669,7 @@ function createPrewarmHarness({ pickPosition, positionCartographic } = {}) {
|
||||
},
|
||||
},
|
||||
};
|
||||
bindFakeCesiumCamera(viewer, { query: fakeSceneQuery(viewer) });
|
||||
return { viewer, calls, fireMoveEnd: () => moveEndListener?.(), hasListener: () => !!moveEndListener };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user