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 · Build a mesh and a drawing

LineupItemtype

One thing standing in a lineup: its key (starship:v3 or a comparison's name), its label and its height in metres.

Import it

import type { LineupItem } from "@johnmorrisdotca/uchusen-rockets/build";

Definition

interface LineupItem {
    key: string;
    label: string;
    height: number;
}

Members

NameTypeDescription
keystring

"starship:v3" or a comparison's name.

labelstring
heightnumber

Examples

import { lineupSvg, type LineupItem } from "@johnmorrisdotca/uchusen-rockets/build";

const items: LineupItem[] = lineupSvg({ items: ["starship:v3", "person"], unit: 3 }).items;
console.log(items.map((item) => item.label));
[ 'Block 3 (V3)', 'A person, 1.8 m' ]

What it prints (run when this page was built)

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