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

scaleFactorfunction

The factor a size in per cent asks for: 1 for any craft that does not take the slider, and the size between 60 and 100 per cent, in steps of 5, for a concept.

Import it

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

Definition

function scaleFactor(rocket: string, variant: string, percent: unknown): number

Parameters

NameTypeDescription
rocketstring

A rocket's id.

variantstring

A variant's id.

percentunknown

The size asked for, in per cent, or the text of one.

Returns

number

A number from 0.6 to 1; 1 for a craft that does not scale.

Examples

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

console.log(scaleFactor("fleet-emiake", "fleet-emiake", "80"), scaleFactor("saturn-v", "saturn-v", 80));
0.8 1

What it prints (run when this page was built)

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