Reference · Rockets, variants, parts and the fit check
Sectiontype
One named section of a module: its id, its name, what it does, its role, where it lies as shares of the module's length (from the bottom) and, for a deck, that it is one.
Import it
import type { Section } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface Section {
id: string;
name: string;
does: string;
role: SectionRole;
from: number;
to: number;
deck?: boolean;
reach?: number;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
name | string | |
does | string | |
role | SectionRole | |
from | number | |
to | number | |
deck (optional) | boolean | undefined | |
reach (optional) | number | undefined | How far from the axis its label points, as a share of the module's half width (default 0.6). |
Examples
import { SECTIONS, type Section } from "@johnmorrisdotca/uchusen-rockets";
const first: Section = SECTIONS["tank-cryo-12"][0];
console.log(first.name, first.from, first.to);Aft feed ring 0 0.08What it prints (run when this page was built)