Move the scene-reading icon orientation helpers into the Cesium adapter

screenProjectedRotation, perspectiveProjectedRotation, horizonOccluder and
cameraPoseSignature read a Cesium scene or camera, so they move unchanged
to src/render/cesium/iconOrientation.js, where the CCTV, radio and transit
rendering (still Cesium-bound) load them. src/data/iconOrientation.js keeps
the label backdrop test and the rotation deadband, and leaves the Cesium
allow-list. Local ADS-B computes its rotation from the camera port's axes
with courseScreenRotation directly, the same answer without a stand-in
scene.

The ./aircraft package entry re-exports src/data/iconOrientation.js, so it
no longer carries the four moved helpers or the PERSPECTIVE_* constants.
This commit is contained in:
Sameh Khamis committed 2026-11-08 05:49:05 -08:00
1 parent d8d6db4389
commit b6e94b8d93
14 files changed
+224 -206

No files matched your search

+6
View File
@@ -2539,6 +2539,7 @@
"src/layers/cctv/projection.js",
"src/layers/cctv/videoPlayback.js",
"src/layers/cctv/rendering.js",
"src/render/cesium/iconOrientation.js",
"src/render/cesium/iconSetPrimitive.js",
"src/data/iconSet.js",
"src/geo/horizon.js",
@@ -2827,6 +2828,7 @@
"src/layers/radio/presentation.js",
"src/layers/radio/queries.js",
"src/layers/radio/rendering.js",
"src/render/cesium/iconOrientation.js",
"src/layers/radio/selection.js",
"src/layers/radio/source.js",
"src/layers/radio/state.js",
@@ -3286,6 +3288,7 @@
"src/layers/wind/source.js",
"src/sources/windBody.js",
"src/data/detection.js",
"src/render/cesium/iconOrientation.js",
"src/data/detectionCohort.js",
"src/data/detectionDraw.js",
"src/data/detectionPolicy.js",
@@ -4406,6 +4409,7 @@
"src/layers/cctv/projection.js",
"src/layers/cctv/videoPlayback.js",
"src/layers/cctv/rendering.js",
"src/render/cesium/iconOrientation.js",
"src/layers/cctv/selection.js",
"src/layers/cctv/pickState.js",
"src/layers/cctv/source.js",
@@ -5636,6 +5640,7 @@
"src/layers/transit/qaMetrics.js",
"src/layers/transit/queries.js",
"src/layers/transit/rendering.js",
"src/render/cesium/iconOrientation.js",
"src/layers/transit/selection.js",
"src/layers/transit/state.js",
"src/layers/transit/testing.js",
@@ -5705,6 +5710,7 @@
"src/layers/transit/policy.js",
"src/layers/transit/queries.js",
"src/layers/transit/rendering.js",
"src/render/cesium/iconOrientation.js",
"src/layers/transit/selection.js",
"src/geo/index.js",
"src/geo/julian.js",