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

Ridingtype

What the camera is riding along with now: the body or satellite, how (from or follow), where it looks, and the distance kept for a satellite.

Import it

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

Definition

interface Riding {
    target: RideTarget;
    view: "from" | "follow";
    look: RideLook;
    distanceKm: number;
}

Members

NameTypeDescription
targetRideTarget
view"from" | "follow"
lookRideLook
distanceKmnumber

Examples

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

const describe = (ride: Riding | null): string => (ride ? `${ride.view} ${typeof ride.target === "string" ? ride.target : ride.target.group}` : "not riding");
console.log(typeof describe);

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