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 · Names on the brightest stars and the constellation figures as faint lines, for a sky you draw yourself: a count or a magnitude, the figure under the pointer at full strength, a body that covers part of the sky, and a look set by settings alone

Boxtype

A rectangle in the page's pixels, for the boxes a figure's name must stay clear of (StarNames.labels are such boxes). A box that also has the star's place (x, y) and the radius of its ring keeps the name off the ring too.

Import it

import type { Box } from "@johnmorrisdotca/hoshi-stars/sky-labels";

Definition

interface Box {
    x0: number;
    y0: number;
    x1: number;
    y1: number;
    x?: number;
    y?: number;
    ring?: number;
}

Members

NameTypeDescription
x0number
y0number
x1number
y1number
x (optional)number | undefined
y (optional)number | undefined
ring (optional)number | undefined

Examples

import type { Box } from "@johnmorrisdotca/hoshi-stars/sky-labels";

const panel: Box = { x0: 0, y0: 0, x1: 200, y1: 40 };
console.log(panel.x1 - panel.x0);
200

What it prints (run when this page was built)

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