REAL_CRAFT定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The real craft that lie in the fleet band for scale: Starship with Super Heavy, Saturn V, SLS and the International Space Station. Each is a variant of the package, so its length is the sourced figure, axis is the way its length runs in its own model
(y up the stack, nose up; x along the station's long axis), and a rocket points its nose right. They are never scaled: they are drawn at the lineup's own scale.
インポート
import { REAL_CRAFT } from "@johnmorrisdotca/uchusen-rockets/build";
定義
const REAL_CRAFT: readonly [{ readonly key: "starship:v3"; readonly name: "Starship with Super Heavy"; readonly axis: "y"; }, { readonly key: "saturn-v:saturn-v"; readonly name: "Saturn V"; readonly axis: "y"; }, { readonly key: "sls:block-1"; readonly name: "SLS Block 1"; readonly axis: "y"; }, { readonly key: "iss:iss"; readonly name: "ISS"; readonly axis: "x"; }] = [
{ key: "starship:v3", name: BESIDE_NAME, axis: "y" },
{ key: "saturn-v:saturn-v", name: "Saturn V", axis: "y" },
{ key: "sls:block-1", name: "SLS Block 1", axis: "y" },
{ key: "iss:iss", name: "ISS", axis: "x" },
] as const
例
import { REAL_CRAFT } from "@johnmorrisdotca/uchusen-rockets/build";
console.log(REAL_CRAFT.map((craft) => craft.name));[ 'Starship with Super Heavy', 'Saturn V', 'SLS Block 1', 'ISS' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。