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

TileFetchtype

A fetch as the loaders use it: the address and, for a stop, a signal. A function that takes only the address fits too.

Import it

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

Definition

type TileFetch = (url: string, init?: {
    signal?: AbortSignal;
}) => Promise<{
    ok: boolean;
    status: number;
    arrayBuffer(): Promise<ArrayBuffer>;
}>;

Examples

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

const get: TileFetch = (url) => fetch(url);
console.log(typeof get);
function

What it prints (run when this page was built)

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