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

cleanShowfunction

A value from outside as something that can be shown.

Import it

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

Definition

function cleanShow(value: unknown, slots: readonly string[]): string

Parameters

NameTypeDescription
valueunknown

Anything.

slotsreadonly string[]

The variant's slots.

Returns

string

The value if it can be shown, and the first choice (together) for anything else.

Examples

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

const slots = variantOf("falcon-9", "block-5")?.slots ?? [];
console.log(cleanShow("first-stage", slots), cleanShow("nonsense", slots));
first-stage together

What it prints (run when this page was built)

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