fix(satellites): the ISS ring follows its class through re-enable and rebuilds and stays while tracked; a mission group outranks geo; an Unknown UCS purpose is no evidence; the UNK grace is stated in calendar years

This commit is contained in:
Sameh Khamis committed 2026-11-08 15:16:01 -08:00
1 parent 83dd1af22e
commit eaf2b8f5b4
8 files changed
+142 -19

No files matched your search

+14 -4
View File
@@ -56,22 +56,31 @@ export function createControls({ state: layerState, services, parts, source }) {
if (noradId === layerState._trackedNorad) continue;
point.show = _classVisible(noradId);
}
const issPath = layerState._orbitPaths.get(ISS_NORAD);
if (issPath) issPath.primitive.show = _issOrbitVisible();
_syncIssOrbit();
parts.labels?._syncIssOverlay?.();
layerState._detectionObjects.clear();
}
/** Whether the ISS's ring shows: orbits on, the layer drawing, its class on. */
/**
* Whether the ISS's ring shows: orbits on, the layer drawing, and its
* class on or the ISS tracked (a tracked satellite keeps its ring).
*/
function _issOrbitVisible() {
return (
satelliteVisualsVisible(
layerState._enabled,
layerState._params.showOrbits,
) && _classVisible(ISS_NORAD)
) &&
(_classVisible(ISS_NORAD) || layerState._trackedNorad === ISS_NORAD)
);
}
/** Show or hide the ISS's ring by _issOrbitVisible, if it is built. */
function _syncIssOrbit() {
const issPath = layerState._orbitPaths.get(ISS_NORAD);
if (issPath) issPath.primitive.show = _issOrbitVisible();
}
/**
* The row's info line while the classes rest on old or missing SATCAT
* evidence (`_satcatState`), and an empty one otherwise.
@@ -708,6 +717,7 @@ export function createControls({ state: layerState, services, parts, source }) {
_classVisible,
_applyClassVisibility,
_issOrbitVisible,
_syncIssOrbit,
satelliteVisualsVisible,
satelliteCatalogModeChanged,
methods,