Reference
The web components
import { … } from "@johnmorrisdotca/uchusen-rockets/element";
Exports
| Name | Kind | What it is |
|---|---|---|
defineUchusenRocket | function | Defines both elements, once. |
FlightWords | type | The words the flight bar says itself, each of which a page can replace (for a language) with flight.words = { play: "…" }. |
ROCKETS | constant | Every rocket that has a shape, by id, each with its variants. |
RocketState | type | What a <uchusen-rocket> is doing, as its data-state attribute says: picture (the drawing), loading (the 3D view is on its way), 3d, fallback (no WebGL, so the drawing stays) or error. |
setAssetBase | function | Where the licensed models are, for every element with no assets attribute of its own. |
UchusenFlight | class | The <uchusen-flight> element: a play button, a slider and the phase's name for a rocket's flight. |
UchusenLineup | class | Rockets side by side on one baseline at one scale: <uchusen-lineup items="starship:v1,starship:v3,person,building" unit="4" ruler labels>. |
UchusenRocket | class | The <uchusen-rocket> element: a rocket as a drawing that a 3D view takes over from when the browser can draw WebGL. |