@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.
- package/CHANGELOG.md +18 -0
- package/NOTICE.md +48 -0
- package/README.md +21 -3
- package/dist/approaches.d.ts +276 -0
- package/dist/approaches.js +255 -0
- package/dist/asteroids.d.ts +397 -0
- package/dist/asteroids.js +338 -0
- package/dist/comets.d.ts +316 -0
- package/dist/comets.js +404 -0
- package/dist/craft/bepicolombo.d.ts +1 -0
- package/dist/craft/bepicolombo.js +923 -0
- package/dist/craft/europaclipper.d.ts +1 -0
- package/dist/craft/europaclipper.js +342 -0
- package/dist/craft/hayabusa2.d.ts +1 -0
- package/dist/craft/hayabusa2.js +73 -0
- package/dist/craft/juice.d.ts +1 -0
- package/dist/craft/juice.js +40 -0
- package/dist/craft/lucy.d.ts +1 -0
- package/dist/craft/lucy.js +42 -0
- package/dist/craft/osirisapex.d.ts +1 -0
- package/dist/craft/osirisapex.js +69 -0
- package/dist/craft/psyche.d.ts +1 -0
- package/dist/craft/psyche.js +30 -0
- package/dist/craft/solarorbiter.d.ts +1 -0
- package/dist/craft/solarorbiter.js +94 -0
- package/dist/data/approaches.d.ts +17 -0
- package/dist/data/approaches.js +4192 -0
- package/dist/data/asteroids.d.ts +3 -0
- package/dist/data/asteroids.js +107 -0
- package/dist/data/comets.d.ts +2 -0
- package/dist/data/comets.js +36 -0
- package/dist/data/places-67p.d.ts +27 -0
- package/dist/data/places-67p.js +2 -0
- package/dist/data/places-ariel.d.ts +602 -0
- package/dist/data/places-ariel.js +27 -0
- package/dist/data/places-bennu.d.ts +25 -0
- package/dist/data/places-bennu.js +2 -0
- package/dist/data/places-callisto.d.ts +3547 -0
- package/dist/data/places-callisto.js +155 -0
- package/dist/data/places-ceres.d.ts +3436 -0
- package/dist/data/places-ceres.js +150 -0
- package/dist/data/places-charon.d.ts +349 -0
- package/dist/data/places-charon.js +16 -0
- package/dist/data/places-dimorphos.d.ts +23 -0
- package/dist/data/places-dimorphos.js +2 -0
- package/dist/data/places-dione.d.ts +2258 -0
- package/dist/data/places-dione.js +99 -0
- package/dist/data/places-enceladus.d.ts +2009 -0
- package/dist/data/places-enceladus.js +88 -0
- package/dist/data/places-eros.d.ts +26 -0
- package/dist/data/places-eros.js +2 -0
- package/dist/data/places-europa.d.ts +2977 -0
- package/dist/data/places-europa.js +130 -0
- package/dist/data/places-ganymede.d.ts +4518 -0
- package/dist/data/places-ganymede.js +197 -0
- package/dist/data/places-iapetus.d.ts +1616 -0
- package/dist/data/places-iapetus.js +71 -0
- package/dist/data/places-io.d.ts +6012 -0
- package/dist/data/places-io.js +262 -0
- package/dist/data/places-jupiter.d.ts +46 -0
- package/dist/data/places-jupiter.js +3 -0
- package/dist/data/places-mars.d.ts +20701 -0
- package/dist/data/places-mars.js +942 -0
- package/dist/data/places-mercury.d.ts +9256 -0
- package/dist/data/places-mercury.js +403 -0
- package/dist/data/places-mimas.d.ts +968 -0
- package/dist/data/places-mimas.js +43 -0
- package/dist/data/places-miranda.d.ts +419 -0
- package/dist/data/places-miranda.js +19 -0
- package/dist/data/places-moon.d.ts +18849 -0
- package/dist/data/places-moon.js +861 -0
- package/dist/data/places-oberon.d.ts +235 -0
- package/dist/data/places-oberon.js +11 -0
- package/dist/data/places-pluto.d.ts +1687 -0
- package/dist/data/places-pluto.js +74 -0
- package/dist/data/places-rhea.d.ts +3317 -0
- package/dist/data/places-rhea.js +145 -0
- package/dist/data/places-ryugu.d.ts +87 -0
- package/dist/data/places-ryugu.js +5 -0
- package/dist/data/places-saturn.d.ts +25 -0
- package/dist/data/places-saturn.js +2 -0
- package/dist/data/places-tempel-1.d.ts +25 -0
- package/dist/data/places-tempel-1.js +2 -0
- package/dist/data/places-tethys.d.ts +1222 -0
- package/dist/data/places-tethys.js +54 -0
- package/dist/data/places-titan.d.ts +7031 -0
- package/dist/data/places-titan.js +306 -0
- package/dist/data/places-titania.d.ts +418 -0
- package/dist/data/places-titania.js +19 -0
- package/dist/data/places-triton.d.ts +1457 -0
- package/dist/data/places-triton.js +64 -0
- package/dist/data/places-umbriel.d.ts +303 -0
- package/dist/data/places-umbriel.js +14 -0
- package/dist/data/places-venus.d.ts +9290 -0
- package/dist/data/places-venus.js +405 -0
- package/dist/data/places-vesta.d.ts +2444 -0
- package/dist/data/places-vesta.js +107 -0
- package/dist/data/roadster.d.ts +8 -0
- package/dist/data/roadster.js +686 -0
- package/dist/element.js +17 -3
- package/dist/places/67p.d.ts +13 -0
- package/dist/places/67p.js +14 -0
- package/dist/places/ariel.d.ts +13 -0
- package/dist/places/ariel.js +14 -0
- package/dist/places/bennu.d.ts +13 -0
- package/dist/places/bennu.js +14 -0
- package/dist/places/callisto.d.ts +13 -0
- package/dist/places/callisto.js +14 -0
- package/dist/places/ceres.d.ts +13 -0
- package/dist/places/ceres.js +14 -0
- package/dist/places/charon.d.ts +13 -0
- package/dist/places/charon.js +14 -0
- package/dist/places/dimorphos.d.ts +13 -0
- package/dist/places/dimorphos.js +14 -0
- package/dist/places/dione.d.ts +13 -0
- package/dist/places/dione.js +14 -0
- package/dist/places/enceladus.d.ts +13 -0
- package/dist/places/enceladus.js +14 -0
- package/dist/places/eros.d.ts +13 -0
- package/dist/places/eros.js +14 -0
- package/dist/places/europa.d.ts +13 -0
- package/dist/places/europa.js +14 -0
- package/dist/places/ganymede.d.ts +13 -0
- package/dist/places/ganymede.js +14 -0
- package/dist/places/iapetus.d.ts +13 -0
- package/dist/places/iapetus.js +14 -0
- package/dist/places/io.d.ts +13 -0
- package/dist/places/io.js +14 -0
- package/dist/places/jupiter.d.ts +13 -0
- package/dist/places/jupiter.js +14 -0
- package/dist/places/mars.d.ts +12 -0
- package/dist/places/mars.js +13 -0
- package/dist/places/mercury.d.ts +13 -0
- package/dist/places/mercury.js +14 -0
- package/dist/places/mimas.d.ts +13 -0
- package/dist/places/mimas.js +14 -0
- package/dist/places/miranda.d.ts +13 -0
- package/dist/places/miranda.js +14 -0
- package/dist/places/moon.d.ts +12 -0
- package/dist/places/moon.js +13 -0
- package/dist/places/oberon.d.ts +13 -0
- package/dist/places/oberon.js +14 -0
- package/dist/places/pluto.d.ts +13 -0
- package/dist/places/pluto.js +14 -0
- package/dist/places/rhea.d.ts +13 -0
- package/dist/places/rhea.js +14 -0
- package/dist/places/ryugu.d.ts +13 -0
- package/dist/places/ryugu.js +14 -0
- package/dist/places/saturn.d.ts +13 -0
- package/dist/places/saturn.js +14 -0
- package/dist/places/tempel-1.d.ts +13 -0
- package/dist/places/tempel-1.js +14 -0
- package/dist/places/tethys.d.ts +13 -0
- package/dist/places/tethys.js +14 -0
- package/dist/places/titan.d.ts +13 -0
- package/dist/places/titan.js +14 -0
- package/dist/places/titania.d.ts +13 -0
- package/dist/places/titania.js +14 -0
- package/dist/places/triton.d.ts +13 -0
- package/dist/places/triton.js +14 -0
- package/dist/places/umbriel.d.ts +13 -0
- package/dist/places/umbriel.js +14 -0
- package/dist/places/venus.d.ts +13 -0
- package/dist/places/venus.js +14 -0
- package/dist/places/vesta.d.ts +13 -0
- package/dist/places/vesta.js +14 -0
- package/dist/places.d.ts +354 -0
- package/dist/places.js +357 -0
- package/dist/plan/element.d.ts +52 -0
- package/dist/plan/element.js +258 -0
- package/dist/plan/index.d.ts +2 -0
- package/dist/plan/index.js +2 -0
- package/dist/plan/layout.d.ts +230 -0
- package/dist/plan/layout.js +229 -0
- package/dist/plan/svg.d.ts +125 -0
- package/dist/plan/svg.js +185 -0
- package/dist/roadster.d.ts +415 -0
- package/dist/roadster.js +496 -0
- package/dist/scene/body.js +10 -9
- package/dist/scene/painter.d.ts +1 -1
- package/dist/scene/painter.js +23 -7
- package/dist/scene/textures.d.ts +2 -2
- package/dist/space/beside.d.ts +4 -1
- package/dist/space/beside.js +47 -6
- package/dist/space/covered.d.ts +102 -0
- package/dist/space/covered.js +98 -0
- package/dist/space/element.d.ts +21 -1
- package/dist/space/element.js +126 -11
- package/dist/space/index.d.ts +1 -0
- package/dist/space/index.js +1 -0
- package/dist/space/scale.d.ts +2 -1
- package/dist/space/scale.js +13 -2
- package/dist/space/scene.d.ts +10 -0
- package/dist/space/scene.js +45 -22
- package/dist/spacecraft-facts.d.ts +4 -4
- package/dist/spacecraft-facts.js +158 -3
- package/dist/spacecraft.d.ts +69 -2
- package/dist/spacecraft.js +45 -2
- package/dist/textures/mimas-1024.webp +0 -0
- package/dist/textures/mimas-512.webp +0 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +203 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.35.0] - 2026-11-11
|
|
6
|
+
|
|
7
|
+
- **`/places` on 31 more bodies, a `famous` mark, and places that were lost in an atmosphere** (MODULES-1042, the pure part; stacked on the Moon and Mars tables). Each body is its own entry point, `/places/<body>`, loaded by `loadPlaces(body)` on request and carried by no other entry point: Mercury (402 places, 26 kB gzipped), Venus (404, 21 kB), Io, Europa, Ganymede, Callisto, Titan, Enceladus, Mimas, Tethys, Dione, Rhea, Iapetus, Miranda, Ariel, Umbriel, Titania, Oberon, Triton, Pluto, Charon, Ceres and Vesta (their named features from the IAU Gazetteer of Planetary Nomenclature: all of a body's up to 400, Mercury's 400 largest, Venus's 25 largest of each type, and the famous ones always; each feature carries `origin`, where its name comes from), and the sites on Venus (Venera 4 to 14, the two Vega landers, the four Pioneer Venus probes and the bus), Mercury (MESSENGER), Titan (Huygens), Eros (NEAR Shoemaker), Ryugu (Hayabusa2's two touchdowns, the impactor, MASCOT), Bennu (OSIRIS-REx), Dimorphos (DART), comet Tempel 1 (Deep Impact's impactor), comet 67P (Philae at Abydos), Jupiter (Galileo's probe and orbiter) and Saturn (Cassini): 33 bodies in `PLACE_BODIES`, 174 kB gzipped for the 31 new tables. New: `famous: true` on a modest list of places on every body, the Moon and Mars included (30 and 28); the kind `entry` and the outcome `entry` for a probe lost in an atmosphere; `origin`; `source.url` and `source.frame`; the source ids `agency`, `nasa-ntrs`, `pds-atmospheres` and `paper` with credits in `PLACES_CREDITS`. Venus's landers use Basilevsky and Weitz's Magellan-updated positions (GCAT's kept in `gcatPosition`: Venera 9 is a degree off, the Pioneer Venus north probe has latitude and longitude the wrong way round in the catalogue). `placeDistanceKm` refuses the bodies with no radius (Eros, Ryugu, Bennu, Dimorphos, the comets). Fixed in the Moon's and Mars's tables: 35 catalogue dates with a single-digit day had lost the day (Mars 3 read `1971-12`, now `1971-12-02T13:47Z`). Guide and Japanese twin updated; `scripts/make-places-more-data.py`; sources and terms in `NOTICE.md`. The positions that could not be checked against a page are listed in the guide (Eros, Philae, Tempel 1, the Galileo orbiter, six GCAT-only Venus rows).
|
|
8
|
+
- **`/places`: places on the Moon and Mars, and the Sun on any body** (MODULES-928, the pure part). `@johnmorrisdotca/wakusei-planets/places/moon` (858 places, about 33 kB gzipped) and `/places/mars` (939, about 36 kB) are one list each, with the core's size unchanged: the Moon's 6 crewed landings, 22 landers, 13 rovers and 49 crash and impact sites, Mars's 12 landers, 7 rovers and 6 crash sites, and the named features from the IAU Gazetteer (768 on the Moon, 914 on Mars: the maria and every type but albedo features, the craters of 80 km and more and a few small famous ones). Each place has a position (planetocentric, east longitude -180 to 180; every Mars place is planetocentric: Viking 1 moved 24 km, Mars Pathfinder and Sojourner 22 km, Phoenix 14 km and InSight 3 km from GCAT's, and a lander's `source.latitude` says how its latitude stands), a name in English and Japanese, a date, mission, operator, country and outcome, a `source` (`nssdca`, `gcat-landercat` or `iau-gazetteer`, with the day it was read) and `approximate: true` where the position is a degree-or-less estimate. The Moon's site positions are NASA's NSSDCA table of lunar impacts and landings (US government), which replaced 18 of GCAT's, three of them wrong in sign or a placeholder (Surveyor 1, IM-2 Athena, the Apollo 16 subsatellite); the rest is GCAT (J. McDowell, CC BY 4.0, credited: planet4589.org/space/gcat), and GCAT's own figure stays in `gcatPosition` where they differ. `/places` has `findPlace` (id, or a name in either language), `placesOfKind`, `placesNear`, `nearestPlace`, `placeDistanceKm`, `listPlaces` and `loadPlaces` (the tables load on request), and `subSolarPoint`, `terminator`, `localSolarTime`, `isDaylight` and `angleBetween` from the package's own ephemeris and the IAU poles. Twelve positions are tested against second sources (NASA's Apollo and Viking pages, the Gazetteer's named landing sites, NASA GISS's list of Mars landers): within 0.012 degree except Luna 9 and Mars Pathfinder, whose tolerances are stated. No planned landing is held yet (their dates need an agency's announcement typed in by hand). `scripts/make-places-data.py` and `scripts/make-places-checks.py` make the files from the sources' downloads. Guide `docs/guides/places.md` and its Japanese twin; the sources and their terms are in `NOTICE.md`.
|
|
9
|
+
- **`/comets`: 34 well-known comets with orbits, where each is, and a door for a new one** (MODULES-997, the pure part). `@johnmorrisdotca/wakusei-planets/comets` (new; no DOM, no three.js, no loading step) has `listComets` and `findComet` (by id, designation or English name) over 20 periodic comets (1P Halley, 2P Encke, 9P Tempel 1, 19P Borrelly, 21P Giacobini-Zinner, 55P Tempel-Tuttle, 67P Churyumov-Gerasimenko, 81P Wild 2, 103P Hartley 2, 109P Swift-Tuttle and ten more), 11 long-period ones (Hale-Bopp, Hyakutake, NEOWISE, McNaught, Lovejoy, ISON, ZTF, Tsuchinshan-ATLAS and three more) and 3 interstellar ones (1I, 2I, 3I), each with its orbital elements from NASA/JPL's Small-Body Database, its name in English and Japanese, its orbit's condition code, its nucleus size where known and the meteor shower it feeds where that is well established (Perseids, Leonids, Orionids, Eta Aquariids, Taurids, Draconids, Ursids). `cometPosition` (x, y, z in au from the Sun in the J2000 ecliptic frame, from two-body motion in universal variables: closed, near-parabolic, parabolic and open orbits), `cometDistance` (from the Sun and the Earth), `cometOrbit` (points to draw a line through), `cometPerihelia` (last and next perihelion: JPL Horizons' dates for the periodic comets, with `basis` and `lastObserved`: 1P Halley 1986-02-09 and 2061-07-28, 109P 1992-12-12 and 2126-07-12; repeated from the period and marked `estimated` outside their span), `cometTrust` and `COMET_ACCURACY` (how far to trust a position), and `cometFromElements`, a door so a page can add a newly found comet without a release. The id `halley` is the one the space view uses; inside 1800 to 2200 `heliocentric("halley", ...)` stays the more exact position. Measured against Horizons at seven dates within a year of each epoch for twelve comets the position is within 2.5e-3 au (5.2e-3 for 'Oumuamua, 1.3e-2 for ISON, which passed 0.012 au from the Sun in the year), and Halley's 1986 and Hale-Bopp's 1997 perihelia, 18 and 25 years from the elements' epochs, within 0.035 and 0.065 au. The table is about 6 kB gzipped and carried by this entry point only. `scripts/make-comet-data.py` fetches it. Guide `docs/guides/comets.md` and its Japanese twin; the source is named in `NOTICE.md`.
|
|
10
|
+
- **`/roadster`: Starman and the Tesla Roadster, where it is and its numbers** (MODULES-974, the pure part). `@johnmorrisdotca/wakusei-planets/roadster` (new; no DOM, no three.js, no loading step) has the car's position and velocity from the Sun at any date from 2018-02-07 to 2036-01-01 (`roadsterPosition` in km, `roadsterPositionAu`, `roadsterVelocity`, `roadsterSpeed`), from a 675-row table of JPL Horizons state vectors (target -143205) joined by cubic Hermite interpolation, about 20 kB gzipped and carried by this entry point only; `roadsterStats` (distances from the Sun, Earth and Mars in km, miles and au with the light time, speeds relative to each, days since launch, orbits made, the period now, the closest approaches before and after); `roadsterElements` (the osculating orbit); `roadsterApproaches`, `roadsterEvents` (the launch, close approaches to the Earth and Mars, perihelia and aphelia, named in English and Japanese) and `roadsterSeries` (distances and speed at equal steps, for a chart); and `ROADSTER` and `ROADSTER_ACCURACY`. A date outside the span throws a `RangeError`. Measured against Horizons' own record the interpolation is within 755 km (645 km after the first day, 87 km round the Mars pass of 2035) and the position within 629 km of Horizons at 15 dates on no row; the Mars pass of 2035-04-22 (0.016 au) is inside the span and agrees with Horizons' own table to 3 minutes and 0.2 per cent; the path itself is a prediction from February and March 2018's observations. `scripts/make-roadster-data.py` fetches the table. Guide `docs/guides/roadster.md` and its Japanese twin; the source is named in `NOTICE.md`.
|
|
11
|
+
- **`/asteroids`: 104 asteroids and distant small bodies, where they are and what is known of them** (pure part). `@johnmorrisdotca/wakusei-planets/asteroids` (new; no DOM, no three.js, no loading step) has 38 main-belt asteroids (the 27 largest after Ceres, Pallas and Vesta, and 11 more that spacecraft visited), 29 near-Earth asteroids (Atira, Aten, Apollo, Amor), 16 Jupiter trojans, 7 centaurs and 14 trans-Neptunian objects, from JPL's Small-Body Database (read 2026-11-11): orbital elements at the epoch, size, spin, brightness and colour class where known, the potentially-hazardous flag as JPL states it, the year of discovery, and the missions that visited or will visit each, with English and Japanese names. `findAsteroid`, `asteroidList`, `asteroidsOfKind`, `asteroidPositionAu` and `asteroidPosition` (two-body motion with the package's own Kepler solver), `asteroidDistances` (from the Sun and the Earth, with the light time), `asteroidOrbitPoints`, `asteroidPeriodDays`, `asteroidFromElements` (a body of your own) and `asteroidAsSmallBody` (the data door's record). The table is about 17.6 kB gzipped and carried by this entry point only. Measured against Horizons on 16 bodies of every kind: under 0.0000001 au at the epoch, 0.001 au within half a year and 0.004 au within a year. A guide and its Japanese twin, `scripts/make-asteroids-data.py` and tests.
|
|
12
|
+
- **`/spacecraft`: eight deep-space craft and `spacecraftStats`** (pure part). BepiColombo, Psyche, Europa Clipper, Lucy, JUICE, Hayabusa2, OSIRIS-APEX and Solar Orbiter join the ten, each a table of its own made like the others from JPL Horizons (2 to 107 kB gzipped; BepiColombo's is the large one), with launch, agency, status, the page of the mission and its planet and asteroid flybys, dated by the closest approach of the path and tested against Horizons. `SPACECRAFT_IDS` is now 18 long, so `loadSpacecraft()` with no arguments loads about 460 kB. New `spacecraftStats(id, when)`: distance from the Sun and the Earth in km and au with light time, speed relative to each, days since launch.
|
|
13
|
+
- **`/approaches`: close approaches of near-Earth objects to the Earth** (pure part). `@johnmorrisdotca/wakusei-planets/approaches` (new; no DOM, no three.js, no clock) lists 4,183 approaches from JPL's close-approach data, read 2026-11-11: every one within 0.05 au from 2026 to 2036 (3,013) and those within 0.002 au from 1900 to 2025 (1,170), each with date and its 3-sigma uncertainty, nominal, least and greatest distance (au, km, lunar distances), speed relative to the Earth, absolute magnitude, the size range it implies for albedos 0.05 to 0.25 and the measured diameter where JPL has one. `approachList`, `approachesBetween`, `nearestApproaches`, `nextApproach`, `approachesOf`, `approachesWhere`, `approachSizeRange`, `approachDiameterKm`, and `APPROACH_NOTE`, which says these are predictions that change as orbits are refined. The table is about 134 kB gzipped and carried by this entry point only. A guide and its Japanese twin, `scripts/make-approaches-data.py` (with `--refresh`) and tests.
|
|
14
|
+
- **CI's browser jobs run in the Playwright image and need no apt mirror** (KAZOKU-UI-100). The runner's apt mirror stopped answering on 2026-11-11 from about 13:50 UTC, and every browser job failed in its setup before a test ran. The usage, demo and freeze jobs (`ci.yml`) now run in `mcr.microsoft.com/playwright:v1.64.0-noble`, the lockfile's Playwright version, which has the browsers and their system libraries. `.github/actions/playwright` (the family's, kazoku-ui's copy is canonical) checks the libraries with `ldd` first and runs apt only when one is missing, skips the browser cache in the image, works without `sudo`, and warns when a workflow's image and the lockfile name different Playwright versions. The Pages deploy stays on the runner: its `python3 -m venv` has no `ensurepip` in the image.
|
|
15
|
+
- **A body's floating name gives way to the name drawn on it** (MODULES-968, John: NEPTUNE on the globe with the floating "Neptune" on top of it). While a body carries its drawn name (`body-label` on, and the body at least 24 CSS pixels in radius, the rule `stats.bodyLabels` reports), its floating name and dot fade out (a third of a second; at once under reduced motion) and leave their place to the other names; they fade back when the body shrinks below that, and bodies with no drawn name keep their floating names. `labels-always` (an attribute, and `space.labelsAlways`) keeps both. A faded name is no button to reach. Also from the same picture: beside the Moon the view could be upside down (`besideMoon` turned the picture so the planet was to the side of the moon, either way up, and EARTH read upside down); up now keeps to the north side of the scene, so the Earth is never seen south-up from beside the Moon. A unit test over sun directions and yaws, and a picture test of the fade. Far bodies' names over a body that hides them stay as they were (MODULES-924).
|
|
16
|
+
- **A body behind another gets a quiet arrow, not a name on top** (MODULES-924, John: "don't show the text... instead show an arrow pointing generally behind that object... it's all about being subtle"). `covered="arrow"` on `<wakusei-space>` (and `space.covered`; off by default, `name` draws the names over the disc as before, until John says) takes the floating name and ring off a body whose place on the screen is inside a nearer body's disc (`BodyPlace.behind` names the covering body, from `coveredBy`), and draws one small arrow just outside that disc's edge on the side nearest the hidden body, pointing in behind it, with the surest hidden body's name beside it and the others counted (`Uranus +4`); a press on it goes to that body, and the arrow goes as the body comes out. One arrow per covering disc (`coverArrows` from `/space` is the pure placing). A dot narrower than 6 CSS pixels covers nothing. Unit tests of the covering and the placing, and a picture test from beside the Moon.
|
|
17
|
+
- **A body's floating name gives way to the name drawn on it** (MODULES-968, John: NEPTUNE on the globe with the floating "Neptune" on top of it). While a body carries its drawn name (`body-label` on, and the body at least 24 CSS pixels in radius, the rule `stats.bodyLabels` reports), its floating name and dot fade out (a third of a second; at once under reduced motion) and leave their place to the other names; they fade back when the body shrinks below that, and bodies with no drawn name keep their floating names. `labels-always` (an attribute, and `space.labelsAlways`) keeps both. A faded name is no button to reach. Also from the same picture: beside the Moon the view could be upside down (`besideMoon` turned the picture so the planet was to the side of the moon, either way up, and EARTH read upside down); up now keeps to the north side of the scene, so the Earth is never seen south-up from beside the Moon. A unit test over sun directions and yaws, and a picture test of the fade. Far bodies' names over a body that hides them stay as they were (MODULES-924). Beside a moon the picture's up is the planet's own north pole laid across the line of sight now, always (`stats.camera.up` reports it, `stats.camera.forward` where the camera looks); the first fix here only stopped it inverting, and MODULES-981 asked for north up at every date. The scene's +y was tried first and was the wrong north for the sideways systems (John's Oberon pictures): Uranus's and Pluto's moons go round nearly over the Earth's poles, so the camera passed close to looking along +y and the picture swung once a lap, and the planets' own poles leaned back and forth. With the planet's pole as north a regular moon keeps the camera near the equator, so the pole stays square to the line of sight, and the equator and rings stay level; within 10 degrees of looking along the pole the up blends to the scene's +y. Both discs are framed by their across and up needs. A unit test checks every moon the package has at 16 points of its orbit, in both scales, within 5 degrees, and that the picture never rolls on its own between steps of 1/1440 of an orbit. The camera also no longer hops to the Sun's other side in one step as the moon crosses the line from the Sun through its planet (MODULES-1005, Jupiter's four big moons jumped 9 to 25 degrees): within about 20 degrees of that line the camera's side is pushed towards the planet's north side, more the nearer the Sun is to the line, so it goes round over the top a little at a time. A rule that reads only the Sun's place keeps one sharp moment: with the Sun about 11 degrees south of the moon's orbit the side swings round within a few frames as the moon crosses the line from the Sun through its planet (Iapetus in 2029, Proteus and Nereid in 2033; Jupiter's moons, whose Sun is always within 3 degrees of their orbits, never meet it). The test holds the line of sight under 3 degrees a step in both scales, but for at most one such passage an orbit, under 6 degrees, from six dates over 23 years for the moons of Saturn, Uranus and Neptune (a sweep of the band's width and shape chose this one: a linear ramp of 8.6 degrees still let Mimas jump 14.6 degrees and Nereid 6.6).
|
|
18
|
+
- **No dark seam down Mimas, and no moon drawn in its planet's rings** (MODULES-958, John's picture from the explore demo at Mimas: a dark band from pole to pole, and Saturn beside it pale and see-through with its rings through the globe). Two faults. (1) Mimas's surface picture was cut from its source map with a box a little wider than the map, so 22 black columns of the gap between the map and its frame sat at the seam, drawn as a band down the globe: the box is the map now (`scripts/make-textures.py`, the same box for its tiles in `scripts/make-body-tiles.py`), the three pictures are remade (a few hundred bytes more), and a picture test reads the first and last columns of every map for black. (2) In a compressed view the moons were drawn from the planet out by a square-root curve that put Mimas in Saturn's ring plane at 2.29 radii (the ring's edge is 2.33) and Proteus almost on Neptune's globe: a camera riding beside Mimas was in the rings, with the far half of the ring in front of Saturn and the near half behind the camera. `moonDistance` now runs from the nearest a moon may be drawn (1.5 radii, and outside the rings with a little room) to the room's edge, in the moons' order, so Mimas and Enceladus keep their real distances and a unit test checks every moon of every planet over a year. Saturn's globe was solid all along: seen from inside its rings it looked see-through.
|
|
19
|
+
- **The Sun turns with the view and with its own spin** (MODULES-922, John: "rotating solar system doesn't rotate the sun"). The Sun was drawn as a flat picture turned to face the camera, so it showed the same face and markings however the view turned. It is a globe now, like the others: its surface has the Sun's own pole and prime meridian (about 25 days a turn at the equator), so it turns with the view's yaw, tilt and roll and with time, and its glow still faces the camera (the painter turns the glow itself from `PaintInfo.view`). `Painting.billboard` is no longer set for the Sun: a page that turned the Sun's object to its camera should stop, and pass `view`. The glow turns only when `update` is given `view` (the camera): a page in its own scene that gave none, and turned the Sun's object itself, passes `view` now, or the glow keeps the turn it had. A picture test turns the view (yaw, tilt and roll) and the clock and compares the Sun's pixels in both looks and both scales, and from Mercury with the distances squeezed.
|
|
20
|
+
- **Help mode's axis line and spin arrow are hidden where the body covers them** (MODULES-914, John: "it should stop at the top of the planet and come out the bottom ... the part that's behind the planet doesn't need to be seen over the planet ... as a default option. the package user can still choose to see the full lines as designed"). The lines now have depth against their own body: the axis runs into the near pole and comes out of the far pole only where that end is not behind the globe, and the part of the curved arrow behind the globe is hidden. The attribute `help-through` and the property `helpThrough` (off by default) bring back the whole lines over the globe. A picture test counts the axis' pixels over Mars (both looks, both scales), Saturn and the Earth. John's second picture, Mars drawn see-through with the axis across it, was checked at Mars in both looks and both scales by the picture test: the see-through look was the whole lines drawn over the globe with no depth, and with depth it is gone; it is not a separate fault.
|
|
21
|
+
- **The top-down plan** (MODULES-1023). `<wakusei-plan>` (`@johnmorrisdotca/wakusei-planets/plan/element`) is a small SVG map, with no WebGL, of the solar system from above or of one planet's moons from above its north pole, with one body marked, for the `time` it is given. `system`, `mark`, `time`, `spacing` (`squeezed`, a logarithm, or `true`), `names`, `lang`, `size` and `theme`; it draws only when one changes and not out of sight, has no timer, sends `wakusei-plan-pick` when a dot is pressed, and follows the page's light or dark and language. The pure side is `@johnmorrisdotca/wakusei-planets/plan` (`planAt`, `planSvg`, `planText`, `planName`, `planRadius`, `planSunExtent`). A demo page, guides in English and Japanese, and usage examples.
|
|
22
|
+
|
|
5
23
|
## [0.34.0] - 2026-11-11
|
|
6
24
|
|
|
7
25
|
- **The body's name written on its globe** (MODULES-923). `body-label="painted"` on `<wakusei-body>` and `<wakusei-space>` writes each body's name on its own surface in the shaded looks, large and in capitals, lying on the globe and turning with it as a film lays a title over the thing it names, with the surface showing through. Off by default. The family's standard attributes beside it: `body-label-strength` (0 to 1), `body-label-repeat` (`once`, `both` so one is always in view, `around`), `body-label-latitude` (the equator, or a band near a pole), `body-label-facing` (the name keeps facing the reader while the body turns under it), `body-label-font` and `body-label-fallback-font`; and one property, `bodyLabel`, taking the same as an object or `null`. The looks are `painted`, `etched`, `outline` and `burned`. The default when on is John's pick: Michroma, painted, half strength, once, on the equator, turning with the body. The text is the body's name in the element's `lang` (`EARTH`, `地球`; Japanese in the fallback font). A body drawn smaller than 24 CSS pixels in radius carries no name, so the small moons and the whole solar system stay plain; the Sun's is drawn on its disc, fully lit; the name is lit as the body is, so it is dark on the night side. The drawing is kazoku-ui 0.37's `body-label` (the one drawing for the family, so chikyu-earth's Earth can carry the same), fitted to the bodies' own frame and lit through the painter's own light (the scenes have no three.js lights). Through the painter: `label` in `PaintContext`, `setLabel` and `label` on a `Painting`, `PaintLabel`; `readNameLabel` and `nameLabelText` from `/painter`. Michroma (SIL OFL 1.1) is fetched once from kazoku-ui's copy the first time a name is written in it; a page's own font fetches nothing. A page that hands over a subset of three.js adds `CanvasTexture`, `SRGBColorSpace` and `NormalBlending` for the name to be drawn. Both demo pages have a "Name on the body" row kept in the address (`bl`, `blr`, `bll`, `bls`, `blf`); `stats.label` and `stats.bodyLabels` say what is drawn. Guide "A name on the body" in English and Japanese; `e2e/body-label.demo.ts` and a freeze case. kazoku-ui 0.37.
|
package/NOTICE.md
CHANGED
|
@@ -48,6 +48,14 @@ Voyager 1 and 2, New Horizons, Pioneer 10 and 11, Cassini, Galileo, Juno, Parker
|
|
|
48
48
|
- **Facts and events**: NASA mission pages, read 2026-11-08: Voyager 1 (https://science.nasa.gov/mission/voyager/voyager-1/), Voyager 2 (https://science.nasa.gov/mission/voyager/voyager-2/), New Horizons (https://science.nasa.gov/mission/new-horizons/), Pioneer 10 (https://science.nasa.gov/mission/pioneer-10/), Pioneer 11 (https://science.nasa.gov/mission/pioneer-11/), Cassini (https://science.nasa.gov/mission/cassini/ and its timeline, https://science.nasa.gov/mission/cassini/the-journey/timeline/), Galileo (https://science.nasa.gov/mission/galileo/), Juno (https://science.nasa.gov/mission/juno/ and the NSSDCA record 2011-040A, https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id=2011-040A), Parker Solar Probe (https://science.nasa.gov/mission/parker-solar-probe/ and the NSSDCA record 2018-065A, https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id=2018-065A) and the James Webb Space Telescope (https://science.nasa.gov/mission/webb/ and https://science.nasa.gov/mission/webb/launch/). A time is given only where a page gives one. Where a page's date for a flyby disagrees with the closest approach of Horizons' path, the package keeps the date of the path (listed in the guide).
|
|
49
49
|
- **Japanese names** are the usual Japanese spellings of the missions' names.
|
|
50
50
|
|
|
51
|
+
## The Tesla Roadster
|
|
52
|
+
|
|
53
|
+
The path of the Tesla Roadster (Starman), launched on the first Falcon Heavy on 2018-02-06, is a table of state vectors from NASA/JPL Horizons (https://ssd.jpl.nasa.gov/api/horizons.api), target -143205 (solution s11), centre the Sun, ecliptic and equinox J2000, fetched on 2026-11-11 by `scripts/make-roadster-data.py` (`src/data/roadster.ts`; the positions the tests compare with are in `test/data/roadster-horizons.json`). NASA/JPL Horizons data is a work of the US government and in the public domain; credit: NASA/JPL-Caltech. The launch time (2018-02-06 20:45 UTC) is from Horizons' own notes on the object. The path after the observations of February and March 2018 is a prediction.
|
|
54
|
+
|
|
55
|
+
## Comets
|
|
56
|
+
|
|
57
|
+
The comets' orbits (`/comets`, `src/data/comets.ts`) are the orbital elements of the NASA/JPL Small-Body Database (https://ssd-api.jpl.nasa.gov/sbdb.api, no key), one request for each of 34 comets, read on 2026-11-11 with full precision by `scripts/make-comet-data.py` (the solution date of each is in its record). The positions the tests compare with are from NASA/JPL Horizons (https://ssd.jpl.nasa.gov/api/horizons.api, read 2026-11-11; `test/data/comets-horizons.json`), and so are the last and next perihelion dates of the 20 periodic comets (Horizons' osculating elements of each comet's latest apparition record, asked at the two passages nearest 2026-11-11, `perihelion` in each record, with the record number as its source). Horizons' API documentation (https://ssd-api.jpl.nasa.gov/doc/horizons.html) states no terms of use and no citation rule (read 2026-11-11); its data are NASA/JPL's. The elements are numbers computed by JPL, a US government laboratory, and NASA's media usage guidelines (https://www.nasa.gov/nasa-brand-center/images-and-media/, read 2026-11-11) say that NASA content is generally not subject to copyright in the United States; the API's own documentation (https://ssd-api.jpl.nasa.gov/doc/sbdb.html, read 2026-11-11) states no licence. JPL's copyright page (https://www.jpl.nasa.gov/copyrights) refused automated reading on 2026-11-11 (HTTP 403) and was not worked round. Credit: NASA/JPL-Caltech. The English and Japanese names, the kinds and the meteor-shower links are our own. The near-Earth comets' dataset on the NASA Open Data Portal is not used (its licence field reads "not specified").
|
|
58
|
+
|
|
51
59
|
## The size line-up's radii
|
|
52
60
|
|
|
53
61
|
The twelve stars of `<wakusei-lineup>` (`src/lineup/data.ts`, `LINEUP_STARS`). Every radius and temperature was typed from a refereed paper (the abstract and the tables, on arXiv and in the journal's own record, read on 2026-11-09); the papers are credited and none of their text, figures or tables is copied. Facts are not copyrightable. A radius is an angular diameter that was measured (interferometry where it exists) times a distance, or, where the row says so, a radius worked out from brightness. Nothing is taken from an infographic, from Wikipedia's text, or from the catalogues of Hipparcos, Gaia or Tycho (ESA, CC BY-NC 3.0 IGO): where a paper's distance is a catalogue parallax (Vega, Arcturus, Aldebaran, Rigel, Antares), only the paper's published radius and angle are typed here, never the parallax. Each ADS bibcode below opens the paper at https://ui.adsabs.harvard.edu/abs/<bibcode>/abstract.
|
|
@@ -146,6 +154,27 @@ The generic detail of a close zoom (docs/guides/close-zoom.md) is noise made in
|
|
|
146
154
|
|
|
147
155
|
A body's name written on its globe (`body-label`) is drawn in Michroma, by Vernon Adams, "Copyright 2011 The Michroma Project Authors (https://github.com/googlefonts/Michroma-font)", under the SIL Open Font License, Version 1.1, with no Reserved Font Name. The licence was read on 2026-11-11: it allows the font to be used, bundled, embedded and redistributed with software, as long as the copyright notice and the licence go with it and the font is not sold by itself. This package bundles no font: the file ships unchanged in `@johnmorrisdotca/kazoku-ui` (`dist/body-label/fonts/Michroma-Regular.ttf`, with `OFL.txt` beside it) and is fetched from there only when a page writes a name in it. A page that names its own font fetches nothing.
|
|
148
156
|
|
|
157
|
+
## Places on the Moon and Mars
|
|
158
|
+
|
|
159
|
+
`/places/moon` and `/places/mars` (`src/data/places-moon.ts`, `src/data/places-mars.ts`, made by `scripts/make-places-data.py`; the second-source positions the test uses are in `test/data/places-second-source.json`, made by `scripts/make-places-checks.py`) hold three kinds of data, all read on 2026-11-11.
|
|
160
|
+
|
|
161
|
+
- **The Moon's landing, impact and crash positions**: NASA's NSSDCA, "Table of Anthropogenic Impacts and Spacecraft on the Moon" (https://nssdc.gsfc.nasa.gov/planetary/lunar/lunar_artifact_impacts.html), a page of a US government agency; NASA's media usage guidelines (https://www.nasa.gov/nasa-brand-center/images-and-media/, read 2026-11-11) say NASA content is generally not subject to copyright in the United States, and the NSSDCA's own pages state no other terms (read 2026-11-11). Credit: NASA NSSDCA. The positions are facts (the table says its LRO-based ones are from LRO images in the DE 421 frame); no text is taken from it. NSSDCA's Apollo 11, Apollo 17 and Viking 1 spacecraft pages (https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id=1969-059C, 1972-096C and 1975-075C) give those three positions for the test and Viking 1's for the table, and NASA GISS's "Mars24 Sunclock: Mars Lander Missions" (https://www.giss.nasa.gov/tools/mars24/help/landers.html, list of 2023-12-09) gives the Mars landing sites the test holds the table to.
|
|
162
|
+
- **Mars landers' positions (planetocentric latitude, east longitude)**: NSSDCA's Viking 1 and Viking 2 lander pages (https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id=1975-075C and 1975-083C); the PDS Mars Orbital Data Explorer's "Existing Landing Sites" page (https://ode.rsl.wustl.edu/mars/pagehelp/Content/Missions_Instruments/Landing_Sites.htm, read 2026-11-11; a NASA-funded PDS node at Washington University, the page states no terms) for Spirit, Opportunity, Mars Pathfinder and Phoenix, citing Arvidson et al. 2004, Folkner et al. 1997 and Smith et al. 2009; NASA GISS's Mars24 list for InSight. Phoenix's printed 68.22 N is taken as planetographic and converted (tan phi_c = 0.98826 tan phi_g, IAU 2000 radii); each record's `source.latitude` says which of `planetocentric`, `converted` and `not stated` it is.
|
|
163
|
+
- **The sites' dates, operators, countries, names and the other Mars sites' positions**: GCAT, the General Catalog of Artificial Space Objects, J. McDowell, lander catalogue updated 2026-11-09 (https://planet4589.org/space/gcat/). Its page states "GCAT is released under the Creative Commons CC-BY licence. You are free to use the data in GCAT as long as you include a citation to it" and "Licence: CC-BY-4.0" (read 2026-11-11); the credit line is "data from GCAT (J. McDowell, planet4589.org/space/gcat)" (John Morris agreed to GCAT on those terms on 2026-11-11). Where GCAT's and NASA's positions differ the table keeps both (`gcatPosition`); three of GCAT's lunar positions had the wrong sign or were a placeholder (Surveyor 1, IM-2 Athena, the Apollo 16 subsatellite) and are NASA's.
|
|
164
|
+
- **The named features**: the IAU Gazetteer of Planetary Nomenclature, kept by the USGS Astrogeology Science Center (https://planetarynames.wr.usgs.gov/), from its nightly centre-point shapefiles (https://planetarynames.wr.usgs.gov/shapefiles/MOON_nomenclature_center_pts.zip and MARS_nomenclature_center_pts.zip, files of 2026-11-11). USGS states "USGS-authored or produced data and information are considered to be in the U.S. Public Domain" (https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits, read 2026-11-11), and asks for credit: U.S. Geological Survey. The names are the IAU's.
|
|
165
|
+
- The names a page shows for GCAT's technical object names, the plain words for feature types, and the Japanese names are ours. No text is taken from any encyclopedia, and no planned landing is held (their dates need an agency's own announcement typed in by hand).
|
|
166
|
+
|
|
167
|
+
## Places on the other 31 bodies
|
|
168
|
+
|
|
169
|
+
`/places/<body>` for Mercury, Venus, Io, Europa, Ganymede, Callisto, Titan, Enceladus, Mimas, Tethys, Dione, Rhea, Iapetus, Miranda, Ariel, Umbriel, Titania, Oberon, Triton, Pluto, Charon, Ceres, Vesta, Eros, Ryugu, Bennu, Dimorphos, comets Tempel 1 and 67P, Jupiter and Saturn (`src/data/places-<body>.ts`, `src/places/<body>.ts`, made by `scripts/make-places-more-data.py`). Everything below was read on 2026-11-11; every download is kept in the maintainer's backups and was fetched one request at a time with the User-Agent `wakusei-planets-data-build/1.0`.
|
|
170
|
+
|
|
171
|
+
- **The named features**: the IAU Gazetteer of Planetary Nomenclature (USGS Astrogeology), 23 of the nightly centre-point shapefiles listed on https://planetarynames.wr.usgs.gov/GIS_Downloads (for example https://asc-planetarynames-data.s3.us-west-2.amazonaws.com/VENUS_nomenclature_center_pts.zip, files of 2026-11-11). USGS's terms, read at https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits: "USGS-authored or produced data and information are considered to be in the U.S. Public Domain", with "we ask that proper credit be given" (credit: U.S. Geological Survey). The Gazetteer's download page says its files are "in east longitude, planetocentric latitude". The names are the IAU's; the `origin` of each name is the Gazetteer's own sentence for it. Japanese names and plain words for the types are ours.
|
|
172
|
+
- **The sites' dates, operators, countries and the positions not named below**: GCAT, J. McDowell, lander catalogue updated 2026-11-09 (https://planet4589.org/space/gcat/), CC BY 4.0, credited as "data from GCAT (J. McDowell, planet4589.org/space/gcat)" (the terms are those of the entry above).
|
|
173
|
+
- **Venus's landers** (Venera 8, 9, 10, 13, 14, Vega 1, Vega 2): Basilevsky and Weitz, "The geology of the Venera/Vega landing sites" (1992), the NASA Technical Reports Server record https://ntrs.nasa.gov/citations/19930005108, whose metadata say distribution PUBLIC and determination GOV_PUBLIC_USE_PERMITTED (https://ntrs.nasa.gov/api/citations/19930005108); only the seven coordinates (updated from Magellan's radar images) are typed, none of its text. **The Pioneer Venus probes and bus**: the Planetary Data System's Atmospheres Node (NMSU, NASA-funded), "Summary of the Pioneer Venus Mission", https://pds-atmospheres.nmsu.edu/data_and_services/atmospheres_data/PIONEER_Venus/venus_cp.html (its table of impact latitudes, longitudes and times; the page states no terms; facts only; credit NASA PDS).
|
|
174
|
+
- **NASA pages** (facts typed, credit NASA): MESSENGER's impact, https://science.nasa.gov/photojournal/best-determination-of-messengers-impact-location/ (54.4398 N, 210.1205 E, 19:26:01 UTC); Huygens, Photojournal PIA06437 (10.3 S, 192.3 W), https://photojournal.jpl.nasa.gov/catalog/PIA06437; NEAR Shoemaker's touchdown time, NSSDCA record 1996-008A, https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id=1996-008A (20:01:52 UT); Galileo's probe, https://solarsystem.nasa.gov/missions/galileo-probe/in-depth (6.5 N, 4.4 W, 22:04:44 UT 1995-12-07); Cassini's entry, Photojournal PIA21896, https://science.nasa.gov/photojournal/impact-site-infrared-image/ (9.4 N, 53 W). NASA's terms, read at https://www.nasa.gov/nasa-brand-center/images-and-media/: "NASA content ... generally are not subject to copyright in the United States", "NASA content used in a factual manner that does not imply endorsement may be used without needing explicit permission. NASA should be acknowledged as the source of the material." Not endorsed by NASA.
|
|
175
|
+
- **Papers** (coordinates typed, none of the text): DART's impact point, Daly et al. 2023, "Successful kinetic impact into an asteroid for planetary defence", Nature (https://pmc.ncbi.nlm.nih.gov/articles/PMC10115643/, Table 1: 8.84 S, 264.30 E; the article says "licensed under a Creative Commons Attribution 4.0 International License"); Tempel 1's impact point, Nagdimunov et al. 2014, arXiv 1406.3308 (16 E, 28 S in the Farnham and Thomas 2013 shape-model frame); Philae's Abydos, Hoang et al. 2020, arXiv 2008.03180, quoting Ulamec et al. 2017 (-1.60 longitude, -8.04 latitude). Hayabusa2's touchdowns, the impactor's crater and MASCOT, Bennu's Nightingale and the Galileo orbiter's longitude are GCAT's; JAXA's Hayabusa2 pages (https://www.hayabusa2.jaxa.jp/en/topics/20190220e_TDPoint/ and the July 2019 one) were read and give no coordinates.
|
|
176
|
+
- **Not read, and not worked round**: the PDS Small Bodies Node's NEAR coordinate file (https://sbn.psi.edu/pds/resource/near/NEAR_Coordinate_Systems.txt) answered HTTP 403 to a program, so Eros's 37.2 S, 81.6 E (278.4 W) is as a search extract quoted that file, not checked against it; JPL's news page for Cassini's end answered 403 (NASA's own copy of the release gives the time and the entry point, from which the figures are taken); the OSIRIS-REx mission's own site (asteroidmission.org) has a certificate that does not match its name, so Nightingale's 56 N, 43 E rests on GCAT and a search extract of that page. No text from Wikipedia or any encyclopedia is used.
|
|
177
|
+
|
|
149
178
|
## The data door
|
|
150
179
|
|
|
151
180
|
- **The package's own credits (`OWN_SOURCES` in `@johnmorrisdotca/wakusei-planets/door`, MODULES-831, written 2026-11-10)**: three rows, written from the entries of this file and read nowhere else. `wakusei-pictures` is the surface pictures (Surface pictures above: NASA, USGS and JPL maps that are public domain, and Solar System Scope's and Nestaeric's maps, CC BY 4.0; its licence name is the stricter, "CC BY 4.0", read 2026-11-02). `wakusei-tiles` is the finer map tiles (Finer map tiles above: public domain, read 2026-11-09). `wakusei-orbits` is the series and tables the positions come from (The numbers above: IMCCE's VSOP87B and ELP2000-82B, which "carry no licence text" and are published for use with the credit, and JPL Horizons, NASA/JPL-Caltech, read 2026-11-07; its licence name says "Published for use with credit"). A test holds that none of the three is marked non-commercial or share-alike.
|
|
@@ -164,3 +193,22 @@ The TASS1.7 table above was read from Orbiter (https://github.com/orbitersim/orb
|
|
|
164
193
|
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
165
194
|
>
|
|
166
195
|
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
196
|
+
|
|
197
|
+
## Asteroids and distant small bodies
|
|
198
|
+
|
|
199
|
+
The 104 records of `/asteroids` (`src/data/asteroids.ts`, made by `scripts/make-asteroids-data.py`) are from NASA/JPL's Solar System Dynamics services, fetched on 2026-11-11: the Small-Body Database Query API (https://ssd-api.jpl.nasa.gov/sbdb_query.api) for the orbits, sizes, spin periods, brightness, colour classes, orbit classes and hazard flags; the Small-Body Database API (https://ssd-api.jpl.nasa.gov/sbdb.api) for the dates of discovery (a body the database has no discovery date for takes the year of its provisional designation); and JPL Horizons (https://ssd.jpl.nasa.gov/api/horizons.api) for the osculating elements of the two bodies whose own solution is from another year (Bennu and 2018 AG37) and for the positions the tests compare with (`test/data/asteroids-horizons.json`). The services need no key. Their terms ("SSD API Service - Fair Use Policy", https://ssd-api.jpl.nasa.gov/, read 2026-11-11) ask for requests reasonably necessary and cached, one at a time, with an application-specific User-Agent naming the product, its version and a contact: the script does all three, stops on an error instead of retrying, and the answers are kept outside the repository. The policy's ban on embedding the APIs in a website is kept: nothing here calls them at run time; the data is a file in the package. NASA content is generally not subject to copyright in the United States (NASA Images and Media Usage Guidelines, https://www.nasa.gov/nasa-brand-center/images-and-media/, read 2026-11-11); credit: NASA/JPL-Caltech. This package is not endorsed by NASA and uses none of its insignia.
|
|
200
|
+
|
|
201
|
+
- **Sizes**: the diameters are the database's. Varuna's 900 km is an old estimate that the database still lists; Herschel thermal measurements give about 670 km (a preliminary value, Santos-Sanz et al., EPSC 2013 abstract 665, https://meetingorganizer.copernicus.org/EPSC2013/EPSC2013-665-2.pdf), noted in its record but not used, because the table follows the database.
|
|
202
|
+
- **Missions that have happened since the plan**: Hayabusa2 at Torifune on 2026-07-05 (JAXA, https://global.jaxa.jp/press/2026/07/20260730-1_e.html and https://www.isas.jaxa.jp/en/missions/spacecraft/current/hayabusa2.html, read 2026-11-11) and Tianwen-2 at Kamo`oalewa (CNSA, https://www.cnsa.gov.cn/n6758823/n6758838/c10760422/content.html, 2026-07-06: about 20 km from the asteroid, scientific work begun; read 2026-11-11). Still planned: Hayabusa2 at 1998 KY26 (2031), Hera at Didymos, Psyche, OSIRIS-APEX at Apophis, DESTINY+ at Phaethon and Lucy's trojans.
|
|
203
|
+
- **Names**: the English names are the Minor Planet Center's, as the database gives them; the Japanese names are the usual katakana of each name, and a body with no name keeps its designation.
|
|
204
|
+
- **Missions and years** (`missions`) are plain facts about which spacecraft flew past, orbited or landed on a body, and the year; a visit still to come is marked `planned`. No text is copied.
|
|
205
|
+
- **Not repeated here**: Ceres, Pallas, Vesta, Chiron, Pholus, Halley and the dwarf planets, which have their own tables above.
|
|
206
|
+
|
|
207
|
+
## Deep-space spacecraft and close approaches
|
|
208
|
+
|
|
209
|
+
BepiColombo, Psyche, Europa Clipper, Lucy, JUICE, Hayabusa2, OSIRIS-APEX (OSIRIS-REx) and Solar Orbiter (added to the spacecraft above on 2026-11-11), and the close approaches of `/approaches`. NASA content is generally not subject to copyright in the United States (NASA Images and Media Usage Guidelines, https://www.nasa.gov/nasa-brand-center/images-and-media/, read 2026-11-11); credit: NASA/JPL-Caltech. This package is not endorsed by NASA, ESA or JAXA and uses none of their insignia.
|
|
210
|
+
|
|
211
|
+
- **Where the craft are**: JPL Horizons (https://ssd.jpl.nasa.gov/api/horizons.api, fetched 2026-11-11), VECTORS, heliocentric, ecliptic and equinox J2000, over the whole of each craft's own record, fitted as Chebyshev tables by `scripts/make-spacecraft-data.py` (`src/craft/<craft>.ts`); the positions the tests compare with are in `test/data/spacecraft-horizons.json`. Horizons' paths after today are predictions.
|
|
212
|
+
- **Close approaches**: the Close-Approach Data API (https://ssd-api.jpl.nasa.gov/cad.api, version 1.5, two list requests on 2026-11-11), by `scripts/make-approaches-data.py` (`src/data/approaches.ts`). They are predictions that change as orbits are refined.
|
|
213
|
+
- **Terms**: the Solar System Dynamics services need no key. Their terms ("SSD API Service - Fair Use Policy", https://ssd-api.jpl.nasa.gov/, read 2026-11-11) ask for requests reasonably necessary and cached, one at a time, with an application-specific User-Agent naming the product, its version and a contact, and for automated processes to back off on errors; the scripts do all of these (they stop on an error instead of retrying, and keep the answers outside the repository), and nothing calls the services at run time.
|
|
214
|
+
- **Facts and events** of the eight craft (launch time, site, vehicle, agency, the flybys) are plain facts, not copied text; the page of each mission is its `url` (NASA's, ESA's or JAXA's). The day of every flyby of the eight craft is the closest-approach day on JPL Horizons' path, which the tests check against Horizons, and may differ from an agency's announced date by a day or more (checked 2026-11-11: JUICE's second Earth flyby, ESA, 28 September 2026 11:45 UTC (https://www.esa.int/Science_Exploration/Space_Science/Juice/Juice_to_fly_past_Earth_for_third_gravity_assist), and Lucy at Eurybates, NASA, 11 August 2027 ET (https://science.nasa.gov/mission/lucy/), agree with the path; Lucy at Patroclus does not: path 2033-02-27, NASA 2033-03-03 ET). The exception is Hayabusa2's flyby of Torifune, JAXA's own time, 2026-07-05 18:30 JST (https://global.jaxa.jp/press/2026/07/20260730-1_e.html, read 2026-11-11). The distances are what the agencies state. The Japanese names are the usual Japanese spellings of the missions' names.
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Wakusei Planets runs in the browser of a phone, a tablet or a computer: nothing
|
|
|
19
19
|
|
|
20
20
|
<p align="center"><img alt="The demo on a desk: Saturn in the painted look, turning in the big view, with the page's links to the portrait builder, the colouring sheets, the space view, the star page and the size line-up above it, and the choice of body and its moons below" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/main/docs/images/home-desk.webp" width="620"> <img alt="The same page on a phone: the same links in rows, and Saturn in the painted look below them" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/main/docs/images/home-phone.webp" width="200"></p>
|
|
21
21
|
|
|
22
|
-
<p align="center"><img alt="Every body at one scale, the Earth among them: each small body has a magnified picture joined by a line, and the Sun shows only its edge" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/v0.
|
|
22
|
+
<p align="center"><img alt="Every body at one scale, the Earth among them: each small body has a magnified picture joined by a line, and the Sun shows only its edge" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/v0.35.0/docs/images/lineup-desk.png" width="640"></p>
|
|
23
23
|
|
|
24
24
|
## Who it is for
|
|
25
25
|
|
|
@@ -151,6 +151,17 @@ const text = lineupText(largest, "en");
|
|
|
151
151
|
console.log(`${text.name}: ${text.radius}, ${text.km}, ${text.source}`);
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
+
## The top-down plan
|
|
155
|
+
|
|
156
|
+
`<wakusei-plan mark="mars">` is a small map of the solar system from above, or (`system="jupiter" mark="io"`) of one planet's moons from above its pole, with the body you are looking at marked. It is SVG with no WebGL, made to be read at 200 to 280 pixels, so it fits an inset beside a 3D view. Distances are squeezed with a logarithm so Mercury and Neptune both show, or to scale with `spacing="true"`. It draws only when its time, mark or another attribute changes, never on a timer. The pure side needs no browser; [the guide](docs/guides/plan.md) has the attributes and both spacings:
|
|
157
|
+
|
|
158
|
+
```ts
|
|
159
|
+
import { planAt } from "@johnmorrisdotca/wakusei-planets/plan";
|
|
160
|
+
|
|
161
|
+
const io = planAt(Date.UTC(2026, 10, 11), { system: "jupiter", mark: "io", spacing: "true" }).dots.find((dot) => dot.id === "io");
|
|
162
|
+
console.log(io?.distance.toFixed(1), "Jupiter radii from Jupiter");
|
|
163
|
+
```
|
|
164
|
+
|
|
154
165
|
## A name on the body
|
|
155
166
|
|
|
156
167
|
`body-label="painted"` writes the body's name on its own globe, large and in capitals, lying on the surface and turning with it, as a film lays a title over the thing it names: on `<wakusei-body>` and on every body of `<wakusei-space>`, in the page's language, in Michroma by default or a font of yours. Four looks (`painted`, `etched`, `outline`, `burned`), once or on both sides, at the equator or near a pole, turning with the body or always facing you; nothing on a body too small on the screen. [A name on the body](docs/guides/name-on-the-body.md) has the attributes.
|
|
@@ -376,7 +387,7 @@ The tiles of every body share one 48 MB budget, six loads at a time for a source
|
|
|
376
387
|
|
|
377
388
|
## The portrait builder
|
|
378
389
|
|
|
379
|
-
<p align="center"><img alt="The Sun and the planets in an arc, painted, with their names, in the portrait builder" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/v0.
|
|
390
|
+
<p align="center"><img alt="The Sun and the planets in an arc, painted, with their names, in the portrait builder" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/v0.35.0/docs/images/portrait-family.png" width="640"></p>
|
|
380
391
|
|
|
381
392
|
[The portrait builder](https://johnmorrisdotca.github.io/wakusei-planets/portrait.html) puts any bodies in one picture: drag them, size them, turn them, order them front to back, arrange them in a row, an arc, a grid or at true orbit distance (true or readable sizes, a planet's moons round it in orbit order), light them from one direction, and take the code, a PNG or an SVG. The scene is kept in the address, and every body is drawn in one WebGL scene, so the page holds one WebGL context. [The portrait builder](docs/guides/portrait-builder.md) is its guide.
|
|
382
393
|
|
|
@@ -432,6 +443,7 @@ The reference is a site, made from the source's own doc comments: every export h
|
|
|
432
443
|
| `.../portrait` | `<wakusei-portrait>`: many bodies in one scene. The scene model (`addBody`, `layoutPortrait`, `encodeScene`, `decodeScene`) is in the main entry. |
|
|
433
444
|
| `.../space` | Where the Sun, the Moon and the planets are for a date, in two scales, and where a camera riding along looks: `frameAt`, `createTrack`, `placeSun`, `placeAround`, `ridePose`. No browser. |
|
|
434
445
|
| `.../space/element` | `<wakusei-space>`: the Earth, the Moon, the Sun and the planets in their places. |
|
|
446
|
+
| `.../plan` | The top-down plan: `planAt`, `planSvg`, `planText`. `.../plan/element` is `<wakusei-plan>`, in SVG with no WebGL. |
|
|
435
447
|
| `.../nearest` | The bodies nearest to a body on a date (`nearest`, `within`), when two bodies come closest (`closestApproach`, `conjunctions`) and how far apart they are (`distance`, `distanceRange`). No browser. |
|
|
436
448
|
| `.../sheets` | Printable colouring sheets for children: the Sun, the planets and the big moons in thick lines with the real colours and three facts, and all the planets at one scale, in English and Japanese (`kidsSvg`, `kidsSheet`, `kidsFacts`). |
|
|
437
449
|
| `.../look` | What a body needs to be drawn with three.js. |
|
|
@@ -465,6 +477,7 @@ Each guide has a Japanese twin in [docs/guides/ja](docs/guides/ja/getting-starte
|
|
|
465
477
|
| [The space view](docs/guides/space-view.md) | The Earth, Moon, Sun and planets in their places; two scales; time both ways |
|
|
466
478
|
| [A star from its numbers](docs/guides/star-look.md) | Any star in 3D or as lines, what is measured and what is drawn, every way to put it in a page |
|
|
467
479
|
| [The size line-up](docs/guides/size-lineup.md) | The Sun and the largest stars at true relative size, with each radius, its error and its paper, where the papers disagree, every way to put it in a page |
|
|
480
|
+
| [The top-down plan](docs/guides/plan.md) | The solar system or one planet's moons from above, with one body marked: squeezed or to-scale distances, drawing only on change |
|
|
468
481
|
| [Zoom and pan](docs/guides/zoom-and-pan.md) | Every view zooms and moves by itself: the range of each and why it ends there, the bar, the embed page |
|
|
469
482
|
| [Close zoom and map tiles](docs/guides/close-zoom.md) | How far each body zooms and why, the finer map tiles for a close zoom (made from public-domain maps, served beside the demo, never in the package), the generic detail, what it costs |
|
|
470
483
|
| [Outside data, the data door](docs/guides/data-door.md) | Hand the package your own maps of a body or small bodies with their licence and credit, switch them off, and show whose data is on the screen |
|
|
@@ -476,12 +489,17 @@ Each guide has a Japanese twin in [docs/guides/ja](docs/guides/ja/getting-starte
|
|
|
476
489
|
| [What is nearby, and when bodies come close](docs/guides/nearest.md) | The nearest bodies to a body on a date, closest approaches and conjunctions, and how close they are to Horizons |
|
|
477
490
|
| [Colouring sheets for children](docs/guides/kids-sheets.md) | Printable sheets of the Sun, planets and big moons, A4 and US Letter, English and Japanese, and the ready-made PDFs |
|
|
478
491
|
| [Famous spacecraft](docs/guides/spacecraft.md) | Voyager, New Horizons, Pioneer, Cassini, Galileo, Juno, Parker and Webb: where they are and their whole voyage |
|
|
492
|
+
| [Starman and the Tesla Roadster](docs/guides/roadster.md) | where the car launched on the first Falcon Heavy is on any date from 2018 to the start of 2036, its distances, speeds, orbit and key moments |
|
|
493
|
+
| [Comets](docs/guides/comets.md) | 34 well-known comets with orbits from JPL: where each is on any date, its distances, orbit line, last and next perihelion, meteor showers, and a door to add a new comet |
|
|
494
|
+
| [Places on the Moon, Mars and 31 more bodies](docs/guides/places.md) | every landing, rover, crash, impact and atmospheric-entry site and the named features of 33 bodies, with positions, dates and sources, the famous ones marked, and the Sun's point, the terminator and the local solar time on any body |
|
|
479
495
|
| [Data files](docs/guides/data-files.md) | CSV and Parquet tables of the bodies, orbits and spacecraft, for Python, R and Rust |
|
|
480
496
|
| [Serve it yourself](docs/guides/serve-it-yourself.md) | A small Node server over the package, that you host |
|
|
481
497
|
| [The Sun and Moon from a place](docs/guides/suncalc.md) | Position, sunrise and sunset, Moon rise, set and phase; a drop-in for suncalc |
|
|
482
498
|
| [Coordinate conversions](docs/guides/coordinates.md) | Pure spherical, ecliptic, equatorial and horizontal coordinate conversions |
|
|
483
499
|
| [TypeScript and Node](docs/guides/typescript-and-node.md) | Types and the pure side |
|
|
484
500
|
| [How it works](docs/guides/how-it-works.md) | Where the numbers come from |
|
|
501
|
+
| [Asteroids and distant small bodies](docs/guides/asteroids.md) | 104 asteroids, trojans, centaurs and trans-Neptunian objects: orbits, sizes, the spacecraft that visited them, and where each is on any date |
|
|
502
|
+
| [Close approaches to the Earth](docs/guides/approaches.md) | 4,183 approaches of near-Earth objects: every one within 0.05 au from 2026 to 2036 and the close ones since 1900, with dates, distances, speeds and sizes |
|
|
485
503
|
| [Architecture](docs/guides/architecture.md) | How the layers fit |
|
|
486
504
|
| [Troubleshooting](docs/guides/troubleshooting.md) | Something does not appear |
|
|
487
505
|
| [Upgrading](docs/guides/upgrading.md) | What to act on between versions |
|
|
@@ -513,7 +531,7 @@ BODIES.pluto.kind; // "dwarf-planet"
|
|
|
513
531
|
|
|
514
532
|
If this package helps a paper, a talk or a class, please cite it as software. GitHub's "Cite this repository" button reads [CITATION.cff](CITATION.cff) and gives BibTeX and APA; in plain text:
|
|
515
533
|
|
|
516
|
-
> Morris, J. (2026). *Wakusei Planets* (version 0.
|
|
534
|
+
> Morris, J. (2026). *Wakusei Planets* (version 0.35.0) [Computer software]. https://github.com/johnmorrisdotca/wakusei-planets
|
|
517
535
|
|
|
518
536
|
Cite the version you used (`npm ls @johnmorrisdotca/wakusei-planets`), and cite the sources of the numbers you use as well: [NOTICE.md](NOTICE.md) names each one, with the paper or the page it was read from (the IAU working group's report for sizes and poles, VSOP87B, ELP2000-82B, L1.2 and TASS1.7 for positions, and NASA's JPL Horizons for the fits and the spacecraft).
|
|
519
537
|
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { type When } from "./when.ts";
|
|
2
|
+
export type { When } from "./when.ts";
|
|
3
|
+
/**
|
|
4
|
+
* The albedos assumed when a size is worked out from the absolute magnitude H alone: 0.05 (a dark, carbon-rich body, so a larger one) and 0.25 (a bright, stony one, so a smaller one). The range is wide on purpose: for
|
|
5
|
+
* one H the two sizes differ by a factor of 2.2. Where JPL has a measured diameter, it is given as well, and is the better number.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { APPROACH_ALBEDO } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
10
|
+
*
|
|
11
|
+
* console.log(`sizes assume an albedo from ${APPROACH_ALBEDO.dark} (dark) to ${APPROACH_ALBEDO.bright} (bright)`);
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const APPROACH_ALBEDO: {
|
|
15
|
+
readonly dark: 0.05;
|
|
16
|
+
readonly bright: 0.25;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The uncertainty of the moment of an approach, from JPL's 3-sigma figure.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { approachesBetween, type ApproachTimeSigma } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
24
|
+
*
|
|
25
|
+
* const sigma: ApproachTimeSigma = approachesBetween(Date.UTC(2029, 3, 13), Date.UTC(2029, 3, 14))[0]!.timeSigma;
|
|
26
|
+
* console.log(sigma.lessThan ? "under" : "about", sigma.minutes, "minutes");
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export interface ApproachTimeSigma {
|
|
30
|
+
/** The 3-sigma uncertainty of the moment, in minutes. */
|
|
31
|
+
minutes: number;
|
|
32
|
+
/** True where JPL gives only a bound ("< 00:01"): the uncertainty is under `minutes`. */
|
|
33
|
+
lessThan: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The size of a body worked out from its absolute magnitude, for the two albedos of `APPROACH_ALBEDO`: the diameter D = 1329 / sqrt(albedo) x 10^(-H / 5) kilometres.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { approachSizeRange, type ApproachSizeRange } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
41
|
+
*
|
|
42
|
+
* const range: ApproachSizeRange = approachSizeRange(19.7);
|
|
43
|
+
* console.log(Math.round(range.minKm * 1000), "to", Math.round(range.maxKm * 1000), "metres");
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export interface ApproachSizeRange {
|
|
47
|
+
/** The diameter in kilometres if the body is bright (albedo 0.25). */
|
|
48
|
+
minKm: number;
|
|
49
|
+
/** The diameter in kilometres if the body is dark (albedo 0.05). */
|
|
50
|
+
maxKm: number;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* One close approach of a near-Earth object to the Earth.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* import { nextApproach, type Approach } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
58
|
+
*
|
|
59
|
+
* const a: Approach = nextApproach("Apophis", Date.UTC(2026, 10, 11))!;
|
|
60
|
+
* console.log(a.fullName, new Date(a.date).toISOString(), a.distanceLunar.toFixed(2), "lunar distances");
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export interface Approach {
|
|
64
|
+
/** JPL's primary designation: a number ("99942") or a provisional designation ("2001 WN5", "2024 YR4"). */
|
|
65
|
+
designation: string;
|
|
66
|
+
/** The minor-planet number, or `undefined` for a body not yet numbered. */
|
|
67
|
+
number?: number;
|
|
68
|
+
/** The name ("Apophis"), or `undefined` for a body with none. */
|
|
69
|
+
name?: string;
|
|
70
|
+
/** The full name as JPL gives it: "99942 Apophis (2004 MN4)", "(2001 AV43)". */
|
|
71
|
+
fullName: string;
|
|
72
|
+
/** The moment of the approach, in milliseconds since 1970 (UTC), converted from JPL's TDB. */
|
|
73
|
+
date: number;
|
|
74
|
+
/** The same moment as JPL gives it: a Julian date in TDB. */
|
|
75
|
+
jdTdb: number;
|
|
76
|
+
/** The uncertainty of `date` (3-sigma). */
|
|
77
|
+
timeSigma: ApproachTimeSigma;
|
|
78
|
+
/** The nominal distance between the centres of the body and the Earth, in astronomical units. */
|
|
79
|
+
distanceAu: number;
|
|
80
|
+
/** The same in kilometres. */
|
|
81
|
+
distanceKm: number;
|
|
82
|
+
/** The same in lunar distances (384,400 km). */
|
|
83
|
+
distanceLunar: number;
|
|
84
|
+
/** The least distance within the 3-sigma uncertainty, in astronomical units. For an approach of a body whose orbit is well known it is nearly the nominal one. */
|
|
85
|
+
minDistanceAu: number;
|
|
86
|
+
/** The greatest distance within the 3-sigma uncertainty, in astronomical units. */
|
|
87
|
+
maxDistanceAu: number;
|
|
88
|
+
/** The speed relative to the Earth at the approach, in kilometres a second. */
|
|
89
|
+
speedKmS: number;
|
|
90
|
+
/** The absolute magnitude H. */
|
|
91
|
+
H: number;
|
|
92
|
+
/** The size the absolute magnitude implies, for the albedos of `APPROACH_ALBEDO`. */
|
|
93
|
+
sizeRange: ApproachSizeRange;
|
|
94
|
+
/** The measured diameter in kilometres, where JPL has one. */
|
|
95
|
+
diameterKm?: number;
|
|
96
|
+
/** The 1-sigma uncertainty of `diameterKm` in kilometres, where JPL gives one. */
|
|
97
|
+
diameterSigmaKm?: number;
|
|
98
|
+
/** True for an approach after the date the table was fetched: a prediction that changes as the orbit is refined. */
|
|
99
|
+
predicted: boolean;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Every approach in the table, as one list, oldest first: the approaches within 0.002 au from 1900 to the end of 2025 (`APPROACH_NOTE.coverage.close`), then those within 0.05 au from 2026 to the end of 2036 (`wide`).
|
|
103
|
+
*
|
|
104
|
+
* @returns The approaches, which must not be changed.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* ```ts
|
|
108
|
+
* import { approachList } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
109
|
+
*
|
|
110
|
+
* console.log(approachList().length, "approaches in the table");
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
export declare function approachList(): readonly Approach[];
|
|
114
|
+
/**
|
|
115
|
+
* The size range of a body from its absolute magnitude.
|
|
116
|
+
*
|
|
117
|
+
* @param H - The absolute magnitude.
|
|
118
|
+
* @returns The diameters in kilometres for the albedos of `APPROACH_ALBEDO`.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```ts
|
|
122
|
+
* import { approachSizeRange } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
123
|
+
*
|
|
124
|
+
* const { minKm, maxKm } = approachSizeRange(22);
|
|
125
|
+
* console.log(`H 22: ${Math.round(minKm * 1000)} to ${Math.round(maxKm * 1000)} metres`);
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
export declare function approachSizeRange(H: number): ApproachSizeRange;
|
|
129
|
+
/**
|
|
130
|
+
* What the table is and is not: the dates each part covers and how far. A reader of a table of predictions should see this note.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```ts
|
|
134
|
+
* import { APPROACH_NOTE } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
135
|
+
*
|
|
136
|
+
* console.log(APPROACH_NOTE.text);
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
export declare const APPROACH_NOTE: {
|
|
140
|
+
/** The day the table was fetched from JPL, "2026-11-11". */
|
|
141
|
+
readonly fetched: "2026-11-11";
|
|
142
|
+
/** In words: these are predictions, they change as orbits are refined and as new objects are found. */
|
|
143
|
+
readonly text: "These are predictions from the orbits JPL knew on 2026-11-11. An approach changes as the orbit of the body is refined by new observations, and a body found after that day is not here: nearly all the small ones are found only days before they pass. The distance is between the centres of the body and the Earth; the uncertainty of the moment and the least and greatest distances are JPL's 3-sigma values. A size from the absolute magnitude assumes an albedo between 0.05 and 0.25.";
|
|
144
|
+
/** The two parts of the table: `wide` (every approach within 0.05 au from 2026-01-01 to 2036-12-31) and `close` (those within 0.002 au from 1900-01-01 to 2025-12-31), each with the dates it covers and the greatest distance it holds in astronomical units. */
|
|
145
|
+
readonly coverage: {
|
|
146
|
+
readonly wide: {
|
|
147
|
+
readonly from: "2026-01-01";
|
|
148
|
+
readonly to: "2036-12-31";
|
|
149
|
+
readonly maxAu: 0.05;
|
|
150
|
+
};
|
|
151
|
+
readonly close: {
|
|
152
|
+
readonly from: "1900-01-01";
|
|
153
|
+
readonly to: "2025-12-31";
|
|
154
|
+
readonly maxAu: 0.002;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* The approaches between two moments, from the first (included) to the last (excluded), oldest first.
|
|
160
|
+
*
|
|
161
|
+
* @param from - A `Date` or milliseconds since 1970 (UTC).
|
|
162
|
+
* @param to - Another.
|
|
163
|
+
* @returns The approaches.
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* ```ts
|
|
167
|
+
* import { approachesBetween } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
168
|
+
*
|
|
169
|
+
* for (const a of approachesBetween(Date.UTC(2029, 0, 1), Date.UTC(2030, 0, 1)).slice(0, 3)) console.log(new Date(a.date).toISOString(), a.fullName, a.distanceLunar.toFixed(1), "LD");
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
export declare function approachesBetween(from: When, to: When): Approach[];
|
|
173
|
+
/**
|
|
174
|
+
* A filter on the approaches: every field given must hold.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```ts
|
|
178
|
+
* import { approachesWhere, type ApproachFilter } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
179
|
+
*
|
|
180
|
+
* const filter: ApproachFilter = { from: Date.UTC(2026, 0, 1), maxLunar: 5, minDiameterKm: 0.1 };
|
|
181
|
+
* console.log(approachesWhere(filter).length, "approaches under 5 lunar distances by bodies over 100 m");
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
export interface ApproachFilter {
|
|
185
|
+
/** Not before this moment. */
|
|
186
|
+
from?: When;
|
|
187
|
+
/** Before this moment. */
|
|
188
|
+
to?: When;
|
|
189
|
+
/** No further than this, in astronomical units. */
|
|
190
|
+
maxAu?: number;
|
|
191
|
+
/** No further than this, in lunar distances. */
|
|
192
|
+
maxLunar?: number;
|
|
193
|
+
/** At least this wide, in kilometres: by the measured diameter, else the middle (geometric mean) of the size range. */
|
|
194
|
+
minDiameterKm?: number;
|
|
195
|
+
/** No wider than this, in kilometres, by the same rule. */
|
|
196
|
+
maxDiameterKm?: number;
|
|
197
|
+
/** Only this object: a number, a designation or a name. */
|
|
198
|
+
object?: string | number;
|
|
199
|
+
/** True for the predictions only (after the fetch date), false for the past only. */
|
|
200
|
+
predicted?: boolean;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* The best estimate of a body's width: the measured diameter where JPL has one, else the geometric mean of the sizes the absolute magnitude implies.
|
|
204
|
+
*
|
|
205
|
+
* @param approach - An approach.
|
|
206
|
+
* @returns The diameter in kilometres.
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* ```ts
|
|
210
|
+
* import { approachDiameterKm, nextApproach } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
211
|
+
*
|
|
212
|
+
* const a = nextApproach("Apophis", Date.UTC(2026, 10, 11))!;
|
|
213
|
+
* console.log(Math.round(approachDiameterKm(a) * 1000), "metres");
|
|
214
|
+
* ```
|
|
215
|
+
*/
|
|
216
|
+
export declare function approachDiameterKm(approach: Pick<Approach, "diameterKm" | "sizeRange">): number;
|
|
217
|
+
/**
|
|
218
|
+
* The approaches that pass a filter, oldest first: by date, distance, size, object or prediction.
|
|
219
|
+
*
|
|
220
|
+
* @param filter - What must hold.
|
|
221
|
+
* @returns The approaches.
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```ts
|
|
225
|
+
* import { approachesWhere } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
226
|
+
*
|
|
227
|
+
* const close = approachesWhere({ from: Date.UTC(2026, 10, 11), to: Date.UTC(2030, 0, 1), maxLunar: 1 });
|
|
228
|
+
* console.log(close.map((a) => `${a.fullName} ${new Date(a.date).toISOString().slice(0, 10)}`).join("; "));
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
export declare function approachesWhere(filter: ApproachFilter): Approach[];
|
|
232
|
+
/**
|
|
233
|
+
* The closest approaches, nearest first, among those a filter lets through (all of them with no filter).
|
|
234
|
+
*
|
|
235
|
+
* @param count - How many.
|
|
236
|
+
* @param filter - What must hold; the default is everything in the table.
|
|
237
|
+
* @returns At most `count` approaches, in order of distance.
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* ```ts
|
|
241
|
+
* import { nearestApproaches } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
242
|
+
*
|
|
243
|
+
* for (const a of nearestApproaches(3, { from: Date.UTC(2026, 10, 11) })) console.log(a.fullName, new Date(a.date).toISOString().slice(0, 10), Math.round(a.distanceKm), "km");
|
|
244
|
+
* ```
|
|
245
|
+
*/
|
|
246
|
+
export declare function nearestApproaches(count: number, filter?: ApproachFilter): Approach[];
|
|
247
|
+
/**
|
|
248
|
+
* The next approach of a named object after a moment (that moment excluded).
|
|
249
|
+
*
|
|
250
|
+
* @param object - A number, a designation or a name ("Apophis", 99942, "2024 YR4").
|
|
251
|
+
* @param after - A `Date` or milliseconds since 1970 (UTC): the module reads no clock, so "now" is yours to give.
|
|
252
|
+
* @returns The approach, or `undefined` when the table holds none after it.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```ts
|
|
256
|
+
* import { nextApproach } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
257
|
+
*
|
|
258
|
+
* const a = nextApproach("Apophis", Date.UTC(2026, 10, 11));
|
|
259
|
+
* console.log(a === undefined ? "none" : `${new Date(a.date).toISOString()} at ${a.distanceKm.toFixed(0)} km`);
|
|
260
|
+
* ```
|
|
261
|
+
*/
|
|
262
|
+
export declare function nextApproach(object: string | number, after: When): Approach | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* Every approach of a named object in the table, oldest first.
|
|
265
|
+
*
|
|
266
|
+
* @param object - A number, a designation or a name.
|
|
267
|
+
* @returns The approaches.
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* ```ts
|
|
271
|
+
* import { approachesOf } from "@johnmorrisdotca/wakusei-planets/approaches";
|
|
272
|
+
*
|
|
273
|
+
* console.log(approachesOf("Apophis").map((a) => new Date(a.date).toISOString().slice(0, 10)).join(", "));
|
|
274
|
+
* ```
|
|
275
|
+
*/
|
|
276
|
+
export declare function approachesOf(object: string | number): Approach[];
|