Reference · The <wakusei-portrait> element: many bodies in one scene
PortraitStatetype
What the element is doing: line (an SVG), loading, still, live, lost or unavailable (no WebGL: the line drawing is shown).
Import it
import type { PortraitState } from "@johnmorrisdotca/wakusei-planets/portrait";
Definition
type PortraitState = "line" | "loading" | "still" | "live" | "lost" | "unavailable";
Examples
import type { PortraitState } from "@johnmorrisdotca/wakusei-planets/portrait";
const done = (state: PortraitState): boolean => state === "live" || state === "line";
console.log(done("still"));