本文へ移動

Chikyu Earth地球

世界の国の輪郭を線で描いた地球儀です。地球と同じ速さで回ります。宇宙から見たような地球と、好きな場所の目印も使えます。

「地球」(ちきゅう) は、私たちが住む星の名前です。 名前について(英語)

目次

リファレンス

<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).

ソースを見るGitHub で編集@johnmorrisdotca/chikyu-earth 0.11.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。