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

lineupZoomOffunction

The zoom at which a body fills the picture: where the camera frames its radius. 0 for a lone body.

Import it

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

Definition

function lineupZoomOf(places: readonly LineupPlace[], id: string): number | undefined

Parameters

NameTypeDescription
placesreadonly LineupPlace[]

The places, smallest first.

idstring

A body's id.

Returns

number | undefined

The zoom from 0 to 1, or undefined when the id is not in the line-up.

Examples

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

const places = placeLineup(lineupBodies(), "row");
console.log(lineupZoomOf(places, "antares")?.toFixed(3));
0.850

What it prints (run when this page was built)

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