Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · Facts, line drawings and positions

LineupLabeltype

A label placed on the picture: a plate of lines at a place, and the dot it belongs to.

Import it

import type { LineupLabel } from "@johnmorrisdotca/wakusei-planets";

Definition

interface LineupLabel {
    id: string;
    lines: string[];
    x: number;
    y: number;
    width: number;
    height: number;
}

Members

NameTypeDescription
idstring
linesstring[]
xnumber

The top left of the plate, in pixels.

ynumber
widthnumber
heightnumber

Examples

import { lineupBodies, lineupLabels, lineupProject, lineupView, placeLineup, type LineupLabel } from "@johnmorrisdotca/wakusei-planets";

const places = placeLineup(lineupBodies(), "row");
const labels: LineupLabel[] = lineupLabels(lineupProject(places, lineupView(places, 0.5), 800, 450), 800, 450, "en").labels;
console.log(labels.map((label) => label.id).join(", "));
rigel, aldebaran, arcturus, vega

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.29.0.