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

SpacePresettype

A named distance for zoomFor: the Earth, the Moon, the Sun, the inner planets, the whole solar system, or a planet with its nearer moons (jupiter-moons).

Import it

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

Definition

type SpacePreset = "earth" | "moon" | "sun" | "inner" | "solar-system" | `${Exclude<SpacePlanet, "mercury" | "venus">}-moons`;

Examples

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

const zoomTo = (space: WakuseiSpace, preset: SpacePreset): number => space.zoomFor(preset);
console.log(typeof zoomTo);

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