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

labelTextfunction

A name with the look's case applied. Japanese letters have no case and are never changed, and small-caps leaves the name as written for the page to draw with font-variant: small-caps.

Import it

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

Definition

function labelText(name: string, style: LabelStyle): string

Parameters

NameTypeDescription
namestring

The name as written.

styleLabelStyle

A complete look.

Returns

string

The text to draw.

Examples

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

console.log(labelText("Sirius", labelStyle({ case: "upper" })), labelText("シリウス", labelStyle({ case: "upper" })));
SIRIUS シリウス

What it prints (run when this page was built)

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