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-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"));

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