AllSkyOptionstype
How to lay the whole sky out.
Import it
import type { AllSkyOptions } from "@johnmorrisdotca/hoshi-stars/all-sky";
Definition
interface AllSkyOptions {
width: number;
frame?: AllSkyFrame;
projection?: AllSkyProjection;
centre?: number;
mirror?: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
width | number | The picture's width in your units; it is half as tall. |
frame (optional) | "galactic" | "equatorial" | undefined | The orientation; |
projection (optional) | "equirectangular" | "mollweide" | "hammer" | undefined | The projection; |
centre (optional) | number | undefined | The longitude of the frame (galactic longitude, or right ascension), in degrees, that lands in the middle; 0 for |
mirror (optional) | boolean | undefined | True for the map convention, longitude growing to the right. Default false: the sky seen looking up, longitude (east) growing to the LEFT, as the rest of the package draws it. |
Examples
import type { AllSkyOptions } from "@johnmorrisdotca/hoshi-stars/all-sky";
const options: AllSkyOptions = { width: 1000, frame: "equatorial", projection: "hammer" };
console.log(options.width / 2, "tall");500 tallWhat it prints (run when this page was built)