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-space> element: the Earth, Moon, Sun and planets in their places

SpaceStatetype

What the space view is doing: loading, live, unavailable (no WebGL), lost (the GPU took the context; it comes back by itself).

Import it

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

Definition

type SpaceState = "loading" | "live" | "unavailable" | "lost";

Examples

import type { SpaceState, WakuseiSpace } from "@johnmorrisdotca/wakusei-planets/space/element";

const stateOf = (space: WakuseiSpace): SpaceState => space.stats.state;
console.log(typeof stateOf);

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