リファレンス
<chikyu-space> 要素
import { … } from "@johnmorrisdotca/chikyu-earth/space/element";
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
BODY_NAMES | 定数 | 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. |
BodyInfo | 型 | What a page can tell a reader about a body now. |
BodyName | 型 | The name of one of the bodies in BODY_NAMES. |
ChikyuSpace | クラス | The <chikyu-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. |
RideOptions | 型 | How a ride along is done: view from (the default) puts the camera at the body looking at the Earth, follow keeps it a fixed distance from the body looking at it (distanceKm, 3000 by default, for a satellite; a planet or the Moon is kept at the distance the zoom says); look down (the default) or horizon is where a camera at the body points; 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. |
RideTarget | 型 | What a camera can ride along with: the name of one of the bodies, or a satellite of a group ({ group, index }). |
Riding | 型 | What the camera is riding along with now: the body or satellite, how (from or follow), where it looks, and the distance kept for a satellite. |
setBodyPainter | 関数 | Change how the Sun and the planets are drawn (before the first element connects): the space view keeps their places, sizes, light, names and orbits and asks the painter only for what to draw at each place (see BodyPainter). |
setThreeLoader | 関数 | Where three.js comes from, if a page wants to hand it over itself (before the first element connects). |
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: the zoom that shows them, when a body painter that draws moons is set). |
SpaceState | 型 | What the space view is doing: loading, live, unavailable (no WebGL), lost (the GPU took the context; it comes back by itself) or idle (another view has the page's one context). |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。