@johnmorrisdotca/chikyu-earth 0.66.0 → 0.68.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 +30 -0
- package/NOTICE.md +6 -0
- package/README.md +2 -2
- package/dist/flat/airports-data.d.ts +3 -0
- package/dist/flat/airports-data.js +3250 -0
- package/dist/flat/airports.d.ts +93 -0
- package/dist/flat/airports.js +86 -0
- package/dist/flat/element.d.ts +14 -3
- package/dist/flat/element.js +626 -60
- package/dist/flat/index.d.ts +3 -0
- package/dist/flat/index.js +3 -0
- package/dist/flat/marks.d.ts +33 -0
- package/dist/flat/marks.js +70 -0
- package/dist/flat/photo.d.ts +167 -0
- package/dist/flat/photo.js +309 -0
- package/dist/flat/words.js +54 -0
- package/dist/space/index.d.ts +1 -1
- package/dist/space/index.js +1 -1
- package/dist/space/satellite-layer.d.ts +26 -0
- package/dist/space/satellite-layer.js +43 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.68.0 - 2026-11-23
|
|
6
|
+
|
|
7
|
+
- **Day and night are plain at a glance on `<chikyu-flat>`** (MODULES-1784). The night shade (a 16 percent navy over a navy map, under thousands of dots) could hardly be seen, and nothing marked where it is day.
|
|
8
|
+
- **The drawn map.** The night is now four steps of a darker shade (20 percent each, 59 percent at midnight), the day side has a light tint, and the line of sunrise and sunset (90 degrees from the point under the Sun, where the Sun is on the horizon) is drawn in amber with a dark edge. Over the photo the night was already dark; the line is drawn over it as well.
|
|
9
|
+
- **The key** names day, night (over the photo, "darker, with city lights") and the line, in English and Japanese. `shade="off"` leaves all of it out.
|
|
10
|
+
- **Style.** `--chikyu-flat-day` (the day tint) and `--chikyu-flat-terminator` (the line's colour); `--chikyu-flat-night` (now `rgba(1,4,14,0.2)`) is the shade of each of the four night steps. The cost is the same: the map is drawn again only when the Sun has moved a step, and the line is one more stroke.
|
|
11
|
+
- **A page can restyle the flat map's buttons and text** (MODULES-1793). The buttons and chips have `part="button"`, the name beside a satellite or mark `part="tip"`, the keys `part="key"` and the message `part="msg"`, so `chikyu-flat::part(button)` takes the page's rules. The custom properties `--chikyu-flat-button-radius` (999px), `--chikyu-flat-button-padding` (3px 12px), `--chikyu-flat-button-min-height` (32px, 44px for a finger) and `--chikyu-flat-button-border` (a whole border value) set every button, and `--chikyu-flat-tip-font-size` and `--chikyu-flat-key-font-size` the text of the tip and the key. The defaults are what the buttons always were. `e2e/flat-parts.demo.ts` holds a page's `::part(button)` rule and the properties.
|
|
12
|
+
- **Tests.** `e2e/flat-day-night.demo.ts` reads the map's pixels: the night's middle is clearly darker than the same ground without the night, the day is not, and the line's amber is where the line should be, in both looks.
|
|
13
|
+
- **Near satellites no longer swell into big discs, and the dark rim is for dots big enough to carry it** (MODULES-1794). A dot was drawn up to 2.5 times its size as the Earth was drawn larger than at first, with a dark rim all round, so a crowd over the Earth read as black specks. A dot is now never drawn wider than `MAX_DOT_PX` (6 CSS pixels; a group that asks for more keeps its own size and only stops growing), and the rim fades in only on dots from 5 CSS pixels wide, so small dots are their colour. `dotPx(size, scale)` and `MAX_DOT_PX` are exported from `/space`; `test/satellite-layer.test.ts` holds the cap through a near camera and the shader's rim rule.
|
|
14
|
+
- **Airports on the flat map** (MODULES-1789). `<chikyu-flat airports>` marks the world's large and medium airports with scheduled service and an IATA code (3,245), from OurAirports' open data (the data repository carries The Unlicense; NOTICE.md has the terms, what was read and what could not be). The greater ones show when the whole world is in sight (about 300 at 1000 px wide), more as the map is zoomed in (the medium ones from zoom 3), never two in one small cell, and from zoom 4 each has its IATA code beside it.
|
|
15
|
+
- **Named.** A pointer over one, or a tap, says `Tokyo Haneda International Airport (HND), Japan` (the country's name in English or Japanese; the airport's is OurAirports', in English), and a tap sends `chikyu-flat-airport`. The key names airports.
|
|
16
|
+
- **Cheap.** The rows (about 200 kB) are a chunk of their own that is fetched only the first time a map asks for airports; they are drawn with the map's own picture, so they cost a frame only when the view or the Sun's place moved. `controls` can add an Airports button (`airports`; not among the defaults).
|
|
17
|
+
- **Pure parts** in `/flat`: `placeAirports`, `airportLine`, `CODES_FROM_ZOOM`, `MEDIUM_FROM_ZOOM` and the types `Airport` and `PlacedAirport`, with `test/airports.test.ts` (the data, the thinning, the place, the line) and `e2e/flat-airports.demo.ts`. `scripts/make-airports.py` makes the data from OurAirports' files.
|
|
18
|
+
|
|
19
|
+
## 0.67.0 - 2026-11-23
|
|
20
|
+
|
|
21
|
+
- **`<chikyu-flat>`'s marks have names and a key** (MODULES-1768). The yellow dot (the Sun overhead) and the white diamond (My place) were painted into the map and said nothing; nothing on the map was explained.
|
|
22
|
+
- **The key.** Under the map, never over it, a row names every mark drawn now, each beside its picture, in English and Japanese: the Sun overhead, My place, a satellite (its colour is its group or its orbital plane), a faint satellite (old orbit data), the satellite you chose, the footprint, the ground track in sunlight and in the shadow, the night side (in the photo look, darker with city lights). What is not drawn is not listed. Open on a map 600 px wide or more, shut on a narrower one until the Key button is pressed; `keyOpen` sets it; `controls` without `key` leaves it out. While it is open the track's own key over the map steps aside.
|
|
23
|
+
- **They name themselves.** The Sun's dot says "The Sun is overhead here: over the Atlantic Ocean, 23°S 15°W" and the diamond "My place: Japan, 36°N 140°E" (English and Japanese) on hover, on a tap (the name stays beside it until a tap elsewhere or Escape: a finger cannot hover) and on focus: Tab goes from the map to each mark, which has a button over it that takes no pointer, so a drag that starts on a mark still pans. A press sends `chikyu-flat-mark` (`{ mark, name, text, lon, lat, place, via }`).
|
|
24
|
+
- **Photo look.** The Sun's dot has a dark edge and a pale ring over the picture.
|
|
25
|
+
- **`--chikyu-flat-key-inset`** keeps room at the left of the key (0 by default) for a page's card that lies over the map's left side.
|
|
26
|
+
- **The photo's credit is one small line.** It covered a third of a phone's map. It is now a button at the map's bottom edge: the whole line on a map 600 px wide or more, `Earth: NASA` (`地球:NASA`) on a narrower one, where a tap shows the whole line; the key carries the whole line too.
|
|
27
|
+
- **Pure parts** in `/flat`: `pointText` and `placeOver` (the country, else the nearest ocean or sea), with unit tests, and `e2e/flat-key.demo.ts` (hover, tap, Tab and Enter, the key's contents in both languages and both looks, and on a phone).
|
|
28
|
+
- **`<chikyu-flat>` can show the real picture of the Earth** (MODULES-1767). `look="photo"` (property `look`) lays NASA's Blue Marble on the map instead of the drawn countries; `look="map"`, or no attribute, is the drawn map exactly as before.
|
|
29
|
+
- **The same pictures as the 3D Earth.** The day and night files of `<chikyu-earth-realistic>` (`textures/day-*.webp`, `night-*.webp`) and their credit (NASA Earth Observatory, public domain), shown in the corner of the map while the photo is on; no new data. `texture-base` and `max-texture` work as on the Earth.
|
|
30
|
+
- **A Map / Photo pair of buttons** is one of the map's own controls: `controls="centre look"` (`look` is not in the default list, so no existing page gets a new button).
|
|
31
|
+
- **Lined up with the projection.** The picture follows the centre, the zoom and the wrap round the date line to the pixel. Where the map shows night, the day picture darkens and the night picture's city lights come on across the terminator, for the moment shown. `borders="off"` removes the thin country lines. The satellites have a dark rim and the footprint a dark edge over the photo.
|
|
32
|
+
- **Cost.** The pictures are fetched only while the look is `photo`, one size of each at a time (1024, 2048, 4096 for the day), a smaller one after the zoom has stayed out for 4 seconds, and freed when the look goes back or the element leaves the page. The canvases keep to 6 million pixels and 4096 a side; nothing is drawn at rest.
|
|
33
|
+
- **For the page.** `lookState` (`map`, `loading`, `photo`, `failed`) and the event `chikyu-flat-look` (`{ look, state }`); a picture that cannot be fetched leaves the drawn map. Pure parts in `/flat`: `readLook`, `photoWidth`, `photoPieces`, `nightWeights` and the types `FlatLook` and `PhotoPiece`, with unit tests (`test/flat.test.ts`: the Nile delta, Florida and Tokyo land at the picture's own pixel at several centres, zooms and boxes) and `e2e/flat-photo.demo.ts`. The demo's flat page has Map and Photo buttons (`?look=photo`).
|
|
34
|
+
|
|
5
35
|
## 0.66.0 - 2026-11-22
|
|
6
36
|
|
|
7
37
|
- **A lost context that the browser never gives back no longer leaves the labels over a black view** (MODULES-1499). On a phone that lost the WebGL context (iOS Safari under memory pressure) the Earth and the stars stopped being drawn while the city, star and place names stayed where the last frame put them, for good. Two changes, in `chikyu-space` and `chikyu-earth-realistic`. While `data-state` is `lost` the names, places, compass and notes are hidden, so nothing is left over a view that is not drawn. And the element now follows the shared renderer's own state: when kazoku-ui's renderer makes a new context after `restoreMs` (its next release; this is the half that needs it) the element goes back to `live`, and when none can be made it sends `chikyu-unavailable`, as for a browser with no WebGL. Tests: `e2e/space.gl.ts` (a context never restored is made again on a new canvas with the names hidden meanwhile and the Earth drawn; one that cannot be made ends as `chikyu-unavailable`) and `e2e/tiles.gl.ts` (the same for the realistic Earth). With a kazoku-ui from before the fix the first of them stays on `lost` and fails.
|
package/NOTICE.md
CHANGED
|
@@ -47,6 +47,8 @@ re-encoded as WebP. NASA says its content "generally are not subject to copyrigh
|
|
|
47
47
|
source of the material" (https://www.nasa.gov/nasa-brand-center/images-and-media/, read 2026-11-02). These are NASA's own images, not third-party
|
|
48
48
|
material, so no other licence applies. This package is not endorsed by NASA and uses none of NASA's insignia or logotype.
|
|
49
49
|
|
|
50
|
+
`<chikyu-flat look="photo">` draws the `day-*.webp` and `night-*.webp` pictures on its flat map (2026-11-21): the same files, under the same terms, with the credit of `chikyu-pictures` shown in the corner of the map. No other data is added.
|
|
51
|
+
|
|
50
52
|
| Picture | Source | Credit |
|
|
51
53
|
|---|---|---|
|
|
52
54
|
| `day-*.webp` | Blue Marble: Next Generation with topography and bathymetry, September 2004, 5400 x 2700 (https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73801/world.topo.bathy.200409.3x5400x2700.jpg, Visible Earth 73801) | NASA Earth Observatory (Reto Stöckli, Blue Marble Next Generation) |
|
|
@@ -118,6 +120,10 @@ The other names a catalogue row lists (`aka` on `catalogueRows`) are taken from
|
|
|
118
120
|
|
|
119
121
|
The same build may take a group's element sets from **Space-Track.org** (https://www.space-track.org, U.S. Space Command) when CelesTrak has left the group more than 12 hours old, at most once a day, through its API with John Morris's own account (the login is a repository secret, never in a file). The group's file and `manifest.json` say `"source": "spacetrack"` and the demo says so under the globe. The citation is **"Data from Space-Track.org (USSPACECOM)"**. Terms: the documentation page https://www.space-track.org/documentation, section "Redistribution of Basic SSA Information", read 2026-11-08: "USSPACECOM has provided express blanket approval for transfer/redistribution of basic SSA data and services accessed via www.Space-Track.org conditioned on appropriate citation." Basic SSA data are "Two-Line Elements (TLEs) and Orbital Mean-element Messages (OMMs); SATCAT; and Satellite Decay and Reentry Data." (The page needs a browser; the section was read through a page-reading tool, which returned each sentence in quoted pieces. TODO: John or a browser check of the section's wording.) The page gives no citation form, so this sentence is the package's own. The package ships none of these element sets.
|
|
120
122
|
|
|
123
|
+
## Airports on the flat map
|
|
124
|
+
|
|
125
|
+
The airports `<chikyu-flat airports>` marks (`src/flat/airports-data.ts`, made by `scripts/make-airports.py`) are OurAirports' open data, https://ourairports.com/data/: the files `airports.csv` and `runways.csv` of https://davidmegginson.github.io/ourairports-data/ (SHA-256 of the files read on 2026-11-23: `airports.csv` 200f6b42633c9c37e18049d5e7de5a9e347698661c68a52ee7359a0e5d128ee3, `runways.csv` aecbf51dc5aa2e1d0373297076c0cf82e62e916bbabc63f2d8c487cca4856e23). The data repository https://github.com/davidmegginson/ourairports-data carries **The Unlicense** (a public domain dedication; GitHub's licence API read 2026-11-23: `unlicense`), and OurAirports describes its data as released to the public domain. The page https://ourairports.com/data/ could not be read on 2026-11-23: its certificate had expired, so the public-domain statement there is the project's own and was not re-read; the licence of record here is the repository's. Nothing is fetched at run time: the 3,245 large and medium airports with scheduled service and an IATA code are in the package (about 200 kB, in a chunk of their own that a page loads only when it asks for the airports). The names are OurAirports', in English; the country names the tip shows are chikyu's own (Natural Earth's, see above). OurAirports asks for no credit; none is shown.
|
|
126
|
+
|
|
121
127
|
## Satellite owners' countries
|
|
122
128
|
|
|
123
129
|
`src/satellites/owners.ts` gives each owner code of the satellite catalogue the country it stands for, as an ISO 3166-1 alpha-2 code, or none for an organisation, several countries, an unknown owner, or a code the list does not give to one country. The codes and what each stands for were typed from CelesTrak's list of SATCAT sources (https://celestrak.org/satcat/sources.php, T.S. Kelso, read 2026-11-12, 132 codes); a code and the name of a country are facts. The two-letter codes are ISO 3166-1's, also facts. `CIS` is left unset: the list calls it "Commonwealth of Independent States (former USSR)" and does not name Russia. `ISRO` is India, that country's space agency. No flag is drawn or shipped.
|
package/README.md
CHANGED
|
@@ -573,7 +573,7 @@ Each guide has a Japanese twin in [docs/guides/ja](docs/guides/ja/getting-starte
|
|
|
573
573
|
| [Satellites](docs/guides/satellites.md) | SGP4 and the space view |
|
|
574
574
|
| [Full screen, the camera in the stars and every satellite](docs/guides/full-screen-and-camera.md) | `immersive`, `camera="space"`, the Earth's look, and every satellite group on the realistic Earth |
|
|
575
575
|
| [When can I see the ISS?](docs/guides/passes.md) | Passes over a place, the sky dome, how it was checked |
|
|
576
|
-
| [Satellites on a flat map](docs/guides/flat-map.md) | `<chikyu-flat>`: groups, orbital planes, footprints, the ground track, the clock; the facts of a group |
|
|
576
|
+
| [Satellites on a flat map](docs/guides/flat-map.md) | `<chikyu-flat>`: groups, orbital planes, footprints, the ground track, the clock, the photo look (`look="photo"`); the facts of a group |
|
|
577
577
|
| [Ride along](docs/guides/ride-along.md) | A camera on a moving body |
|
|
578
578
|
| [The date follows the clock, and Play](docs/guides/time-and-play.md) | The `chikyu-timechange` event, a `speed` for the space view and the realistic Earth, Play, Pause and Back |
|
|
579
579
|
| [Names on the stars and faint constellation lines](docs/guides/sky-names.md) | The brightest stars named and the constellations as faint lines over the sky, in hoshi-stars' attribute names |
|
|
@@ -615,7 +615,7 @@ console.log(countryList().filter((country) => country.alpha2 === null).map((coun
|
|
|
615
615
|
|
|
616
616
|
## How to cite
|
|
617
617
|
|
|
618
|
-
> Morris, J. (2026). *Chikyu Earth* (version 0.
|
|
618
|
+
> Morris, J. (2026). *Chikyu Earth* (version 0.68.0) [Computer software]. https://github.com/johnmorrisdotca/chikyu-earth
|
|
619
619
|
|
|
620
620
|
GitHub's "Cite this repository" button reads [CITATION.cff](CITATION.cff) and gives BibTeX and APA. Cite the version you used (`npm ls @johnmorrisdotca/chikyu-earth`), and credit the sources behind the numbers and pictures: [NOTICE.md](NOTICE.md) says who made each one and under what terms.
|
|
621
621
|
|