@johnmorrisdotca/wakusei-planets 0.48.0 → 0.49.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/NOTICE.md +1 -1
- package/README.md +3 -3
- package/dist/scene/textures.d.ts +2 -2
- package/dist/surface/drive.d.ts +181 -0
- package/dist/surface/drive.js +247 -0
- package/dist/surface/dust.d.ts +46 -0
- package/dist/surface/dust.js +96 -0
- package/dist/surface/element.d.ts +19 -0
- package/dist/surface/element.js +177 -5
- package/dist/surface/glsl.d.ts +3 -0
- package/dist/surface/glsl.js +25 -1
- package/dist/surface/index.d.ts +2 -0
- package/dist/surface/index.js +2 -0
- package/dist/surface/scene.d.ts +7 -0
- package/dist/surface/scene.js +187 -3
- package/dist/surface/shapes.d.ts +2 -2
- package/dist/surface/shapes.js +9 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/surface/shapes.js
CHANGED
|
@@ -171,8 +171,8 @@ export function landerParts() {
|
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* The lunar rover in its own frame (x right, z forward, the middle of its wheelbase on the ground at the origin): a frame and floor, four wheels (parts 0 to 3: front left, front right, rear left, rear right) with a
|
|
174
|
-
* fender over each, two seats, the console with its handle, the dish on its mast, the television camera on its own mast, a whip antenna and the boxes at both ends. Sizes from the published ones (3.
|
|
175
|
-
* wide, wheels 0.
|
|
174
|
+
* fender over each, two seats, the console with its handle, the dish on its mast, the television camera on its own mast, a whip antenna and the boxes at both ends. Sizes from the published ones (about 3.05 m long, 2.13 m
|
|
175
|
+
* wide, wheels 0.81 m across, the wheelbase 2.29 m).
|
|
176
176
|
*
|
|
177
177
|
* @returns The parts.
|
|
178
178
|
*
|
|
@@ -198,7 +198,7 @@ export function roverParts() {
|
|
|
198
198
|
parts.push(box([0, 0.57, -1.1], [1.15, 0.03, 0.6], 0, 1.0, 0, grey));
|
|
199
199
|
const wheels = [[-1, 1], [1, 1], [-1, -1], [1, -1]];
|
|
200
200
|
wheels.forEach(([sx, sz], index) => {
|
|
201
|
-
const centre = [sx *
|
|
201
|
+
const centre = [sx * 0.95, 0.41, sz * 1.15];
|
|
202
202
|
// a wheel of wire mesh (dark, with a lighter hub), its strut to the frame and its fender over the top
|
|
203
203
|
const wheel = cylinder([-0.115, 0, 0], 0.41, 0.23, 16, 0.55, true, DARK);
|
|
204
204
|
const hub = cylinder([-0.12, 0, 0], 0.16, 0.24, 10, 1.0, true, [0.7, 0.72, 0.76]);
|
|
@@ -211,7 +211,7 @@ export function roverParts() {
|
|
|
211
211
|
}
|
|
212
212
|
parts.push(part);
|
|
213
213
|
}
|
|
214
|
-
parts.push(strut([sx * 0.55, 0.55, sz * 1.15], [sx * 0.
|
|
214
|
+
parts.push(strut([sx * 0.55, 0.55, sz * 1.15], [sx * 0.85, 0.45, sz * 1.15], 0.07, 1.1, grey));
|
|
215
215
|
// the fender: five narrow boards along an arc a hand above the tyre
|
|
216
216
|
for (let s = 0; s < 5; s += 1) {
|
|
217
217
|
const a0 = ((-65 + s * 26) * Math.PI) / 180;
|
|
@@ -234,11 +234,11 @@ export function roverParts() {
|
|
|
234
234
|
parts.push(strut([0, 1.1, 0.35], [0, 1.4, 0.3], 0.03, 1.0, DARK));
|
|
235
235
|
parts.push(box([0, 1.42, 0.3], [0.2, 0.04, 0.05], 0, 1.0, 0, DARK));
|
|
236
236
|
// the dish on its mast at the front, turned up and back toward the Earth, and the camera's own mast beside it
|
|
237
|
-
parts.push(strut([0, 0.6, 1.2], [0, 1
|
|
238
|
-
parts.push(dish([0,
|
|
239
|
-
parts.push(strut([
|
|
240
|
-
parts.push(box([
|
|
241
|
-
parts.push(strut([0.
|
|
237
|
+
parts.push(strut([0, 0.6, 1.2], [0, 2.1, 1.2], 0.05, 1.2, grey));
|
|
238
|
+
parts.push(dish([0, 2.2, 1.2], [0, 0.55, -0.55], 0.46, 0.14, 14, 1.4, [0.95, 0.95, 0.97]));
|
|
239
|
+
parts.push(strut([0.5, 0.6, 1.3], [0.5, 1.3, 1.3], 0.04, 1.2, grey));
|
|
240
|
+
parts.push(box([0.5, 1.4, 1.3], [0.26, 0.16, 0.18], 0, 1.0, 0, [0.5, 0.52, 0.56]));
|
|
241
|
+
parts.push(strut([-0.8, 0.6, 1.3], [-0.8, 1.9, 1.3], 0.012, 1.0, DARK));
|
|
242
242
|
// the boxes: the batteries at the front, the tools at the back
|
|
243
243
|
for (const x of [-0.4, 0.4])
|
|
244
244
|
parts.push(box([x, 0.76, 0.85], [0.36, 0.26, 0.38], 0, 1.0, 0, SILVER));
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.49.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.
|
|
1
|
+
export const VERSION = "0.49.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnmorrisdotca/wakusei-planets",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
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",
|