mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Read the camera verbs' and voice actions' canvas from the renderer
The camera verbs size their keyhole fit by the renderer's canvas and listen on it for the user's input, and the voice actions size their view samples by it, rather than reaching through `viewer.scene`; a viewer with no renderer bound answers with its own canvas, the same element. The test fakes give their viewers a canvas, and a fake camera binding's renderer reports the fake viewer's.
This commit is contained in:
1 parent
20fdfd492e
commit
b47aa5f3de
14 files changed
+46
-9
No files matched your search
@@ -1111,6 +1111,7 @@ test('a route hidden from Draw is not flown; the newest visible one is', () => {
|
||||
test('a frame port bound after the verbs started runs the next motion', () => {
|
||||
// A viewer with no renderer yet, so no frame port to listen to.
|
||||
const viewer = {
|
||||
canvas: { addEventListener() {}, removeEventListener() {} },
|
||||
scene: { canvas: { addEventListener() {}, removeEventListener() {} } },
|
||||
};
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user