Reference · The web components
RocketStatetype
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.
Import it
import type { RocketState } from "@johnmorrisdotca/uchusen-rockets/element";
Definition
type RocketState = "picture" | "loading" | "3d" | "fallback" | "error";
Examples
import type { RocketState } from "@johnmorrisdotca/uchusen-rockets/element";
const states: RocketState[] = ["picture", "loading", "3d", "fallback", "error"];
console.log(states.length);5What it prints (run when this page was built)