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

BodyInfotype

What a page can tell a reader about a body now.

Import it

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

Definition

interface BodyInfo {
    id: SpaceBody;
    name: string;
    radiusKm: number;
    distanceKm: number;
}

Members

NameTypeDescription
id"sun" | "mercury" | "venus" | "earth" | "mars" | "jupiter" | "saturn" | "uranus" | "neptune" | "pluto" | "moon"
namestring

The name shown beside the body.

radiusKmnumber

Mean radius, kilometres.

distanceKmnumber

Distance from the Earth's centre now, kilometres (0 for the Earth).

Examples

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

const info: BodyInfo = { id: "mars", name: "Mars", radiusKm: 3389.5, distanceKm: 225_000_000 };
console.log(`${info.name}: ${info.radiusKm} km`);

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