本文へ移動

Wakusei Planets惑星

太陽・惑星・衛星を、線画、陰影つきの絵、表面の地図で描きます。実際の大きさ・傾き・自転つきで、任意の日時の衛星の位置も分かります。

「惑星」(わくせい) は、太陽のまわりを回る大きな星のことです。 名前について(英語)

目次

リファレンス

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

ソースを見るGitHub で編集@johnmorrisdotca/wakusei-planets 0.24.0 のソースから作成しました。

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