SkyFromOptionstype
The options of skyFrom.
Import it
import type { SkyFromOptions } from "@johnmorrisdotca/hoshi-stars/sky-from";
Definition
interface SkyFromOptions {
magnitude?: number;
among?: readonly (Star | NearbyStar)[];
}
Members
| Name | Type | Description |
|---|---|---|
magnitude (optional) | number | undefined | The faintest apparent magnitude from the viewpoint to include (a star of exactly that magnitude is in). All of them when left out. |
among (optional) | readonly (Star | NearbyStar)[] | undefined | Move this list instead of the 5,080 bright stars, for example |
Examples
import { skyFrom, type SkyFromOptions } from "@johnmorrisdotca/hoshi-stars/sky-from";
const options: SkyFromOptions = { magnitude: 3 };
console.log(skyFrom("Vega", options).length);149What it prints (run when this page was built)