@johnmorrisdotca/chikyu-earth 0.20.0 → 0.21.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 +4 -0
- package/dist/sheets/common.d.ts +1 -1
- package/dist/sheets/common.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.21.0 - 2026-11-09
|
|
6
|
+
|
|
7
|
+
- **kazoku-ui 0.26: a plain drag always turns, and lighter sheets for children** (KAZOKU-UI-87, KAZOKU-UI-86, MODULES-743). On the globe and the views that turn, a plain drag (and one finger) now turns at every zoom; the middle or right button, Ctrl or Command and a drag, Space and a drag, and the wheel move; the Move or Turn choice is gone. The printable sheets for children draw their outline at kazoku-ui's kid line, 1.2 mm (was 3), and the lines inside at 1 mm (was 2.5), so a sheet is lighter and the names have room; the header's Name is a line to write on.
|
|
8
|
+
|
|
5
9
|
## 0.20.0 - 2026-11-09
|
|
6
10
|
|
|
7
11
|
- **Wide is theatre mode** (MODULES-717). Wide gives the globe the page's own column, centred, out to where the side panel was; the page no longer stretches to the window's edges.
|
package/dist/sheets/common.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare function footer(words: string, widthMm: number, heightMm: number,
|
|
|
29
29
|
height: number;
|
|
30
30
|
};
|
|
31
31
|
export type TypeName = "kid" | "normal";
|
|
32
|
-
/** The thickness of a sheet's outline in millimetres, and of the lines inside it (
|
|
32
|
+
/** The thickness of a sheet's outline in millimetres, and of the lines inside it (1 mm when the outline is kazoku-ui's kid line, 1.2 mm). */
|
|
33
33
|
export declare const outlineMm: (type: TypeName) => number;
|
|
34
34
|
export declare const innerMm: (type: TypeName) => number;
|
|
35
35
|
/** The size of the names written on a picture: 24 pt for a child (never less), else the normal name size. */
|
package/dist/sheets/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const PT = 25.4 / 72;
|
|
4
4
|
/** The two type presets: the same sizes as kazoku-ui's `TYPE_PRESETS` (title, name, body and small in points, and the line in millimetres), checked against it by a test. */
|
|
5
5
|
export const TYPES = {
|
|
6
|
-
kid: { titleMm: 40 * PT, nameMm: 28 * PT, bodyMm: 18 * PT, smallMm: 10 * PT, lineMm:
|
|
6
|
+
kid: { titleMm: 40 * PT, nameMm: 28 * PT, bodyMm: 18 * PT, smallMm: 10 * PT, lineMm: 1.2 },
|
|
7
7
|
normal: { titleMm: 24 * PT, nameMm: 14 * PT, bodyMm: 11 * PT, smallMm: 8 * PT, lineMm: 0.4 },
|
|
8
8
|
};
|
|
9
9
|
export const n = (v) => (Math.round(v * 100) / 100).toString();
|
|
@@ -61,7 +61,7 @@ export function footer(words, widthMm, heightMm, sizeMm, extra = "") {
|
|
|
61
61
|
const last = heightMm - 0.55 * sizeMm;
|
|
62
62
|
return { markup: lines.map((line, i) => text(1.2, last - (lines.length - 1 - i) * sizeMm * 1.3, sizeMm, line, extra)).join(""), height: lines.length * sizeMm * 1.3 + 0.25 * sizeMm };
|
|
63
63
|
}
|
|
64
|
-
/** The thickness of a sheet's outline in millimetres, and of the lines inside it (
|
|
64
|
+
/** The thickness of a sheet's outline in millimetres, and of the lines inside it (1 mm when the outline is kazoku-ui's kid line, 1.2 mm). */
|
|
65
65
|
export const outlineMm = (type) => TYPES[type].lineMm;
|
|
66
66
|
export const innerMm = (type) => Math.max(TYPES[type].lineMm * (2.5 / 3), 0.3);
|
|
67
67
|
/** The size of the names written on a picture: 24 pt for a child (never less), else the normal name size. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnmorrisdotca/chikyu-earth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Chikyu Earth 地球 — A line-drawn globe for the web: country outlines that turn at the Earth's own rate, centred on where you are, with an optional realistic Earth from space (three.js), the Sun, Moon and planets, satellites on their orbits, and markers for any place. A web component and an SVG string.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"earth",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
},
|
|
169
169
|
"dependencies": {
|
|
170
170
|
"@johnmorrisdotca/chizu": "^1.6.0",
|
|
171
|
-
"@johnmorrisdotca/kazoku-ui": "^0.
|
|
171
|
+
"@johnmorrisdotca/kazoku-ui": "^0.26.0",
|
|
172
172
|
"d3-geo": "^3.1.1"
|
|
173
173
|
},
|
|
174
174
|
"peerDependencies": {
|