SkyLabels型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The words on a sky dome: the four directions and the three marks on the track. English by default; pass your own (the demo passes Japanese).
インポート
import type { SkyLabels } from "@johnmorrisdotca/chikyu-earth/passes";
定義
interface SkyLabels {
north: string;
east: string;
south: string;
west: string;
start: string;
highest: string;
end: string;
zenith: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
north | string | |
east | string | |
south | string | |
west | string | |
start | string | |
highest | string | |
end | string | |
zenith | string |
例
import type { SkyLabels } from "@johnmorrisdotca/chikyu-earth/passes";
const japanese: SkyLabels = { north: "北", east: "東", south: "南", west: "西", start: "出", highest: "最高", end: "入", zenith: "真上" };
console.log(japanese.north);北出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。