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

tiltModefunction

Off under reduced motion, on a computer with a mouse, or where the browser has no orientation events; "ask" where it must ask first (iOS: a tap on "Tilt to turn" asks, never the page by itself); else on.

Import it

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

Definition

function tiltMode(env: { reducedMotion: boolean; coarsePointer: boolean; hasOrientation: boolean; needsPermission: boolean; }): TiltMode

Parameters

NameTypeDescription
env{ reducedMotion: boolean; coarsePointer: boolean; hasOrientation: boolean; needsPermission: boolean; }

What the page knows: reduced motion, a coarse pointer (touch), whether the browser has orientation events, and whether it must ask permission first.

Returns

TiltMode

off, ask or on.

Examples

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

console.log(tiltMode({ reducedMotion: false, coarsePointer: true, hasOrientation: true, needsPermission: true }));
ask

What it prints (run when this page was built)

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