本文へ移動

Hoshi Stars星

肉眼で見える星の名前・色・距離、88星座の線と境界、メシエ天体、そしてそれらを描くための7種類の図法を使えます。

「星」(ほし) は、夜空に光って見えるものです。 名前について(英語)

目次

リファレンス

距離で見る空 (10・50・100・500・1,000光年より近い星や銀河を層に分けて、距離の帯ごとに色分けします。距離がはっきりしないものは別にし、推測で置くことはしません)

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

最小化と gzip 圧縮をしたサイズは 1.2 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
bandOf関数The 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).
Certainty型How well a distance is known: good (under 5%), fair (5% to 20%) or rough (over 20%, or no error stated).
CERTAINTY_LIMITS定数The 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.
certaintyOf関数The certainty of a parallax known to a relative error (the error over the parallax): good under 5%, fair up to 20%, rough over it.
deepSkyInput関数A deep-sky object with a galaxy's distance (galaxyDistance of /deep-sky) as a thing with a distance.
DISTANCE_ATTRIBUTE定数The attribute a page offers for the limit, as a settings panel sets it: distance-limit.
DISTANCE_LIMITS定数The limits the sky map steps through, in light-years: 10, 50, 100, 500 and 1,000.
DistanceInput型Something with a place on the sky and perhaps a distance, as layersByDistance takes it.
DistanceLayers型What layersByDistance gives back.
LayeredThing型A thing in a layer: where it is, how far, and which band it is in.
LayerKind型The 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).
layersByDistance関数The things out to a limit, each in the band of its distance.
limitAtSlider関数The 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).
limitFromText関数The limit from the attribute distance-limit (and the address's dist), read as text: a number of light-years, or all.
limitText関数A 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).
nearbyInput関数A nearby star (/nearby) as a thing with a distance.
SLIDER_RANGE定数The 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.
sliderOfLimit関数Where a limit sits on the slider, 0 to 1; all is 1 and a limit under the slider's start is 0.
starInput関数A bright star of the Yale catalogue as a thing with a distance, from its parallax and its error.
stepLimit関数The next limit up or down the steps (10, 50, 100, 500, 1,000, then all).

ソースを見るGitHub で編集@johnmorrisdotca/hoshi-stars 0.47.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。