Reference · The Sun, Moon and planets: pure parts
PlanetNametype
One of the planets drawn (Pluto too), by name.
Import it
import type { PlanetName } from "@johnmorrisdotca/chikyu-earth/space";
Definition
type PlanetName = (typeof PLANETS)[number];
Examples
import { orbitPath, type PlanetName } from "@johnmorrisdotca/chikyu-earth/space";
const planet: PlanetName = "Mars";
console.log(orbitPath(planet, Date.UTC(2026, 10, 2), 8).length);9What it prints (run when this page was built)