regionGuideSvgfunction
The sheet "constellations for where you live" as an SVG string measured in millimetres: the constellations always up at a latitude, the best of the evening sky in a month (about 21:00 by the Sun) and the ones never seen, each with its figure and name, and a note on the most famous.
Import it
import { regionGuideSvg } from "@johnmorrisdotca/hoshi-stars/sheets";
Definition
function regionGuideSvg(latitude: number, month: number, options: { widthMm: number; heightMm: number; lang?: Lang; type?: "kid" | "normal"; }): string
Parameters
| Name | Type | Description |
|---|---|---|
latitude | number | Degrees north of the equator (negative south), -90 to 90. |
month | number | 1 to 12. |
options | { widthMm: number; heightMm: number; lang?: Lang; type?: "kid" | "normal"; } |
|
Returns
string
The <svg> markup.
Examples
import { regionGuideSvg } from "@johnmorrisdotca/hoshi-stars/sheets";
const guide = regionGuideSvg(-33.9, 7, { widthMm: 184.6, heightMm: 150, lang: "en" });
console.log(guide.includes('data-thumb="Cru"'), guide.includes('data-thumb="UMi"'));true falseWhat it prints (run when this page was built)