mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 18:22:25 +00:00
Within 1,500 km of the camera the ISS (NORAD 25544) is drawn as NASA 3D Resources' station model, at its real 109 m span with a 72 px floor, in its usual +XVV attitude from a per-frame SGP4 sample (the follow camera's sample while tracked). Farther out the dot stays; model and dots split the distance range. Selecting the ISS opens a panel beside the existing tracked card with NASA's official ISS live stream, embedded through youtube-nocookie with a fixed video id (no page scraping). Co-Authored-By: Claude Opus 5.5 <[email protected]>
90 lines
4.1 KiB
JavaScript
90 lines
4.1 KiB
JavaScript
import { createControls } from './controls.js';
|
|
import { createCatalog } from './catalog.js';
|
|
import { createCockpitSubject } from './cockpitSubject.js';
|
|
import { createLabels } from './labels.js';
|
|
import { createOrbits } from './orbits.js';
|
|
import { createRendering } from './rendering.js';
|
|
import { createTracking } from './tracking.js';
|
|
import { createTesting } from './testing.js';
|
|
import { createInteraction } from './interaction.js';
|
|
import { createIssLive } from './issLive.js';
|
|
import { createIssModel } from './issModel.js';
|
|
import { createLifecycle } from './lifecycle.js';
|
|
import { createIngestion } from './ingestion.js';
|
|
import { createRecords } from './records.js';
|
|
import { createState } from './state.js';
|
|
|
|
/** Construct one layer with its own scene state and supplied application services. */
|
|
export function createSatellitesLayer({
|
|
services,
|
|
source,
|
|
resolveAsset = (url) => url,
|
|
}) {
|
|
if (typeof source?.readGroup !== 'function')
|
|
throw new TypeError('A satellites source is required');
|
|
const state = createState({ services });
|
|
const parts = {};
|
|
const context = { state, services, parts, source };
|
|
parts.controls = createControls(context);
|
|
parts.catalog = createCatalog(context);
|
|
parts.labels = createLabels(context);
|
|
parts.orbits = createOrbits(context);
|
|
parts.records = createRecords(context);
|
|
parts.rendering = createRendering(context);
|
|
parts.issModel = createIssModel({ ...context, resolveAsset });
|
|
parts.issLive = createIssLive(context);
|
|
parts.tracking = createTracking(context);
|
|
parts.testing = createTesting(context);
|
|
parts.interaction = createInteraction(context);
|
|
parts.lifecycle = createLifecycle(context);
|
|
parts.ingestion = createIngestion(context);
|
|
parts.cockpit = createCockpitSubject(context);
|
|
return Object.assign(
|
|
{},
|
|
parts.controls.methods,
|
|
parts.cockpit.methods,
|
|
parts.lifecycle.methods,
|
|
parts.ingestion.methods,
|
|
{
|
|
satelliteVisualsVisible: parts.controls.satelliteVisualsVisible,
|
|
satelliteCatalogModeChanged: parts.controls.satelliteCatalogModeChanged,
|
|
createIssOverlayEntry: parts.labels.createIssOverlayEntry,
|
|
orbitFrameModelMatrix: parts.orbits.orbitFrameModelMatrix,
|
|
_setTrackedSatelliteRefreshStateForTest:
|
|
parts.testing._setTrackedSatelliteRefreshStateForTest,
|
|
_setSatelliteTrackingRefreshOutcomeForTest:
|
|
parts.testing._setSatelliteTrackingRefreshOutcomeForTest,
|
|
_trackedFrameCartesianForTest:
|
|
parts.testing._trackedFrameCartesianForTest,
|
|
_runSatellitePreRenderForTest:
|
|
parts.testing._runSatellitePreRenderForTest,
|
|
_setDenseCatalogStateForTest: parts.testing._setDenseCatalogStateForTest,
|
|
_clearDenseCatalogStateForTest:
|
|
parts.testing._clearDenseCatalogStateForTest,
|
|
_catalogGroupForTest: parts.testing._catalogGroupForTest,
|
|
_setSatelliteLabelLifecycleStateForTest:
|
|
parts.testing._setSatelliteLabelLifecycleStateForTest,
|
|
_trackIssForTest: parts.testing._trackIssForTest,
|
|
_pendingSatelliteTrackingRestoreForTest:
|
|
parts.testing._pendingSatelliteTrackingRestoreForTest,
|
|
_applyPendingSatelliteTrackingRestoreForTest:
|
|
parts.testing._applyPendingSatelliteTrackingRestoreForTest,
|
|
_removeSatelliteTrackingCandidateForTest:
|
|
parts.testing._removeSatelliteTrackingCandidateForTest,
|
|
_clearSatelliteLabelLifecycleForTest:
|
|
parts.testing._clearSatelliteLabelLifecycleForTest,
|
|
applySatellitePointFocusDeemphasis:
|
|
parts.rendering.applySatellitePointFocusDeemphasis,
|
|
getNextIssPass: parts.orbits.getNextIssPass,
|
|
getNextSatellitePass: parts.orbits.getNextSatellitePass,
|
|
resolveSatelliteForPass: parts.orbits.resolveSatelliteForPass,
|
|
getAnalystRecords: parts.records.getAnalystRecords,
|
|
scoreSatelliteNameMatch: parts.orbits.scoreSatelliteNameMatch,
|
|
findSatelliteOrbitTrackInTle: parts.orbits.findSatelliteOrbitTrackInTle,
|
|
getSatelliteOrbitTrack: parts.orbits.getSatelliteOrbitTrack,
|
|
},
|
|
);
|
|
}
|
|
export { ISS_OVERLAY_SOURCE_ID, ISS_OVERLAY_SOURCE_OPTIONS } from './policy.js';
|
|
export { createSatelliteSource } from './source.js';
|