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

lineupFocusfunction

The body whose size the camera frames at a zoom: the nearest in the logarithmic scale of radius.

Import it

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

Definition

function lineupFocus(places: readonly LineupPlace[], zoom: number): LineupPlace | undefined

Parameters

NameTypeDescription
placesreadonly LineupPlace[]

The places, smallest first.

zoomnumber

0 to 1.

Returns

LineupPlace | undefined

The place, or undefined for an empty line-up.

Examples

import { lineupBodies, lineupFocus, placeLineup } from "@johnmorrisdotca/wakusei-planets";

console.log(lineupFocus(placeLineup(lineupBodies(), "row"), 0.5)?.body.id);
aldebaran

What it prints (run when this page was built)

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