Skip to content

Documentation / @interstellar-tools/types / ShadowType

Type Alias: ShadowType ​

ts
type ShadowType = 'sunlit' | 'penumbra' | 'umbra';

Defined in: tracking.ts:187

Where a satellite is relative to Earth's shadow.

  • 'sunlit': the whole Sun is visible from the satellite.
  • 'penumbra': Earth covers part of the Sun.
  • 'umbra': Earth covers the whole Sun.

Returned by earthShadow in @interstellar-tools/tracking.

Example ​

ts
const shadow: ShadowType = 'umbra'; // in eclipse: no sunlight on the panels