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

assetPathOffunction

The shipped picture of these options, under the package's dist/assets/: starship-v3.svg, falcon-9-block-5-apart.thick.svg. These are drawn from the default view, with no flames. Null for a custom build, which has no file, or a variant, part or look that does not exist.

Import it

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

Definition

function assetPathOf(options: RocketOptions): string | null

Parameters

NameTypeDescription
optionsRocketOptions

The rocket, variant, look, view and what to show.

Returns

string | null

The path of the shipped picture under dist/assets/, or null when none is shipped for those options.

Examples

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

console.log(assetPathOf({ rocket: "starship", variant: "v3" }));
starship-v3.svg

What it prints (run when this page was built)

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