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

figureWordsfunction

A figure as words for a table: its value and whatever must stay beside it; a blank says why, or that no source gives it.

Import it

import { figureWords } from "@johnmorrisdotca/uchusen-rockets";

Definition

function figureWords(figure: Figure<number | string> | undefined, unit?: string): string

Parameters

NameTypeDescription
figureFigure<string | number> | undefined

A figure, or undefined.

unit (optional)string

Text to put after a number, such as " m". Optional.

Returns

string

The figure as words for a table. A blank gives its brief, or "No source" when it has none.

Examples

import { figureWords, variantOf } from "@johnmorrisdotca/uchusen-rockets";

console.log(figureWords(variantOf("starship", "v3")?.facts.height, " m"));
124.4 m

What it prints (run when this page was built)

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