BODY_IDS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every body's name: the Sun, the planets outward, the dwarf planets, then the moons of each.
インポート
import { BODY_IDS } from "@johnmorrisdotca/wakusei-planets";
定義
const BODY_IDS: readonly BodyId[] = ["sun", ...PLANET_IDS, ...DWARF_IDS, ...Object.values(MOONS_OF).flat()]
例
import { BODY_IDS } from "@johnmorrisdotca/wakusei-planets";
console.log(BODY_IDS.length, BODY_IDS[0]);47 sun出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。