spacemap 0.1.7 → 0.1.9
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/README.md +1 -1
- package/dist/spacemap.iife.js +223 -223
- package/dist/spacemap.js +223 -223
- package/index.d.ts +14 -1
- package/index.js +2532 -2544
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1874,6 +1874,10 @@ export declare class SpaceMap {
|
|
|
1874
1874
|
private limits;
|
|
1875
1875
|
private initialFocusPending;
|
|
1876
1876
|
private pendingFocusId;
|
|
1877
|
+
/** The first load, started once. */
|
|
1878
|
+
private opening;
|
|
1879
|
+
/** Counts navigations: a later one supersedes an earlier one still on its way. */
|
|
1880
|
+
private navigation;
|
|
1877
1881
|
/** Retires the host's hold on the camera. Kept so that a second hold, or
|
|
1878
1882
|
* unmounting, can take the camera off the hold before it. */
|
|
1879
1883
|
private retireCameraHold;
|
|
@@ -1913,6 +1917,7 @@ export declare class SpaceMap {
|
|
|
1913
1917
|
getSubsolarPoint(id: string): LonLat | null;
|
|
1914
1918
|
/* Excluded from this release type: load */
|
|
1915
1919
|
/* Excluded from this release type: open */
|
|
1920
|
+
private openOnce;
|
|
1916
1921
|
/* Excluded from this release type: applyInitialView */
|
|
1917
1922
|
/* Excluded from this release type: mount */
|
|
1918
1923
|
/** Hang a control in one of the map's corners; top-right unless the control
|
|
@@ -1937,9 +1942,15 @@ export declare class SpaceMap {
|
|
|
1937
1942
|
/**
|
|
1938
1943
|
* Fly the camera to a body, or to a named feature on one. Resolves when the
|
|
1939
1944
|
* flight lands. Whatever the target leaves out the map frames itself, so
|
|
1940
|
-
* `{ body }` alone is the ordinary way to move.
|
|
1945
|
+
* `{ body }` alone is the ordinary way to move. A body the map has not
|
|
1946
|
+
* loaded is loaded first. The clock stays where the host set it.
|
|
1941
1947
|
*/
|
|
1942
1948
|
flyTo(target: CameraTarget): Promise<void>;
|
|
1949
|
+
/* Excluded from this release type: goTo */
|
|
1950
|
+
/** The nearest body `body` hangs off that has a place. */
|
|
1951
|
+
private placedAncestor;
|
|
1952
|
+
/** The renderer, once the map draws. Null when it never will. */
|
|
1953
|
+
private rendering;
|
|
1943
1954
|
/** Turn to a feature on the body already framed, without travelling to it —
|
|
1944
1955
|
* the move a click on its label makes. Resolves when the camera comes
|
|
1945
1956
|
* round. */
|
|
@@ -1994,6 +2005,8 @@ export declare class SpaceMap {
|
|
|
1994
2005
|
/** Camera distance in scene units: what was asked for, else a distance that
|
|
1995
2006
|
* frames the body, else where the camera already is. */
|
|
1996
2007
|
private framing;
|
|
2008
|
+
/** How far the camera is from what it orbits, in scene units. */
|
|
2009
|
+
private cameraDistance;
|
|
1997
2010
|
/* Excluded from this release type: focusOnBody */
|
|
1998
2011
|
/* Excluded from this release type: snapToBody */
|
|
1999
2012
|
/* Excluded from this release type: snapToBodyFacing */
|