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 Sun, Moon and planets: pure parts

ScaleModetype

The scale the space view is drawn in: compressed squeezes the distances so the Moon, the Sun and Neptune fit one view, and true keeps the real ones.

Import it

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

Definition

type ScaleMode = "compressed" | "true";

Examples

import { placeMoon, type ScaleMode } from "@johnmorrisdotca/chikyu-earth/space";

const mode: ScaleMode = "compressed";
console.log(placeMoon(mode, [0.00257, 0, 0]));
[ 10, 0, 0 ]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.11.0.