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 · Markers on the globe

PlaceLabelSpottype

Where one place's name goes: which place it is and the top-left corner of its box.

Import it

import type { PlaceLabelSpot } from "@johnmorrisdotca/chikyu-earth/markers";

Definition

interface PlaceLabelSpot {
    index: number;
    left: number;
    top: number;
}

Members

NameTypeDescription
indexnumber
leftnumber
topnumber

Examples

import type { PlaceLabelSpot } from "@johnmorrisdotca/chikyu-earth/markers";

const spot: PlaceLabelSpot = { index: 0, left: 120, top: 80 };
console.log(spot.left);
120

What it prints (run when this page was built)

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