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 Sun, Moon and planets: pure parts

BodyViewtype

The camera that draws the bodies and the size of its view in CSS pixels, as the space view tells a drawing at each draw. The camera's matrices are current.

Import it

import type { BodyView } from "@johnmorrisdotca/chikyu-earth/space";

Definition

interface BodyView {
    camera: THREE.Camera;
    width: number;
    height: number;
}

Members

NameTypeDescription
cameraTHREE.Camera
widthnumber
heightnumber

Examples

import type { BodyView } from "@johnmorrisdotca/chikyu-earth/space";

const across = (view: BodyView): number => view.width;
console.log(typeof across);

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