@johnmorrisdotca/chikyu-earth 0.20.0 → 0.22.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.
@@ -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: 3 },
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 (2.5 mm when the outline is 3). */
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.20.0",
3
+ "version": "0.22.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",
@@ -73,6 +73,8 @@
73
73
  "sideEffects": [
74
74
  "./dist/element.js",
75
75
  "./src/element.ts",
76
+ "./dist/passes/element.js",
77
+ "./src/passes/element.ts",
76
78
  "./dist/realistic/element.js",
77
79
  "./src/realistic/element.ts",
78
80
  "./dist/space/element.js",
@@ -122,6 +124,16 @@
122
124
  "import": "./dist/satellites/index.js",
123
125
  "default": "./dist/satellites/index.js"
124
126
  },
127
+ "./passes/element": {
128
+ "types": "./dist/passes/element.d.ts",
129
+ "import": "./dist/passes/element.js",
130
+ "default": "./dist/passes/element.js"
131
+ },
132
+ "./passes": {
133
+ "types": "./dist/passes/index.d.ts",
134
+ "import": "./dist/passes/index.js",
135
+ "default": "./dist/passes/index.js"
136
+ },
125
137
  "./sheets": {
126
138
  "types": "./dist/sheets/index.d.ts",
127
139
  "import": "./dist/sheets/index.js",
@@ -168,7 +180,7 @@
168
180
  },
169
181
  "dependencies": {
170
182
  "@johnmorrisdotca/chizu": "^1.6.0",
171
- "@johnmorrisdotca/kazoku-ui": "^0.24.0",
183
+ "@johnmorrisdotca/kazoku-ui": "^0.26.0",
172
184
  "d3-geo": "^3.1.1"
173
185
  },
174
186
  "peerDependencies": {