@johnmorrisdotca/wakusei-planets 0.37.0 → 0.37.1

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,11 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.37.1] - 2026-11-12
6
+
7
+ - **The Earth's line look stays chikyu-earth's globe while it turns** (MODULES-1152). On a page with chikyu-earth's element, `<wakusei-body body="earth" look="line">` showed chikyu-earth's globe with the countries and then, at the next frame of its turn (the line look turns by default, 30 times a second), drew this package's own outline over it. A body that another package draws is now left to that package, and the line look's tick stops while it is shown; the same element made another body turns again. A browser test puts an Earth and a Mars in the line look on one page with chikyu-earth's element and counts what the page reports: the globe is never replaced while Mars is redrawn twenty times.
8
+ - kazoku-ui 0.41.0 (the runtime dependency, from ^0.37.0), for browser runs in CI's own Playwright image (`kazoku-ci-image`).
9
+
5
10
  ## [0.37.0] - 2026-11-12
6
11
 
7
12
  - The ports are this package's block in John's port table, 8225 to 8249 (MODULES-1034): the demo and dev on 8225, the tests on 8226, the picture scripts on 8227, the serve example on 8235. They were 8300 to 8310, the Space Program X website's, so a gate run without TEST_PORT met the website's tests.
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.37.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.37.1/docs/images/lineup-desk.png" width="640"></p>
23
23
 
24
24
  ## Who it is for
25
25
 
@@ -387,7 +387,7 @@ The tiles of every body share one 48 MB budget, six loads at a time for a source
387
387
 
388
388
  ## The portrait builder
389
389
 
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.37.0/docs/images/portrait-family.png" width="640"></p>
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.37.1/docs/images/portrait-family.png" width="640"></p>
391
391
 
392
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.
393
393
 
@@ -532,7 +532,7 @@ BODIES.pluto.kind; // "dwarf-planet"
532
532
 
533
533
  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:
534
534
 
535
- > Morris, J. (2026). *Wakusei Planets* (version 0.37.0) [Computer software]. https://github.com/johnmorrisdotca/wakusei-planets
535
+ > Morris, J. (2026). *Wakusei Planets* (version 0.37.1) [Computer software]. https://github.com/johnmorrisdotca/wakusei-planets
536
536
 
537
537
  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).
538
538
 
package/dist/element.js CHANGED
@@ -854,6 +854,7 @@ export class WakuseiBody extends HTMLElement {
854
854
  const delegate = this.look === "line" ? delegates.get(this.body) : undefined;
855
855
  if (delegate !== undefined && (await this.#delegated(delegate)))
856
856
  return;
857
+ const undelegated = this.#delegateEl !== undefined;
857
858
  if (this.#delegateEl !== undefined) {
858
859
  this.#delegateEl.remove();
859
860
  this.#delegateEl = undefined;
@@ -866,6 +867,9 @@ export class WakuseiBody extends HTMLElement {
866
867
  this.#drawLine();
867
868
  if (this.look === "line")
868
869
  this.#set("line");
870
+ // the tick stopped while the other package's globe was shown
871
+ if (undelegated)
872
+ this.#resume();
869
873
  return;
870
874
  }
871
875
  const sig = `${this.#star()?.key ?? this.body}|${this.look}`;
@@ -1090,7 +1094,8 @@ export class WakuseiBody extends HTMLElement {
1090
1094
  }
1091
1095
  #lineTick() {
1092
1096
  this.#stopTick();
1093
- if (!this.#visible || document.visibilityState === "hidden" || !this.#moving || this.look !== "line")
1097
+ // a body another package draws (the Earth's globe) is that package's to turn: this package's line drawn here would replace it
1098
+ if (!this.#visible || document.visibilityState === "hidden" || !this.#moving || this.look !== "line" || this.#delegateEl !== undefined)
1094
1099
  return;
1095
1100
  this.#drawLine();
1096
1101
  this.#tick = setTimeout(() => this.#lineTick(), 1000 / 30);
@@ -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.37.0/dist/textures/";
14
+ export declare const TEXTURE_BASE = "https://cdn.jsdelivr.net/npm/@johnmorrisdotca/wakusei-planets@0.37.1/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.37.0/textures/";
26
+ export declare const TEXTURE_FAR_BASE = "https://cdn.jsdelivr.net/gh/johnmorrisdotca/wakusei-planets@v0.37.1/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.
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.37.0";
1
+ export declare const VERSION = "0.37.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "0.37.0";
1
+ export const VERSION = "0.37.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johnmorrisdotca/wakusei-planets",
3
- "version": "0.37.0",
3
+ "version": "0.37.1",
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",