refactor(space): separate satellite and mission layer components

This commit is contained in:
Sameh Khamis committed 2026-09-13 13:12:34 -07:00
1 parent 61db945b21
commit ce0568983a
44 files changed
+8767 -6095

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
export function createControls({ state: layerState, services, parts, source }) {
const methods = {
id: 'rocket-launches',
name: 'Space Missions (30d)',
icon: '🚀',
source: 'Launch Library 2',
updateInterval: 300000,
/** Release only Space Mission camera ownership, preserving layer and selection state. */
releaseCameraOwnership() {
parts.panel.clearMissionRosterHover();
parts.replay.stopMissionReplay();
parts.selection.stopMissionZoomAnchor();
},
getStats() {
return {
count: layerState._count,
orbitMatches: layerState._orbitMatches,
lastUpdate: layerState._lastUpdate,
error: layerState._lastError,
};
},
attachDataManager(dataManager) {
layerState._dataManager = dataManager;
},
};
return { methods };
}