Run the weather layer's frame readiness and render requests through the frame port

The weather globe rendering had left the Cesium allow-list but still
listened to the scene's postRender event to admit, install and retire
frames, and asked the scene for renders directly. It now uses the frame
port, looked up the same injectable way as its globe, camera and credits
ports.
This commit is contained in:
Sameh Khamis committed 2026-11-07 01:04:47 -08:00
1 parent 6386034add
commit d0aa8d8f7d
3 files changed
+39 -27

No files matched your search

+2 -1
View File
@@ -8,6 +8,7 @@ import { createShellScene } from './shellFixture.mjs';
import { fakeGlobePort } from '../../testSupport/fakeGlobePort.mjs';
import { formatScaleLabel } from '../../ui/unitLabels.js';
import { bindFakeCesiumCamera } from '../../testSupport/fakeCameraPort.mjs';
import { fakeSceneFrame } from '../../testSupport/fakeCesiumScene.mjs';
const times = ['2026-09-15T20:00:00.000Z', '2026-09-15T20:05:00.000Z'];
const base = {
@@ -615,7 +616,7 @@ function globeViewer() {
requestRender() {},
},
};
bindFakeCesiumCamera(viewer);
bindFakeCesiumCamera(viewer, { frame: fakeSceneFrame(viewer) });
const globe = fakeGlobePort();
const owed = [];
const credits = {