spacemap 0.1.8 → 0.1.10
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 +370 -254
- package/dist/spacemap.js +370 -254
- package/index.d.ts +18 -1
- package/index.js +3290 -2764
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -892,6 +892,10 @@ export declare interface Host {
|
|
|
892
892
|
/** Root of the live tracking feed, rewritten every few minutes on an origin
|
|
893
893
|
* of its own so it never waits on a catalogue deploy. */
|
|
894
894
|
liveUrl: string;
|
|
895
|
+
/** Root of the surface tile pyramids, which are too many files for the
|
|
896
|
+
* data export's host. Empty where none is served: bodies then draw their
|
|
897
|
+
* whole-globe tiers alone. */
|
|
898
|
+
tilesUrl: string;
|
|
895
899
|
/** BCP-47 tag of the reading language: picks localized names and drives Intl. */
|
|
896
900
|
locale: () => string;
|
|
897
901
|
messages: CoreMessages;
|
|
@@ -1874,6 +1878,10 @@ export declare class SpaceMap {
|
|
|
1874
1878
|
private limits;
|
|
1875
1879
|
private initialFocusPending;
|
|
1876
1880
|
private pendingFocusId;
|
|
1881
|
+
/** The first load, started once. */
|
|
1882
|
+
private opening;
|
|
1883
|
+
/** Counts navigations: a later one supersedes an earlier one still on its way. */
|
|
1884
|
+
private navigation;
|
|
1877
1885
|
/** Retires the host's hold on the camera. Kept so that a second hold, or
|
|
1878
1886
|
* unmounting, can take the camera off the hold before it. */
|
|
1879
1887
|
private retireCameraHold;
|
|
@@ -1913,6 +1921,7 @@ export declare class SpaceMap {
|
|
|
1913
1921
|
getSubsolarPoint(id: string): LonLat | null;
|
|
1914
1922
|
/* Excluded from this release type: load */
|
|
1915
1923
|
/* Excluded from this release type: open */
|
|
1924
|
+
private openOnce;
|
|
1916
1925
|
/* Excluded from this release type: applyInitialView */
|
|
1917
1926
|
/* Excluded from this release type: mount */
|
|
1918
1927
|
/** Hang a control in one of the map's corners; top-right unless the control
|
|
@@ -1937,9 +1946,15 @@ export declare class SpaceMap {
|
|
|
1937
1946
|
/**
|
|
1938
1947
|
* Fly the camera to a body, or to a named feature on one. Resolves when the
|
|
1939
1948
|
* flight lands. Whatever the target leaves out the map frames itself, so
|
|
1940
|
-
* `{ body }` alone is the ordinary way to move.
|
|
1949
|
+
* `{ body }` alone is the ordinary way to move. A body the map has not
|
|
1950
|
+
* loaded is loaded first. The clock stays where the host set it.
|
|
1941
1951
|
*/
|
|
1942
1952
|
flyTo(target: CameraTarget): Promise<void>;
|
|
1953
|
+
/* Excluded from this release type: goTo */
|
|
1954
|
+
/** The nearest body `body` hangs off that has a place. */
|
|
1955
|
+
private placedAncestor;
|
|
1956
|
+
/** The renderer, once the map draws. Null when it never will. */
|
|
1957
|
+
private rendering;
|
|
1943
1958
|
/** Turn to a feature on the body already framed, without travelling to it —
|
|
1944
1959
|
* the move a click on its label makes. Resolves when the camera comes
|
|
1945
1960
|
* round. */
|
|
@@ -1994,6 +2009,8 @@ export declare class SpaceMap {
|
|
|
1994
2009
|
/** Camera distance in scene units: what was asked for, else a distance that
|
|
1995
2010
|
* frames the body, else where the camera already is. */
|
|
1996
2011
|
private framing;
|
|
2012
|
+
/** How far the camera is from what it orbits, in scene units. */
|
|
2013
|
+
private cameraDistance;
|
|
1997
2014
|
/* Excluded from this release type: focusOnBody */
|
|
1998
2015
|
/* Excluded from this release type: snapToBody */
|
|
1999
2016
|
/* Excluded from this release type: snapToBodyFacing */
|