リファレンス · 地球周回軌道のカタログ: 軌道の分類、物体の種類、色、衛星群、パック形式のファイル(データは含みません)
legend関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The legend for colouring by class or by kind, in the page's language.
インポート
import { legend } from "@johnmorrisdotca/chikyu-earth/catalogue";
定義
function legend(by: "class" | "kind", lang: "en" | "ja"): LegendEntry[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
by | "kind" | "class" |
|
lang | "en" | "ja" |
|
戻り値
LegendEntry[]
One entry for each class or kind, in the legend's order.
例
import { legend } from "@johnmorrisdotca/chikyu-earth/catalogue";
console.log(legend("class", "en").map((one) => `${one.label} ${one.colour}`).join(", "));
console.log(legend("kind", "ja")[2]?.label);Low orbit #5dd6a2, Medium orbit #ffd166, Geostationary #ef476f, Highly elliptical #b388eb, Other #9aa5b1
デブリ出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。