Skip to the content

Uchusen Rockets宇宙船

Rockets drawn from sourced sizes: line drawings and painted 3D views you drop into a page, take apart and turn round, and a typed model that checks whether a rocket really goes together.

Uchusen is the Japanese word 宇宙船 for spaceship. About the name

Contents

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

NameTypeDescription
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 build attribute.

mode (optional)string | undefined
spin (optional)string | undefined
way (optional)string | undefined
label (optional)string | undefined
assets (optional)string | undefined
engines (optional)string | undefined

on lights every engine that is showing. off leaves them dark. Left out, the element follows reduced motion.

lights (optional)string | undefined

off puts the lamps out. running is the position lights, the white flash and the red beacon. all adds the floods and the work lights. Left out, the lamps are all on.

thrusters (optional)string | undefined

off hides the jets. show draws the nozzles and puffs when they fire. station-keeping also lets the ship drift and correct. Left out, the jets are off.

phase (optional)string | undefined

A phase of the rocket's flight, by its id: the engines that burn there.

motion (optional)string | undefined

on moves the moving parts of a fleet ship (rings, doors, arrays, dishes) at their real speed, fast at ten times. off or left out keeps them still; a reader who asked for reduced motion always gets them still.

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/uchusen-rockets 0.14.0.