本文へ移動

Hoshi Stars星

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

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

目次

リファレンス

全天を1枚の横長 (2対1) の地図に (銀河座標か赤道座標、モルワイデ・ハンマー・正距円筒図法。継ぎ目で線をきれいに切る)

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

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

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

エクスポート

名前種類概要
ALL_SKY_FRAMES定数The two orientations of the whole-sky picture: galactic puts the Galaxy's plane along the middle with the centre of the Galaxy (in Sagittarius) in the middle of the picture, equatorial puts the celestial equator along the middle.
ALL_SKY_PROJECTIONS定数The projections that fill a 2:1 box exactly: Mollweide's and Hammer's equal-area ovals and the plain longitude and latitude rectangle.
AllSkyFrame型An orientation of the whole-sky picture.
allSkyGrid関数The grid of the picture: a meridian every every degrees of longitude and a parallel every every degrees of latitude, in the picture's own frame (the galactic grid for a galactic picture), the poles left out.
AllSkyGridLine型One line of the grid of the picture: a meridian (a line of constant longitude) or a parallel (constant latitude) of the picture's own frame.
allSkyLine関数A line on the sky (a figure's segment, a boundary, a meridian) as runs of points of the picture.
AllSkyOptions型How to lay the whole sky out.
allSkyOutline関数The edge of the whole-sky picture as a closed run of points: the oval of Mollweide and Hammer, or the rectangle.
AllSkyPoint型A point of the picture: x to the right and y DOWN from the top left corner, as a screen has it.
allSkyProject関数Where a point of the sky lands in the picture.
AllSkyProjection型A projection of the whole-sky picture.
allSkyUnproject関数The sky under a point of the picture: the inverse of allSkyProject, with the same options.

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

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