Run the submarine cables layer's sweep and render requests through the frame port

The cables lifecycle and ingestion parts had left the Cesium allow-list
but still hooked the scene's preRender event and asked the scene for
renders directly. They now use the frame port.
This commit is contained in:
Sameh Khamis committed 2026-11-07 01:04:46 -08:00
1 parent 6fc3c78e70
commit 6386034add
3 files changed
+23 -20

No files matched your search

@@ -6,6 +6,7 @@ import { MAP_STACKS } from '../mapStackController.js';
import { fromDegrees, toLonLatH } from '../geo/ellipsoid.js';
import { bindFakeDraw } from '../testSupport/fakeDrawPort.mjs';
import { fakeCameraPort } from '../testSupport/fakeCameraPort.mjs';
import { fakeSceneFrame } from '../testSupport/fakeCesiumScene.mjs';
import {
CABLE_LABEL_DEPTH_DECISION,
CABLE_OVERLAY_COLLISION_CAPACITY,
@@ -586,7 +587,10 @@ function createCableHarness({
camera.port.cancelFlight = () => flights.push('cancel');
camera.port.flyTo = (destination, options) =>
flights.push({ destination, options });
const { draw } = bindFakeDraw(viewer, { camera: camera.port });
const { draw } = bindFakeDraw(viewer, {
camera: camera.port,
frame: fakeSceneFrame(viewer),
});
layer.init(viewer);
/** The layer's live set named `name` (`lines`, `pins`, …). */
const set = (name) =>