LineupItem型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One thing standing in a lineup: its key (starship:v3 or a comparison's name), its label and its height in metres.
インポート
import type { LineupItem } from "@johnmorrisdotca/uchusen-rockets/build";
定義
interface LineupItem {
key: string;
label: string;
height: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
key | string | "starship:v3" or a comparison's name. |
label | string | |
height | number |
例
import { lineupSvg, type LineupItem } from "@johnmorrisdotca/uchusen-rockets/build";
const items: LineupItem[] = lineupSvg({ items: ["starship:v3", "person"], unit: 3 }).items;
console.log(items.map((item) => item.label));[ 'Block 3 (V3)', 'A person, 1.8 m' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。