Reference · Pictures of deep-sky objects and where each lies on the sky
deepSkyPicturesOffunction
Every picture of an object, the widest first and the finest last: draw them in that order and each finer one lies over the part of the coarser one it shows better. Found like deepSkyPicture.
Import it
import { deepSkyPicturesOf } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";
Definition
function deepSkyPicturesOf(text: string): DeepSkyPicture[]
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The object's id. |
Returns
DeepSkyPicture[]
A fresh array of the shared, frozen pictures: empty where the object has none.
Examples
import { deepSkyPicturesOf } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";
console.log(deepSkyPicturesOf("M51").map((picture) => picture.id));[ 'M51', 'M51-heic0506a' ]What it prints (run when this page was built)