Give the Cesium renderer the contract's listener rules and error channel

Frame-phase and draw-set ready listeners now run in subscription order,
skip one removed during delivery, defer one added during it, and hand a
throw to the renderer's error listeners (or reportError) instead of into
Cesium's render loop. The renderer gains on('error' | 'contextLost' |
'contextRestored'); Cesium cannot restore a lost context, so it never sends
contextRestored. Dispose clears every list. renderer.listeners joins the
Cesium checks.
This commit is contained in:
Sameh Khamis committed 2026-11-05 18:18:28 -08:00
1 parent 2e0af3dc0d
commit 35a73b6fda
6 files changed
+144 -19

No files matched your search

+1
View File
@@ -265,6 +265,7 @@ export async function createCesiumSceneRenderer({
capture: ports.capture,
whenSettled,
resize: () => widget.resize(),
on: ports.on,
destroy() {
destroyed = true;
for (const finish of [...watching]) finish('ended');