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

markingWidthfunction

How wide a text is in metres at a capital height: the width the marking will take on a hull, so a ship can centre it, fit it between hatches or keep it clear of a seam.

Import it

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

Definition

function markingWidth(text: string, height: number, style?: MarkingStyle): number

Parameters

NameTypeDescription
textstring

What is written.

heightnumber

The height of a capital letter, in metres.

style (optional)MarkingStyle

tracking is the one that matters here.

Returns

number

The width in metres.

Examples

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

console.log(markingWidth("ISV KAMINARI", 1.5).toFixed(1));
21.9

What it prints (run when this page was built)

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