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

Arrangementtype

The general-arrangement views at one scale.

Import it

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

Definition

interface Arrangement {
    scale: number;
    views: {
        id: "side" | "front" | "top";
        width: number;
        height: number;
        axes: [
            "x" | "z",
            "y" | "z"
        ];
    }[];
    ruler: ScaleBar;
    lengthRuler: {
        step: number;
        ticks: number[];
    };
}

Members

NameTypeDescription
scalenumber

Pixels a metre, the same in every view.

views{ id: "side" | "front" | "top"; width: number; height: number; axes: ["x" | "z", "y" | "z"]; }[]
rulerScaleBar
lengthRuler{ step: number; ticks: number[]; }

The ship's length ruler: a tick every step metres along the spine.

Examples

import { arrangement, type Arrangement, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";

const a: Arrangement = arrangement(SAMPLE_SHIPS.scout, { width: 400, height: 800 });
console.log(a.scale, a.views.length);
5.266622778143515 3

What it prints (run when this page was built)

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