spacemap 0.1.12 → 0.1.13
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 +12 -9
- package/dist/spacemap.iife.js +167 -105
- package/dist/spacemap.js +167 -105
- package/index.d.ts +18 -15
- package/index.js +477 -240
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -237,14 +237,15 @@ declare interface CommonOptions {
|
|
|
237
237
|
locale?: string;
|
|
238
238
|
/** Replaces the English wording the map renders itself, one key at a time. */
|
|
239
239
|
messages?: Partial<CoreMessages>;
|
|
240
|
-
/** Draw the imagery whose licence forbids commercial reuse —
|
|
241
|
-
* default, because only the page knows whether it is a commercial
|
|
242
|
-
* Turning it on covers the Uranus map, which otherwise renders in
|
|
243
|
-
* fallback colour,
|
|
244
|
-
* otherwise a place on the map with no sphere to open
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
240
|
+
/** Draw the imagery and models whose licence forbids commercial reuse —
|
|
241
|
+
* off by default, because only the page knows whether it is a commercial
|
|
242
|
+
* one. Turning it on covers the Uranus map, which otherwise renders in
|
|
243
|
+
* its fallback colour, the Huygens descent panorama of Titan, which is
|
|
244
|
+
* otherwise a place on the map with no sphere to open, and the models of
|
|
245
|
+
* a few craft (Buran, Vostok, Lunokhod), which otherwise stay markers;
|
|
246
|
+
* the page accepts each one's terms by asking for it, and the credit line
|
|
247
|
+
* naming its author is a condition of them, not a courtesy. Some maps are
|
|
248
|
+
* ours for spacemap.co alone and this does not reach them. */
|
|
248
249
|
includeNonCommercial?: boolean;
|
|
249
250
|
}
|
|
250
251
|
|
|
@@ -907,11 +908,12 @@ export declare interface Host {
|
|
|
907
908
|
messages: CoreMessages;
|
|
908
909
|
/** Link target of a body's scene label. */
|
|
909
910
|
bodyHref: (id: string, name: string) => string;
|
|
910
|
-
/** How far down the `distribution` ladder this embed may draw surface maps
|
|
911
|
-
* (docs/export-format/textures.md). `open` is
|
|
912
|
-
* `non-commercial` adds
|
|
913
|
-
* `site-only` adds those cleared for spacemap.co
|
|
914
|
-
* `open`: it cannot accept a licence for the page
|
|
911
|
+
/** How far down the `distribution` ladder this embed may draw surface maps,
|
|
912
|
+
* panoramas and craft models (docs/export-format/textures.md). `open` is
|
|
913
|
+
* what anyone may serve, `non-commercial` adds works whose licence bars
|
|
914
|
+
* commercial reuse, and `site-only` adds those cleared for spacemap.co
|
|
915
|
+
* alone. A bare embed gets `open`: it cannot accept a licence for the page
|
|
916
|
+
* it sits on. */
|
|
915
917
|
textures: TextureDistribution;
|
|
916
918
|
}
|
|
917
919
|
|
|
@@ -2360,8 +2362,9 @@ export declare type SystemMapView = {
|
|
|
2360
2362
|
/** Small bodies inside Jupiter's orbit, or from it outward. */
|
|
2361
2363
|
export declare type SystemMapZone = 'inner' | 'outer';
|
|
2362
2364
|
|
|
2363
|
-
/** Who may serve a
|
|
2364
|
-
*
|
|
2365
|
+
/** Who may serve a work, widest first. A body whose map this embed may not
|
|
2366
|
+
* draw renders in its fallback colour, as an untextured body does; a craft
|
|
2367
|
+
* whose model it may not draw stays a marker. */
|
|
2365
2368
|
declare type TextureDistribution = 'open' | 'non-commercial' | 'site-only';
|
|
2366
2369
|
|
|
2367
2370
|
/**
|