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

TileStatstype

What a tile store has done.

Import it

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

Definition

interface TileStats {
    held: number;
    heldBytes: number;
    inFlight: number;
    queued: number;
    requested: number;
    failed: number;
    refused: number;
    evicted: number;
}

Members

NameTypeDescription
heldnumber

Tiles held, and their bytes: heldBytes is never over the budget.

heldBytesnumber
inFlightnumber

Loads running now, and loads waiting for a free place.

queuednumber
requestednumber

Loads started since the store was made: the number a test reads to prove nothing is sent at rest.

failednumber

Tiles that failed to load, came back empty, or reported a size that is not a number. They are never held or drawn.

refusednumber

Tiles that arrived and did not fit, because every tile held was needed by the view. They are not held; the view draws what it holds.

evictednumber

Tiles let go to make room.

Examples

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

const full = (stats: TileStats): boolean => stats.refused > 0;

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