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

airForfunction

How much the air costs for a page: what its air attribute says (full or light), else light on a small or slow device (4 cores or fewer, 4 GB of memory or less, or a touch screen with no mouse) and full on the rest.

Import it

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

Definition

function airFor(given: string | null): "full" | "light"

Parameters

NameTypeDescription
givenstring | null

The page's air attribute, or null when it has none.

Returns

"full" | "light"

full or light.

Examples

import { airFor } from "@johnmorrisdotca/chikyu-earth/realistic";
console.log(airFor("light"));
light

What it prints (run when this page was built)

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