distanceQualityTablefunction
How many stars of each figure have each quality of distance: the table that says which constellations are worth looking at in space today.
Import it
import { distanceQualityTable } from "@johnmorrisdotca/hoshi-stars/constellation-3d";
Definition
function distanceQualityTable(): Array<{ abbreviation: string; name: string; stars: number; counts: Record<DistanceQuality, number>; }>
Returns
{ abbreviation: string; name: string; stars: number; counts: Record<DistanceQuality, number>; }[]
One row for each of the 88 constellations, in the order of constellations().
Examples
import { distanceQualityTable } from "@johnmorrisdotca/hoshi-stars/constellation-3d";
const orion = distanceQualityTable().find((row) => row.abbreviation === "Ori")!;
console.log(orion.stars, orion.counts);8 { good: 0, fair: 1, rough: 6, none: 1 }What it prints (run when this page was built)