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-earth-realistic> element

readSpeedfunction

A speed attribute: how many seconds pass for each real second.

Import it

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

Also exported from: @johnmorrisdotca/chikyu-earth/realistic/no-cultures

Definition

function readSpeed(value: string | null): number | null

Parameters

NameTypeDescription
valuestring | null

The attribute's text, or null when it is not there.

Returns

number | null

The speed, or null when the value is empty or not a number (the clock then follows time: real time for "now", held for a date).

Examples

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

console.log(readSpeed("86400"), readSpeed("-3600"), readSpeed(null));

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