本文へ移動

Chikyu Earth地球

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

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

目次

リファレンス

SVG文字列としての地球儀

import { … } from "@johnmorrisdotca/chikyu-earth";

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
centreRotation関数The rotation that puts centre in the middle of the disc: d3-geo's rotate is the negative of the point.
cleanStyle関数A value from outside (an attribute, a query parameter) as a style's name: the default for anything else.
COUNTRIES定数Every country the globe draws, as GeoJSON in longitude and latitude (177 features, Antarctica included), each with its English name, its Japanese name and its two-letter code.
countryList関数Every country the globe draws, with its kuni name and code.
CountryProps型What one country's outline carries: its English and Japanese name and its ISO alpha-2 code, all from kuni.
DEFAULT_STYLE定数The style a drawing is in when none is named.
DEGREES_PER_MS定数How far the Earth turns in one millisecond, in degrees.
GeoPoint型A point on the globe, in degrees: lon from -180 to 180 (east is positive), lat from -90 to 90 (north is positive).
globe関数The globe as an SVG string, turned to rotation and drawn in style, size pixels square.
globeBaseScale関数The radius of an unzoomed globe in a square of size pixels.
GlobeOptions型What globe() may be asked.
GlobeView型What a shared view controller tells the globe: its turn (yaw, degrees), tip (tilt, degrees), zoom (1 is Fit) and pan (panX and panY, CSS pixels).
HOME_VIEW定数The view when it opens: the home centre, upright, at 1x with no pan.
projectionView関数What the projection is given for a view: yaw turns longitude, tilt tips latitude, zoom scales and pan moves the disc in CSS pixels.
ProjectionView型What d3-geo's orthographic projection is given for a view: its rotation, scale and translation.
Rotation型How the globe is turned: [lambda, phi] in degrees, the pair d3-geo's rotate takes.
rotationAt関数The rotation at now for a globe that was centred on centre at start.
SIDEREAL_DAY_MS定数One sidereal day — the Earth's turn against the stars, 23 h 56 min 4.0905 s — in milliseconds.
spinAt関数How far the Earth has turned after ms milliseconds, in degrees.
Style型The lines and fills of one look: colours and widths only, never the geometry.
STYLE_NAMES定数Every style's name, in the order they are listed.
StyleName型The name of a look: "line" or "thick".
STYLES定数The looks the globe is drawn in, by name: line (thin outlines) and thick.

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

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