@johnmorrisdotca/wakusei-planets 0.74.1 → 0.74.2
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 +5 -0
- package/NOTICE.md +1 -1
- package/README.md +3 -3
- package/dist/scene/textures.d.ts +2 -2
- package/dist/surface/element.d.ts +1 -1
- package/dist/surface/element.js +16 -11
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.74.2] - 2026-11-21
|
|
6
|
+
|
|
7
|
+
- **`<wakusei-surface>` `position` follows the view through a glide** (MODULES-1487). While driving or watching the landing `position.up` already followed the view; during the move from the watched descent to the standing view, the rover or the other camera (the `glide`), `position` still gave the standing place at 1.7 m. It now gives the eyes on the way: east, north and the height over the ground under them, ending at the standing place and 1.7 m. Standing, driving and watching are unchanged.
|
|
8
|
+
- **Ceres's size and pole are credited to the papers, not to a Wikipedia article** (MODULES-1484). `NOTICE.md` named Ermakov et al. 2017 "as listed in Wikipedia's Ceres article"; it now names the paper itself (authors, year, journal, DOI) for the 966.2 x 962.0 x 891.8 km size and JPL SBDB's value from Park et al. 2016 for the pole. No number changed.
|
|
9
|
+
|
|
5
10
|
## [0.74.1] - 2026-11-20
|
|
6
11
|
|
|
7
12
|
- **Saturn's ring picture lets the strip's program go.** The painted ring kept the strip's graphics program, and the vertex array that went with it, after the picture arrived. The space view's long run still held them on every other walk (148 objects against a start of 146) until the body was made again.
|
package/NOTICE.md
CHANGED
|
@@ -28,7 +28,7 @@ No picture is used by the line and shaded looks: they are drawn from numbers.
|
|
|
28
28
|
Ceres, Orcus, Haumea, Quaoar, Makemake, Gonggong, Eris and Sedna (Pluto is with the planets) and the moons Vanth, Hiʻiaka, Namaka and Dysnomia. Values read on 2026-11-03.
|
|
29
29
|
|
|
30
30
|
- **Where they are**: JPL Horizons (https://ssd.jpl.nasa.gov/api/horizons.api), fitted as Chebyshev tables from the solar system's barycentre (`scripts/make-dwarf-data.py`, `src/data/dwarfs.ts`), with the Sun's swing about the barycentre worked out from the planets' masses (IAU 2012 and JPL DE440 mass ratios): Ceres 1900 to 2100, the others 1800 to 2200, each within 0.2 arc-seconds of Horizons. Outside those years, NASA/JPL Small-Body Database osculating elements at JD 2461200.5 (https://ssd.jpl.nasa.gov/api/sbdb.api), run as a plain ellipse (`src/data/dwarf.ts`): good for a few years either side of June 2026.
|
|
31
|
-
- **Sizes and spin**: Ceres (966.2 x 962.0 x 891.8 km) and its
|
|
31
|
+
- **Sizes and spin**: Ceres (966.2 x 962.0 x 891.8 km, twice the semi-axes 483.1 x 481.0 x 445.9 km of the ellipsoid fitted to the Dawn shape model): A. I. Ermakov, R. R. Fu, J. C. Castillo-Rogez, C. A. Raymond, R. S. Park, F. Preusker, C. T. Russell, D. E. Smith and M. T. Zuber (2017), "Constraints on Ceres' internal structure and evolution from its shape and gravity measured by the Dawn spacecraft", Journal of Geophysical Research: Planets 122(11):2267-2293, doi:10.1002/2017JE005302; its pole (RA 291.42744, Dec 66.76033) is within 0.01 degree of JPL SBDB's 291.421 and 66.758 from R. S. Park et al. (2016), Nature 537:515-517, doi:10.1038/nature18955; its rotation: JPL SBDB (9.074170 h). Haumea: Ortiz et al. 2017, Nature 550:219 (semi-axes 1161 x 852 x 513 km), rotation 3.915341 h from Santos-Sanz et al. 2017, A&A 604:A95, pole from Kondratyev & Kornoukhov 2018, MNRAS 478:3159 (RA 282.6, Dec -13.0). Eris: radius 1163 km, Sicardy et al. 2011; it keeps one face to Dysnomia, so its rotation is Dysnomia's orbital period, Szakats et al. 2023, A&A 669:L3. Makemake: radius 715 km, Brown 2013; rotation 22.8266 h, Hromakina et al. 2019. Gonggong: radius 615 km and rotation 22.4 h, Kiss et al. 2019, Icarus. Quaoar: 1241.4 x 1093.0 x 1023.0 km and 17.6788 h, Margoti et al. 2026 and Pereira et al. 2023. Sedna: radius 453 km (Lellouch et al. 2013, TNOs are Cool IX, which allows far more) and 10.273 h, Gaudi et al. 2005. Orcus: radius 455 km, Brown & Butler 2018, rotation 13.188 h (JPL SBDB; 7 to 21 h in the literature). Wikipedia's articles on each body were the finding aid; the papers are the sources.
|
|
32
32
|
- **Moons' orbits**: Dysnomia, Holler et al. 2021, Icarus 355:114130, Table 2 (arXiv 2009.13733). Hiʻiaka and Namaka, Ragozzine & Brown 2009, AJ 137:4766, Table 2 (osculating elements of 2008; the two moons pull on each other, so the position years later is rough). Vanth, Brown et al. 2010, AJ 139:2700, Table 2, solution 1 of two mirror solutions. Radii: Dysnomia 308 km (Brown & Butler 2023), Vanth 221 km (Sickafoose et al. 2018, occultation), Hiʻiaka and Namaka from the Haumea article's listed diameters (370 and 150 km). Weywot, Xiangliu and Makemake's moon S/2015 (136472) 1 are left out: no orbit with a published phase.
|
|
33
33
|
- **Estimated, not measured** (the pictures say so only here): these bodies' poles are not measured, so each is drawn with its spin axis along its orbit's pole (Quaoar, Makemake, Gonggong, Sedna), along Dysnomia's orbit pole (Eris) or along the far end of Vanth's orbit pole, so that it spins forwards (Orcus). Hiʻiaka's and Namaka's spin is unknown and they are drawn still. Dysnomia and Vanth are assumed to keep one face to their planet. Every drawn feature on the line look of a dwarf planet except Ceres's Occator crater and Haumea's long axis is a generic crater, and so is each shaded (realistic) look: only the colour (from the published colour indices and albedos) and the sizes are from numbers. Ceres, Haumea and Dysnomia's shapes are from the sources above. Only Ceres has a painted look.
|
|
34
34
|
|
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.74.
|
|
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.74.2/docs/images/lineup-desk.png" width="640"></p>
|
|
23
23
|
|
|
24
24
|
## Who it is for
|
|
25
25
|
|
|
@@ -423,7 +423,7 @@ The tiles of every body share one 48 MB budget, six loads at a time for a source
|
|
|
423
423
|
|
|
424
424
|
## The portrait builder
|
|
425
425
|
|
|
426
|
-
<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.74.
|
|
426
|
+
<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.74.2/docs/images/portrait-family.png" width="640"></p>
|
|
427
427
|
|
|
428
428
|
[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.
|
|
429
429
|
|
|
@@ -580,7 +580,7 @@ BODIES.pluto.kind; // "dwarf-planet"
|
|
|
580
580
|
|
|
581
581
|
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:
|
|
582
582
|
|
|
583
|
-
> Morris, J. (2026). *Wakusei Planets* (version 0.74.
|
|
583
|
+
> Morris, J. (2026). *Wakusei Planets* (version 0.74.2) [Computer software]. https://github.com/johnmorrisdotca/wakusei-planets
|
|
584
584
|
|
|
585
585
|
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).
|
|
586
586
|
|
package/dist/scene/textures.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { type BodyMapSource } from "../door/map.ts";
|
|
|
11
11
|
* console.log(TEXTURE_BASE);
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
export declare const TEXTURE_BASE = "https://cdn.jsdelivr.net/npm/@johnmorrisdotca/wakusei-planets@0.74.
|
|
14
|
+
export declare const TEXTURE_BASE = "https://cdn.jsdelivr.net/npm/@johnmorrisdotca/wakusei-planets@0.74.2/dist/textures/";
|
|
15
15
|
/**
|
|
16
16
|
* Where the sharpest surface pictures are: the files of this exact version in the repository, on jsDelivr's GitHub address. The npm package holds only the two smaller widths, so a page that
|
|
17
17
|
* never zooms in never fetches them. Set `texture-far-base` on an element to serve them yourself.
|
|
@@ -23,7 +23,7 @@ export declare const TEXTURE_BASE = "https://cdn.jsdelivr.net/npm/@johnmorrisdot
|
|
|
23
23
|
* console.log(TEXTURE_FAR_BASE);
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
export declare const TEXTURE_FAR_BASE = "https://cdn.jsdelivr.net/gh/johnmorrisdotca/wakusei-planets@v0.74.
|
|
26
|
+
export declare const TEXTURE_FAR_BASE = "https://cdn.jsdelivr.net/gh/johnmorrisdotca/wakusei-planets@v0.74.2/textures/";
|
|
27
27
|
/**
|
|
28
28
|
* Where the finer map tiles are by default: the demo site's `tiles/` folder (GitHub Pages sends `access-control-allow-origin: *`). The tiles are made by `scripts/make-body-tiles.py` and are in no package and no repository:
|
|
29
29
|
* a page that serves its own gives the folder in the `tiles` attribute, and `tiles="off"` turns them off. A page that sets `texture-base` (it serves its own pictures) has none unless it says where they are.
|
|
@@ -52,7 +52,7 @@ export declare class WakuseiSurface extends HTMLElement {
|
|
|
52
52
|
/** The eyes' look now. Setting it turns the view (azimuth and pitch in degrees, `fov` the view's height in degrees); it is drawn at once. */
|
|
53
53
|
get look(): Look;
|
|
54
54
|
set look(value: Look);
|
|
55
|
-
/** Where the eyes are: metres east and north of the site, and metres over the ground under them. Standing, that is a person's height; while the rover is driven or the landing watched, it is the height of the view being drawn (the seat, the chase camera). */
|
|
55
|
+
/** Where the eyes are: metres east and north of the site, and metres over the ground under them. Standing, that is a person's height; while the rover is driven or the landing watched, it is the height of the view being drawn (the seat, the chase camera); in a glide from one view to another, the eyes on the way. */
|
|
56
56
|
get position(): {
|
|
57
57
|
east: number;
|
|
58
58
|
north: number;
|
package/dist/surface/element.js
CHANGED
|
@@ -165,11 +165,12 @@ export class WakuseiSurface extends HTMLElement {
|
|
|
165
165
|
this.#look = clampLook(value);
|
|
166
166
|
this.#changed();
|
|
167
167
|
}
|
|
168
|
-
/** Where the eyes are: metres east and north of the site, and metres over the ground under them. Standing, that is a person's height; while the rover is driven or the landing watched, it is the height of the view being drawn (the seat, the chase camera). */
|
|
168
|
+
/** Where the eyes are: metres east and north of the site, and metres over the ground under them. Standing, that is a person's height; while the rover is driven or the landing watched, it is the height of the view being drawn (the seat, the chase camera); in a glide from one view to another, the eyes on the way. */
|
|
169
169
|
get position() {
|
|
170
|
-
if (this.#terrain === undefined
|
|
170
|
+
if (this.#terrain === undefined)
|
|
171
171
|
return { ...this.#at, up: EYE_HEIGHT };
|
|
172
|
-
|
|
172
|
+
const pose = this.#pose();
|
|
173
|
+
return { east: pose.east, north: pose.north, up: pose.up - this.#groundAt(pose.east, pose.north) };
|
|
173
174
|
}
|
|
174
175
|
/** The sky now: the Sun and the Earth in it. */
|
|
175
176
|
get sky() {
|
|
@@ -491,6 +492,15 @@ export class WakuseiSurface extends HTMLElement {
|
|
|
491
492
|
return this.#landingEyeUp;
|
|
492
493
|
return this.#groundAt(this.#at.east, this.#at.north) + EYE_HEIGHT;
|
|
493
494
|
}
|
|
495
|
+
/** The camera now: where the view puts it, or on the way to there from where the watched descent had it. */
|
|
496
|
+
#pose() {
|
|
497
|
+
const pose = { east: this.#at.east, north: this.#at.north, up: this.#eyeUp(), look: this.#look };
|
|
498
|
+
const glide = this.#glide;
|
|
499
|
+
if (glide === undefined)
|
|
500
|
+
return pose;
|
|
501
|
+
const k = (performance.now() - glide.at) / glide.ms;
|
|
502
|
+
return k >= 1 ? pose : blendPose(glide.from, pose, easeInOut(k), (east, north) => this.#groundAt(east, north));
|
|
503
|
+
}
|
|
494
504
|
/** Ask for a draw. A change of the view (`moving`, the default) is drawn at the quality of motion and followed, a moment after the last, by one at the quality of rest. */
|
|
495
505
|
#changed(moving = true) {
|
|
496
506
|
if (!this.#view?.live)
|
|
@@ -545,14 +555,9 @@ export class WakuseiSurface extends HTMLElement {
|
|
|
545
555
|
if (this.#drawScale < 1)
|
|
546
556
|
this.#scaled += 1;
|
|
547
557
|
// the camera: where the view puts it, or on the way to there from where the watched descent had it (a move, not a cut)
|
|
548
|
-
|
|
549
|
-
if (this.#glide !== undefined)
|
|
550
|
-
|
|
551
|
-
if (k >= 1)
|
|
552
|
-
this.#glide = undefined;
|
|
553
|
-
else
|
|
554
|
-
pose = blendPose(this.#glide.from, pose, easeInOut(k), (east, north) => this.#groundAt(east, north));
|
|
555
|
-
}
|
|
558
|
+
const pose = this.#pose();
|
|
559
|
+
if (this.#glide !== undefined && performance.now() - this.#glide.at >= this.#glide.ms)
|
|
560
|
+
this.#glide = undefined;
|
|
556
561
|
this.#lastPose = { pose, fromWatch: this.#landing !== undefined || this.#glide !== undefined };
|
|
557
562
|
scene.apply({ eye: { east: pose.east, north: pose.north, up: pose.up }, look: pose.look, sky: this.#sky, shadows: this.getAttribute("shadows") !== "off", detail: !this.#noDetail(), exposure: num(this.getAttribute("exposure"), this.#site()?.body === "mars" ? 1.5 : 1.6), quality: this.#quality(), scale: this.#drawScale, objects: this.#objects.length > 0, ...(this.#vehicle === undefined ? {} : { vehicle: this.#vehicle, ...(this.#model === undefined ? {} : { model: this.#model }), trail: this.#trail, dust: this.#dust.position }), ...(this.#landing === undefined ? {} : { lander: this.#landerState(), dust: this.#dust.position }), measure: measure || this.getAttribute("measure") !== null });
|
|
558
563
|
this.#view.invalidate();
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.74.
|
|
1
|
+
export declare const VERSION = "0.74.2";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// The published package version. Snippets and texture addresses name it. test/version.test.ts keeps it equal to package.json.
|
|
2
|
-
export const VERSION = "0.74.
|
|
2
|
+
export const VERSION = "0.74.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnmorrisdotca/wakusei-planets",
|
|
3
|
-
"version": "0.74.
|
|
3
|
+
"version": "0.74.2",
|
|
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",
|