リファレンス
88星座それぞれの絵 (明るい版と暗い版)
import { … } from "@johnmorrisdotca/hoshi-stars/thumbnails";
最小化と gzip 圧縮をしたサイズは 142.0 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
constellationThumbnail | 関数 | 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 | 関数 | 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 | 型 | 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 | 関数 | A soft outline round some stars: their convex hull grown by a margin with rounded corners, as a closed ring of positions. |
THUMBNAIL_UNITS | 定数 | The side of the drawing in its own units; every picture is square. |
ThumbnailInput | 型 | What to draw: the region to frame, the lines of the figure, and which stars belong to it. |
ThumbnailOptions | 型 | How to draw a picture. |
thumbnailSvg | 関数 | 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 | 型 | The two looks of a picture: dark is a night sky, light is ink on paper. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。