Reference · Rockets, variants, parts and the fit check
RocketOptionstype
Every choice that draws a rocket, as plain text: the same names and values as the element's attributes. Nothing here is trusted. A value outside its list falls back to a default when it is drawn.
Import it
import type { RocketOptions } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface RocketOptions {
rocket?: string;
variant?: string;
show?: string;
look?: string;
view?: string;
build?: string;
mode?: string;
spin?: string;
way?: string;
label?: string;
assets?: string;
engines?: string;
lights?: string;
thrusters?: string;
phase?: string;
motion?: string;
}
Members
| Name | Type | Description |
|---|---|---|
rocket (optional) | string | undefined | |
variant (optional) | string | undefined | |
show (optional) | string | undefined | |
look (optional) | string | undefined | |
view (optional) | string | undefined | |
build (optional) | string | undefined | A rocket from parts, as JSON. The same text as the |
mode (optional) | string | undefined | |
spin (optional) | string | undefined | |
way (optional) | string | undefined | |
label (optional) | string | undefined | |
assets (optional) | string | undefined | |
engines (optional) | string | undefined |
|
lights (optional) | string | undefined |
|
thrusters (optional) | string | undefined |
|
phase (optional) | string | undefined | A phase of the rocket's flight, by its id: the engines that burn there. |
motion (optional) | string | undefined |
|
Examples
import type { RocketOptions } from "@johnmorrisdotca/uchusen-rockets";
const options: RocketOptions = { rocket: "falcon-9", variant: "block-5", look: "thick", view: "below" };
console.log(options);{
rocket: 'falcon-9',
variant: 'block-5',
look: 'thick',
view: 'below'
}What it prints (run when this page was built)