fix(embed): an inline panel's timer frames move the camera, take input and run the clock again

When a host stops animation frames, the panel drew from a timer with the
viewer's render(): the camera's flight and input, the clock's tick, then a
draw if due. Through the frame port it called renderNow(), which on Cesium
only forced a draw, so flights stood still, drags and zooms did nothing
and the clock stopped. renderNow takes {ifDue: true}: one tick of the
loop as its own would run it, drawing only a frame that is due (the
widget's render() on Cesium; the stub's tick without a forced request).
This commit is contained in:
Sameh Khamis committed 2026-11-14 01:43:13 -08:00
1 parent f4beb676ae
commit 03a7d8827a
9 files changed
+86 -22

No files matched your search

+2 -2
View File
@@ -346,8 +346,8 @@ export function createStubRenderer(options = {}) {
suspend(hidden) {
suspended = Boolean(hidden);
},
renderNow() {
requestRender('renderNow');
renderNow({ ifDue = false } = {}) {
if (!ifDue) requestRender('renderNow');
tick();
},
renderOnce({ timeoutMs } = {}) {