spacemap 0.1.15 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -390,8 +390,9 @@ export declare interface ElementsOptions {
390
390
  /** What the orbit is round; the Sun when left out. */
391
391
  body?: string;
392
392
  /** The export's own elements: `a` in astronomical units, angles in degrees,
393
- * `n` in degrees a day, `epoch` a Julian date. Set `equatorial` when the
394
- * angles are referenced to Earth's equator rather than the ecliptic. */
393
+ * `n` in degrees a day, `epoch` a Julian date in TDB. Set `equatorial` when
394
+ * the angles are referenced to Earth's equator rather than the ecliptic, as
395
+ * in a TLE: `epoch` is then in UTC, as the TLE gives it. */
395
396
  elements: OrbitalElements;
396
397
  }
397
398
 
@@ -1103,6 +1104,12 @@ export declare interface MapEvents {
1103
1104
  loading: (loading: boolean) => void;
1104
1105
  /** Boot progress, 0 to 1, monotonic within one load. */
1105
1106
  progress: (fraction: number) => void;
1107
+ /** The map is at rest. The camera does not move, and the view has every
1108
+ * picture, model, tile and terrain grid that it needs. The event fires once
1109
+ * each time that the map comes to rest after a change. The clock can run. A
1110
+ * covered map is not at rest. The catalogue points and the star background
1111
+ * do not count. */
1112
+ idle: () => void;
1106
1113
  /** The data could not be loaded. The map stays mounted and empty. */
1107
1114
  error: (message: string) => void;
1108
1115
  /** The export was republished while this map was open: its data is now a
@@ -1237,9 +1244,10 @@ export declare interface Neighbours {
1237
1244
  next: Neighbour | null;
1238
1245
  }
1239
1246
 
1240
- /** The entries before and after `current` on the same mission's traverse.
1241
- * The list is already mission-then-time ordered, so neighbours are adjacent
1242
- * rows until the mission changes. */
1247
+ /** The nearest entries before and after `current` on the same mission's
1248
+ * traverse that stand somewhere else. A rover often shoots many mosaics at
1249
+ * one stop, so the adjacent rows of the mission-then-time list are mostly
1250
+ * the same spot. */
1243
1251
  export declare function neighboursOf(entries: PanoramaEntry[], current: PanoramaEntry, radiusKm: number): Neighbours;
1244
1252
 
1245
1253
  export declare type Notice = OutOfRangeNotice | CoveragePauseNotice;
@@ -1265,6 +1273,8 @@ export declare interface OrbitalElements {
1265
1273
  w: number;
1266
1274
  ma: number;
1267
1275
  n: number;
1276
+ /** Julian date of the elements: UTC for TLE elements (`equatorial`), as the
1277
+ * TLE gives it; TDB for the others, as the ephemerides give it. */
1268
1278
  epoch: number;
1269
1279
  /**
1270
1280
  * Secular drift rates (deg/day) applied to om and w. Populated for SPICE
@@ -1275,6 +1285,8 @@ export declare interface OrbitalElements {
1275
1285
  omDot?: number;
1276
1286
  wDot?: number;
1277
1287
  q?: number;
1288
+ /** Julian date of perihelion passage, on the time scale of `epoch`. Only for
1289
+ * parabolic orbits. */
1278
1290
  tp?: number;
1279
1291
  /**
1280
1292
  * True when i/om/w are referenced to Earth's mean equator of J2000 instead of
@@ -1361,7 +1373,7 @@ export declare interface PanoramaEntry {
1361
1373
  * `unknown` means the sphere sits at an arbitrary azimuth, so nothing
1362
1374
  * may be drawn or written as a heading. The full set `export/panoramas.py`
1363
1375
  * writes — a wider union would erase the literals and stop checking. */
1364
- orientation?: 'unknown' | 'caption-aligned' | 'matched to an archival sphere';
1376
+ orientation?: 'unknown' | 'caption-aligned' | 'matched to an archival sphere' | 'matched to a controlled mosaic';
1365
1377
  /** `estimated` where the sphere's angular bounds were fitted to a
1366
1378
  * published flat image rather than read from an archive label. */
1367
1379
  geometry?: 'estimated';
@@ -1459,13 +1471,14 @@ export declare class PanoramaView {
1459
1471
  /** Every panorama of the body, mission by mission in time order. */
1460
1472
  getPanoramas(): readonly PanoramaEntry[];
1461
1473
  getCurrent(): PanoramaEntry | null;
1462
- /** The panoramas before and after the current one on its traverse. */
1474
+ /** The nearest panoramas before and after the current one that stand
1475
+ * elsewhere on its traverse. */
1463
1476
  getNeighbours(): Neighbours | null;
1464
1477
  /** Show a panorama: an entry from the list, its id, or its `time,lat,lon`
1465
1478
  * key. Resolves once it is on screen; a newer call supersedes one still
1466
1479
  * in flight. */
1467
1480
  open(target: PanoramaEntry | string): Promise<void>;
1468
- /** Open the previous or next panorama on the traverse, when there is one. */
1481
+ /** Open the previous or next neighbour on the traverse, when there is one. */
1469
1482
  step(key: ArrowKey): Promise<void>;
1470
1483
  private byKey;
1471
1484
  getView(): PanoramaViewState;
@@ -2263,6 +2276,7 @@ export declare class SystemMap {
2263
2276
  private readonly names;
2264
2277
  private readonly grouping;
2265
2278
  private readonly zones;
2279
+ private readonly rings;
2266
2280
  private readonly places;
2267
2281
  private targets;
2268
2282
  /** Bundles read for the bodies no map file places, by id; null where the
@@ -2344,6 +2358,12 @@ export declare interface SystemMapOptions {
2344
2358
  /** `inner-outer` turns the two belts into the doors of the two zones of
2345
2359
  * small bodies; `belts` leaves them the scenery they are. */
2346
2360
  zones?: 'belts' | 'inner-outer';
2361
+ /** `visible` spans a planetary system's rings band over only the rings
2362
+ * {@link createMap} shows: Saturn's stops at the F ring rather than the
2363
+ * E ring, and Jupiter's and Neptune's, too faint to see, have no band. It
2364
+ * reads the primary's bundle and ring profiles. `all`, the default, spans
2365
+ * every ring. */
2366
+ rings?: 'all' | 'visible';
2347
2367
  }
2348
2368
 
2349
2369
  /**