Keep the radio layer's Cesium entities and picks in its rendering part

The radio interaction, selection and navigation parts had left the
Cesium allow-list but still read pick objects, toggled entity
visibility, removed the selection entity, re-ran clustering and read the
Cesium camera. Navigation now reads the camera port's pose; the rest
moves into the rendering part.
This commit is contained in:
Sameh Khamis committed 2026-11-07 01:04:46 -08:00
1 parent a8f41d30fc
commit 045267c841
7 files changed
+76 -52

No files matched your search

+8 -2
View File
@@ -1,6 +1,10 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { bindFakeCesiumCamera } from '../testSupport/fakeCameraPort.mjs';
import {
bindFakeCesiumCamera,
fakeCameraPort,
} from '../testSupport/fakeCameraPort.mjs';
import { bindRenderer } from '../render/rendererOf.js';
import {
buildRadioTunerBand,
buildRadioTunerTicks,
@@ -1652,8 +1656,10 @@ test('Radio recovery preserves closer altitude and caps extreme full-globe zoom'
});
test('Radio camera navigation yields to every live tracked-entity owner', () => {
const viewer = { camera: {} };
const viewer = {};
bindRenderer(viewer, { camera: fakeCameraPort().port });
assert.equal(radioCameraNavigationAllowed(viewer), true);
assert.equal(radioCameraNavigationAllowed({}), false, 'no camera to move');
for (const trackedId of ['flights:abc123', 'military:def456']) {
const trackedEntity = withEntityRecord({}, { trackedId });
viewer.trackedEntity = trackedEntity;