本文へ移動

Wakusei Planets惑星

太陽・惑星・衛星を、線画、陰影つきの絵、表面の地図で描きます。実際の大きさ・傾き・自転つきで、任意の日時の衛星の位置も分かります。

「惑星」(わくせい) は、太陽のまわりを回る大きな星のことです。 名前について(英語)

目次

リファレンス

データ・線画・位置

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

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
addBody関数Add a body to a scene (once), in its place in the order of the sky for an automatic layout, or at the front and to the right of the others for a manual one.
apparent関数How a body looks from the Earth at a time, from its real pole, rotation and the Sun's direction.
Apparent型What the sky shows of a body at a time: its pose, the latitude the viewer sees it from (how open its rings are), the longitude at the middle of the disc, the phase and the size.
BODIES定数Every body's facts, by name: sizes, flattening, axial tilt, poles and rotation from the IAU and NASA.
BODY_IDS定数Every body's name: the Sun, the planets outward, the dwarf planets, then the moons of each.
BodyFacts型The facts of one body: its radius, flattening, axial tilt, pole, prime meridian, rotation, colour, rings and the features a line drawing shows.
BodyId型The name of a body: sun, a planet, a dwarf planet or a moon.
decodeScene関数The scene from its text.
defaultPortrait関数An empty scene with the usual settings: an automatic row, readable sizes, the stars behind, the Sun upper left.
drawnTilt関数The tilt a drawing shows for a body: its obliquity, turned past 120 degrees to the other side (Venus is nearly upside down, so it is drawn nearly upright).
DWARF_IDS定数The dwarf planets besides Pluto, nearest the Sun first (by the size of their orbits).
DwarfId型The name of a dwarf planet besides Pluto: ceres, eris, haumea...
EMBED_KINDS定数The ways embedCode writes a body into a page.
embedCode関数The text that puts a body in a page, for one way of making the page.
embedCredit関数The credits that travel with a picture of a body: the line and illustrated looks are drawn from numbers, and realistic and painted use the surface maps.
EmbedKind型One of the ways in EMBED_KINDS.
EmbedOptions型What the reader chose: the body, how it is drawn, and whether it is a portrait or the sky at a date.
EmbedSettings型Where the embed code points: the package's version on jsDelivr, and the published demo, where embed.html is.
encodeScene関数The scene as one short piece of text that is safe in an address: fields joined by ~, each name:value, then one body_x_y_r_spin_tilt_pitch_turn for each body, back to front.
Feature型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.
heliocentric関数A planet's or dwarf planet's position in the Sun's frame (J2000 ecliptic, astronomical units) at a time: Mercury to Neptune from the VSOP87B series, and Pluto and the other dwarf planets from tables fitted to Horizons (each within a few arc-seconds or better, see the accuracy guide; outside a table's years a dwarf planet falls back to the osculating elements of one epoch from JPL's Small-Body Database).
heliocentricModel関数The theory that heliocentric(planet, ms) answers with, given the tables loaded now: VSOP87B for Mercury to Neptune, a fitted Chebyshev table where one covers the moment, else osculating elements (a dwarf planet) or JPL's approximate elements (Pluto outside its table).
HostId型A body a moon can go round: a planet, Pluto or another dwarf planet.
JOURNEY_STOPS定数Every body, in the same order as BODY_IDS: the Sun, the planets, the dwarf planets, then the moons.
journeyStop関数One body's row.
JourneyStop型One body, with what a trip needs.
layoutPortrait関数Where every body is and how big, and the camera that holds them.
LineOptions型Options for lineSvg: the size, a pose (tilt, pitch, phase, spin, a time or a pose), moons, range, fill, the language and the colours.
lineSvg関数A body as a line drawing, as an SVG string: the outline (squeezed by its flattening and leaning at its axial tilt), bands and features, rings with their gaps, and the dark side dashed off.
Look型How a body is drawn: line (an outline drawing), realistic and painted (a real surface map; painted is the same maps), or illustrated (shaded from the numbers, not a default).
meanSunAu関数Mean distance from the Sun, in astronomical units: a planet's semi-major axis at J2000, or a dwarf planet's semi-major axis at the epoch of its elements.
mix関数Mix two #rrggbb colours: t is how much of b (0 to 1).
moonGeocentric関数The Moon's position from the Earth's centre (J2000 mean ecliptic and equinox, kilometres), from the lunar solution ELP2000-82B (Chapront-Touze and Chapront, IMCCE) cut to its 540 largest terms and run in terrestrial time: within a few arc-seconds of Horizons from 1800 to 2200.
MoonId型The name of a moon the package draws, such as moon, io or titan.
MoonPlace型One moon, placed in a planet's system: in planet radii, x to the right, y up, z toward the viewer, with its distance from the planet and its phase angle.
MOONS_OF定数The moons the package draws, by planet or dwarf planet.
orbitPath関数The path one moon follows round its planet over one trip, as the Earth sees it at time: x, y, z in planet radii, in the viewer's frame at that moment.
PlacedItem型A body of a scene as the layout puts it: its place and size now (stored, or worked out by an automatic layout), and how far its picture reaches past the disc.
PLANET_IDS定数The planets and the dwarf planet Pluto, nearest the Sun first.
PlanetId型The name of a planet or of Pluto: mercury to pluto.
portrait関数A pose from a tilt, a pitch, a phase and a spin: the body as a portrait, with the Sun a little above the left.
Portrait型A portrait scene: the bodies, back to front, and how they are arranged, sized, lit and drawn.
PORTRAIT_PRESETS定数Ready-made scenes to start from: a family photo of the Sun and the planets, the gas giants to scale, Jupiter and the Galileans, the Earth and the Moon to scale (size and distance), Mars and its moons at their true distance, and the inner planets round the Sun.
portraitCode関数The text that puts a portrait scene in a page, for each way a page is made, as embedCode does for a single body.
PortraitEmbed型A scene of the portrait builder to put in a page: the scene as the builder writes it in its address, how wide the picture is, and the look to draw it in if not the scene's own.
PortraitItem型One body in the scene: which body, where it is and how big, how it is turned and how fast it turns by itself.
PortraitLayout型What a layout works out for a scene: every body placed, and the camera that holds them (its centre and half-height, in the scene's units).
PortraitOptions型Options for a pose when no date is given.
PortraitPreset型A ready-made scene with its name in English and Japanese.
Pose型The way a body is turned toward the viewer, in the viewer's frame (x to the right, y up, z toward the viewer), as unit vectors: its north pole, the direction of longitude 0 and the Sun's direction.
RingBand型One band of a ring system, in kilometres from the planet's centre: how much light it stops (alpha, 0 to 1) and how bright it is (tone, 0 dark, 1 bright).
ringReach関数The ring system's outer edge in body radii, or 1 for a body with no rings.
ringStrip関数The strip of a body's rings, made from its ring bands: where each band is it stops light and has its tone, with fine ringlets in it and soft edges.
RingStrip型The strip of a body's rings: RGBA bytes width pixels across, and the inner and outer radii in body radii.
stopPlaceAu関数Where a body is in the Sun's frame at an instant, in astronomical units.
system関数A planet and its moons as the Earth sees them at a time: each moon's place in planet radii, in the viewer's frame (x right, y up, z toward the viewer).
System型A planet's own pose and its moons as the Earth sees them at a time, nearest first.

ソースを見るGitHub で編集@johnmorrisdotca/wakusei-planets 0.24.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。