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 · /chart

VisibleMarkertype

A marker the range lets through: the marker, its place in the list, the id it answers to, its moment in milliseconds and how strongly it is drawn.

Import it

import type { VisibleMarker } from "@johnmorrisdotca/hoshi-stars/chart";

Definition

interface VisibleMarker {
    marker: SkyMarker;
    index: number;
    id: string;
    time: number | undefined;
    opacity: number;
}

Members

NameTypeDescription
markerSkyMarker
indexnumber
idstring
timenumber | undefined

Milliseconds since 1970; undefined for a marker with no (readable) date.

opacitynumber

1 in the middle of the range; down to 0.2 at an edge when the range has a fade.

Examples

import { visibleMarkers, type VisibleMarker } from "@johnmorrisdotca/hoshi-stars/chart";

const [first]: VisibleMarker[] = visibleMarkers([{ ra: 84, dec: 0, date: "2026-11-08" }]);
console.log(first?.id, first?.opacity);
// m0 1
m0 1

What it prints (run when this page was built)

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