Reference · Facts, line drawings and positions
BodyIdtype
The name of a body: sun, a planet, a dwarf planet or a moon.
Import it
import type { BodyId } from "@johnmorrisdotca/wakusei-planets";
Definition
type BodyId = "sun" | PlanetId | DwarfId | MoonId;
Examples
import { lineSvg, type BodyId } from "@johnmorrisdotca/wakusei-planets";
const id: BodyId = "mars";
console.log(lineSvg(id, { size: 64 }).length > 100);trueWhat it prints (run when this page was built)