@johnmorrisdotca/wakusei-planets 0.55.0 → 0.56.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 +6 -0
- package/NOTICE.md +1 -1
- package/README.md +3 -3
- package/dist/space/element.js +5 -0
- package/dist/space/travel.js +22 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.56.0] - 2026-11-17
|
|
6
|
+
|
|
7
|
+
- **A move from the Earth view out to a planet or the Sun goes straight, not out to the whole system and back** (MODULES-1388, linked to MODULES-1371; John Morris, 2026-11-16). The site hands the planets view over at the Earth view's far distance (187 Earth radii, the Earth a few pixels across) with the destination turned into the picture; in the squeezed scale that distance already shows the whole system, and the planner then backed off from the Earth to a stand on the line of the last view, 2.2 times the distance between the two bodies for the Earth to Pluto, to turn there and come in. Where that stand is more than 1.2 times as far from the body left as the camera began (`BACK_UP`), the planner now tries the straight way, a swing (straight at the destination with it in the picture, the look direction turned round it over the last stretch), and takes it when its walk has no fault of any kind more than the other. Measured on the inputs the space view handed the planner (`test/data/travel-site-inputs.json`), how far out the camera goes, in the larger of the distance between the bodies and where it began (`out` in `test/travel-harness.ts`): the Earth to Mars 1.52 before and 1.00 now, to Pluto 2.23 and 0.64, to the Sun 1.00 and 1.00; over 180 moves from the Earth (ten destinations, three directions, both pictures' shapes, both scales) the ones over 1.2 fall from 15 to 3 (the tall picture with the destination 50 degrees off, where the swing has a fault) and the farthest from 3.22 to 1.6. Stops between the turn and the way on (MODULES-1384), over the 54 moves of `test/travel-smooth.test.ts`: 26 before and 26 now; the moves that start the way on during the turn fall from 42 to 35, those 7 being swings, which keep their own timing.
|
|
8
|
+
- **A planet or moon left in the same breath as another move no longer backs out to the whole system** (MODULES-1388, linked to MODULES-1371). `goTo` and `ride` took the body the camera is at from the view's focus, so a page that calls `ride(null)` and then `ride("europa")` before the first has drawn left the planet from beside Io: the planner was told the body left was Jupiter, the camera far from it in the picture, and backed out to 480 Earth radii (34 times the distance between the moons) and in again; Titan to Enceladus went to 376. A move that has been asked for and not yet drawn has not moved the camera, so the next move now leaves the body the first one was leaving: Io to Europa stays within 1.05 of the distance between them, Titan to Enceladus within 0.7. `e2e/space-travel.demo.ts` has the spec.
|
|
9
|
+
- **Pluto's tiles no longer show a seam against the unmapped south** (MODULES-1388, linked to MODULES-1371). The 2048 picture fades the New Horizons detail into a plain tone over 8 percent of its height at the edge of the mapped ground, but the level 1 tiles put the source's detail back up to the ragged edge of the data (4 cells of 8 pixels), so the crisp ground ended in a line against the smooth brown. `scripts/make-body-tiles.py` takes a `fade` (cells of 8 pixels, 4 by default) for a source whose picture fades its edge, and Pluto's is 14. The tiles are built by the Pages workflow and never committed.
|
|
10
|
+
|
|
5
11
|
## [0.55.0] - 2026-11-17
|
|
6
12
|
|
|
7
13
|
- **The lit side wins over the body left** (John Morris, 2026-11-16). Keeping the body left behind the destination at the end of a move put the body gone to in its own night: the Sun behind Mercury, the Earth behind Jupiter. `arrivalSide`'s `behind` is now taken only where the body gone to is still at least half lit (`BEHIND_LIT`, one half, the rule every other arrival keeps); everywhere else, which is every move outward to a planet beyond the body left, the camera arrives on the sunlit side with one of the body's moons in the picture, and the body left is in the picture for as long as the way allows (through the turn, and, between a planet and its moon, all through) but not in the last view. Of 78 walks of 13 pairs in both scales and three picture shapes, 25 keep the body left in the picture all through and 53 lose it for the rest of the way; every walk's last view is at least half lit. This is also the real fix for two demo specs that failed in CI on the 0.55.0 candidate: the label on Mars is seen on its lit side (in the CI image the etched, outline and burned looks change 1,983 to 2,205 pixels inside Mars's disc where the specs want more than 300; with the Earth behind Mars they were 287), and the soak's walk to the planets and back arrives on the same sides as before 0.55.0 (146 GPU objects at the start and after every walk but one that read 148, four or five walks, three runs in the CI image). A way on that starts while the turn is still going now also keeps the body left (or the planet circled) in the picture through the turn, as the turn always did (`Faults.held`); that costs some of the overlap (26 of 54 moves still stop between turn and way on, where 9 did). The GL walks of the Sun to each inner planet, a planet to its moon and a moon to another planet now read each draw for "the body left or the destination is on the screen" and, between a planet and its moon, "together all through"; the pair and body frame walks turn the camera round the body until the companion is in the picture, as an arrival no longer does it.
|
package/NOTICE.md
CHANGED
|
@@ -146,7 +146,7 @@ A tile is the package's own 2048 picture of the body, enlarged, with the source'
|
|
|
146
146
|
| Mars | levels 1 to 3, up to 16384 x 8192 (672 tiles, 21.4 MB) | [Mars Viking MDIM21 ClrMosaic 1km.jpg](https://commons.wikimedia.org/wiki/File:Mars_Viking_MDIM21_ClrMosaic_1km.jpg), 21339 x 10670, https://upload.wikimedia.org/wikipedia/commons/1/1f/Mars_Viking_MDIM21_ClrMosaic_1km.jpg, SHA-256 `fdfcd335559c3dc67052b7e8a9565d850e336ac0d1f3ea7f5eb7826ffb44ecb2` | Public domain (the file page's licence as Commons' own metadata gave it, read 2026-11-09) | NASA / Jet Propulsion Laboratory / U.S. Geological Survey (Viking Mars Digital Image Mosaic 2.1, colour, 1 km a pixel) | Detail added to the 2048 picture; the poles the mosaic has no data for are the 2048 picture's |
|
|
147
147
|
| The Moon | levels 1 to 3, up to 16384 x 8192 (672 tiles, 11.9 MB) | [lroc_color_poles_16k.tif](https://svs.gsfc.nasa.gov/4720/), 16384 x 8192, https://svs.gsfc.nasa.gov/vis/a000000/a004700/a004720/lroc_color_poles_16k.tif, SHA-256 `dbff4356479764d89f9fd7722140043eddbc2cafbad4dec5950858e2df77ac54` | Not subject to copyright (NASA content, see above); SVS asks for the credit on the page: "Please give credit for this item to: NASA's Scientific Visualization Studio" | NASA's Scientific Visualization Studio (Ernie Wright, Noah Petro), CGI Moon Kit: Lunar Reconnaissance Orbiter Camera colour map with the poles filled, 16384 pixels across | Detail added to the 2048 picture (the same map, finer) |
|
|
148
148
|
| Earth | levels 1 to 3, up to 16384 x 8192 (672 tiles, 8.9 MB) | [world.topo.bathy.200409.3x21600x10800.jpg](https://science.nasa.gov/earth/earth-observatory/blue-marble-next-generation/), 21600 x 10800, https://assets.science.nasa.gov/content/dam/science/esd/eo/images/bmng/bmng-topography-bathymetry/september/world.topo.bathy.200409.3x21600x10800.jpg, SHA-256 `863036b622ba3dab4eb4ffb7149730b02cfa433ce49672e9b7267022051e04a2` | Not subject to copyright (NASA content, see above); the page asks to credit "NASA Earth Observatory" | NASA Earth Observatory (Reto Stockli): Blue Marble Next Generation with topography and bathymetry, September 2004, 21600 pixels across | Detail added to the 2048 picture (the same month and layer, finer) |
|
|
149
|
-
| Pluto | levels 1 to 1, up to 4096 x 2048 (32 tiles, 0.4 MB) | [Pluto color mapmosaic.jpg](https://commons.wikimedia.org/wiki/File:Pluto_color_mapmosaic.jpg), 5926 x 2963, https://upload.wikimedia.org/wikipedia/commons/a/ad/Pluto_color_mapmosaic.jpg, SHA-256 `d63da5ee9eab8d0b98ebef3c0cdc3a92676d7c9b247b2383294fb5da5c67a71a` | Public domain (the file page's licence as Commons' own metadata gave it, read 2026-11-09) | NASA / Johns Hopkins University Applied Physics Laboratory / Southwest Research Institute (New Horizons global colour mosaic) | Turned half a turn to put longitude 0 in the middle, as the 2048 picture was; the polar night to the south is the 2048 picture's |
|
|
149
|
+
| Pluto | levels 1 to 1, up to 4096 x 2048 (32 tiles, 0.4 MB) | [Pluto color mapmosaic.jpg](https://commons.wikimedia.org/wiki/File:Pluto_color_mapmosaic.jpg), 5926 x 2963, https://upload.wikimedia.org/wikipedia/commons/a/ad/Pluto_color_mapmosaic.jpg, SHA-256 `d63da5ee9eab8d0b98ebef3c0cdc3a92676d7c9b247b2383294fb5da5c67a71a` | Public domain (the file page's licence as Commons' own metadata gave it, read 2026-11-09) | NASA / Johns Hopkins University Applied Physics Laboratory / Southwest Research Institute (New Horizons global colour mosaic) | Turned half a turn to put longitude 0 in the middle, as the 2048 picture was; the polar night to the south is the 2048 picture's; the detail of the map fades into that plain tone over 14 cells of 8 pixels at the edge of the data (`fade`), as the 2048 picture's does, so the tiles show no seam there |
|
|
150
150
|
| Charon | levels 1 to 1, up to 4096 x 2048 (32 tiles, 0.5 MB) | [Charon map iau1803c.jpg](https://commons.wikimedia.org/wiki/File:Charon_map_iau1803c.jpg), 6000 x 3000, https://upload.wikimedia.org/wikipedia/commons/3/39/Charon_map_iau1803c.jpg, SHA-256 `a8c2ff578b810f3ec84a42751d3a00920fa4c610f5125e938e294aa4e0804405` | Public domain (the file page's licence as Commons' own metadata gave it, read 2026-11-09) | NASA / Johns Hopkins University Applied Physics Laboratory / Southwest Research Institute (New Horizons, IAU image iau1803c) | The polar night to the south is the 2048 picture's |
|
|
151
151
|
| Io | levels 1 to 2, up to 8192 x 4096 (160 tiles, 1.4 MB) | [Io from Galileo and Voyager missions.jpg](https://commons.wikimedia.org/wiki/File:Io_from_Galileo_and_Voyager_missions.jpg), 11445 x 3643, https://upload.wikimedia.org/wikipedia/commons/e/e4/Io_from_Galileo_and_Voyager_missions.jpg, SHA-256 `e5523d1ea98d2ad03ca4dcb7c73aebb1a869b4fba6c941f7f77f0fba17c64dae` | Public domain (the file page's licence as Commons' own metadata gave it, read 2026-11-09) | NASA / JPL (Galileo SSI and Voyager images) | A strip of an equirectangular map (57.3 degrees each side of the equator), turned half a turn; the poles are the 2048 picture's |
|
|
152
152
|
| Callisto | levels 1 to 2, up to 8192 x 4096 (160 tiles, 2.1 MB) | [Callisto equatorial.jpg](https://commons.wikimedia.org/wiki/File:Callisto_equatorial.jpg), 11921 x 4617, https://upload.wikimedia.org/wikipedia/commons/a/a3/Callisto_equatorial.jpg, SHA-256 `f262cd1f307a9d7adf05c39499ad6bcc636c45af102b5ab243df6585834b4f80` | Public domain (the file page's licence as Commons' own metadata gave it, read 2026-11-09) | USGS (Callisto equatorial region map, I-2770, from Voyager and Galileo images) | A Mercator strip (57 degrees each side) put on the sphere; the poles are the 2048 picture's |
|
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.56.0/docs/images/lineup-desk.png" width="640"></p>
|
|
23
23
|
|
|
24
24
|
## Who it is for
|
|
25
25
|
|
|
@@ -388,7 +388,7 @@ The tiles of every body share one 48 MB budget, six loads at a time for a source
|
|
|
388
388
|
|
|
389
389
|
## The portrait builder
|
|
390
390
|
|
|
391
|
-
<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.
|
|
391
|
+
<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.56.0/docs/images/portrait-family.png" width="640"></p>
|
|
392
392
|
|
|
393
393
|
[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.
|
|
394
394
|
|
|
@@ -537,7 +537,7 @@ BODIES.pluto.kind; // "dwarf-planet"
|
|
|
537
537
|
|
|
538
538
|
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:
|
|
539
539
|
|
|
540
|
-
> Morris, J. (2026). *Wakusei Planets* (version 0.
|
|
540
|
+
> Morris, J. (2026). *Wakusei Planets* (version 0.56.0) [Computer software]. https://github.com/johnmorrisdotca/wakusei-planets
|
|
541
541
|
|
|
542
542
|
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).
|
|
543
543
|
|
package/dist/space/element.js
CHANGED
|
@@ -1486,6 +1486,11 @@ export class WakuseiSpace extends HTMLElement {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
/** The body the camera is at now: the target of the ride, or the body looked at. */
|
|
1488
1488
|
#leaving() {
|
|
1489
|
+
// a move that has been asked for and not yet drawn has not moved the camera: the body it leaves is still the one the camera is at, not the one the move was going to (a page that leaves a ride and then rides
|
|
1490
|
+
// on, in the same breath, would otherwise leave the planet from beside its moon and back out to the whole system to do it)
|
|
1491
|
+
const pending = this.#model.transition;
|
|
1492
|
+
if (pending !== null && pending.input === null && pending.leaving !== null)
|
|
1493
|
+
return pending.leaving;
|
|
1489
1494
|
const ride = this.#model.ride;
|
|
1490
1495
|
if (ride !== null)
|
|
1491
1496
|
return typeof ride.target === "string" ? ride.target : ride.around;
|
package/dist/space/travel.js
CHANGED
|
@@ -395,7 +395,8 @@ function standAt(input, tm, family, variant = 0, framed = false) {
|
|
|
395
395
|
if (variant === 0 || missOf(stand, last, v) >= Math.min(1.52 * (1 + clearance) * pivot.radius, 0.9 * length(fallback), 0.98 * length(apex)))
|
|
396
396
|
straight = fallback;
|
|
397
397
|
}
|
|
398
|
-
|
|
398
|
+
// variant 1 of a move that is not within a planet's family is the swing: straight at the destination from the nearest place the turn leaves the camera in, the look direction turned round it at the end, with no backing off to a stand on the line of the last view
|
|
399
|
+
if (variant >= 2 || (variant === 1 && !family))
|
|
399
400
|
straight = null;
|
|
400
401
|
if (straight !== null) {
|
|
401
402
|
const dm = Math.max(1e-12, length(straight));
|
|
@@ -1043,6 +1044,19 @@ function steepest(route) {
|
|
|
1043
1044
|
}
|
|
1044
1045
|
return worst;
|
|
1045
1046
|
}
|
|
1047
|
+
/** The most, in times its distance at the start, that the camera is from the body left (or from the planet circled) at any moment of a walk of the move: 1 or less is a move that never goes out beyond where it began. */
|
|
1048
|
+
function backOff(route) {
|
|
1049
|
+
const input = route.input;
|
|
1050
|
+
const plan = { route };
|
|
1051
|
+
const pivot = input.around ?? input.leaving;
|
|
1052
|
+
const d0 = Math.max(1e-12, length(sub(input.start.position, pivot.from)));
|
|
1053
|
+
let most = 0;
|
|
1054
|
+
for (let i = 0; i <= 120; i += 1)
|
|
1055
|
+
most = Math.max(most, length(sub(travelPose(input, i / 120, plan).position, placeOf(pivot, i / 120))) / d0);
|
|
1056
|
+
return most;
|
|
1057
|
+
}
|
|
1058
|
+
/** The most, in times its distance from the body left at the start, that the camera may back off from it before the move is taken as a B3 (a pull back to a system that holds both) and the straight way is tried. */
|
|
1059
|
+
const BACK_UP = 1.2;
|
|
1046
1060
|
/** The furthest from the middle of the picture the nearer of the two bodies gets in the turn (1 is the edge of the picture, infinity is neither in it at some moment). */
|
|
1047
1061
|
function turnEdge(route) {
|
|
1048
1062
|
const plan = { route };
|
|
@@ -1114,6 +1128,13 @@ function routeMade(input) {
|
|
|
1114
1128
|
const framed = routeBase(input, 0, true);
|
|
1115
1129
|
if (framed.route.turn?.framed === true && framed.route.share > 0 && noWorse(faultsOf(framed.route), faultsOf(first.route)) && steepest(framed.route) <= Math.max(1.25 * steepest(first.route), 3))
|
|
1116
1130
|
first = framed;
|
|
1131
|
+
// a stand far beyond the body left (B3: the whole system in the picture) is taken only where the straight way, a swing, has a fault that it does not have; the Earth's own pull out to a planet is the straight way
|
|
1132
|
+
const backed = backOff(first.route);
|
|
1133
|
+
if (backed > BACK_UP) {
|
|
1134
|
+
const swung = routeBase(input, 1);
|
|
1135
|
+
if (swung.plan.path === "pivot" && swung.route.turn !== null && swung.route.share > 0 && noWorse(faultsOf(swung.route), faultsOf(first.route)) && backOff(swung.route) < backed)
|
|
1136
|
+
first = swung;
|
|
1137
|
+
}
|
|
1117
1138
|
}
|
|
1118
1139
|
if (first.route.turn === null || first.plan.path !== "circle" || first.route.cut || first.route.share <= 0)
|
|
1119
1140
|
return first;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnmorrisdotca/wakusei-planets",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.0",
|
|
4
4
|
"description": "Wakusei Planets 惑星 — The Sun, planets and moons for the web: each as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, axial tilt and rotation as data, and positions of the moons for any date and time. SVG for the lines, three.js (optional) for the rest.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"planets",
|