Reference
A picture of each of the 88 constellations, in light and dark
import { … } from "@johnmorrisdotca/hoshi-stars/thumbnails";
142.0 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
constellationThumbnail | function | The picture of one IAU constellation: its boundary (dashed, with a faint wash), its stick figure, its bright stars, and the neighbouring constellations' boundaries and stars faint round it. |
figureThumbnail | function | The picture of a figure of a sky culture (a Chinese asterism, a traditional Japanese figure), drawn the way a constellation's is, so every sky makes one set: the same square, the same room round the figure, the neighbouring constellations' boundaries and stars faint behind it, the same line and star sizes. |
FigureThumbnailInput | type | What to draw for a figure of a sky culture: its name for the picture's <title>, the stars it joins and the lines between them. |
paddedOutline | function | A soft outline round some stars: their convex hull grown by a margin with rounded corners, as a closed ring of positions. |
THUMBNAIL_UNITS | constant | The side of the drawing in its own units; every picture is square. |
ThumbnailInput | type | What to draw: the region to frame, the lines of the figure, and which stars belong to it. |
ThumbnailOptions | type | How to draw a picture. |
thumbnailSvg | function | One picture, drawn from outlines, lines and stars you supply: the outlines are framed in a square with room round them, the stars that belong to the figure are drawn in full and every other star in the frame faint, with the faint boundaries of the neighbours behind them. |
ThumbnailTheme | type | The two looks of a picture: dark is a night sky, light is ink on paper. |