Reference · Constellation lines
figureOffunction
The stick figure of one constellation: the bright stars to join, as pairs. Every star of a pair lies inside the constellation, so a chart can draw one figure without crossing into another.
Import it
import { figureOf } from "@johnmorrisdotca/hoshi-stars/lines";
Definition
function figureOf(text: string): Figure
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The constellation, as the IAU abbreviation ( |
Returns
Figure
The shared, frozen figure.
Examples
import { figureOf } from "@johnmorrisdotca/hoshi-stars/lines";
for (const [a, b] of figureOf("Great Bear").segments) console.log(a.name ?? a.designation, "to", b.name ?? b.designation);Dubhe to Merak
Merak to Phecda
Phecda to Megrez
Megrez to Alioth
Alioth to Mizar
Mizar to Alkaid
Megrez to Dubhe
Dubhe to 23 UMa
23 UMa to MuscidaWhat it prints (run when this page was built)