Reference
The <wakusei-space> element: the Earth, Moon, Sun and planets in their places
import { … } from "@johnmorrisdotca/wakusei-planets/space/element";
Exports
| Name | Kind | What it is |
|---|---|---|
BodyInfo | type | What a page can tell a reader about a body now. |
RideOptions | type | How a ride along is done: view from (the default) puts the camera at the target looking at the body it goes round, follow keeps it a distance from the target looking at it (distanceKm, 3000 by default, for a point of your own; a body or a moon is kept at the distance the zoom says); look down (the default) or horizon is where a camera at the target points; around is the body a point of your own goes round (the Earth by default); smooth (the default) glides from the old camera to the new one in about a second and a bit, and jumps instead for a reader who asked for reduced motion. |
RidePoint | type | Any moving point a camera can ride: where it is and which way it goes at a moment, from the centre of the body it goes round, in kilometres and kilometres a second, in the scene's axes (J2000 equatorial, y north). |
RideTarget | type | What a camera can ride along with: a body of the view (moon, mars, ... |
Riding | type | What the camera is riding along with now: the target, the body it goes round, how (from or follow), where it looks, and the distance kept for a point. |
setThreeLoader | function | Where three.js comes from, if a page wants to hand it over itself (before the first element connects). |
SPACE_BODIES | constant | The eleven bodies the space view places, names and lets a reader choose: the Earth, the Sun, the Moon, the seven other planets and Pluto. |
SpaceBody | type | One of the bodies in SPACE_BODIES, by the package's usual lower-case name. |
SpaceLight | type | How the Earth is lit: sun is the true light; lit is daylight from the camera's side, so a view of the night side is never black. |
SpacePreset | type | A named distance for zoomFor: the Earth, the Moon, the Sun, the inner planets, the whole solar system, or a planet with its nearer moons (jupiter-moons). |
SpaceState | type | What the space view is doing: loading, live, unavailable (no WebGL), lost (the GPU took the context; it comes back by itself). |
WakuseiSpace | class | The <wakusei-space> custom element: the Earth, the Moon, the Sun and the planets where they are at a date and time, drawn with three.js through the shared renderer. |