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

SatellitePaintertype

The seam for drawing a followed satellite as a 3D model: the package ships no model, the page supplies them. has says whether there is a model for a satellite (by NORAD number: 25544 is the ISS); make makes it as a drawing of radius 1 (its middle at the origin, its long axis along +x, its top, the side that faces space, along +z, and its left along +y), at once or later (a promise); the view places it where the satellite is, points it the way it flies, sizes it to read and gives it the Sun's direction (light, update). null from make is no model: the satellite stays a dot.

Import it

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

Definition

interface SatellitePainter {
    has(noradId: number): boolean;
    make(three: Three, noradId: number, context: PaintContext): BodyDrawing | null | Promise<BodyDrawing | null>;
}

Members

NameTypeDescription
has(noradId: number): boolean
make(three: Three, noradId: number, context: PaintContext): BodyDrawing | null | Promise<BodyDrawing | null>

Examples

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

const painter: SatellitePainter = { has: (norad) => norad === 25544, make: async () => null };
console.log(painter.has(25544));

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