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

CountryNamesStyletype

The look of the country names, all optional: the text's font, weight and colour, the outline round it, and the smallest and largest size in pixels.

Import it

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

Definition

interface CountryNamesStyle {
    font?: string;
    weight?: number | string;
    colour?: string;
    halo?: string;
    haloWidth?: number;
    smallest?: number;
    largest?: number;
}

Members

NameTypeDescription
font (optional)string | undefined
weight (optional)string | number | undefined
colour (optional)string | undefined
halo (optional)string | undefined
haloWidth (optional)number | undefined
smallest (optional)number | undefined
largest (optional)number | undefined

Examples

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

const look: CountryNamesStyle = { font: "Georgia, serif", colour: "#fff3d6", halo: "#1a1000", smallest: 11, largest: 18 };
console.log(Object.keys(look).join(" "));
font colour halo smallest largest

What it prints (run when this page was built)

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