Reference · Build a mesh and a drawing
LineupItemtype
One thing standing in a lineup: its key (starship:v3 or a comparison's name), its label and its height in metres.
Import it
import type { LineupItem } from "@johnmorrisdotca/uchusen-rockets/build";
Definition
interface LineupItem {
key: string;
label: string;
height: number;
}
Members
| Name | Type | Description |
|---|---|---|
key | string | "starship:v3" or a comparison's name. |
label | string | |
height | number |
Examples
import { lineupSvg, type LineupItem } from "@johnmorrisdotca/uchusen-rockets/build";
const items: LineupItem[] = lineupSvg({ items: ["starship:v3", "person"], unit: 3 }).items;
console.log(items.map((item) => item.label));[ 'Block 3 (V3)', 'A person, 1.8 m' ]What it prints (run when this page was built)