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

embedNotefunction

What an embed asks of the page around it, in words: a line for the demo to show.

Import it

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

Definition

function embedNote(kind: EmbedKind, options: RocketOptions): string

Parameters

NameTypeDescription
kind"data" | "iframe" | "link" | "svg" | "module" | "element"

Which way of embedding.

optionsRocketOptions

The rocket being embedded.

Returns

string

A line of text for the demo to show beside the code.

Examples

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

console.log(embedNote("iframe", { rocket: "starship" }));
No script of your own. It draws the drawing at once, and the 3D view when the browser can. Add flight=1 to the address for the flight's controls.

What it prints (run when this page was built)

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