Reference · A picture of each of the 88 constellations, in light and dark
FigureThumbnailInputtype
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.
Import it
import type { FigureThumbnailInput } from "@johnmorrisdotca/hoshi-stars/thumbnails";
Definition
interface FigureThumbnailInput {
title: string;
stars: ReadonlyArray<Star>;
segments: ReadonlyArray<readonly [
Star,
Star
]>;
}
Members
| Name | Type | Description |
|---|---|---|
title | string | The name for the picture's |
stars | readonly Star[] | The stars of the figure, drawn inside a soft outline round them; one star is also ringed. |
segments | readonly (readonly [Star, Star])[] | The lines of the figure, each a pair of its stars. |
Examples
import { figureOf } from "@johnmorrisdotca/hoshi-stars/lines";
import { japanese } from "@johnmorrisdotca/hoshi-stars/cultures/japanese";
import { type FigureThumbnailInput } from "@johnmorrisdotca/hoshi-stars/thumbnails";
const subaru = figureOf("昴", japanese);
const input: FigureThumbnailInput = { title: "昴", stars: subaru.stars, segments: subaru.segments };
console.log(input.stars.length);6What it prints (run when this page was built)