Reference
The whole sky on one wide 2:1 map: galactic or equatorial, Mollweide, Hammer or plate carrée, with lines cut cleanly at the seam
import { … } from "@johnmorrisdotca/hoshi-stars/all-sky";
3.4 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
ALL_SKY_FRAMES | constant | 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 | constant | 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 | type | An orientation of the whole-sky picture. |
allSkyGrid | function | 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 | type | 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 | function | A line on the sky (a figure's segment, a boundary, a meridian) as runs of points of the picture. |
AllSkyOptions | type | How to lay the whole sky out. |
allSkyOutline | function | The edge of the whole-sky picture as a closed run of points: the oval of Mollweide and Hammer, or the rectangle. |
AllSkyPoint | type | A point of the picture: x to the right and y DOWN from the top left corner, as a screen has it. |
allSkyProject | function | Where a point of the sky lands in the picture. |
AllSkyProjection | type | A projection of the whole-sky picture. |
allSkyUnproject | function | The sky under a point of the picture: the inverse of allSkyProject, with the same options. |