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

labelStylefunction

A complete look from a partial one: every part left out or not usable takes its default, and every number is held to its range, so a bad setting never breaks a label.

Import it

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

Definition

function labelStyle(part?: Partial<LabelStyle>): LabelStyle

Parameters

NameTypeDescription
part (optional)Partial<LabelStyle>

Any of the parts of the look.

Returns

LabelStyle

A new, complete look.

Examples

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

console.log(labelStyle({ size: 400, case: "upper" }).size, labelStyle({ size: 400 }).case);
48 small-caps

What it prints (run when this page was built)

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