TIER_RADIUS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The Earth's radius on the screen, in pixels, from which each tier is shown: the capitals 60, the cities of a million 170, those of 100,000 420.
インポート
import { TIER_RADIUS } from "@johnmorrisdotca/chikyu-earth/realistic";
定義
const TIER_RADIUS: Readonly<Record<CityNameTier, number>> = { capitals: 60, "1m": 170, "100k": 420 }
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
capitals | number | |
1m | number | |
100k | number |
例
import { TIER_RADIUS } from "@johnmorrisdotca/chikyu-earth/realistic";
console.log(TIER_RADIUS.capitals, TIER_RADIUS["1m"], TIER_RADIUS["100k"]);60 170 420出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。