リファレンス
<wakusei-space> 要素 (地球・月・太陽・惑星をその位置に)
import { … } from "@johnmorrisdotca/wakusei-planets/space/element";
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
BodyInfo | 型 | What a page can tell a reader about a body now. |
RideOptions | 型 | 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 | 型 | 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 | 型 | What a camera can ride along with: a body of the view (moon, mars, ... |
Riding | 型 | 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 | 関数 | Where three.js comes from, if a page wants to hand it over itself (before the first element connects). |
SPACE_BODIES | 定数 | 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 | 型 | One of the bodies in SPACE_BODIES, by the package's usual lower-case name. |
SpaceLight | 型 | 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 | 型 | 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 | 型 | What the space view is doing: loading, live, unavailable (no WebGL), lost (the GPU took the context; it comes back by itself). |
WakuseiSpace | クラス | 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. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。