@johnmorrisdotca/chikyu-earth 0.67.0 → 0.68.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 +18 -0
- package/NOTICE.md +4 -0
- package/README.md +1 -1
- 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 +1 -1
- package/dist/flat/element.js +171 -33
- package/dist/flat/index.d.ts +1 -0
- package/dist/flat/index.js +1 -0
- package/dist/flat/words.js +12 -4
- package/dist/realistic/element-base.js +1 -1
- package/dist/space/element-base.js +1 -1
- 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,24 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.68.1 - 2026-11-23
|
|
6
|
+
|
|
7
|
+
- **The package builds in Next.js again** (with Turbopack). `<chikyu-flat>`, the globe and the space view found their own pictures with `new URL("../textures/", import.meta.url)`; Turbopack reads that pattern as a file to bundle, cannot bundle a folder, and stopped the build (spaceprogramx.com's deploy failed on it). The address is now made from `String(import.meta.url)`, which bundlers leave alone; nothing changes in a browser.
|
|
8
|
+
|
|
9
|
+
## 0.68.0 - 2026-11-23
|
|
10
|
+
|
|
11
|
+
- **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.
|
|
12
|
+
- **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.
|
|
13
|
+
- **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.
|
|
14
|
+
- **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.
|
|
15
|
+
- **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.
|
|
16
|
+
- **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.
|
|
17
|
+
- **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.
|
|
18
|
+
- **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.
|
|
19
|
+
- **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.
|
|
20
|
+
- **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).
|
|
21
|
+
- **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.
|
|
22
|
+
|
|
5
23
|
## 0.67.0 - 2026-11-23
|
|
6
24
|
|
|
7
25
|
- **`<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.
|
package/NOTICE.md
CHANGED
|
@@ -120,6 +120,10 @@ The other names a catalogue row lists (`aka` on `catalogueRows`) are taken from
|
|
|
120
120
|
|
|
121
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.
|
|
122
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
|
+
|
|
123
127
|
## Satellite owners' countries
|
|
124
128
|
|
|
125
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
|
@@ -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.1) [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
|
|