@johnmorrisdotca/wakusei-planets 0.64.0 → 0.65.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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.65.0] - 2026-11-17
6
+
7
+ - **The Apollo lunar rover from a museum's 3D model** (MODULES-1459). `models/apollo-lrv.glb` (1.0 MB, served beside the demo like Perseverance and Curiosity, in no npm package): "Mondfahrzeug (Lunar Rover)" by Deutsches Museum | Digital, **CC BY-SA 4.0**, modified (trimmed from about 440,000 vertices to 74,000, the four wheels split into their own nodes inside steering pivots, two seat eyes, textures shrunk). It is not NASA's: the one file in the repository under that licence, a named exception, so the demo's surface page carries its credit line (title, author, licence with its link, modified, share-alike), `NOTICE.md` names the file and the code around it stays MIT. `drive-model="/models/apollo-lrv.glb"` draws it in place of the shapes, its wheels rolling and steering with the drive and `seat-commander` as the seat view. The replica is 3.02 m long and 1.75 m wide with a 1.92 m wheelbase against the published 3.05 m, 2.13 m and 2.29 m; its own proportions were kept, not stretched, and the drive takes the model's. A test loads it at Apollo 17 and checks its nodes, its wheels, its steering and its eye.
8
+
9
+ - **The driven rover is drawn at every site** (MODULES-1522). At the six sites with no things on the ground (Perseverance, Curiosity, Apollo 15 and 16, Chang'e 3 and 4) a drive moved the rover and the view but drew no vehicle, neither the shapes nor a `drive-model`: the scene hid it for want of an objects table. The vehicle is drawn whenever a drive is on; the `objects` option is for the things at the site and the rover's tracks. `stats.vehicleDrawn` says it is in the picture. A test drives Yutu's flat ground with the package's shapes and Perseverance's with its model.
10
+
5
11
  ## [0.64.0] - 2026-11-17
6
12
 
7
13
  - **`/sky`: sky events through astronomy-engine, experimental: `seasons`, Moon phases, eclipses, planet rise/set/transit, libration, lunar apsides and nodes, greatest elongation** (MODULES-534; John Morris, 2026-11-17). A new entry, `@johnmorrisdotca/wakusei-planets/sky`, over astronomy-engine as an **optional peer dependency** (`>=2.1.19 <3`; the lockfile is unchanged, the devDependency stays at 2.1.19). `seasons(year)` gives the March equinox, June solstice, September equinox and December solstice as `Date`s (UTC); 16 events in 1900, 2000, 2026 and 2050 are within 60 seconds of the US Naval Observatory's table (the table is to the minute). Only `src/sky.ts` imports the peer, and a test holds that no other entry point's import graph reaches it. `/sky` is 30.6 kB gzipped with the peer's bytes counted (the budget line is added for `./sky` only; the Moon and eclipse searches pull in most of astronomy-engine's series). New guide, "Sky events" (空の出来事), in both languages. Every choice below is a **default, for John to confirm**: the `./sky` entry with the optional peer; a missing peer is the runtime's own error from a static import (the plan preferred a top-level `await import()` with a worded error, but the size measure targets ES2020, which refuses top-level await, so the plan's fallback is used); new types without the `Deg` suffix; events marked `@experimental`; Jupiter's moons and constellations not wrapped.
package/NOTICE.md CHANGED
@@ -276,12 +276,15 @@ The height tiles of `<wakusei-surface>` (`scripts/make-moon-terrain.py`; they ar
276
276
 
277
277
  ## Rover models
278
278
 
279
- Two rover models for `drive-model` on `<wakusei-surface>`, in `models/` (served beside the demo at `models/`, in no npm package; each is a GLB the page fetches only when it asks for it). Both are NASA 3D Resources, NASA content, public domain; each was prepared for this package (split into separate wheels and steering pivots, simplified, textures shrunk to WebP at 512 px, packed with meshopt) and nothing was repainted.
279
+ Three rover models for `drive-model` on `<wakusei-surface>`, in `models/` (served beside the demo at `models/`, in no npm package; each is a GLB the page fetches only when it asks for it). Perseverance and Curiosity are NASA 3D Resources, NASA content, public domain; the Apollo rover is not NASA's and is under a different licence, below. Each was prepared for this package (split into separate wheels and steering pivots, simplified, textures shrunk to WebP at 512 px, packed with meshopt) and nothing was repainted.
280
280
 
281
281
  | File | Title | Author | Licence | Source | Size |
282
282
  |---|---|---|---|---|---|
283
283
  | `perseverance.glb` | Mars 2020 Perseverance Rover | NASA/Jet Propulsion Laboratory (JPL-Caltech) | Public domain (NASA 3D Resources; NASA content is not copyrighted) | https://science.nasa.gov/3d-resources/mars-2020-perseverance-rover/ | 1,020,496 bytes |
284
284
  | `curiosity.glb` | Curiosity Rover, 3D Model | NASA/JPL-Caltech | Public domain (NASA 3D Resources; NASA content is not copyrighted) | https://science.nasa.gov/resource/curiosity-rover-3d-model/ | 1,065,672 bytes |
285
+ | `apollo-lrv.glb` | Mondfahrzeug (Lunar Rover), modified | Deutsches Museum \| Digital | **CC BY-SA 4.0** (http://creativecommons.org/licenses/by-sa/4.0/) | https://sketchfab.com/3d-models/mondfahrzeug-lunar-rover-acb3f8645a69493cb211a62b40d66aab | 1,040,476 bytes |
286
+
287
+ **`models/apollo-lrv.glb` is under CC BY-SA 4.0, as a whole; the code around it stays MIT.** It is a museum replica scan of the Apollo Lunar Roving Vehicle by the Deutsches Museum, modified for this package: turned and scaled, trimmed (about 440,000 vertices to about 74,000), the four wheels split out into their own nodes inside steering pivots, two seat eye points added, the textures shrunk to WebP and the file packed with meshopt. Anything that adapts this one file must be shared under the same licence, and wherever it is shown or served it needs the credit line on the demo's surface page: the title, the author with the source link, the licence named with its link, and that it was modified. The file keeps the author, licence and source in its `asset.extras`; `models/apollo-lrv.CREDITS.md` repeats them. It is the one file in this repository under that licence, a named exception made for this model, and it is in no npm package.
285
288
 
286
289
  ## Interior cutaway
287
290
 
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.64.0/docs/images/lineup-desk.png" width="640"></p>
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.65.0/docs/images/lineup-desk.png" width="640"></p>
23
23
 
24
24
  ## Who it is for
25
25
 
@@ -412,7 +412,7 @@ The tiles of every body share one 48 MB budget, six loads at a time for a source
412
412
 
413
413
  ## The portrait builder
414
414
 
415
- <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.64.0/docs/images/portrait-family.png" width="640"></p>
415
+ <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.65.0/docs/images/portrait-family.png" width="640"></p>
416
416
 
417
417
  [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.
418
418
 
@@ -568,7 +568,7 @@ BODIES.pluto.kind; // "dwarf-planet"
568
568
 
569
569
  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:
570
570
 
571
- > Morris, J. (2026). *Wakusei Planets* (version 0.64.0) [Computer software]. https://github.com/johnmorrisdotca/wakusei-planets
571
+ > Morris, J. (2026). *Wakusei Planets* (version 0.65.0) [Computer software]. https://github.com/johnmorrisdotca/wakusei-planets
572
572
 
573
573
  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).
574
574
 
@@ -89,6 +89,7 @@ export declare class WakuseiSurface extends HTMLElement {
89
89
  vehicle: DriveState | undefined;
90
90
  drawMs: number | undefined;
91
91
  rocks: number;
92
+ vehicleDrawn: boolean;
92
93
  };
93
94
  connectedCallback(): void;
94
95
  disconnectedCallback(): void;
@@ -184,7 +184,7 @@ export class WakuseiSurface extends HTMLElement {
184
184
  /** Numbers for a test or a status line: the draws, the tiles, the renderer's own counts, the mesh, the quality of the last draw and the milliseconds of the last measured one. */
185
185
  get stats() {
186
186
  const scene = this.#view?.scene;
187
- return { state: this.#state, draws: this.#draws, tiles: this.#progress, renderer: this.#renderer?.stats, mesh: scene?.mesh, quality: this.#quality(), scale: this.#drawScale, scaled: this.#scaled, landing: this.landing, vehicle: this.#vehicle === undefined ? undefined : { ...this.#vehicle, spin: [...this.#vehicle.spin] }, drawMs: scene?.drawMs ?? this.#drawMs, rocks: scene?.rocks ?? 0 };
187
+ return { state: this.#state, draws: this.#draws, tiles: this.#progress, renderer: this.#renderer?.stats, mesh: scene?.mesh, quality: this.#quality(), scale: this.#drawScale, scaled: this.#scaled, landing: this.landing, vehicle: this.#vehicle === undefined ? undefined : { ...this.#vehicle, spin: [...this.#vehicle.spin] }, drawMs: scene?.drawMs ?? this.#drawMs, rocks: scene?.rocks ?? 0, vehicleDrawn: scene?.vehicleDrawn ?? false };
188
188
  }
189
189
  /** The quality of the next draw: the `quality` attribute, or in `auto` the quality of motion while the view moves and the machine's own quality of rest otherwise. */
190
190
  #quality() {
@@ -69,6 +69,8 @@ export interface SurfaceScene extends Scene3D {
69
69
  rays: number;
70
70
  triangles: number;
71
71
  };
72
+ /** Whether the driven vehicle is in the picture as of the last `apply`: its shapes, or its model. It is, whenever a drive is on, at a site with things on the ground or without. */
73
+ readonly vehicleDrawn: boolean;
72
74
  }
73
75
  export interface SurfaceItemOptions {
74
76
  /** The pyramid's levels, finest first, filled with their heights. */
@@ -365,9 +365,12 @@ export function createSurfaceItem(options) {
365
365
  let vehicleShadow;
366
366
  let vehicleCount = 0;
367
367
  let modelDrawn;
368
+ // The driven vehicle is drawn whenever a drive is on. `objects` is for the things at the site and the rover's tracks: a site with none (the flat-ground ones) still has its vehicle.
369
+ let vehicleDrawn = false;
368
370
  const makeVehicle = (state) => {
369
371
  const v = state.vehicle;
370
- if (v === undefined || state.objects === false) {
372
+ vehicleDrawn = v !== undefined;
373
+ if (v === undefined) {
371
374
  modelDrawn = undefined;
372
375
  if (vehicleMesh !== undefined)
373
376
  vehicleMesh.visible = false;
@@ -748,6 +751,9 @@ export function createSurfaceItem(options) {
748
751
  scene,
749
752
  camera,
750
753
  mesh: { rings: RINGS, rays: RAYS, triangles },
754
+ get vehicleDrawn() {
755
+ return vehicleDrawn;
756
+ },
751
757
  get rocks() {
752
758
  return rockCount;
753
759
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johnmorrisdotca/wakusei-planets",
3
- "version": "0.64.0",
3
+ "version": "0.65.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",