titleBlock関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A sheet's title block, written in-universe: the SPX fleet drawing office, the vehicle as "ISV <name>, <registry>", the maker "SPX", its class, drive and computer in the fleet's own codes (see GLOSSARY), and a
status in the future tense: "PLANNED · FIRST FLIGHT 2412" or "IN DEVELOPMENT · FIRST FLIGHT PLANNED 2412", never "in service". A date is a planned date. The operator is FLEET_OPERATOR, just "SPX".
インポート
import { titleBlock } from "@johnmorrisdotca/uchusen-rockets";
定義
function titleBlock(o: { designation: string; name: string; shipClass?: "IHT" | "ICV" | "IXV"; drive?: { code: "FTD" | "DCD"; count: number; }; computer?: string; ja?: { kanji: string; ruby: string; }; sheet: string; sheetNo: readonly [number, number]; scale: string; revision: string; date: string; stage: "planned" | "development"; firstFlight: number; }): TitleBlock
引数
| 名前 | 型 | 説明 |
|---|---|---|
o | { designation: string; name: string; shipClass?: "IHT" | "ICV" | "IXV"; drive?: { code: "FTD" | "DCD"; count: number; }; computer?: string; ja?: { kanji: string; ruby: string; }; sheet: string; sheetNo: readonly [number, number]; scale: string; revision: string; date: string; stage: "planned" | "development"; firstFlight: number; } | The designation (SPX- and any registry number, such as SPX-207) and name, its Japanese name with its ruby ( |
戻り値
TitleBlock
The block's rows, its status line and the vehicle's line.
例
import { titleBlock } from "@johnmorrisdotca/uchusen-rockets";
const block = titleBlock({ designation: "SPX-207", name: "Kaminari", shipClass: "IHT", drive: { code: "FTD", count: 8 }, computer: "KAZE core v4", sheet: "exterior", sheetNo: [1, 8], scale: "1:1000", revision: "A", date: "2026-11-04", stage: "planned", firstFlight: 2412 });
console.log(block.line, block.status);ISV Kaminari, SPX-207 · IHT class · SPX · FTD ×8 · KAZE core v4 PLANNED · FIRST FLIGHT 2412出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。