mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
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) =>
|
||||
|
||||
Reference in new issue
Block a user