Reference · Facts, line drawings and positions
Featuretype
A thing a line drawing shows on a body's surface, placed by longitude and latitude in degrees (angular sizes in degrees): a circle, an oval, a band of latitude or a line.
Import it
import type { Feature } from "@johnmorrisdotca/wakusei-planets";
Definition
type Feature = {
kind: "circle";
lon: number;
lat: number;
radius: number;
fill?: boolean;
} | {
kind: "oval";
lon: number;
lat: number;
rx: number;
ry: number;
fill?: boolean;
} | {
kind: "band";
lat: number;
} | {
kind: "line";
points: readonly (readonly [
number,
number
])[];
close?: boolean;
};
Examples
import { BODIES, type Feature } from "@johnmorrisdotca/wakusei-planets";
const features: readonly Feature[] = BODIES.jupiter.features ?? [];
console.log(features.length);12What it prints (run when this page was built)