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

StarNamesSettingstype

What to name. A page that sets neither count nor magnitude names nothing.

Import it

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

Definition

interface StarNamesSettings {
    count?: number;
    magnitude?: number;
    lang?: NameLanguage;
    dotMagnitude?: number;
    dotRadius?: number;
    style?: Partial<LabelStyle>;
}

Members

NameTypeDescription
count (optional)number | undefined

The most names to show at once, the brightest first, counting only the stars that are in view and not covered. 0 or left out for no limit by count.

magnitude (optional)number | undefined

Only stars at least this bright (a magnitude: Sirius is -1.46, so 1.5 names the 22 brightest stars). Left out for no limit by magnitude.

lang (optional)NameLanguage | undefined

The language of the names; en by default.

dotMagnitude (optional)number | undefined

Which stars' dots a name must not cover: every star brighter than this magnitude, 3 by default (about 170 stars). Lower it for a page that draws only the brightest.

dotRadius (optional)number | undefined

The radius in pixels of a star's dot, which a name must not cover, 3 by default.

style (optional)Partial<LabelStyle> | undefined

The look of the names (labelStyle); a quiet plain default.

Examples

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

const settings: StarNamesSettings = { count: 12, lang: "ja", style: { case: "upper" } };
console.log(settings.count);
12

What it prints (run when this page was built)

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