spacemap 0.1.22 → 0.1.24

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
@@ -180,6 +180,8 @@ export declare interface CameraPose {
180
180
  /** The camera as it stands. `body` is what it orbits, which is also what the
181
181
  * map draws in most detail. */
182
182
  export declare interface CameraState extends Required<CameraAngles> {
183
+ /** What `lat`, `lon` and `distanceKm` are measured from: the focused body,
184
+ * or the one a landed probe in focus stands on. */
183
185
  body: string;
184
186
  lat: number;
185
187
  lon: number;
@@ -189,7 +191,7 @@ export declare interface CameraState extends Required<CameraAngles> {
189
191
  /** Somewhere to move the camera to. What is left out is left as it is. */
190
192
  export declare interface CameraTarget extends CameraOptions {
191
193
  /** A feature on `body` to look at, rather than the body as a whole. Its
192
- * size frames the view, so `distanceKm` is not needed. */
194
+ * size frames the view: `lat`, `lon` and `distanceKm` are not read. */
193
195
  feature?: FeatureRef;
194
196
  }
195
197
 
@@ -931,7 +933,7 @@ export declare interface FocusChange {
931
933
  body: Body_2 | undefined;
932
934
  /** The first settle after boot. */
933
935
  initial: boolean;
934
- /** The camera orbits a surface feature; `body` is its host. */
936
+ /** The camera moved onto a surface feature of `body`. */
935
937
  feature: boolean;
936
938
  }
937
939
 
@@ -1994,6 +1996,10 @@ export declare class SpaceMap {
1994
1996
  /* Excluded from this release type: webglError */
1995
1997
  /* Excluded from this release type: contextLost */
1996
1998
  /* Excluded from this release type: focusedBody */
1999
+ /* Excluded from this release type: cameraBody */
2000
+ /** A move onto a surface feature is under way: the focus it hands the
2001
+ * host is that move's. */
2002
+ private movingToFeature;
1997
2003
  /* Excluded from this release type: attribution */
1998
2004
  /** Objects of the host's own: a spacecraft, a station, a body the export
1999
2005
  * has never heard of. */
@@ -2050,7 +2056,8 @@ export declare class SpaceMap {
2050
2056
  /** What the map knows about an object it has loaded; undefined for one it
2051
2057
  * has not, which for a small body may simply mean not yet. */
2052
2058
  getBody(id: string): Body_2 | undefined;
2053
- /** The object the camera orbits. A surface feature reports its host body. */
2059
+ /** The object in view. For a landed probe this is the probe, and the
2060
+ * camera orbits the body it stands on. */
2054
2061
  getFocusedBody(): Body_2 | undefined;
2055
2062
  /** Ids of the objects orbiting `id` that this map has loaded. Loading is
2056
2063
  * driven by focus and by the clock, so the list grows as the reader moves. */
@@ -2123,9 +2130,10 @@ export declare class SpaceMap {
2123
2130
  private placedAncestor;
2124
2131
  /** The renderer, once the map draws. Null when it never will. */
2125
2132
  private rendering;
2126
- /** Turn to a feature on the body already framed, without travelling to it —
2127
- * the move a click on its label makes. Resolves when the camera comes
2128
- * round. */
2133
+ /** Turn to a feature on the body already framed, without travelling to it.
2134
+ * This is the move a click on its label makes. On another body the camera
2135
+ * flies to the feature, as {@link SpaceMap.flyTo} does. Resolves when the
2136
+ * camera comes round. */
2129
2137
  panTo(target: FeatureTarget): Promise<void>;
2130
2138
  /**
2131
2139
  * Put the camera at a place at once, with no flight. Use it to restore a