Reference · A picture of each of the 88 constellations, in light and dark
ThumbnailOptionstype
How to draw a picture.
Import it
import type { ThumbnailOptions } from "@johnmorrisdotca/hoshi-stars/thumbnails";
Definition
interface ThumbnailOptions {
theme?: ThumbnailTheme;
size?: number;
neighbours?: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
theme (optional) | ThumbnailTheme | undefined |
|
size (optional) | number | undefined | The width and height in pixels. Left out, the picture has only a viewBox and takes the size of its box. |
neighbours (optional) | boolean | undefined | False to leave out the neighbours' boundaries and stars (default true). |
Examples
import { constellationThumbnail, type ThumbnailOptions } from "@johnmorrisdotca/hoshi-stars/thumbnails";
const options: ThumbnailOptions = { theme: "light", size: 160, neighbours: false };
console.log(constellationThumbnail("Ori", options).includes('width="160"'));trueWhat it prints (run when this page was built)