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-earth-realistic> element

EarthStatetype

What the realistic Earth is doing: loading its pictures, live and drawing, unavailable (no WebGL), lost (the GPU took the context; it comes back by itself) or idle (another view has the page's one WebGL context; press or focus it to take it).

Import it

import type { EarthState } from "@johnmorrisdotca/chikyu-earth/realistic/element";

Definition

type EarthState = "loading" | "live" | "unavailable" | "lost" | "idle";

Examples

import type { ChikyuEarthRealistic, EarthState } from "@johnmorrisdotca/chikyu-earth/realistic/element";

const describe = (earth: ChikyuEarthRealistic): EarthState => earth.stats.state;
console.log(typeof describe);

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