本文へ移動

Uchusen Rockets宇宙船

出典つきの寸法から描いたロケットです。ページに置いて、分解して、回して見られる線画と彩色した3Dビューに加え、ロケットが本当に組み合わさるかを確かめる、型付きのデータモデルを備えています。

Uchusen は、宇宙を飛ぶ乗り物を意味する日本語「宇宙船」(うちゅうせん)から取った名前です。 名前について(英語)

目次

リファレンス · ロケット・型式・部品・適合チェック

RocketOptions型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

Every choice that draws a rocket, as plain text: the same names and values as the element's attributes. Nothing here is trusted. A value outside its list falls back to a default when it is drawn.

インポート

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

定義

interface RocketOptions {
    rocket?: string;
    variant?: string;
    show?: string;
    look?: string;
    view?: string;
    build?: string;
    mode?: string;
    spin?: string;
    way?: string;
    label?: string;
    assets?: string;
    engines?: string;
    lights?: string;
    thrusters?: string;
    phase?: string;
    motion?: string;
}

メンバー

名前型説明
rocket (省略可)string | undefined
variant (省略可)string | undefined
show (省略可)string | undefined
look (省略可)string | undefined
view (省略可)string | undefined
build (省略可)string | undefined

A rocket from parts, as JSON. The same text as the build attribute.

mode (省略可)string | undefined
spin (省略可)string | undefined
way (省略可)string | undefined
label (省略可)string | undefined
assets (省略可)string | undefined
engines (省略可)string | undefined

on lights every engine that is showing. off leaves them dark. Left out, the element follows reduced motion.

lights (省略可)string | undefined

off puts the lamps out. running is the position lights, the white flash and the red beacon. all adds the floods and the work lights. Left out, the lamps are all on.

thrusters (省略可)string | undefined

off hides the jets. show draws the nozzles and puffs when they fire. station-keeping also lets the ship drift and correct. Left out, the jets are off.

phase (省略可)string | undefined

A phase of the rocket's flight, by its id: the engines that burn there.

motion (省略可)string | undefined

on moves the moving parts of a fleet ship (rings, doors, arrays, dishes) at their real speed, fast at ten times. off or left out keeps them still; a reader who asked for reduced motion always gets them still.

例

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

const options: RocketOptions = { rocket: "falcon-9", variant: "block-5", look: "thick", view: "below" };
console.log(options);
{
  rocket: 'falcon-9',
  variant: 'block-5',
  look: 'thick',
  view: 'below'
}

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/uchusen-rockets 0.14.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。