@johnmorrisdotca/wakusei-planets 0.67.0 → 0.69.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 (256) hide show
  1. package/CHANGELOG.md +23 -2
  2. package/NOTICE.md +10 -0
  3. package/README.md +3 -3
  4. package/dist/data/moon-catalogue.d.ts +1 -1
  5. package/dist/data/moon-catalogue.js +1 -1
  6. package/dist/data/places-added.d.ts +2 -0
  7. package/dist/data/places-added.js +2 -0
  8. package/dist/data/places-aliases.d.ts +1 -0
  9. package/dist/data/places-aliases.js +14 -0
  10. package/dist/data/places-planned.js +1 -1
  11. package/dist/data/places-search-67p.d.ts +1 -0
  12. package/dist/data/places-search-67p.js +3 -0
  13. package/dist/data/places-search-amalthea.d.ts +1 -0
  14. package/dist/data/places-search-amalthea.js +3 -0
  15. package/dist/data/places-search-ariel.d.ts +1 -0
  16. package/dist/data/places-search-ariel.js +3 -0
  17. package/dist/data/places-search-bennu.d.ts +1 -0
  18. package/dist/data/places-search-bennu.js +3 -0
  19. package/dist/data/places-search-bodies.d.ts +25 -0
  20. package/dist/data/places-search-bodies.js +125 -0
  21. package/dist/data/places-search-callisto.d.ts +1 -0
  22. package/dist/data/places-search-callisto.js +3 -0
  23. package/dist/data/places-search-ceres.d.ts +1 -0
  24. package/dist/data/places-search-ceres.js +3 -0
  25. package/dist/data/places-search-charon.d.ts +1 -0
  26. package/dist/data/places-search-charon.js +3 -0
  27. package/dist/data/places-search-dactyl.d.ts +1 -0
  28. package/dist/data/places-search-dactyl.js +3 -0
  29. package/dist/data/places-search-deimos.d.ts +1 -0
  30. package/dist/data/places-search-deimos.js +3 -0
  31. package/dist/data/places-search-didymos.d.ts +1 -0
  32. package/dist/data/places-search-didymos.js +3 -0
  33. package/dist/data/places-search-dimorphos.d.ts +1 -0
  34. package/dist/data/places-search-dimorphos.js +3 -0
  35. package/dist/data/places-search-dinkinesh.d.ts +1 -0
  36. package/dist/data/places-search-dinkinesh.js +3 -0
  37. package/dist/data/places-search-dione.d.ts +1 -0
  38. package/dist/data/places-search-dione.js +3 -0
  39. package/dist/data/places-search-donaldjohanson.d.ts +1 -0
  40. package/dist/data/places-search-donaldjohanson.js +3 -0
  41. package/dist/data/places-search-enceladus.d.ts +1 -0
  42. package/dist/data/places-search-enceladus.js +3 -0
  43. package/dist/data/places-search-epimetheus.d.ts +1 -0
  44. package/dist/data/places-search-epimetheus.js +3 -0
  45. package/dist/data/places-search-eros.d.ts +1 -0
  46. package/dist/data/places-search-eros.js +3 -0
  47. package/dist/data/places-search-europa.d.ts +1 -0
  48. package/dist/data/places-search-europa.js +3 -0
  49. package/dist/data/places-search-ganymede.d.ts +1 -0
  50. package/dist/data/places-search-ganymede.js +3 -0
  51. package/dist/data/places-search-gaspra.d.ts +1 -0
  52. package/dist/data/places-search-gaspra.js +3 -0
  53. package/dist/data/places-search-hyperion.d.ts +1 -0
  54. package/dist/data/places-search-hyperion.js +3 -0
  55. package/dist/data/places-search-iapetus.d.ts +1 -0
  56. package/dist/data/places-search-iapetus.js +3 -0
  57. package/dist/data/places-search-ida.d.ts +1 -0
  58. package/dist/data/places-search-ida.js +3 -0
  59. package/dist/data/places-search-io.d.ts +1 -0
  60. package/dist/data/places-search-io.js +3 -0
  61. package/dist/data/places-search-itokawa.d.ts +1 -0
  62. package/dist/data/places-search-itokawa.js +3 -0
  63. package/dist/data/places-search-janus.d.ts +1 -0
  64. package/dist/data/places-search-janus.js +3 -0
  65. package/dist/data/places-search-jupiter.d.ts +1 -0
  66. package/dist/data/places-search-jupiter.js +3 -0
  67. package/dist/data/places-search-lutetia.d.ts +1 -0
  68. package/dist/data/places-search-lutetia.js +3 -0
  69. package/dist/data/places-search-mars.d.ts +1 -0
  70. package/dist/data/places-search-mars.js +3 -0
  71. package/dist/data/places-search-mathilde.d.ts +1 -0
  72. package/dist/data/places-search-mathilde.js +3 -0
  73. package/dist/data/places-search-mercury.d.ts +1 -0
  74. package/dist/data/places-search-mercury.js +3 -0
  75. package/dist/data/places-search-mimas.d.ts +1 -0
  76. package/dist/data/places-search-mimas.js +3 -0
  77. package/dist/data/places-search-miranda.d.ts +1 -0
  78. package/dist/data/places-search-miranda.js +3 -0
  79. package/dist/data/places-search-moon-satellites.d.ts +1 -0
  80. package/dist/data/places-search-moon-satellites.js +3 -0
  81. package/dist/data/places-search-moon.d.ts +1 -0
  82. package/dist/data/places-search-moon.js +3 -0
  83. package/dist/data/places-search-oberon.d.ts +1 -0
  84. package/dist/data/places-search-oberon.js +3 -0
  85. package/dist/data/places-search-phobos.d.ts +1 -0
  86. package/dist/data/places-search-phobos.js +3 -0
  87. package/dist/data/places-search-phoebe.d.ts +1 -0
  88. package/dist/data/places-search-phoebe.js +3 -0
  89. package/dist/data/places-search-pluto.d.ts +1 -0
  90. package/dist/data/places-search-pluto.js +3 -0
  91. package/dist/data/places-search-proteus.d.ts +1 -0
  92. package/dist/data/places-search-proteus.js +3 -0
  93. package/dist/data/places-search-rhea.d.ts +1 -0
  94. package/dist/data/places-search-rhea.js +3 -0
  95. package/dist/data/places-search-ryugu.d.ts +1 -0
  96. package/dist/data/places-search-ryugu.js +3 -0
  97. package/dist/data/places-search-saturn.d.ts +1 -0
  98. package/dist/data/places-search-saturn.js +3 -0
  99. package/dist/data/places-search-steins.d.ts +1 -0
  100. package/dist/data/places-search-steins.js +3 -0
  101. package/dist/data/places-search-tempel-1.d.ts +1 -0
  102. package/dist/data/places-search-tempel-1.js +3 -0
  103. package/dist/data/places-search-tethys.d.ts +1 -0
  104. package/dist/data/places-search-tethys.js +3 -0
  105. package/dist/data/places-search-thebe.d.ts +1 -0
  106. package/dist/data/places-search-thebe.js +3 -0
  107. package/dist/data/places-search-titan.d.ts +1 -0
  108. package/dist/data/places-search-titan.js +3 -0
  109. package/dist/data/places-search-titania.d.ts +1 -0
  110. package/dist/data/places-search-titania.js +3 -0
  111. package/dist/data/places-search-triton.d.ts +1 -0
  112. package/dist/data/places-search-triton.js +3 -0
  113. package/dist/data/places-search-types.d.ts +1 -0
  114. package/dist/data/places-search-types.js +59 -0
  115. package/dist/data/places-search-umbriel.d.ts +1 -0
  116. package/dist/data/places-search-umbriel.js +3 -0
  117. package/dist/data/places-search-venus.d.ts +1 -0
  118. package/dist/data/places-search-venus.js +3 -0
  119. package/dist/data/places-search-vesta.d.ts +1 -0
  120. package/dist/data/places-search-vesta.js +3 -0
  121. package/dist/earth-places.d.ts +17 -1
  122. package/dist/earth-places.js +18 -0
  123. package/dist/fact-sheets.d.ts +1 -1
  124. package/dist/fact-sheets.js +1 -1
  125. package/dist/flat/words.js +2 -0
  126. package/dist/moon-catalogue.d.ts +190 -0
  127. package/dist/moon-catalogue.js +189 -3
  128. package/dist/place-marks.js +1 -1
  129. package/dist/place-search.d.ts +179 -0
  130. package/dist/place-search.js +223 -0
  131. package/dist/places/moon.js +4 -1
  132. package/dist/places/search/67p.d.ts +12 -0
  133. package/dist/places/search/67p.js +14 -0
  134. package/dist/places/search/amalthea.d.ts +12 -0
  135. package/dist/places/search/amalthea.js +14 -0
  136. package/dist/places/search/ariel.d.ts +12 -0
  137. package/dist/places/search/ariel.js +14 -0
  138. package/dist/places/search/bennu.d.ts +12 -0
  139. package/dist/places/search/bennu.js +14 -0
  140. package/dist/places/search/callisto.d.ts +12 -0
  141. package/dist/places/search/callisto.js +14 -0
  142. package/dist/places/search/ceres.d.ts +12 -0
  143. package/dist/places/search/ceres.js +14 -0
  144. package/dist/places/search/charon.d.ts +12 -0
  145. package/dist/places/search/charon.js +14 -0
  146. package/dist/places/search/dactyl.d.ts +12 -0
  147. package/dist/places/search/dactyl.js +14 -0
  148. package/dist/places/search/deimos.d.ts +12 -0
  149. package/dist/places/search/deimos.js +14 -0
  150. package/dist/places/search/didymos.d.ts +12 -0
  151. package/dist/places/search/didymos.js +14 -0
  152. package/dist/places/search/dimorphos.d.ts +12 -0
  153. package/dist/places/search/dimorphos.js +14 -0
  154. package/dist/places/search/dinkinesh.d.ts +12 -0
  155. package/dist/places/search/dinkinesh.js +14 -0
  156. package/dist/places/search/dione.d.ts +12 -0
  157. package/dist/places/search/dione.js +14 -0
  158. package/dist/places/search/donaldjohanson.d.ts +12 -0
  159. package/dist/places/search/donaldjohanson.js +14 -0
  160. package/dist/places/search/enceladus.d.ts +12 -0
  161. package/dist/places/search/enceladus.js +14 -0
  162. package/dist/places/search/epimetheus.d.ts +12 -0
  163. package/dist/places/search/epimetheus.js +14 -0
  164. package/dist/places/search/eros.d.ts +12 -0
  165. package/dist/places/search/eros.js +14 -0
  166. package/dist/places/search/europa.d.ts +12 -0
  167. package/dist/places/search/europa.js +14 -0
  168. package/dist/places/search/ganymede.d.ts +12 -0
  169. package/dist/places/search/ganymede.js +14 -0
  170. package/dist/places/search/gaspra.d.ts +12 -0
  171. package/dist/places/search/gaspra.js +14 -0
  172. package/dist/places/search/hyperion.d.ts +12 -0
  173. package/dist/places/search/hyperion.js +14 -0
  174. package/dist/places/search/iapetus.d.ts +12 -0
  175. package/dist/places/search/iapetus.js +14 -0
  176. package/dist/places/search/ida.d.ts +12 -0
  177. package/dist/places/search/ida.js +14 -0
  178. package/dist/places/search/io.d.ts +12 -0
  179. package/dist/places/search/io.js +14 -0
  180. package/dist/places/search/itokawa.d.ts +12 -0
  181. package/dist/places/search/itokawa.js +14 -0
  182. package/dist/places/search/janus.d.ts +12 -0
  183. package/dist/places/search/janus.js +14 -0
  184. package/dist/places/search/jupiter.d.ts +12 -0
  185. package/dist/places/search/jupiter.js +14 -0
  186. package/dist/places/search/lutetia.d.ts +12 -0
  187. package/dist/places/search/lutetia.js +14 -0
  188. package/dist/places/search/mars.d.ts +12 -0
  189. package/dist/places/search/mars.js +14 -0
  190. package/dist/places/search/mathilde.d.ts +12 -0
  191. package/dist/places/search/mathilde.js +14 -0
  192. package/dist/places/search/mercury.d.ts +12 -0
  193. package/dist/places/search/mercury.js +14 -0
  194. package/dist/places/search/mimas.d.ts +12 -0
  195. package/dist/places/search/mimas.js +14 -0
  196. package/dist/places/search/miranda.d.ts +12 -0
  197. package/dist/places/search/miranda.js +14 -0
  198. package/dist/places/search/moon-satellites.d.ts +12 -0
  199. package/dist/places/search/moon-satellites.js +14 -0
  200. package/dist/places/search/moon.d.ts +12 -0
  201. package/dist/places/search/moon.js +14 -0
  202. package/dist/places/search/oberon.d.ts +12 -0
  203. package/dist/places/search/oberon.js +14 -0
  204. package/dist/places/search/phobos.d.ts +12 -0
  205. package/dist/places/search/phobos.js +14 -0
  206. package/dist/places/search/phoebe.d.ts +12 -0
  207. package/dist/places/search/phoebe.js +14 -0
  208. package/dist/places/search/pluto.d.ts +12 -0
  209. package/dist/places/search/pluto.js +14 -0
  210. package/dist/places/search/proteus.d.ts +12 -0
  211. package/dist/places/search/proteus.js +14 -0
  212. package/dist/places/search/rhea.d.ts +12 -0
  213. package/dist/places/search/rhea.js +14 -0
  214. package/dist/places/search/ryugu.d.ts +12 -0
  215. package/dist/places/search/ryugu.js +14 -0
  216. package/dist/places/search/saturn.d.ts +12 -0
  217. package/dist/places/search/saturn.js +14 -0
  218. package/dist/places/search/steins.d.ts +12 -0
  219. package/dist/places/search/steins.js +14 -0
  220. package/dist/places/search/tempel-1.d.ts +12 -0
  221. package/dist/places/search/tempel-1.js +14 -0
  222. package/dist/places/search/tethys.d.ts +12 -0
  223. package/dist/places/search/tethys.js +14 -0
  224. package/dist/places/search/thebe.d.ts +12 -0
  225. package/dist/places/search/thebe.js +14 -0
  226. package/dist/places/search/titan.d.ts +12 -0
  227. package/dist/places/search/titan.js +14 -0
  228. package/dist/places/search/titania.d.ts +12 -0
  229. package/dist/places/search/titania.js +14 -0
  230. package/dist/places/search/triton.d.ts +12 -0
  231. package/dist/places/search/triton.js +14 -0
  232. package/dist/places/search/umbriel.d.ts +12 -0
  233. package/dist/places/search/umbriel.js +14 -0
  234. package/dist/places/search/venus.d.ts +12 -0
  235. package/dist/places/search/venus.js +14 -0
  236. package/dist/places/search/vesta.d.ts +12 -0
  237. package/dist/places/search/vesta.js +14 -0
  238. package/dist/places/search.d.ts +42 -0
  239. package/dist/places/search.js +77 -0
  240. package/dist/places.d.ts +4 -3
  241. package/dist/scene/body-places.d.ts +98 -0
  242. package/dist/scene/body-places.js +113 -0
  243. package/dist/scene/earth-places.d.ts +6 -1
  244. package/dist/scene/earth-places.js +55 -2
  245. package/dist/scene/place-layer.js +1 -0
  246. package/dist/space/all-moons.d.ts +81 -10
  247. package/dist/space/all-moons.js +132 -27
  248. package/dist/space/element.d.ts +56 -5
  249. package/dist/space/element.js +240 -24
  250. package/dist/space/moon-settings.d.ts +25 -0
  251. package/dist/space/moon-settings.js +43 -0
  252. package/dist/space/orbit-rules.d.ts +25 -0
  253. package/dist/space/orbit-rules.js +36 -0
  254. package/dist/space/scene.d.ts +14 -3
  255. package/dist/space/scene.js +48 -17
  256. package/package.json +271 -1
@@ -0,0 +1,14 @@
1
+ // The search list of Saturn: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_SATURN as DATA } from "../../data/places-search-saturn.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of Saturn: 1 rows (0 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_SATURN } from "@johnmorrisdotca/wakusei-planets/places/search/saturn";
10
+ *
11
+ * console.log(PLACE_HITS_SATURN.length, "rows;", PLACE_HITS_SATURN[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_SATURN = readPlaceHits("saturn", DATA);
@@ -0,0 +1,12 @@
1
+ import { type PlaceHit } from "../../place-search.ts";
2
+ /**
3
+ * The search list of Steins: 24 rows (24 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACE_HITS_STEINS } from "@johnmorrisdotca/wakusei-planets/places/search/steins";
8
+ *
9
+ * console.log(PLACE_HITS_STEINS.length, "rows;", PLACE_HITS_STEINS[0]?.name.en);
10
+ * ```
11
+ */
12
+ export declare const PLACE_HITS_STEINS: readonly PlaceHit[];
@@ -0,0 +1,14 @@
1
+ // The search list of Steins: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_STEINS as DATA } from "../../data/places-search-steins.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of Steins: 24 rows (24 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_STEINS } from "@johnmorrisdotca/wakusei-planets/places/search/steins";
10
+ *
11
+ * console.log(PLACE_HITS_STEINS.length, "rows;", PLACE_HITS_STEINS[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_STEINS = readPlaceHits("steins", DATA);
@@ -0,0 +1,12 @@
1
+ import { type PlaceHit } from "../../place-search.ts";
2
+ /**
3
+ * The search list of comet Tempel 1: 1 rows (0 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACE_HITS_TEMPEL_1 } from "@johnmorrisdotca/wakusei-planets/places/search/tempel-1";
8
+ *
9
+ * console.log(PLACE_HITS_TEMPEL_1.length, "rows;", PLACE_HITS_TEMPEL_1[0]?.name.en);
10
+ * ```
11
+ */
12
+ export declare const PLACE_HITS_TEMPEL_1: readonly PlaceHit[];
@@ -0,0 +1,14 @@
1
+ // The search list of comet Tempel 1: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_TEMPEL_1 as DATA } from "../../data/places-search-tempel-1.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of comet Tempel 1: 1 rows (0 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_TEMPEL_1 } from "@johnmorrisdotca/wakusei-planets/places/search/tempel-1";
10
+ *
11
+ * console.log(PLACE_HITS_TEMPEL_1.length, "rows;", PLACE_HITS_TEMPEL_1[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_TEMPEL_1 = readPlaceHits("tempel-1", DATA);
@@ -0,0 +1,12 @@
1
+ import { type PlaceHit } from "../../place-search.ts";
2
+ /**
3
+ * The search list of Tethys: 53 rows (53 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACE_HITS_TETHYS } from "@johnmorrisdotca/wakusei-planets/places/search/tethys";
8
+ *
9
+ * console.log(PLACE_HITS_TETHYS.length, "rows;", PLACE_HITS_TETHYS[0]?.name.en);
10
+ * ```
11
+ */
12
+ export declare const PLACE_HITS_TETHYS: readonly PlaceHit[];
@@ -0,0 +1,14 @@
1
+ // The search list of Tethys: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_TETHYS as DATA } from "../../data/places-search-tethys.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of Tethys: 53 rows (53 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_TETHYS } from "@johnmorrisdotca/wakusei-planets/places/search/tethys";
10
+ *
11
+ * console.log(PLACE_HITS_TETHYS.length, "rows;", PLACE_HITS_TETHYS[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_TETHYS = readPlaceHits("tethys", DATA);
@@ -0,0 +1,12 @@
1
+ import { type PlaceHit } from "../../place-search.ts";
2
+ /**
3
+ * The search list of Thebe: 1 rows (1 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACE_HITS_THEBE } from "@johnmorrisdotca/wakusei-planets/places/search/thebe";
8
+ *
9
+ * console.log(PLACE_HITS_THEBE.length, "rows;", PLACE_HITS_THEBE[0]?.name.en);
10
+ * ```
11
+ */
12
+ export declare const PLACE_HITS_THEBE: readonly PlaceHit[];
@@ -0,0 +1,14 @@
1
+ // The search list of Thebe: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_THEBE as DATA } from "../../data/places-search-thebe.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of Thebe: 1 rows (1 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_THEBE } from "@johnmorrisdotca/wakusei-planets/places/search/thebe";
10
+ *
11
+ * console.log(PLACE_HITS_THEBE.length, "rows;", PLACE_HITS_THEBE[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_THEBE = readPlaceHits("thebe", DATA);
@@ -0,0 +1,12 @@
1
+ import { type PlaceHit } from "../../place-search.ts";
2
+ /**
3
+ * The search list of Titan: 305 rows (304 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACE_HITS_TITAN } from "@johnmorrisdotca/wakusei-planets/places/search/titan";
8
+ *
9
+ * console.log(PLACE_HITS_TITAN.length, "rows;", PLACE_HITS_TITAN[0]?.name.en);
10
+ * ```
11
+ */
12
+ export declare const PLACE_HITS_TITAN: readonly PlaceHit[];
@@ -0,0 +1,14 @@
1
+ // The search list of Titan: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_TITAN as DATA } from "../../data/places-search-titan.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of Titan: 305 rows (304 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_TITAN } from "@johnmorrisdotca/wakusei-planets/places/search/titan";
10
+ *
11
+ * console.log(PLACE_HITS_TITAN.length, "rows;", PLACE_HITS_TITAN[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_TITAN = readPlaceHits("titan", DATA);
@@ -0,0 +1,12 @@
1
+ import { type PlaceHit } from "../../place-search.ts";
2
+ /**
3
+ * The search list of Titania: 18 rows (18 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACE_HITS_TITANIA } from "@johnmorrisdotca/wakusei-planets/places/search/titania";
8
+ *
9
+ * console.log(PLACE_HITS_TITANIA.length, "rows;", PLACE_HITS_TITANIA[0]?.name.en);
10
+ * ```
11
+ */
12
+ export declare const PLACE_HITS_TITANIA: readonly PlaceHit[];
@@ -0,0 +1,14 @@
1
+ // The search list of Titania: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_TITANIA as DATA } from "../../data/places-search-titania.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of Titania: 18 rows (18 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_TITANIA } from "@johnmorrisdotca/wakusei-planets/places/search/titania";
10
+ *
11
+ * console.log(PLACE_HITS_TITANIA.length, "rows;", PLACE_HITS_TITANIA[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_TITANIA = readPlaceHits("titania", DATA);
@@ -0,0 +1,12 @@
1
+ import { type PlaceHit } from "../../place-search.ts";
2
+ /**
3
+ * The search list of Triton: 63 rows (63 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACE_HITS_TRITON } from "@johnmorrisdotca/wakusei-planets/places/search/triton";
8
+ *
9
+ * console.log(PLACE_HITS_TRITON.length, "rows;", PLACE_HITS_TRITON[0]?.name.en);
10
+ * ```
11
+ */
12
+ export declare const PLACE_HITS_TRITON: readonly PlaceHit[];
@@ -0,0 +1,14 @@
1
+ // The search list of Triton: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_TRITON as DATA } from "../../data/places-search-triton.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of Triton: 63 rows (63 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_TRITON } from "@johnmorrisdotca/wakusei-planets/places/search/triton";
10
+ *
11
+ * console.log(PLACE_HITS_TRITON.length, "rows;", PLACE_HITS_TRITON[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_TRITON = readPlaceHits("triton", DATA);
@@ -0,0 +1,12 @@
1
+ import { type PlaceHit } from "../../place-search.ts";
2
+ /**
3
+ * The search list of Umbriel: 13 rows (13 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACE_HITS_UMBRIEL } from "@johnmorrisdotca/wakusei-planets/places/search/umbriel";
8
+ *
9
+ * console.log(PLACE_HITS_UMBRIEL.length, "rows;", PLACE_HITS_UMBRIEL[0]?.name.en);
10
+ * ```
11
+ */
12
+ export declare const PLACE_HITS_UMBRIEL: readonly PlaceHit[];
@@ -0,0 +1,14 @@
1
+ // The search list of Umbriel: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_UMBRIEL as DATA } from "../../data/places-search-umbriel.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of Umbriel: 13 rows (13 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_UMBRIEL } from "@johnmorrisdotca/wakusei-planets/places/search/umbriel";
10
+ *
11
+ * console.log(PLACE_HITS_UMBRIEL.length, "rows;", PLACE_HITS_UMBRIEL[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_UMBRIEL = readPlaceHits("umbriel", DATA);
@@ -0,0 +1,12 @@
1
+ import { type PlaceHit } from "../../place-search.ts";
2
+ /**
3
+ * The search list of Venus: 2003 rows (1985 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACE_HITS_VENUS } from "@johnmorrisdotca/wakusei-planets/places/search/venus";
8
+ *
9
+ * console.log(PLACE_HITS_VENUS.length, "rows;", PLACE_HITS_VENUS[0]?.name.en);
10
+ * ```
11
+ */
12
+ export declare const PLACE_HITS_VENUS: readonly PlaceHit[];
@@ -0,0 +1,14 @@
1
+ // The search list of Venus: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_VENUS as DATA } from "../../data/places-search-venus.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of Venus: 2003 rows (1985 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_VENUS } from "@johnmorrisdotca/wakusei-planets/places/search/venus";
10
+ *
11
+ * console.log(PLACE_HITS_VENUS.length, "rows;", PLACE_HITS_VENUS[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_VENUS = readPlaceHits("venus", DATA);
@@ -0,0 +1,12 @@
1
+ import { type PlaceHit } from "../../place-search.ts";
2
+ /**
3
+ * The search list of Vesta: 106 rows (106 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { PLACE_HITS_VESTA } from "@johnmorrisdotca/wakusei-planets/places/search/vesta";
8
+ *
9
+ * console.log(PLACE_HITS_VESTA.length, "rows;", PLACE_HITS_VESTA[0]?.name.en);
10
+ * ```
11
+ */
12
+ export declare const PLACE_HITS_VESTA: readonly PlaceHit[];
@@ -0,0 +1,14 @@
1
+ // The search list of Vesta: one row for each point of interest, from the IAU Gazetteer of Planetary Nomenclature and the sites. See `/places/search` for the record's shape and the search.
2
+ import { SEARCH_VESTA as DATA } from "../../data/places-search-vesta.js";
3
+ import { readPlaceHits } from "../../place-search.js";
4
+ /**
5
+ * The search list of Vesta: 106 rows (106 named features, the rest sites), the sites first by date, then the features in the order of their Gazetteer ids. Read from a compact table when the entry is first imported.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACE_HITS_VESTA } from "@johnmorrisdotca/wakusei-planets/places/search/vesta";
10
+ *
11
+ * console.log(PLACE_HITS_VESTA.length, "rows;", PLACE_HITS_VESTA[0]?.name.en);
12
+ * ```
13
+ */
14
+ export const PLACE_HITS_VESTA = readPlaceHits("vesta", DATA);
@@ -0,0 +1,42 @@
1
+ import { type PlaceSearchBody } from "../data/places-search-bodies.ts";
2
+ import { type PlaceHit } from "../place-search.ts";
3
+ export { hitToBodyPlace, hitToPlace, PLACE_KIND_WORDS, placeHitUrl, readPlaceHits, resolvePlaceId, searchPlaces, SEARCH_SOURCE_IDS, type PlaceHit } from "../place-search.ts";
4
+ export { PLACE_SEARCH_BODIES, type PlaceSearchBody } from "../data/places-search-bodies.ts";
5
+ /**
6
+ * The search list of a body, fetched when asked for: the table of `/places/search/<body>` arrives as a chunk of its own the first time, so a page that never searches a body does not carry it. The Moon's 7,064 lettered satellite craters are a chunk
7
+ * of their own too, fetched only with `{ satellites: true }`.
8
+ *
9
+ * @param body - One of `PLACE_SEARCH_BODIES`: `moon`, `mars`, `venus`, `ceres`, `phobos`, `itokawa` and the rest.
10
+ * @param options - `satellites: true` adds the Moon's lettered craters to the list of `moon` (nothing for any other body).
11
+ * @returns The list: the sites first, by date, then the named features in the order of their Gazetteer ids (the larger bodies' search puts the larger ones first anyway: `searchPlaces` ranks). An unknown body is a rejected `RangeError`.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * import { loadPlaceSearch, searchPlaces } from "@johnmorrisdotca/wakusei-planets/places/search";
16
+ *
17
+ * const mars = await loadPlaceSearch("mars");
18
+ * console.log(mars.length, "points of interest on Mars;", searchPlaces(mars, "perseverance", { limit: 3 }).map((hit) => hit.name.en).join(", "));
19
+ * const moon = await loadPlaceSearch("moon", { satellites: true });
20
+ * console.log(moon.length, "on the Moon, with the lettered craters");
21
+ * ```
22
+ */
23
+ export declare function loadPlaceSearch(body: PlaceSearchBody, options?: {
24
+ satellites?: boolean;
25
+ }): Promise<readonly PlaceHit[]>;
26
+ /**
27
+ * The rows for a set of saved ids: each id is made current (`resolvePlaceId`), and only the lists the ids need are fetched, the Moon's lettered craters only for an id the Moon's own list does not have. For a favourites page: the ids it saved in, the rows (and so the beams,
28
+ * `hitToBodyPlace`) out.
29
+ *
30
+ * @param ids - Place ids, as `PlaceHit.id` of an earlier visit or an earlier release.
31
+ * @returns The rows found, in the order of the ids, each once. An id for no body or no place is left out.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * import { hitToBodyPlace, loadPlaceHits } from "@johnmorrisdotca/wakusei-planets/places/search";
36
+ *
37
+ * const hits = await loadPlaceHits(["moon/tycho", "mars/olympus-mons", "mercury/kunisada-2", "moon/tycho-a", "nowhere/nothing"]);
38
+ * console.log(hits.map((hit) => hit.id).join(", "));
39
+ * console.log(hits.map((hit) => hitToBodyPlace(hit)).length, "beams");
40
+ * ```
41
+ */
42
+ export declare function loadPlaceHits(ids: readonly string[]): Promise<PlaceHit[]>;
@@ -0,0 +1,77 @@
1
+ // The search lists of every point of interest on every body, and the search over them. The lists are the entry points `/places/search/<body>`, fetched one at a time by `loadPlaceSearch`; see `/places` for the full records of the larger bodies.
2
+ import { PLACE_SEARCH_BODIES, readSearchTable } from "../data/places-search-bodies.js";
3
+ import { resolvePlaceId } from "../place-search.js";
4
+ export { hitToBodyPlace, hitToPlace, PLACE_KIND_WORDS, placeHitUrl, readPlaceHits, resolvePlaceId, searchPlaces, SEARCH_SOURCE_IDS } from "../place-search.js";
5
+ export { PLACE_SEARCH_BODIES } from "../data/places-search-bodies.js";
6
+ /**
7
+ * The search list of a body, fetched when asked for: the table of `/places/search/<body>` arrives as a chunk of its own the first time, so a page that never searches a body does not carry it. The Moon's 7,064 lettered satellite craters are a chunk
8
+ * of their own too, fetched only with `{ satellites: true }`.
9
+ *
10
+ * @param body - One of `PLACE_SEARCH_BODIES`: `moon`, `mars`, `venus`, `ceres`, `phobos`, `itokawa` and the rest.
11
+ * @param options - `satellites: true` adds the Moon's lettered craters to the list of `moon` (nothing for any other body).
12
+ * @returns The list: the sites first, by date, then the named features in the order of their Gazetteer ids (the larger bodies' search puts the larger ones first anyway: `searchPlaces` ranks). An unknown body is a rejected `RangeError`.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * import { loadPlaceSearch, searchPlaces } from "@johnmorrisdotca/wakusei-planets/places/search";
17
+ *
18
+ * const mars = await loadPlaceSearch("mars");
19
+ * console.log(mars.length, "points of interest on Mars;", searchPlaces(mars, "perseverance", { limit: 3 }).map((hit) => hit.name.en).join(", "));
20
+ * const moon = await loadPlaceSearch("moon", { satellites: true });
21
+ * console.log(moon.length, "on the Moon, with the lettered craters");
22
+ * ```
23
+ */
24
+ export async function loadPlaceSearch(body, options = {}) {
25
+ if (!PLACE_SEARCH_BODIES.includes(body))
26
+ throw new RangeError(`search lists are held for ${PLACE_SEARCH_BODIES.join(", ")}, not "${String(body)}"`);
27
+ const list = await readSearchTable(body);
28
+ return body === "moon" && options.satellites === true ? [...list, ...(await readSearchTable("moon-satellites"))] : list;
29
+ }
30
+ /**
31
+ * The rows for a set of saved ids: each id is made current (`resolvePlaceId`), and only the lists the ids need are fetched, the Moon's lettered craters only for an id the Moon's own list does not have. For a favourites page: the ids it saved in, the rows (and so the beams,
32
+ * `hitToBodyPlace`) out.
33
+ *
34
+ * @param ids - Place ids, as `PlaceHit.id` of an earlier visit or an earlier release.
35
+ * @returns The rows found, in the order of the ids, each once. An id for no body or no place is left out.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * import { hitToBodyPlace, loadPlaceHits } from "@johnmorrisdotca/wakusei-planets/places/search";
40
+ *
41
+ * const hits = await loadPlaceHits(["moon/tycho", "mars/olympus-mons", "mercury/kunisada-2", "moon/tycho-a", "nowhere/nothing"]);
42
+ * console.log(hits.map((hit) => hit.id).join(", "));
43
+ * console.log(hits.map((hit) => hitToBodyPlace(hit)).length, "beams");
44
+ * ```
45
+ */
46
+ export async function loadPlaceHits(ids) {
47
+ const wanted = ids.map(resolvePlaceId);
48
+ const bodies = new Set();
49
+ for (const id of wanted) {
50
+ const body = id.split("/")[0];
51
+ if (PLACE_SEARCH_BODIES.includes(body))
52
+ bodies.add(body);
53
+ }
54
+ const found = new Map();
55
+ const need = new Set(wanted);
56
+ for (const body of bodies) {
57
+ for (const hit of await loadPlaceSearch(body))
58
+ if (need.has(hit.id))
59
+ found.set(hit.id, hit);
60
+ }
61
+ // the Moon's lettered craters are a list of their own, fetched only for an id the Moon's other list does not hold
62
+ if (bodies.has("moon") && wanted.some((id) => id.startsWith("moon/") && !found.has(id))) {
63
+ for (const hit of (await loadPlaceSearch("moon", { satellites: true })).slice((await loadPlaceSearch("moon")).length))
64
+ if (need.has(hit.id))
65
+ found.set(hit.id, hit);
66
+ }
67
+ const out = [];
68
+ const seen = new Set();
69
+ for (const id of wanted) {
70
+ const hit = found.get(id);
71
+ if (hit !== undefined && !seen.has(id)) {
72
+ seen.add(id);
73
+ out.push(hit);
74
+ }
75
+ }
76
+ return out;
77
+ }
package/dist/places.d.ts CHANGED
@@ -4,17 +4,18 @@ export type { When } from "./when.ts";
4
4
  export { layerOf, MARK_RULES, PLACE_LAYERS, marksToShow, placeMarks, placeRank, type Obstacle, pointUnder, readPlaceLayers, readSurfaceNames, spotView, surfacePoint, turnToPlace, type PlaceLayer, type PlaceMark, type SpotView, type SurfaceSpot, type SurfaceView } from "./place-marks.ts";
5
5
  /**
6
6
  * What a place is: a `crewed` landing (an Apollo lunar module), a `landing` (a lander that worked after touchdown), a `rover` that drove there, a `crash` (a craft that hit the surface and was lost, by accident or at the end of its mission), an
7
- * `impact` (a craft sent to hit it on purpose), an `entry` (a probe or orbiter lost in the atmosphere of Venus, Jupiter or Saturn: no surface was reached or none is there), a `planned` landing (announced, not flown) or a named `feature` of the surface.
7
+ * `impact` (a craft sent to hit it on purpose), an `entry` (a probe or orbiter lost in the atmosphere of Venus, Jupiter or Saturn: no surface was reached or none is there), a `planned` landing (announced, not flown), a named `feature` of the surface or a piece of
8
+ * `hardware` (equipment left on a surface or hardware that fell to it: an Apollo experiment package, an ejected camera, a heat shield, a backshell, a parachute, a cruise stage). Hardware is held in the search lists of `/places/search` only.
8
9
  *
9
10
  * @example
10
11
  * ```ts
11
12
  * import type { PlaceKind } from "@johnmorrisdotca/wakusei-planets/places";
12
13
  *
13
- * const kinds: PlaceKind[] = ["crewed", "landing", "rover", "crash", "impact", "entry", "planned", "feature"];
14
+ * const kinds: PlaceKind[] = ["crewed", "landing", "rover", "crash", "impact", "entry", "planned", "feature", "hardware"];
14
15
  * console.log(kinds.length);
15
16
  * ```
16
17
  */
17
- export type PlaceKind = "crewed" | "landing" | "rover" | "crash" | "impact" | "entry" | "planned" | "feature";
18
+ export type PlaceKind = "crewed" | "landing" | "rover" | "crash" | "impact" | "entry" | "planned" | "feature" | "hardware";
18
19
  /**
19
20
  * One place on a body. Latitude and longitude are degrees, east positive, from -180 to 180 on every body: the Moon's in the mean Earth/polar axis frame, the others' in the IAU frame the Gazetteer or the source uses (Venus, Mars, Mercury and the moons 0 to 360 east,
20
21
  * converted; a source's west longitude is negated). Every feature is planetocentric (the Gazetteer's shapefiles are "in east longitude, planetocentric latitude"). On Mars every place is planetocentric: a lander's `source.latitude` says whether its source is planetocentric,
@@ -0,0 +1,98 @@
1
+ import type { Vec3 } from "../vec.ts";
2
+ import { type EarthPlace, type EarthPlaceLayout, type EarthPlaceMark, type EarthPlaceLook, type EarthPlacesLayout } from "./earth-places.ts";
3
+ /**
4
+ * One place for the `body-places` attribute or the `bodyPlaces` property of `<wakusei-space>`: an `EarthPlace` and the body it is on. `/places/search` makes them from the rows of a search list (`hitToBodyPlace`).
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import type { PlaceOnBody } from "@johnmorrisdotca/wakusei-planets/space/element";
9
+ *
10
+ * const places: PlaceOnBody[] = [
11
+ * { body: "moon", id: "moon/apollo-11-lunar-module", lon: 23.4731, lat: 0.6742, label: "Apollo 11 lunar module", kind: "favourite" },
12
+ * { body: "mars", id: "mars/olympus-mons", lon: -133.803, lat: 18.653, label: "Olympus Mons" },
13
+ * ];
14
+ * console.log(places.length);
15
+ * ```
16
+ */
17
+ export interface PlaceOnBody extends EarthPlace {
18
+ /** The body it is on: `moon`, `mars`, `ceres`, `io`. The Earth's places are `earth-places`; one named `earth` here is not drawn. */
19
+ body: string;
20
+ }
21
+ /**
22
+ * What the layer drew for one place on a body: its body, id and kind, where its foot is (CSS pixels from the view's top left) and whether its name is drawn.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * import type { PlaceOnBodyMark } from "@johnmorrisdotca/wakusei-planets/space/element";
27
+ *
28
+ * const mark: PlaceOnBodyMark = { body: "moon", id: "moon/tycho", kind: "favourite", x: 210, y: 300, named: true };
29
+ * console.log(mark.body, mark.named);
30
+ * ```
31
+ */
32
+ export type PlaceOnBodyMark = EarthPlaceMark & {
33
+ body: string;
34
+ };
35
+ /** The most places kept from a list, as `earth-places` keeps. */
36
+ export declare const BODY_PLACES_KEPT = 5000;
37
+ /**
38
+ * Read the text of the `body-places` attribute (a JSON array) as the list the view draws. Each entry needs a `body` (lower case letters, digits and hyphens, not `earth`) and what an `earth-places` entry needs: they are grouped by body and each group
39
+ * is read by chikyu-earth's own reader, so a longitude from -180 to 180, a latitude from -90 to 90, a label of 80 letters at most, `here` or `favourite` and a safe colour mean the same here. An entry that fails is left out; a text that is not a list is no list.
40
+ *
41
+ * @param value - The attribute's text, or null.
42
+ * @param read - chikyu-earth's `readPlaces`: the text of one body's list to the places to draw.
43
+ * @returns The places, bodies in the order they first appear, at most 5,000.
44
+ */
45
+ export declare function readBodyPlacesWith(value: string | null | undefined, read: (text: string) => EarthPlace[]): PlaceOnBody[];
46
+ /** The bodies a list has places on, in the order they first appear. */
47
+ export declare const bodiesOf: (places: readonly PlaceOnBody[]) => string[];
48
+ /** A body as one draw left it: what `onSurface` gives, and `sun`, the direction of the Sun from the body in the scene (null with the light `lit`, or for a body the Sun's direction is not worked out for). */
49
+ export interface BodySurface {
50
+ id: string;
51
+ centre: Vec3;
52
+ radius: number;
53
+ pole: Vec3;
54
+ meridian: Vec3;
55
+ eye: Vec3;
56
+ project(point: Vec3): {
57
+ x: number;
58
+ y: number;
59
+ } | null;
60
+ width: number;
61
+ height: number;
62
+ radiusPx: number;
63
+ sun: Vec3 | null;
64
+ }
65
+ /** The body's shape as the places lie on it: its three axes where it has them, else its flattening, as the marks of `places` do. */
66
+ export declare function bodyScale(id: string): Vec3 | undefined;
67
+ /** What the view tells the layout about names. */
68
+ export interface BodyLayoutOptions {
69
+ /** How wide a name is, in CSS pixels. */
70
+ width(text: string): number;
71
+ /** Boxes already used by other names. */
72
+ taken: readonly {
73
+ left: number;
74
+ top: number;
75
+ width: number;
76
+ height: number;
77
+ }[];
78
+ /** Whether a body is under another's disc (its places are not drawn). */
79
+ covered?: (id: string) => boolean;
80
+ /** The most markers in all (`EARTH_PLACE_MARKS` by default). */
81
+ marks?: number;
82
+ }
83
+ /**
84
+ * Lay the places of every body in sight in one go: for each body of `surfaces` with places in the list, big enough on the screen (`EARTH_PLACES_FROM_PX` CSS pixels of radius) and not covered, chikyu-earth's layout on that body's picture, names keeping
85
+ * clear of each other across bodies. The markers of `here` places come first, then the rest in the order given, and only the first `marks` stand up; the rest are counted in `omitted`.
86
+ *
87
+ * @param places - The places, as `readBodyPlaces` makes them.
88
+ * @param surfaces - The bodies as the last draw left them.
89
+ * @param using - chikyu-earth's reading and layout.
90
+ * @param look - `beam`, `pin` or `ring`.
91
+ * @param options - The width of a name, the boxes in use and which bodies are covered.
92
+ * @returns The places the shapes index, the layout of all of them, and how many were left out for the limit.
93
+ */
94
+ export declare function layBodyPlaces(places: readonly PlaceOnBody[], surfaces: readonly BodySurface[], using: EarthPlacesLayout, look: EarthPlaceLook, options: BodyLayoutOptions): {
95
+ places: PlaceOnBody[];
96
+ layout: EarthPlaceLayout;
97
+ omitted: number;
98
+ };