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

ChartPicktype

What hoshi-pick says: a body of the page's bodies (kind body, id its own, with names), a star (id its HR number, with accuracy: its grade, the distance range and the position resolution), a deep-sky object (M42), a black hole (cygnus-x-1), a figure (id the figure's, with abbreviation for a constellation), or nothing (kind none).

Import it

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

Definition

interface ChartPick {
    kind: "star" | "deep" | "hole" | "figure" | "body" | "none";
    id: string | null;
    names?: SkyBodyNames | undefined;
    abbreviation?: string | undefined;
    accuracy?: PickAccuracy | undefined;
}

Members

NameTypeDescription
kind"deep" | "star" | "hole" | "figure" | "body" | "none"
idstring | null
names (optional)SkyBodyNames | undefined

For a body only: its names in English and Japanese, as the page gave them.

abbreviation (optional)string | undefined
accuracy (optional)PickAccuracy | undefined

For a star only: how well it is known (PickAccuracy): the grade A, B or C, the distance range in light-years (null where there is none) and the position resolution in arc-seconds.

Examples

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

document.querySelector("hoshi-chart")!.addEventListener("hoshi-pick", (event) => {
  const { kind, id, abbreviation, accuracy } = (event as CustomEvent<ChartPick>).detail;
  console.log(kind, id, abbreviation ?? "", accuracy?.grade ?? "");
});

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