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 · Passes: when a satellite crosses the sky over a place

SkyOptionstype

What skySvg may be asked.

Import it

import type { SkyOptions } from "@johnmorrisdotca/chikyu-earth/passes";

Definition

interface SkyOptions {
    size?: number;
    labels?: Partial<SkyLabels>;
    times?: {
        start?: string;
        highest?: string;
        end?: string;
    };
    description?: string;
}

Members

NameTypeDescription
size (optional)number | undefined

Width and height of the SVG in pixels (320 by default).

labels (optional)Partial<SkyLabels> | undefined

The words, any of them (English where missing).

times (optional){ start?: string; highest?: string; end?: string; } | undefined

A time to write beside each mark, already in the place's own time.

description (optional)string | undefined

The description for a screen reader (a plain sentence is made from the pass when missing).

Examples

import type { SkyOptions } from "@johnmorrisdotca/chikyu-earth/passes";

const options: SkyOptions = { size: 320, times: { start: "18:21", highest: "18:24", end: "18:27" } };
console.log(options.size);
320

What it prints (run when this page was built)

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