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

The sky out to a distance, in layers: the stars and galaxies nearer than 10, 50, 100, 500 or 1,000 light-years, each distance band its own colour, the ones with an uncertain distance kept apart, and none placed at a guess

import { … } from "@johnmorrisdotca/hoshi-stars/distance";

1.2 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
bandOffunctionThe band of a distance: 0 under 10 light-years, 1 under 50, 2 under 100, 3 under 500, 4 under 1,000 and 5 beyond (a distance of exactly the edge is in the nearer band).
CertaintytypeHow well a distance is known: good (under 5%), fair (5% to 20%) or rough (over 20%, or no error stated).
CERTAINTY_LIMITSconstantThe relative errors that divide a distance's certainty, the same as QUALITY_LIMITS of the constellation in 3D: a parallax known to under 5% is good, to 20% is fair, and worse (or with no error stated) is rough.
certaintyOffunctionThe certainty of a parallax known to a relative error (the error over the parallax): good under 5%, fair up to 20%, rough over it.
deepSkyInputfunctionA deep-sky object with a galaxy's distance (galaxyDistance of /deep-sky) as a thing with a distance.
DISTANCE_ATTRIBUTEconstantThe attribute a page offers for the limit, as a settings panel sets it: distance-limit.
DISTANCE_LIMITSconstantThe limits the sky map steps through, in light-years: 10, 50, 100, 500 and 1,000.
DistanceInputtypeSomething with a place on the sky and perhaps a distance, as layersByDistance takes it.
DistanceLayerstypeWhat layersByDistance gives back.
LayeredThingtypeA thing in a layer: where it is, how far, and which band it is in.
LayerKindtypeThe kind of thing in a layer: a bright star of the Yale catalogue, a nearby star of the Yale parallax catalogue (/nearby), or a deep-sky object with a distance (a galaxy).
layersByDistancefunctionThe things out to a limit, each in the band of its distance.
limitAtSliderfunctionThe limit at a slider's position, 0 to 1, on a scale where each step is the same ratio (4 light-years to 3 million).
limitFromTextfunctionThe limit from the attribute distance-limit (and the address's dist), read as text: a number of light-years, or all.
limitTextfunctionA limit as the text the address keeps: all, or the light-years rounded (to the step where it is a step, else to 2 significant figures).
nearbyInputfunctionA nearby star (/nearby) as a thing with a distance.
SLIDER_RANGEconstantThe nearest and farthest limits a free slider reaches, in light-years: from Alpha Centauri's neighbourhood to past the Andromeda Galaxy; beyond the last is all.
sliderOfLimitfunctionWhere a limit sits on the slider, 0 to 1; all is 1 and a limit under the slider's start is 0.
starInputfunctionA bright star of the Yale catalogue as a thing with a distance, from its parallax and its error.
stepLimitfunctionThe next limit up or down the steps (10, 50, 100, 500, 1,000, then all).

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