リファレンス
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. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。