spacemap 0.1.14 → 0.1.16

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
 
@@ -1237,9 +1238,10 @@ export declare interface Neighbours {
1237
1238
  next: Neighbour | null;
1238
1239
  }
1239
1240
 
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. */
1241
+ /** The nearest entries before and after `current` on the same mission's
1242
+ * traverse that stand somewhere else. A rover often shoots many mosaics at
1243
+ * one stop, so the adjacent rows of the mission-then-time list are mostly
1244
+ * the same spot. */
1243
1245
  export declare function neighboursOf(entries: PanoramaEntry[], current: PanoramaEntry, radiusKm: number): Neighbours;
1244
1246
 
1245
1247
  export declare type Notice = OutOfRangeNotice | CoveragePauseNotice;
@@ -1265,6 +1267,8 @@ export declare interface OrbitalElements {
1265
1267
  w: number;
1266
1268
  ma: number;
1267
1269
  n: number;
1270
+ /** Julian date of the elements: UTC for TLE elements (`equatorial`), as the
1271
+ * TLE gives it; TDB for the others, as the ephemerides give it. */
1268
1272
  epoch: number;
1269
1273
  /**
1270
1274
  * Secular drift rates (deg/day) applied to om and w. Populated for SPICE
@@ -1275,6 +1279,8 @@ export declare interface OrbitalElements {
1275
1279
  omDot?: number;
1276
1280
  wDot?: number;
1277
1281
  q?: number;
1282
+ /** Julian date of perihelion passage, on the time scale of `epoch`. Only for
1283
+ * parabolic orbits. */
1278
1284
  tp?: number;
1279
1285
  /**
1280
1286
  * True when i/om/w are referenced to Earth's mean equator of J2000 instead of
@@ -1361,7 +1367,7 @@ export declare interface PanoramaEntry {
1361
1367
  * `unknown` means the sphere sits at an arbitrary azimuth, so nothing
1362
1368
  * may be drawn or written as a heading. The full set `export/panoramas.py`
1363
1369
  * writes — a wider union would erase the literals and stop checking. */
1364
- orientation?: 'unknown' | 'caption-aligned' | 'matched to an archival sphere';
1370
+ orientation?: 'unknown' | 'caption-aligned' | 'matched to an archival sphere' | 'matched to a controlled mosaic';
1365
1371
  /** `estimated` where the sphere's angular bounds were fitted to a
1366
1372
  * published flat image rather than read from an archive label. */
1367
1373
  geometry?: 'estimated';
@@ -1459,13 +1465,14 @@ export declare class PanoramaView {
1459
1465
  /** Every panorama of the body, mission by mission in time order. */
1460
1466
  getPanoramas(): readonly PanoramaEntry[];
1461
1467
  getCurrent(): PanoramaEntry | null;
1462
- /** The panoramas before and after the current one on its traverse. */
1468
+ /** The nearest panoramas before and after the current one that stand
1469
+ * elsewhere on its traverse. */
1463
1470
  getNeighbours(): Neighbours | null;
1464
1471
  /** Show a panorama: an entry from the list, its id, or its `time,lat,lon`
1465
1472
  * key. Resolves once it is on screen; a newer call supersedes one still
1466
1473
  * in flight. */
1467
1474
  open(target: PanoramaEntry | string): Promise<void>;
1468
- /** Open the previous or next panorama on the traverse, when there is one. */
1475
+ /** Open the previous or next neighbour on the traverse, when there is one. */
1469
1476
  step(key: ArrowKey): Promise<void>;
1470
1477
  private byKey;
1471
1478
  getView(): PanoramaViewState;
@@ -1956,6 +1963,15 @@ export declare class SpaceMap {
1956
1963
  * body not loaded, and until the map has read how it spins, which it does
1957
1964
  * once the camera is on the body or its system. */
1958
1965
  getSubsolarPoint(id: string): LonLat | null;
1966
+ /** Whether this map draws surface tiles at all. False where no tile host is
1967
+ * set, and on a device short of memory: every body then shows its
1968
+ * whole-globe maps alone, and close up they go soft. */
1969
+ tilesEnabled(): boolean;
1970
+ /** Whether tiles sharpen `id`'s surface up close. False for a body without
1971
+ * a tile pyramid this embed may draw, one that is a shape model up close,
1972
+ * and one whose tiles the tile host has failed. Read from the body's own
1973
+ * data, so the answer does not wait for the camera to get there. */
1974
+ hasTiles(id: string): Promise<boolean>;
1959
1975
  /* Excluded from this release type: load */
1960
1976
  /* Excluded from this release type: open */
1961
1977
  private openOnce;
@@ -2254,6 +2270,7 @@ export declare class SystemMap {
2254
2270
  private readonly names;
2255
2271
  private readonly grouping;
2256
2272
  private readonly zones;
2273
+ private readonly rings;
2257
2274
  private readonly places;
2258
2275
  private targets;
2259
2276
  /** Bundles read for the bodies no map file places, by id; null where the
@@ -2335,6 +2352,12 @@ export declare interface SystemMapOptions {
2335
2352
  /** `inner-outer` turns the two belts into the doors of the two zones of
2336
2353
  * small bodies; `belts` leaves them the scenery they are. */
2337
2354
  zones?: 'belts' | 'inner-outer';
2355
+ /** `visible` spans a planetary system's rings band over only the rings
2356
+ * {@link createMap} shows: Saturn's stops at the F ring rather than the
2357
+ * E ring, and Jupiter's and Neptune's, too faint to see, have no band. It
2358
+ * reads the primary's bundle and ring profiles. `all`, the default, spans
2359
+ * every ring. */
2360
+ rings?: 'all' | 'visible';
2338
2361
  }
2339
2362
 
2340
2363
  /**