Draw the context rim through the renderer's draw port

The Contacts layer's 250 km rim is now an outline-only ellipse in a draw
set of its own, taken from drawOf(viewer) when it is first drawn: the
same colour, height and radius, moved only after the subject travels 250
m, cleared with the subject and disposed with the layer. A rim drawn on
another viewer is redrawn on the current one. The Cesium draw port draws
the outlines of ellipses it does not clamp as the entities did, with an
outline geometry.

The layer's positions are plain ECEF from src/geo rather than Cesium
objects, the compass reads the camera through its port's pose, and its
flights go through cameraOf from the renderer bridge. Its four files
leave the Cesium allow-list; a caller handing the layer a viewer of its
own loads ./render/cesium/unbound first, as for earthquakes.
This commit is contained in:
Sameh Khamis committed 2026-11-06 20:39:36 -08:00
1 parent 6e23d2aac9
commit df1143485a
14 files changed
+272 -154

No files matched your search

+2 -1
View File
@@ -49,6 +49,7 @@ import { NAVIGATION_AUTHORITY_EVENT } from '../navigationPolicy.js';
import { withEntityRecord } from './entityRecords.js';
import { framePortFor } from '../testSupport/fakeFramePort.mjs';
import { bindFakeCesiumCamera } from '../testSupport/fakeCameraPort.mjs';
import { fakeDrawPort } from '../testSupport/fakeDrawPort.mjs';
const militaryAwarenessSource = readLayerSource(
new URL('./militaryAwareness.js', import.meta.url),
@@ -184,7 +185,7 @@ function installAwarenessRuntime({
},
container: new FakeElement(),
};
bindFakeCesiumCamera(viewer);
bindFakeCesiumCamera(viewer, { draw: fakeDrawPort() });
const layers = new Map(
AWARENESS_DEPENDENCIES.map((layerId) => [
layerId,