Move the flights and military layers onto the renderer ports

The flights and military layers now reach the renderer only through its
ports: motion, queries, state, tracking, enrichment, evidence and policy
read the camera pose, project through the query port, request and
suspend frames through the frame port, and key per-frame caches on the
frames drawn rather than the scene's frame number. Policy is plain data,
the enrichment view test is pose-based, and the tracked aircraft is an
icon in a draw-port set with a plain holder standing in for the entity
that Cockpit, the tracked card and share links read.

The mesh floor sampler can sample through the query port, excluding
named draw sets, and both layers use it that way. A pick of another
layer's tracked icon is never taken for one of a layer's own contacts.

Twelve layer files leave the Cesium allow-list.
This commit is contained in:
Sameh Khamis committed 2026-11-07 18:49:23 -08:00
1 parent 00a0a0dbc7
commit 23d56f8393
40 files changed
+1638 -908

No files matched your search

-12
View File
@@ -21,23 +21,11 @@
"src/layers/cctv/projection.js",
"src/layers/cctv/rendering.js",
"src/layers/firms/rendering.js",
"src/layers/flights/enrichment.js",
"src/layers/flights/evidence.js",
"src/layers/flights/motion.js",
"src/layers/flights/policy.js",
"src/layers/flights/queries.js",
"src/layers/flights/state.js",
"src/layers/flights/tracking.js",
"src/layers/ghostMaps/index.js",
"src/layers/installations/rendering.js",
"src/layers/launches/launchPad.js",
"src/layers/launches/orbitRendering.js",
"src/layers/launches/rendering.js",
"src/layers/military/motion.js",
"src/layers/military/policy.js",
"src/layers/military/queries.js",
"src/layers/military/state.js",
"src/layers/military/tracking.js",
"src/layers/radio/rendering.js",
"src/layers/recentImagery/rendering.js",
"src/layers/satellites/rendering.js",
+4
View File
@@ -91,6 +91,10 @@ const DRAW_FROM_CALLER = new Set([
// Asks `findQuery` instead, and answers null rather than throw until the
// caller has loaded the factory.
'./queries/heights',
// Their fleet icons draw through `drawOf`. Not wholly Cesium-free (pointer
// input still is), but none of their modules loads a factory.
'./layers/flights',
'./layers/military',
]);
/**