Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · The <chikyu-space> element

BodyInfotype

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

Import it

import type { BodyInfo } from "@johnmorrisdotca/chikyu-earth/space/element";

Definition

interface BodyInfo {
    name: BodyName;
    radiusKm: number;
    distanceKm: number;
}

Members

NameTypeDescription
name"Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn" | "Uranus" | "Neptune" | "Pluto" | "Earth" | "Sun" | "Moon"
radiusKmnumber

Mean radius, kilometres.

distanceKmnumber

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

Examples

import type { BodyInfo } from "@johnmorrisdotca/chikyu-earth/space/element";

const info: BodyInfo = { 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/chikyu-earth 0.11.0.