Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · The data door: hand the package your own stars or objects as a source with its own licence and credit, and see whose data is on the screen

RecordSourcetype

A list that fits in memory (at most MAX_RECORDS records; bigger data must be tiles). It is read once, when the source is added. *

Import it

import type { RecordSource } from "@johnmorrisdotca/hoshi-stars/door";

Definition

interface RecordSource<R> {
    kind: "records";
    info: SourceInfo;
    records(signal: AbortSignal): R[] | Promise<R[]>;
}

Members

NameTypeDescription
kind"records"
infoSourceInfo
records(signal: AbortSignal): R[] | Promise<R[]>

Examples

import type { RecordSource } from "./data-door.ts";

declare const info: import("./data-door.ts").SourceInfo;
const source: RecordSource<{ id: string }> = { kind: "records", info, records: () => [{ id: "a" }] };

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.