Reference · Build a mesh and a drawing
COMPARESconstant
Comparison shapes: plain round sizes, for scale, not facts about anything.
Import it
import { COMPARES } from "@johnmorrisdotca/uchusen-rockets/build";
Definition
const COMPARES: { readonly person: { readonly name: "A person, 1.8 m"; readonly height: 1.8; readonly width: 0.5; }; readonly building: { readonly name: "A ten-storey building, 30 m"; readonly height: 30; readonly width: 18; }; } = {
person: { name: "A person, 1.8 m", height: 1.8, width: 0.5 },
building: { name: "A ten-storey building, 30 m", height: 30, width: 18 },
} as const
Members
| Name | Type | Description |
|---|---|---|
person | { readonly name: "A person, 1.8 m"; readonly height: 1.8; readonly width: 0.5; } | |
building | { readonly name: "A ten-storey building, 30 m"; readonly height: 30; readonly width: 18; } |
Examples
import { COMPARES } from "@johnmorrisdotca/uchusen-rockets/build";
console.log(COMPARES.person.height, COMPARES.building.height);1.8 30What it prints (run when this page was built)