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 Earth-orbit catalogue: orbit class, object kind, colours, fleets and the packed file format (no data)

PackErrorclass

A packed file that cannot be read: it is not a packed file, it is cut short, it holds more than MAX_PACKED records, or it unpacks to more than MAX_PACKED_BYTES.

Import it

import { PackError } from "@johnmorrisdotca/chikyu-earth/catalogue";

Definition

class PackError
new PackError(message: string): PackError

Parameters

NameTypeDescription
messagestring

What is wrong with the file, in a sentence.

Members

NameTypeDescription
namestring
messagestring
stack (optional)string | undefined
cause (optional)unknown

Examples

import { PackError, unpackCatalogue } from "@johnmorrisdotca/chikyu-earth/catalogue";

try {
  unpackCatalogue(new Uint8Array(4));
} catch (error) {
  console.log(error instanceof PackError);
}
true

What it prints (run when this page was built)

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