TitleBlock型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A sheet's title block: the office, a line for each of the vehicle, its registry, class, drive and computer, the maker, sheet, scale, revision and status, and the vehicle's line in the fleet's own form.
インポート
import type { TitleBlock } from "@johnmorrisdotca/uchusen-rockets";
定義
interface TitleBlock {
office: string;
rows: {
name: string;
value: string;
}[];
status: string;
line: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
office | string | |
rows | { name: string; value: string; }[] | |
status | string | The status line on its own, such as "PLANNED · FIRST FLIGHT 2412". |
line | string | The vehicle's line, such as "ISV Kaminari, SPX-207 · IHT class · SPX · FTD ×8 · KAZE core v4". |
例
import { titleBlock, type TitleBlock } from "@johnmorrisdotca/uchusen-rockets";
const block: TitleBlock = 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);ISV Kaminari, SPX-207 · IHT class · SPX · FTD ×8 · KAZE core v4出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。