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/element

Viewtype

Where the chart looks: the projection, the point in the middle (degrees) and the zoom, in the chart's own unit: 1 fits the projection's whole sky in the smaller side, more is closer.

Import it

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

Definition

interface View {
    projection: Projection;
    ra: number;
    dec: number;
    zoom: number;
}

Members

NameTypeDescription
projection"stereographic" | "orthographic" | "gnomonic" | "equidistant" | "equirectangular" | "mollweide" | "hammer"
ranumber
decnumber
zoomnumber

Examples

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

const chart = document.querySelector("hoshi-chart")! as HTMLElement & { view: View | undefined; setView(change: Partial<View>): void };
chart.setView({ ra: 279.2, dec: 38.8, zoom: 12 });
console.log(chart.view?.zoom);

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