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

cleanViewfunction

A value from outside as a view's name.

Import it

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

Definition

function cleanView(value: unknown): ViewName

Parameters

NameTypeDescription
valueunknown

Anything.

Returns

"three-quarter" | "front" | "back" | "side" | "below"

The name if it is one of the views, and three-quarter for anything else.

Examples

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

console.log(cleanView("side"), cleanView("sideways"), cleanView(42));
side three-quarter three-quarter

What it prints (run when this page was built)

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