starWheelPlatefunction
The window plate of a wheel for a latitude as an SVG string measured in millimetres: the horizon as a window, N, E, S and W round it, and the hours round the edge (12 at the top).
Import it
import { starWheelPlate } from "@johnmorrisdotca/hoshi-stars/sheets";
Definition
function starWheelPlate(latitude: number, options: { widthMm: number; heightMm: number; lang?: Lang; type?: "kid" | "normal"; }): string
Parameters
| Name | Type | Description |
|---|---|---|
latitude | number | Degrees north (negative south), moved to 20 to 70 as for the disc. |
options | { widthMm: number; heightMm: number; lang?: Lang; type?: "kid" | "normal"; } | As for |
Returns
string
The <svg> markup.
Examples
import { starWheelPlate } from "@johnmorrisdotca/hoshi-stars/sheets";
const plate = starWheelPlate(-34, { widthMm: 184.6, heightMm: 200, lang: "en" });
console.log(plate.includes('data-cut="window"'), plate.includes('data-hour="12"'));true trueWhat it prints (run when this page was built)