Keep aircraft, installation and viewshed state off Cesium objects

The aircraft layers' model spec key, IR boost and belly offset and the
billboards' large-icon flag move into aircraftVisuals, one store shared by
flights, military and local ADS-B. Installation markers' last drawn height
and selection move into installationMarkers. The CCTV viewshed QA tag is now
the viewshedCameraId record field, which qa-cctv-v2 reads through
entityRecords. Test fixtures drop a placement flag nothing reads.
This commit is contained in:
Sameh Khamis committed 2026-11-03 09:54:41 -08:00
1 parent 2394703c14
commit 04a70d59e9
11 files changed
+84 -40

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ for (const layer of LAYERS) {
// `_iconKind` is identity for every unconverted contact (see
// tr3bRegistry.test.mjs) — it only swaps the glyph for a contact the
// operator explicitly converted into a TR-3B.
assert.match(source, /bb\.image\s*=\s*aircraftIcon\(\s*_iconKind\(\s*icao24,\s*meta\?\.klass,?\s*\)(,\s*bb\._gevIconLarge\s*\?\s*TRACKED_ICON_PX\s*:\s*undefined)?,?\s*\)/,
assert.match(source, /bb\.image\s*=\s*aircraftIcon\(\s*_iconKind\(\s*icao24,\s*meta\?\.klass,?\s*\)(,\s*aircraftVisuals\.read\(bb\)\?\.iconLarge\s*\?\s*TRACKED_ICON_PX\s*:\s*undefined)?,?\s*\)/,
'near contacts and model fallbacks retain the class-derived aircraft silhouette');
assert.match(source, /bb\.rotation\s*=\s*0;/,
'far dots are reset to a rotation-free presentation');
+1 -4
View File
@@ -97,7 +97,7 @@ for (const fixture of LAYERS) {
// The handoff state: the fleet tick hid the sprite and showed the model.
fixture.seed({
billboardShow: false,
models: [[ICAO, { ready: true, show: true, _gevPlacementReady: true }]],
models: [[ICAO, { ready: true, show: true }]],
});
assert.ok(
nearbyIcaos(fixture.layer).includes(ICAO),
@@ -136,7 +136,6 @@ for (const fixture of LAYERS) {
ready: false,
show: true,
scale: 0,
_gevPlacementReady: false,
}]],
});
assert.ok(
@@ -160,7 +159,6 @@ for (const fixture of LAYERS) {
models: [[ICAO, {
ready: true,
show: true,
_gevPlacementReady: true,
modelMatrix,
computedScale: COMPUTED_SCALE,
}]],
@@ -191,7 +189,6 @@ for (const fixture of LAYERS) {
ready: false,
show: true,
scale: 0,
_gevPlacementReady: false,
modelMatrix: Cesium.Matrix4.clone(Cesium.Matrix4.IDENTITY),
}]],
});