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 realistic Earth's pure parts

CountryNametype

A country named at one draw: its code, the text, where the middle of the part in view falls, the box the text goes in (top left corner and size) and the text's size in pixels.

Import it

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

Definition

interface CountryName {
    code: string;
    text: string;
    x: number;
    y: number;
    left: number;
    top: number;
    width: number;
    height: number;
    size: number;
}

Members

NameTypeDescription
codestring
textstring
xnumber
ynumber
leftnumber
topnumber
widthnumber
heightnumber
sizenumber

Examples

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

const say = (one: CountryName): string => `${one.text} at ${one.left}, ${one.top}`;
console.log(typeof say);
function

What it prints (run when this page was built)

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