COLLARS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The collar standard: four classes, each twice the one before.
インポート
import { COLLARS } from "@johnmorrisdotca/uchusen-rockets";
定義
const COLLARS: Readonly<Record<CollarClass, CollarSpec>> = {
S: { outer: 3, bore: 1.4, bolts: 8, dogs: 4, thick: 0.1 },
M: { outer: 6, bore: 3, bolts: 16, dogs: 8, thick: 0.14 },
L: { outer: 12, bore: 6, bolts: 24, dogs: 12, thick: 0.24 },
H: { outer: 24, bore: 12, bolts: 36, dogs: 18, thick: 0.44 },
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
S | CollarSpec | |
M | CollarSpec | |
L | CollarSpec | |
H | CollarSpec |
例
import { COLLARS } from "@johnmorrisdotca/uchusen-rockets";
console.log(COLLARS.M.outer, COLLARS.L.bore);6 6出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。