Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · The <wakusei-body> element

WakuseiStatetype

What the element is doing: line (an SVG), loading (waiting for three.js or a picture), still (a picture of the 3D look, nothing running), live (drawing), lost (the GPU took the context; it comes back by itself) or unavailable (no WebGL: the line drawing is shown).

Import it

import type { WakuseiState } from "@johnmorrisdotca/wakusei-planets/element";

Definition

type WakuseiState = "line" | "loading" | "still" | "live" | "lost" | "unavailable";

Examples

import type { WakuseiState } from "@johnmorrisdotca/wakusei-planets/element";

const done = (state: WakuseiState): boolean => state === "live" || state === "line";
console.log(done("still"));

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.24.0.