dotsFigurefunction
A constellation laid out as numbered dots on a page widthMm by heightMm: the stars placed by a stereographic chart, east to the left as in the sky, made as large as fits; the dots sized by brightness and never more than a third of the distance to the nearest dot (DOT_LIMITS), and two stars too close for the smallest dots moved apart to the distance they need; every visit numbered along the lines in drawing order
(one number for each time the pencil reaches a star, a star met again carrying both numbers); each number put where it touches no dot, line or other number.
Import it
import { dotsFigure } from "@johnmorrisdotca/hoshi-stars/sheets";
Definition
function dotsFigure(text: string, options: { level?: DotLevel; widthMm: number; heightMm: number; type?: "kid" | "normal"; }): DotsFigure
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The constellation, as |
options | { level?: DotLevel; widthMm: number; heightMm: number; type?: "kid" | "normal"; } |
|
Returns
DotsFigure
The dots, the lines of the answer and the counts.
Examples
import { dotsFigure } from "@johnmorrisdotca/hoshi-stars/sheets";
const orion = dotsFigure("Ori", { level: "medium", widthMm: 180, heightMm: 150 });
console.log(orion.dots.length, orion.visits, orion.dots[0].numbers);8 13 [ 1, 3 ]What it prints (run when this page was built)