@johnmorrisdotca/wakusei-planets 0.34.0 → 0.35.0

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.
Files changed (203) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/NOTICE.md +48 -0
  3. package/README.md +21 -3
  4. package/dist/approaches.d.ts +276 -0
  5. package/dist/approaches.js +255 -0
  6. package/dist/asteroids.d.ts +397 -0
  7. package/dist/asteroids.js +338 -0
  8. package/dist/comets.d.ts +316 -0
  9. package/dist/comets.js +404 -0
  10. package/dist/craft/bepicolombo.d.ts +1 -0
  11. package/dist/craft/bepicolombo.js +923 -0
  12. package/dist/craft/europaclipper.d.ts +1 -0
  13. package/dist/craft/europaclipper.js +342 -0
  14. package/dist/craft/hayabusa2.d.ts +1 -0
  15. package/dist/craft/hayabusa2.js +73 -0
  16. package/dist/craft/juice.d.ts +1 -0
  17. package/dist/craft/juice.js +40 -0
  18. package/dist/craft/lucy.d.ts +1 -0
  19. package/dist/craft/lucy.js +42 -0
  20. package/dist/craft/osirisapex.d.ts +1 -0
  21. package/dist/craft/osirisapex.js +69 -0
  22. package/dist/craft/psyche.d.ts +1 -0
  23. package/dist/craft/psyche.js +30 -0
  24. package/dist/craft/solarorbiter.d.ts +1 -0
  25. package/dist/craft/solarorbiter.js +94 -0
  26. package/dist/data/approaches.d.ts +17 -0
  27. package/dist/data/approaches.js +4192 -0
  28. package/dist/data/asteroids.d.ts +3 -0
  29. package/dist/data/asteroids.js +107 -0
  30. package/dist/data/comets.d.ts +2 -0
  31. package/dist/data/comets.js +36 -0
  32. package/dist/data/places-67p.d.ts +27 -0
  33. package/dist/data/places-67p.js +2 -0
  34. package/dist/data/places-ariel.d.ts +602 -0
  35. package/dist/data/places-ariel.js +27 -0
  36. package/dist/data/places-bennu.d.ts +25 -0
  37. package/dist/data/places-bennu.js +2 -0
  38. package/dist/data/places-callisto.d.ts +3547 -0
  39. package/dist/data/places-callisto.js +155 -0
  40. package/dist/data/places-ceres.d.ts +3436 -0
  41. package/dist/data/places-ceres.js +150 -0
  42. package/dist/data/places-charon.d.ts +349 -0
  43. package/dist/data/places-charon.js +16 -0
  44. package/dist/data/places-dimorphos.d.ts +23 -0
  45. package/dist/data/places-dimorphos.js +2 -0
  46. package/dist/data/places-dione.d.ts +2258 -0
  47. package/dist/data/places-dione.js +99 -0
  48. package/dist/data/places-enceladus.d.ts +2009 -0
  49. package/dist/data/places-enceladus.js +88 -0
  50. package/dist/data/places-eros.d.ts +26 -0
  51. package/dist/data/places-eros.js +2 -0
  52. package/dist/data/places-europa.d.ts +2977 -0
  53. package/dist/data/places-europa.js +130 -0
  54. package/dist/data/places-ganymede.d.ts +4518 -0
  55. package/dist/data/places-ganymede.js +197 -0
  56. package/dist/data/places-iapetus.d.ts +1616 -0
  57. package/dist/data/places-iapetus.js +71 -0
  58. package/dist/data/places-io.d.ts +6012 -0
  59. package/dist/data/places-io.js +262 -0
  60. package/dist/data/places-jupiter.d.ts +46 -0
  61. package/dist/data/places-jupiter.js +3 -0
  62. package/dist/data/places-mars.d.ts +20701 -0
  63. package/dist/data/places-mars.js +942 -0
  64. package/dist/data/places-mercury.d.ts +9256 -0
  65. package/dist/data/places-mercury.js +403 -0
  66. package/dist/data/places-mimas.d.ts +968 -0
  67. package/dist/data/places-mimas.js +43 -0
  68. package/dist/data/places-miranda.d.ts +419 -0
  69. package/dist/data/places-miranda.js +19 -0
  70. package/dist/data/places-moon.d.ts +18849 -0
  71. package/dist/data/places-moon.js +861 -0
  72. package/dist/data/places-oberon.d.ts +235 -0
  73. package/dist/data/places-oberon.js +11 -0
  74. package/dist/data/places-pluto.d.ts +1687 -0
  75. package/dist/data/places-pluto.js +74 -0
  76. package/dist/data/places-rhea.d.ts +3317 -0
  77. package/dist/data/places-rhea.js +145 -0
  78. package/dist/data/places-ryugu.d.ts +87 -0
  79. package/dist/data/places-ryugu.js +5 -0
  80. package/dist/data/places-saturn.d.ts +25 -0
  81. package/dist/data/places-saturn.js +2 -0
  82. package/dist/data/places-tempel-1.d.ts +25 -0
  83. package/dist/data/places-tempel-1.js +2 -0
  84. package/dist/data/places-tethys.d.ts +1222 -0
  85. package/dist/data/places-tethys.js +54 -0
  86. package/dist/data/places-titan.d.ts +7031 -0
  87. package/dist/data/places-titan.js +306 -0
  88. package/dist/data/places-titania.d.ts +418 -0
  89. package/dist/data/places-titania.js +19 -0
  90. package/dist/data/places-triton.d.ts +1457 -0
  91. package/dist/data/places-triton.js +64 -0
  92. package/dist/data/places-umbriel.d.ts +303 -0
  93. package/dist/data/places-umbriel.js +14 -0
  94. package/dist/data/places-venus.d.ts +9290 -0
  95. package/dist/data/places-venus.js +405 -0
  96. package/dist/data/places-vesta.d.ts +2444 -0
  97. package/dist/data/places-vesta.js +107 -0
  98. package/dist/data/roadster.d.ts +8 -0
  99. package/dist/data/roadster.js +686 -0
  100. package/dist/element.js +17 -3
  101. package/dist/places/67p.d.ts +13 -0
  102. package/dist/places/67p.js +14 -0
  103. package/dist/places/ariel.d.ts +13 -0
  104. package/dist/places/ariel.js +14 -0
  105. package/dist/places/bennu.d.ts +13 -0
  106. package/dist/places/bennu.js +14 -0
  107. package/dist/places/callisto.d.ts +13 -0
  108. package/dist/places/callisto.js +14 -0
  109. package/dist/places/ceres.d.ts +13 -0
  110. package/dist/places/ceres.js +14 -0
  111. package/dist/places/charon.d.ts +13 -0
  112. package/dist/places/charon.js +14 -0
  113. package/dist/places/dimorphos.d.ts +13 -0
  114. package/dist/places/dimorphos.js +14 -0
  115. package/dist/places/dione.d.ts +13 -0
  116. package/dist/places/dione.js +14 -0
  117. package/dist/places/enceladus.d.ts +13 -0
  118. package/dist/places/enceladus.js +14 -0
  119. package/dist/places/eros.d.ts +13 -0
  120. package/dist/places/eros.js +14 -0
  121. package/dist/places/europa.d.ts +13 -0
  122. package/dist/places/europa.js +14 -0
  123. package/dist/places/ganymede.d.ts +13 -0
  124. package/dist/places/ganymede.js +14 -0
  125. package/dist/places/iapetus.d.ts +13 -0
  126. package/dist/places/iapetus.js +14 -0
  127. package/dist/places/io.d.ts +13 -0
  128. package/dist/places/io.js +14 -0
  129. package/dist/places/jupiter.d.ts +13 -0
  130. package/dist/places/jupiter.js +14 -0
  131. package/dist/places/mars.d.ts +12 -0
  132. package/dist/places/mars.js +13 -0
  133. package/dist/places/mercury.d.ts +13 -0
  134. package/dist/places/mercury.js +14 -0
  135. package/dist/places/mimas.d.ts +13 -0
  136. package/dist/places/mimas.js +14 -0
  137. package/dist/places/miranda.d.ts +13 -0
  138. package/dist/places/miranda.js +14 -0
  139. package/dist/places/moon.d.ts +12 -0
  140. package/dist/places/moon.js +13 -0
  141. package/dist/places/oberon.d.ts +13 -0
  142. package/dist/places/oberon.js +14 -0
  143. package/dist/places/pluto.d.ts +13 -0
  144. package/dist/places/pluto.js +14 -0
  145. package/dist/places/rhea.d.ts +13 -0
  146. package/dist/places/rhea.js +14 -0
  147. package/dist/places/ryugu.d.ts +13 -0
  148. package/dist/places/ryugu.js +14 -0
  149. package/dist/places/saturn.d.ts +13 -0
  150. package/dist/places/saturn.js +14 -0
  151. package/dist/places/tempel-1.d.ts +13 -0
  152. package/dist/places/tempel-1.js +14 -0
  153. package/dist/places/tethys.d.ts +13 -0
  154. package/dist/places/tethys.js +14 -0
  155. package/dist/places/titan.d.ts +13 -0
  156. package/dist/places/titan.js +14 -0
  157. package/dist/places/titania.d.ts +13 -0
  158. package/dist/places/titania.js +14 -0
  159. package/dist/places/triton.d.ts +13 -0
  160. package/dist/places/triton.js +14 -0
  161. package/dist/places/umbriel.d.ts +13 -0
  162. package/dist/places/umbriel.js +14 -0
  163. package/dist/places/venus.d.ts +13 -0
  164. package/dist/places/venus.js +14 -0
  165. package/dist/places/vesta.d.ts +13 -0
  166. package/dist/places/vesta.js +14 -0
  167. package/dist/places.d.ts +354 -0
  168. package/dist/places.js +357 -0
  169. package/dist/plan/element.d.ts +52 -0
  170. package/dist/plan/element.js +258 -0
  171. package/dist/plan/index.d.ts +2 -0
  172. package/dist/plan/index.js +2 -0
  173. package/dist/plan/layout.d.ts +230 -0
  174. package/dist/plan/layout.js +229 -0
  175. package/dist/plan/svg.d.ts +125 -0
  176. package/dist/plan/svg.js +185 -0
  177. package/dist/roadster.d.ts +415 -0
  178. package/dist/roadster.js +496 -0
  179. package/dist/scene/body.js +10 -9
  180. package/dist/scene/painter.d.ts +1 -1
  181. package/dist/scene/painter.js +23 -7
  182. package/dist/scene/textures.d.ts +2 -2
  183. package/dist/space/beside.d.ts +4 -1
  184. package/dist/space/beside.js +47 -6
  185. package/dist/space/covered.d.ts +102 -0
  186. package/dist/space/covered.js +98 -0
  187. package/dist/space/element.d.ts +21 -1
  188. package/dist/space/element.js +126 -11
  189. package/dist/space/index.d.ts +1 -0
  190. package/dist/space/index.js +1 -0
  191. package/dist/space/scale.d.ts +2 -1
  192. package/dist/space/scale.js +13 -2
  193. package/dist/space/scene.d.ts +10 -0
  194. package/dist/space/scene.js +45 -22
  195. package/dist/spacecraft-facts.d.ts +4 -4
  196. package/dist/spacecraft-facts.js +158 -3
  197. package/dist/spacecraft.d.ts +69 -2
  198. package/dist/spacecraft.js +45 -2
  199. package/dist/textures/mimas-1024.webp +0 -0
  200. package/dist/textures/mimas-512.webp +0 -0
  201. package/dist/version.d.ts +1 -1
  202. package/dist/version.js +1 -1
  203. package/package.json +203 -1
package/dist/element.js CHANGED
@@ -253,6 +253,7 @@ export class WakuseiBody extends HTMLElement {
253
253
  }
254
254
  set bodyLabel(value) {
255
255
  this.#bodyLabel = value;
256
+ this.#labelHeld = undefined;
256
257
  this.#lastAnchors = -1;
257
258
  this.#queue();
258
259
  }
@@ -323,6 +324,9 @@ export class WakuseiBody extends HTMLElement {
323
324
  attributeChangedCallback(name) {
324
325
  if (!this.isConnected)
325
326
  return;
327
+ // the name on the globe is read again when its attributes, the body, a star's numbers or the language change
328
+ if (name === "body" || name === "star" || name === "lang" || NAME_LABEL_ATTRIBUTES.includes(name))
329
+ this.#labelHeld = undefined;
326
330
  if (name === "time" || name === "rate") {
327
331
  this.#clockFromAttributes();
328
332
  this.#syncClock(true);
@@ -527,10 +531,20 @@ export class WakuseiBody extends HTMLElement {
527
531
  const label = this.#labelNow();
528
532
  return { pose, extent, sky: frame.time !== undefined, zoom: this.#zoom, panX: clampPan(this.#panX, extent, this.#zoom), panY: clampPan(this.#panY, extent, this.#zoom), moons, label };
529
533
  }
530
- /** The name on the globe the attributes or the property ask for, with its text in the element's language. */
534
+ #labelHeld;
535
+ /** The name on the globe the attributes or the property ask for, with its text in the element's language: the same object (and key) until something about it changes, so a draw compares by reference. */
531
536
  #labelNow() {
537
+ return this.#labelHeld === undefined ? (this.#labelHeld = this.#readLabel()).options : this.#labelHeld.options;
538
+ }
539
+ #labelKey() {
540
+ return (this.#labelHeld ??= this.#readLabel()).key;
541
+ }
542
+ #readLabel() {
532
543
  const options = this.bodyLabel;
533
- return options === null ? null : { ...options, text: nameLabelText(this.#facts().name, this.getAttribute("lang") === "ja" ? "ja" : "en") };
544
+ if (options === null)
545
+ return { options: null, key: "" };
546
+ const text = nameLabelText(this.#facts().name, this.getAttribute("lang") === "ja" ? "ja" : "en");
547
+ return { options: { ...options, text }, key: nameLabelKey(text, options) };
534
548
  }
535
549
  /** Body radii from the middle of the picture to its edge at zoom 1, for the attributes now. */
536
550
  #extent(moons) {
@@ -754,7 +768,7 @@ export class WakuseiBody extends HTMLElement {
754
768
  }
755
769
  #key(state) {
756
770
  const moons = (state.moons ?? []).map((m) => `${m.id}:${m.x.toFixed(1)},${m.y.toFixed(1)}`).join(";");
757
- return `${this.#star()?.key ?? this.body}|${this.look}|${vectorKey(state.pose.pole)}|${vectorKey(state.pose.meridian)}|${vectorKey(state.pose.light)}|${state.extent.toFixed(2)}|${state.zoom.toFixed(2)}|${state.panX.toFixed(2)},${state.panY.toFixed(2)}|${moons}|${state.label ? nameLabelKey(state.label.text, state.label) : ""}`;
771
+ return `${this.#star()?.key ?? this.body}|${this.look}|${vectorKey(state.pose.pole)}|${vectorKey(state.pose.meridian)}|${vectorKey(state.pose.light)}|${state.extent.toFixed(2)}|${state.zoom.toFixed(2)}|${state.panX.toFixed(2)},${state.panY.toFixed(2)}|${moons}|${this.#labelKey()}`;
758
772
  }
759
773
  // Replacing a view keeps the renderer lease; leaving 3D gives it back.
760
774
  #disposeView(releaseRenderer = false) {
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on 67P/Churyumov-Gerasimenko the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_67P } from "@johnmorrisdotca/wakusei-planets/places/67p";
9
+ *
10
+ * console.log(PLACES_67P.length, "places;", PLACES_67P.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_67P: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on 67P/Churyumov-Gerasimenko: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_67P as DATA } from "../data/places-67p.js";
3
+ /**
4
+ * Every place on 67P/Churyumov-Gerasimenko the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_67P } from "@johnmorrisdotca/wakusei-planets/places/67p";
10
+ *
11
+ * console.log(PLACES_67P.length, "places;", PLACES_67P.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_67P = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Ariel the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_ARIEL } from "@johnmorrisdotca/wakusei-planets/places/ariel";
9
+ *
10
+ * console.log(PLACES_ARIEL.length, "places;", PLACES_ARIEL.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_ARIEL: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Ariel: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_ARIEL as DATA } from "../data/places-ariel.js";
3
+ /**
4
+ * Every place on Ariel the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_ARIEL } from "@johnmorrisdotca/wakusei-planets/places/ariel";
10
+ *
11
+ * console.log(PLACES_ARIEL.length, "places;", PLACES_ARIEL.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_ARIEL = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Bennu the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_BENNU } from "@johnmorrisdotca/wakusei-planets/places/bennu";
9
+ *
10
+ * console.log(PLACES_BENNU.length, "places;", PLACES_BENNU.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_BENNU: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Bennu: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_BENNU as DATA } from "../data/places-bennu.js";
3
+ /**
4
+ * Every place on Bennu the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_BENNU } from "@johnmorrisdotca/wakusei-planets/places/bennu";
10
+ *
11
+ * console.log(PLACES_BENNU.length, "places;", PLACES_BENNU.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_BENNU = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Callisto the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_CALLISTO } from "@johnmorrisdotca/wakusei-planets/places/callisto";
9
+ *
10
+ * console.log(PLACES_CALLISTO.length, "places;", PLACES_CALLISTO.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_CALLISTO: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Callisto: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_CALLISTO as DATA } from "../data/places-callisto.js";
3
+ /**
4
+ * Every place on Callisto the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_CALLISTO } from "@johnmorrisdotca/wakusei-planets/places/callisto";
10
+ *
11
+ * console.log(PLACES_CALLISTO.length, "places;", PLACES_CALLISTO.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_CALLISTO = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Ceres the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_CERES } from "@johnmorrisdotca/wakusei-planets/places/ceres";
9
+ *
10
+ * console.log(PLACES_CERES.length, "places;", PLACES_CERES.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_CERES: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Ceres: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_CERES as DATA } from "../data/places-ceres.js";
3
+ /**
4
+ * Every place on Ceres the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_CERES } from "@johnmorrisdotca/wakusei-planets/places/ceres";
10
+ *
11
+ * console.log(PLACES_CERES.length, "places;", PLACES_CERES.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_CERES = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Charon the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_CHARON } from "@johnmorrisdotca/wakusei-planets/places/charon";
9
+ *
10
+ * console.log(PLACES_CHARON.length, "places;", PLACES_CHARON.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_CHARON: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Charon: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_CHARON as DATA } from "../data/places-charon.js";
3
+ /**
4
+ * Every place on Charon the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_CHARON } from "@johnmorrisdotca/wakusei-planets/places/charon";
10
+ *
11
+ * console.log(PLACES_CHARON.length, "places;", PLACES_CHARON.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_CHARON = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Dimorphos the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_DIMORPHOS } from "@johnmorrisdotca/wakusei-planets/places/dimorphos";
9
+ *
10
+ * console.log(PLACES_DIMORPHOS.length, "places;", PLACES_DIMORPHOS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_DIMORPHOS: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Dimorphos: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_DIMORPHOS as DATA } from "../data/places-dimorphos.js";
3
+ /**
4
+ * Every place on Dimorphos the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_DIMORPHOS } from "@johnmorrisdotca/wakusei-planets/places/dimorphos";
10
+ *
11
+ * console.log(PLACES_DIMORPHOS.length, "places;", PLACES_DIMORPHOS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_DIMORPHOS = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Dione the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_DIONE } from "@johnmorrisdotca/wakusei-planets/places/dione";
9
+ *
10
+ * console.log(PLACES_DIONE.length, "places;", PLACES_DIONE.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_DIONE: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Dione: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_DIONE as DATA } from "../data/places-dione.js";
3
+ /**
4
+ * Every place on Dione the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_DIONE } from "@johnmorrisdotca/wakusei-planets/places/dione";
10
+ *
11
+ * console.log(PLACES_DIONE.length, "places;", PLACES_DIONE.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_DIONE = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Enceladus the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_ENCELADUS } from "@johnmorrisdotca/wakusei-planets/places/enceladus";
9
+ *
10
+ * console.log(PLACES_ENCELADUS.length, "places;", PLACES_ENCELADUS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_ENCELADUS: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Enceladus: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_ENCELADUS as DATA } from "../data/places-enceladus.js";
3
+ /**
4
+ * Every place on Enceladus the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_ENCELADUS } from "@johnmorrisdotca/wakusei-planets/places/enceladus";
10
+ *
11
+ * console.log(PLACES_ENCELADUS.length, "places;", PLACES_ENCELADUS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_ENCELADUS = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Eros the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_EROS } from "@johnmorrisdotca/wakusei-planets/places/eros";
9
+ *
10
+ * console.log(PLACES_EROS.length, "places;", PLACES_EROS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_EROS: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Eros: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_EROS as DATA } from "../data/places-eros.js";
3
+ /**
4
+ * Every place on Eros the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_EROS } from "@johnmorrisdotca/wakusei-planets/places/eros";
10
+ *
11
+ * console.log(PLACES_EROS.length, "places;", PLACES_EROS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_EROS = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Europa the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_EUROPA } from "@johnmorrisdotca/wakusei-planets/places/europa";
9
+ *
10
+ * console.log(PLACES_EUROPA.length, "places;", PLACES_EUROPA.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_EUROPA: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Europa: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_EUROPA as DATA } from "../data/places-europa.js";
3
+ /**
4
+ * Every place on Europa the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_EUROPA } from "@johnmorrisdotca/wakusei-planets/places/europa";
10
+ *
11
+ * console.log(PLACES_EUROPA.length, "places;", PLACES_EUROPA.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_EUROPA = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Ganymede the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_GANYMEDE } from "@johnmorrisdotca/wakusei-planets/places/ganymede";
9
+ *
10
+ * console.log(PLACES_GANYMEDE.length, "places;", PLACES_GANYMEDE.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_GANYMEDE: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Ganymede: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_GANYMEDE as DATA } from "../data/places-ganymede.js";
3
+ /**
4
+ * Every place on Ganymede the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_GANYMEDE } from "@johnmorrisdotca/wakusei-planets/places/ganymede";
10
+ *
11
+ * console.log(PLACES_GANYMEDE.length, "places;", PLACES_GANYMEDE.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_GANYMEDE = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Iapetus the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_IAPETUS } from "@johnmorrisdotca/wakusei-planets/places/iapetus";
9
+ *
10
+ * console.log(PLACES_IAPETUS.length, "places;", PLACES_IAPETUS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_IAPETUS: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Iapetus: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_IAPETUS as DATA } from "../data/places-iapetus.js";
3
+ /**
4
+ * Every place on Iapetus the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_IAPETUS } from "@johnmorrisdotca/wakusei-planets/places/iapetus";
10
+ *
11
+ * console.log(PLACES_IAPETUS.length, "places;", PLACES_IAPETUS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_IAPETUS = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Io the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_IO } from "@johnmorrisdotca/wakusei-planets/places/io";
9
+ *
10
+ * console.log(PLACES_IO.length, "places;", PLACES_IO.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_IO: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Io: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_IO as DATA } from "../data/places-io.js";
3
+ /**
4
+ * Every place on Io the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_IO } from "@johnmorrisdotca/wakusei-planets/places/io";
10
+ *
11
+ * console.log(PLACES_IO.length, "places;", PLACES_IO.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_IO = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Jupiter the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_JUPITER } from "@johnmorrisdotca/wakusei-planets/places/jupiter";
9
+ *
10
+ * console.log(PLACES_JUPITER.length, "places;", PLACES_JUPITER.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_JUPITER: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Jupiter: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_JUPITER as DATA } from "../data/places-jupiter.js";
3
+ /**
4
+ * Every place on Jupiter the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_JUPITER } from "@johnmorrisdotca/wakusei-planets/places/jupiter";
10
+ *
11
+ * console.log(PLACES_JUPITER.length, "places;", PLACES_JUPITER.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_JUPITER = DATA;
@@ -0,0 +1,12 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on the Mars the package knows: the sites first, by date, then the named features by size. A place's `kind` says what it is (`placesOfKind` from `/places` picks by it).
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACES_MARS } from "@johnmorrisdotca/wakusei-planets/places/mars";
8
+ *
9
+ * console.log(PLACES_MARS.length, "places;", PLACES_MARS.filter((place) => place.kind === "landing").length, "landings");
10
+ * ```
11
+ */
12
+ export declare const PLACES_MARS: readonly Place[];
@@ -0,0 +1,13 @@
1
+ // The places on the Mars: landing, rover, crash and impact sites, and the named features, as one list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_MARS as DATA } from "../data/places-mars.js";
3
+ /**
4
+ * Every place on the Mars the package knows: the sites first, by date, then the named features by size. A place's `kind` says what it is (`placesOfKind` from `/places` picks by it).
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_MARS } from "@johnmorrisdotca/wakusei-planets/places/mars";
9
+ *
10
+ * console.log(PLACES_MARS.length, "places;", PLACES_MARS.filter((place) => place.kind === "landing").length, "landings");
11
+ * ```
12
+ */
13
+ export const PLACES_MARS = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Mercury the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_MERCURY } from "@johnmorrisdotca/wakusei-planets/places/mercury";
9
+ *
10
+ * console.log(PLACES_MERCURY.length, "places;", PLACES_MERCURY.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_MERCURY: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Mercury: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_MERCURY as DATA } from "../data/places-mercury.js";
3
+ /**
4
+ * Every place on Mercury the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_MERCURY } from "@johnmorrisdotca/wakusei-planets/places/mercury";
10
+ *
11
+ * console.log(PLACES_MERCURY.length, "places;", PLACES_MERCURY.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_MERCURY = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Mimas the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_MIMAS } from "@johnmorrisdotca/wakusei-planets/places/mimas";
9
+ *
10
+ * console.log(PLACES_MIMAS.length, "places;", PLACES_MIMAS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_MIMAS: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Mimas: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_MIMAS as DATA } from "../data/places-mimas.js";
3
+ /**
4
+ * Every place on Mimas the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_MIMAS } from "@johnmorrisdotca/wakusei-planets/places/mimas";
10
+ *
11
+ * console.log(PLACES_MIMAS.length, "places;", PLACES_MIMAS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_MIMAS = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Miranda the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_MIRANDA } from "@johnmorrisdotca/wakusei-planets/places/miranda";
9
+ *
10
+ * console.log(PLACES_MIRANDA.length, "places;", PLACES_MIRANDA.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_MIRANDA: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Miranda: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_MIRANDA as DATA } from "../data/places-miranda.js";
3
+ /**
4
+ * Every place on Miranda the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_MIRANDA } from "@johnmorrisdotca/wakusei-planets/places/miranda";
10
+ *
11
+ * console.log(PLACES_MIRANDA.length, "places;", PLACES_MIRANDA.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_MIRANDA = DATA;