setThreeLoaderfunction
Where three.js comes from, if a page wants to hand it over itself (before the first element connects).
Every export of every entry point, each with its own page. This page keeps the addresses the old one-page reference had.
@johnmorrisdotca/wakusei-planets/elementsetThreeLoaderfunctionWhere three.js comes from, if a page wants to hand it over itself (before the first element connects).
TEXTURE_BASEconstantThe default home of the surface pictures: the files of this exact version on jsDelivr.
TEXTURE_FAR_BASEconstantWhere the sharpest surface pictures are: the files of this exact version in the repository, on jsDelivr's GitHub address.
WakuseiBodyclassThe <wakusei-body> custom element: a body of the solar system, drawn in a look.
WakuseiStatetypeWhat the element is doing: line (an SVG), loading (waiting for three.js or a picture), still (a picture of the 3D look, nothing running), live (drawing), lost (the GPU took the context; it comes back by itself) or unavailable (no WebGL: the line drawing is shown).
@johnmorrisdotca/wakusei-planets/portraitPortraitStatetypeWhat the element is doing: line (an SVG), loading, still, live, lost or unavailable (no WebGL: the line drawing is shown).
setThreeLoaderfunctionWhere three.js comes from, if a page wants to hand it over itself (before the first element connects).
WakuseiPortraitclassThe <wakusei-portrait> custom element: a scene of bodies arranged on one picture.
@johnmorrisdotca/wakusei-planets/spaceAU_IN_EARTH_RADIIconstantEarth radii in one astronomical unit.
blendfunctionA frame between two others, t from 0 to 1.
compressfunctionThe same direction at a compressed distance from the Earth: the Moon is 10 Earth radii away, and a body k times further than the Moon is k^0.25 times as far here.
createTrackfunctionAnswers for any moment from two real ones: at(ms) works out a frame only when ms leaves the span the last two answers cover, and then looks stepMs ahead, so playing time at a steady rate costs one pair of lookups every stepMs and every draw in between is arithmetic.
EARTH_RADIUS_KMconstantThe Earth's equatorial radius in kilometres (IAU), the unit of the scene's distances.
frameAtfunctionThe state of the sky at ms: the Sun, the Moon and eight planets as seen from the Earth's centre, worked out by this package's own models in a fraction of a millisecond.
groundDirectionfunctionThe unit direction, in the scene's axes, of a longitude and latitude on the Earth as the stars see it at ms: the camera fixed to the stars looks at the same place on the ground only at that moment, and the Earth turns away under it as time runs.
MOON_COMPRESSEDconstantThe Moon's distance in a compressed view, in Earth radii (the true one is about 60).
placeAroundfunctionA place helio astronomical units from the Sun (a planet, or a point on its orbit), round the Sun at sun.
placeMoonfunctionThe Moon, from the Earth's centre.
placeSunfunctionThe Sun, from the Earth's centre: in a compressed view always 44 Earth radii away, in its real direction.
planetOrbitfunctionThe path a planet takes round the Sun, as count + 1 points round one trip from where the planet is at ms, from the Sun, in astronomical units and the scene's axes.
radiusInfunctionA body's radius in Earth radii: the real one, or one large enough to see in a compressed view.
RIDE_FOVconstantThe field of view, in degrees, of a camera riding along at zoom 1.
RideInputtypeWhat ridePose is asked: the camera's place from the centre of the body it goes round and its way of travel (any length), that body's radius in the unit of the place, where it looks, and the shared controls' yaw, tilt and zoom.
RideLooktypeWhere a riding camera looks: down straight at the centre of the body it goes round (the ground goes by under the camera), or horizon tipped forward along the way it is going until the horizon is a little above the middle of the view.
ridePosefunctionThe camera of a body-borne view: at position, looking at the body it goes round (a Moon over the Earth, a moon over Jupiter, a spacecraft over Mars: any centre, by radius), with the way it is going at the top of the picture.
RidePosetypeThe camera ridePose works out: where it is, which way it looks, which way is up in the picture, its field of view in degrees, and how big the body looks from there (its angular radius in degrees).
ScaleModetypeThe scale the space view is drawn in: compressed squeezes the distances so the Moon, the Sun and Neptune fit one view, and true keeps the real ones.
SPACE_PLANETSconstantThe planets the space view places, nearest the Sun first (the Earth is the middle of the view).
SpaceFrametypeWhere everything is at one moment: positions in astronomical units from the Earth's centre, in J2000 equatorial axes with y north.
SpacePlanettypeOne of the planets in SPACE_PLANETS.
SpaceVec3typeA position or direction as [x, y, z] in the scene's axes: J2000 equatorial, x to the vernal equinox, y north.
SUN_COMPRESSEDconstantThe Sun's distance from the Earth in a compressed view, in Earth radii (the true one is about 23,500).
truePositionfunctionA place in astronomical units from the Earth's centre, at true distance, in Earth radii.
@johnmorrisdotca/wakusei-planets/space/elementBodyInfotypeWhat a page can tell a reader about a body now.
RideOptionstypeHow a ride along is done: view from (the default) puts the camera at the target looking at the body it goes round, follow keeps it a distance from the target looking at it (distanceKm, 3000 by default, for a point of your own; a body or a moon is kept at the distance the zoom says); look down (the default) or horizon is where a camera at the target points; around is the body a point of your own goes round (the Earth by default); smooth (the default) glides from the old camera to the new one in about a second and a bit, and jumps instead for a reader who asked for reduced motion.
RidePointtypeAny moving point a camera can ride: where it is and which way it goes at a moment, from the centre of the body it goes round, in kilometres and kilometres a second, in the scene's axes (J2000 equatorial, y north).
RideTargettypeWhat a camera can ride along with: a body of the view (moon, mars, ...
RidingtypeWhat the camera is riding along with now: the target, the body it goes round, how (from or follow), where it looks, and the distance kept for a point.
setThreeLoaderfunctionWhere three.js comes from, if a page wants to hand it over itself (before the first element connects).
SPACE_BODIESconstantThe eleven bodies the space view places, names and lets a reader choose: the Earth, the Sun, the Moon, the seven other planets and Pluto.
SpaceBodytypeOne of the bodies in SPACE_BODIES, by the package's usual lower-case name.
SpaceLighttypeHow the Earth is lit: sun is the true light; lit is daylight from the camera's side, so a view of the night side is never black.
SpacePresettypeA named distance for zoomFor: the Earth, the Moon, the Sun, the inner planets, the whole solar system, or a planet with its nearer moons (jupiter-moons).
SpaceStatetypeWhat the space view is doing: loading, live, unavailable (no WebGL), lost (the GPU took the context; it comes back by itself).
WakuseiSpaceclassThe <wakusei-space> custom element: the Earth, the Moon, the Sun and the planets where they are at a date and time, drawn with three.js through the shared renderer.
@johnmorrisdotca/wakusei-planets/timeB1950_JDconstantThe Julian date of the Besselian epoch B1950.0, 1950 January 0.923 (Meeus).
CalendartypeWhich calendar: gregorian and julian are used for every year (the proleptic calendars), and auto follows history: the Julian calendar to 1582-10-04 and the Gregorian from 1582-10-15.
CivilTimetypeA date and time of day.
convertTimeScalefunctionA moment on one time scale as the same moment on another, in milliseconds since 1970 read on the target scale's own clock.
coordinatedMarsTimefunctionCoordinated Mars Time: the mean solar time on Mars's prime meridian, in hours from 0 up to 24 (a Martian hour is 1/24 of a sol).
dayOfWeekfunctionThe day of the week of a moment in UTC: 0 Sunday to 6 Saturday.
dayOfYearfunctionThe day of the year of a moment in UTC: 1 on 1 January.
daysInMonthfunctionThe number of days in a month; October 1582 has 21 in the auto calendar, the ten days of the switch being left out.
deltaTfunctionDelta T, terrestrial time minus universal time (UT1), in seconds.
equationOfTheEquinoxesfunctionThe equation of the equinoxes in degrees: the nutation in longitude times the cosine of the obliquity, what apparent sidereal time has over mean (about 1 second of time at most).
fromCalendarfunctionA date and time of day in UTC as a moment, in milliseconds since 1970.
fromJulianDatefunctionThe time, in milliseconds since 1970, of a Julian date.
fromJulianDayAndMillisecondsfunctionA time from a Julian day and the milliseconds into it, with no digit lost: fromJulianDayAndMilliseconds(toJulianDay(t), toMillisecondsInJulianDay(t)) is t.
greenwichApparentSiderealTimefunctionThe Greenwich apparent sidereal time in degrees, 0 to 360: the mean time with the equation of the equinoxes added, which is what the hour angle of a body is measured against.
greenwichMeanSiderealTimefunctionThe Greenwich mean sidereal time in degrees, 0 to 360 (divide by 15 for hours).
isLeapYearfunctionWhether a year is a leap year.
J2000_JDconstantThe Julian date of J2000.0, 2000-01-01 12:00 TT: the epoch of the planets' theories.
J2000_MSconstantJ2000.0, 2000-01-01 12:00, as milliseconds since 1970 counted on a clock that reads TT: a terrestrial time is this far from it.
julianfunctionA time as a string of its Julian date with six decimals, as the julian package gives it (a tenth of a second).
julianCenturiesfunctionJulian centuries (36,525 days) from J2000.0: the time argument of most theories.
julianMillenniafunctionJulian millennia (365,250 days) from J2000.0, in terrestrial time unless scale says UTC: the time argument of the VSOP87 series.
localSiderealTimefunctionThe local sidereal time in degrees, 0 to 360, at a longitude east of Greenwich (west negative): the right ascension on the meridian.
marsLocalMeanSolarTimefunctionThe local mean solar time on Mars at a longitude east of its prime meridian, in hours from 0 up to 24.
marsSolDatefunctionThe Mars Sol Date: the count of Martian days, as the Julian date counts Earth's.
modifiedJulianDatefunctionThe modified Julian date: the Julian date less 2,400,000.5, so a day starts at midnight and the numbers are shorter.
taiMinusUtcfunctionTAI minus UTC in seconds: the leap seconds from 1972 (10 then, 37 since 2017), and before 1972 delta T less 32.184, which is how far the atomic scale would have been from the Earth's turn.
tdbMinusTtfunctionTDB minus TT in seconds: a term that follows the Earth round the Sun and is never more than 1.7 milliseconds (Meeus's two terms, 0.001657 sin g and 0.000014 sin 2g, good to about 30 microseconds).
TimeScaletypeA time scale: utc (the clock), ut1 (the Earth's turn, within 0.9 s of UTC), tai (atomic time), gps (TAI less 19 s), tt (terrestrial time, TAI plus 32.184 s) and tdb (barycentric dynamical time, TT plus a few milliseconds that follow the year).
toCalendarfunctionA moment as a date and time of day in UTC, in the Gregorian or the Julian calendar.
toDatefunctionThe Date of a Julian date (a number, or the string julian gives), rounded to the millisecond.
toJulianDatefunctionA time as a Julian date: the days since noon on 1 January 4713 BC (Julian calendar), as a number.
toJulianDayfunctionThe whole Julian day of a time.
toMillisecondsInJulianDayfunctionThe milliseconds since noon, the start of the Julian day, that a time is into it.
toTerrestrialTimefunctionA moment in UTC as the same moment in terrestrial time, on the same scale of milliseconds since 1970.
ttMinusUtcfunctionTerrestrial time minus the clock's time, in seconds, at a moment given in UTC: 69.184 from the last leap second in 2017 on (until another is added), exact from 1972, and delta T before.
UNIX_EPOCH_JULIAN_DATEconstantThe Julian date of the Unix epoch, 1970-01-01T00:00:00Z (UTC).
WhentypeA moment: a Date or a number of milliseconds since 1970 (UTC, as JavaScript counts).
@johnmorrisdotca/wakusei-planets/starsblackBodyColourfunctionThe colour of a black body at a temperature, as a #rrggbb string, for drawing a star.
StartypeOne star, as the Yale Bright Star Catalogue gives it.
starByHrfunctionA star by its Bright Star Catalogue number.
starByNamefunctionA star by its common name (Sirius) or its designation (α CMa, 9 CMa), ignoring case.
starColourfunctionThe colour to draw a star: from its B-V index, or a plain white where the catalogue has none.
starDistanceLightYearsfunctionA star's distance from its parallax, in light-years.
starPositionfunctionWhere a star is at a moment: its J2000 position carried forward (or back) by its proper motion in a straight line.
starsfunctionThe stars to a magnitude, brightest first.
starTemperatureKfunctionThe surface temperature a colour index implies, in kelvin, by Ballesteros's relation between B-V and a black body.
@johnmorrisdotca/wakusei-planets/nearestApproachtypeThe closest two bodies come in a span: the moment of the minimum and the separation then.
ApproachOptionstypeWhere a search looks, and what counts as close.
closestApproachfunctionWhen two bodies come closest in a span, and how close: the span is scanned in coarse steps (the fastest body goes round forty times in the step, at most two days), then the smallest minimum is narrowed to about a second of time by golden-section search.
ConjunctionOptionstypeThe options of conjunctions.
conjunctionsfunctionThe close approaches of every pair of bodies in a span, soonest first: each pair's separation is scanned in coarse steps (the fastest body goes round forty times in the step, at most two days), and every minimum inside the span that is within within is narrowed to about a second of time.
distancefunctionThe distance between two bodies on a date: the straight line between their centres at that instant, in kilometres and astronomical units, with no light time.
DistancetypeThe distance between two bodies at one instant: their centres, in the Sun's frame, with no light time.
DistanceAttypeThe least or the greatest distance of a pair over a span, and when.
distanceRangefunctionThe least and the greatest distance between two bodies over a span, each with its moment: the span is scanned in coarse steps (as closestApproach does) and each turning point is narrowed to about a second of time by golden-section search, the greatest on the negated distance.
DistanceRangetypeWhere a pair is nearest and farthest over a span.
nearestfunctionThe bodies nearest to a body on a date, nearest first: by the angle between them in the sky of an observer, or by the distance between them in space.
NearestKindtypeWhat kind of body: the Sun is "star".
NearestOptionstypeThe options of nearest, within, closestApproach and conjunctions that mean the same in each.
SkyNeighbourtypeA body near the target in the sky: its angle from the target in degrees (0 to 180) and how far that angle may be off, in arc-seconds.
SpaceNeighbourtypeA body near the target in space: the distance between their centres, and how far that may be off.
ViewpointtypeWhere the sky is seen from: a body's centre ("mars" for the sky of Mars), or a place on the Earth, whose parallax counts (the Moon is up to a degree different from there than from the Earth's centre).
withinfunctionEvery body inside a radius of a body on a date, nearest first: nearest with no limit on how many.
@johnmorrisdotca/wakusei-planets/spacecraftloadSpacecraftfunctionLoad the fitted paths of some spacecraft (or all of them), each a table of its own that nothing else imports: about 6 kB gzipped for the Voyagers, the Pioneers, New Horizons and JWST, and more for the craft that orbited a planet.
SPACECRAFTconstantThe ten craft and their facts, keyed by id.
SPACECRAFT_IDSconstantThe ten craft: voyager1, voyager2, newhorizons, pioneer10, pioneer11, cassini, galileo, juno, parker and webb.
spacecraftEarthDistancefunctionA craft's distance from the Earth's centre at a moment, in kilometres: the craft's path from Horizons and the Earth from VSOP87B (a few thousand kilometres at most), both for the same instant, with no allowance for the light's travel.
spacecraftErrorKmfunctionThe worst error of a craft's loaded path against Horizons, in kilometres, as measured when it was made: on samples held back from the fit and on fresh samples at random times.
SpacecraftEventtypeOne thing that happened on a craft's voyage.
SpacecraftFactstypeFacts about one craft.
SpacecraftIdtypeThe name of a craft: voyager1, cassini, webb...
spacecraftLightTimefunctionHow long a radio signal takes from the Earth to a craft (or back), at a moment, in seconds: the distance from the Earth over the speed of light.
spacecraftPositionfunctionWhere a craft is at a moment: x, y, z in kilometres from the Sun, in the J2000 ecliptic frame (the same axes as heliocentric, which is in astronomical units).
spacecraftSpeedfunctionA craft's speed relative to the Sun at a moment, in kilometres a second.
spacecraftSunDistancefunctionA craft's distance from the Sun at a moment, in kilometres.
spacecraftVelocityfunctionA craft's velocity relative to the Sun at a moment, in kilometres a second, in the same frame as spacecraftPosition.
WhentypeA moment: a Date or a number of milliseconds since 1970 (UTC, as JavaScript counts).
@johnmorrisdotca/wakusei-planets/suncalcaddTimefunctionAdd a time to the ones getTimes gives: when the Sun reaches an altitude in degrees, going up under the morning name and going down under the evening name.
getMoonIlluminationfunctionThe Moon's phase.
getMoonPositionfunctionThe Moon's place in the sky from a place on the Earth.
getMoonTimesfunctionThe Moon's rise, set and transits over a day at a place.
getPositionfunctionThe Sun's place in the sky from a place on the Earth.
getTimesfunctionThe Sun's times for a day at a place.
MoonIlluminationtypeThe Moon's illumination: the lit fraction 0 to 1, the phase 0 to 1 (0 new, 0.25 first quarter, 0.5 full, 0.75 last quarter), the position angle of the bright limb in degrees eastward from north, and whether it is waxing.
MoonPositiontypeThe Moon in a place's sky: the Position, the Moon's distance in kilometres and the parallactic angle in degrees.
MoonTimestypeThe Moon's rise, set and transits over a day.
PositiontypeWhere a body is in a place's sky: the azimuth in degrees clockwise from north (0 north, 90 east, 180 south, 270 west) and the apparent altitude (refraction included) in degrees.
SunTimeNametypeThe names of the Sun's times that getTimes gives.
SunTimestypeThe Sun's times for a day: each a Date or null when the Sun does not reach that height that day, solarNoon and nadir always there, and alwaysUp or alwaysDown when the Sun stays above or below the sunrise height all day.
timesconstantThe altitudes of the Sun's times in degrees: the morning name when it rises through the angle, the evening name when it sets through it.
@johnmorrisdotca/wakusei-planets/suncalc/legacyaddTimefunctionAdd a time to the ones getTimes gives: when the Sun reaches an altitude in degrees.
getMoonIlluminationfunctionThe Moon's phase, as suncalc 1 gave it.
getMoonPositionfunctionThe Moon's place in the sky, as suncalc 1 gave it: the altitude includes refraction.
getMoonTimesfunctionThe Moon's rise and set over the 24 hours from midnight of the moment's day, in the machine's zone or, with inUTC, in UTC.
getPositionfunctionThe Sun's place in the sky, as suncalc 1 gave it: the altitude has no refraction in it.
getTimesfunctionThe Sun's times for the solar day nearest a moment, as suncalc 1 gave them: every time a Date, invalid when it does not happen.
LegacyMoonIlluminationtypeThe Moon's illumination in suncalc 1's terms: the lit fraction, the phase 0 to 1, and the bright limb's angle in radians, negative while the Moon waxes and positive while it wanes.
LegacyMoonPositiontypeThe Moon in a place's sky: the LegacyPosition, the distance in kilometres and the parallactic angle in radians.
LegacyMoonTimestypeThe Moon's rise and set; alwaysUp or alwaysDown is true when the Moon never rises or sets in the day.
LegacyPositiontypeWhere a body is: the azimuth in radians from south toward west (0 south, a quarter turn west) and the altitude in radians.
LegacySunTimestypeThe Sun's times with every one a Date: an invalid Date (NaN) when the Sun does not reach that height that day.
timesconstantThe times suncalc 1 gives, as [altitude in degrees, morning name, evening name].
@johnmorrisdotca/wakusei-planets/tables@johnmorrisdotca/wakusei-planets/tables/ceres@johnmorrisdotca/wakusei-planets/tables/dwarfs@johnmorrisdotca/wakusei-planets/tables/vsop@johnmorrisdotca/wakusei-planets/tables/galilean@johnmorrisdotca/wakusei-planets/tables/saturn-moons@johnmorrisdotca/wakusei-planets/lookAtmospheretypeA rim of air: the colour it scatters (0 to 1 each), how strong it is and how thin the rim is.
BodyLooktypeWhat a body looks like in three.js: the shader code of its surface, how it glows, its atmosphere and its painted map.
lookOffunctionThe look registered for a body, or undefined when its entry point has not been imported.
PaintedMaptypeThe painted look of a body: a surface map in the package's textures folder, as widths from the smallest up.
registerLookfunctionTeach the package how to draw a body in three.js.
@johnmorrisdotca/wakusei-planets/paintercreatePainterfunctionMake a painter that takes its pictures from the given folders (jsDelivr's copy of this version by default).
LOOKSconstantThe looks the painter draws: realistic (shaded from the body's real colours and features) and painted (a public-domain surface map, with the shaded look until it arrives).
moonOffsetfunctionWhere a moon is from its planet's centre, in planet radii, in the scene's axes (x to the vernal equinox, y north).
MoonSitetypeOne moon of a planet at a time: where it is from the planet's centre and how big it is, both in radii of the planet, in the scene's axes.
orientationfunctionThe north pole and the prime meridian of a body at a time, as unit vectors in the scene's axes (x to the vernal equinox, y north).
PaintContexttypeWhat the caller gives the painter when it makes a body.
painterconstantThe painter with its default pictures: pass it to chikyu-earth's setBodyPainter.
PainterLooktypeOne of the looks in LOOKS: realistic or painted.
PainterOptionstypeWhere the pictures are, if not on jsDelivr: a folder address that ends in a slash.
PaintInfotypeWhat the caller tells a painted body at each draw: the direction to the Sun (a unit vector in the scene's axes), the time, and how many CSS pixels across its radius the body is on the screen.
PaintingtypeOne body made by the painter: an object of radius 1 at the origin for the caller to move and scale.
WakuseiPaintertypeA painter: makes the bodies as three.js objects (make) and tells where a planet's moons are (moons).
@johnmorrisdotca/wakusei-planets/all@johnmorrisdotca/wakusei-planets/sun@johnmorrisdotca/wakusei-planets/mercury@johnmorrisdotca/wakusei-planets/venus@johnmorrisdotca/wakusei-planets/mars@johnmorrisdotca/wakusei-planets/jupiter@johnmorrisdotca/wakusei-planets/saturn@johnmorrisdotca/wakusei-planets/uranus@johnmorrisdotca/wakusei-planets/neptune@johnmorrisdotca/wakusei-planets/pluto@johnmorrisdotca/wakusei-planets/dwarfs@johnmorrisdotca/wakusei-planets/moons-earth@johnmorrisdotca/wakusei-planets/moons-mars@johnmorrisdotca/wakusei-planets/moons-jupiter@johnmorrisdotca/wakusei-planets/moons-saturn@johnmorrisdotca/wakusei-planets/moons-uranus@johnmorrisdotca/wakusei-planets/moons-neptune@johnmorrisdotca/wakusei-planets/moons-pluto@johnmorrisdotca/wakusei-planets/moons-dwarf@johnmorrisdotca/wakusei-planets/earth@johnmorrisdotca/wakusei-planets/coordinatesCartesianAutypeRight-handed Cartesian components in AU: x at longitude zero, y at 90 degrees, z north.
cartesianToSphericalfunctionConvert Cartesian to spherical.
CoordinateContexttypeScientific context.
CoordinateFrametypeNamed axes.
CoordinateObservertypeEarth observer: degrees north/east; optional metres above the WGS 84 ellipsoid.
CoordinateOrigintypeOrigin is preserved by every rotation; no observer translation is performed.
EclipticCoordinatestypeEcliptic angles, in degrees, in the named mean ecliptic frame.
eclipticToEquatorialfunctionRotate a mean ecliptic direction into the matching mean equatorial frame.
EquatorialCoordinatestypeEquatorial angles, in degrees (right ascension is never hours).
equatorialToEclipticfunctionInverse mean-equator rotation, retaining the same origin and epoch.
equatorialToHorizontalfunctionRotate a mean equatorial-of-date direction to an observer's horizon (Meeus 12.4, 13.5–6).
HorizontalCoordinatestypeGeometric horizontal direction.
meanObliquityfunctionMean obliquity in degrees: IAU 1980 (Meeus 22.2), evaluated in TT.
SphericalAutypeSpherical coordinates: longitude [0,360), latitude [-90,90], radius in AU.
sphericalToCartesianfunctionConvert spherical to Cartesian, preserving origin, frame, epoch and geometric corrections.
@johnmorrisdotca/wakusei-planetsaddBodyfunctionAdd 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.
apparentfunctionHow a body looks from the Earth at a time, from its real pole, rotation and the Sun's direction.
ApparenttypeWhat 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.
BODIESconstantEvery body's facts, by name: sizes, flattening, axial tilt, poles and rotation from the IAU and NASA.
BODY_IDSconstantEvery body's name: the Sun, the planets outward, the dwarf planets, then the moons of each.
BodyFactstypeThe facts of one body: its radius, flattening, axial tilt, pole, prime meridian, rotation, colour, rings and the features a line drawing shows.
BodyIdtypeThe name of a body: sun, a planet, a dwarf planet or a moon.
decodeScenefunctionThe scene from its text.
defaultPortraitfunctionAn empty scene with the usual settings: an automatic row, readable sizes, the stars behind, the Sun upper left.
drawnTiltfunctionThe 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_IDSconstantThe dwarf planets besides Pluto, nearest the Sun first (by the size of their orbits).
DwarfIdtypeThe name of a dwarf planet besides Pluto: ceres, eris, haumea...
EMBED_KINDSconstantThe ways embedCode writes a body into a page.
embedCodefunctionThe text that puts a body in a page, for one way of making the page.
embedCreditfunctionThe 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.
EmbedKindtypeOne of the ways in EMBED_KINDS.
EmbedOptionstypeWhat the reader chose: the body, how it is drawn, and whether it is a portrait or the sky at a date.
EmbedSettingstypeWhere the embed code points: the package's version on jsDelivr, and the published demo, where embed.html is.
encodeScenefunctionThe 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.
FeaturetypeA 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.
heliocentricfunctionA 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).
heliocentricModelfunctionThe 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).
HostIdtypeA body a moon can go round: a planet, Pluto or another dwarf planet.
JOURNEY_STOPSconstantEvery body, in the same order as BODY_IDS: the Sun, the planets, the dwarf planets, then the moons.
journeyStopfunctionOne body's row.
JourneyStoptypeOne body, with what a trip needs.
layoutPortraitfunctionWhere every body is and how big, and the camera that holds them.
LineOptionstypeOptions for lineSvg: the size, a pose (tilt, pitch, phase, spin, a time or a pose), moons, range, fill, the language and the colours.
lineSvgfunctionA 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.
LooktypeHow 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).
meanSunAufunctionMean 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.
mixfunctionMix two #rrggbb colours: t is how much of b (0 to 1).
moonGeocentricfunctionThe 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.
MoonIdtypeThe name of a moon the package draws, such as moon, io or titan.
MoonPlacetypeOne 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_OFconstantThe moons the package draws, by planet or dwarf planet.
orbitPathfunctionThe 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.
PlacedItemtypeA 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_IDSconstantThe planets and the dwarf planet Pluto, nearest the Sun first.
PlanetIdtypeThe name of a planet or of Pluto: mercury to pluto.
portraitfunctionA pose from a tilt, a pitch, a phase and a spin: the body as a portrait, with the Sun a little above the left.
PortraittypeA portrait scene: the bodies, back to front, and how they are arranged, sized, lit and drawn.
PORTRAIT_PRESETSconstantReady-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.
portraitCodefunctionThe text that puts a portrait scene in a page, for each way a page is made, as embedCode does for a single body.
PortraitEmbedtypeA 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.
PortraitItemtypeOne body in the scene: which body, where it is and how big, how it is turned and how fast it turns by itself.
PortraitLayouttypeWhat 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).
PortraitOptionstypeOptions for a pose when no date is given.
PortraitPresettypeA ready-made scene with its name in English and Japanese.
PosetypeThe 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.
RingBandtypeOne 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).
ringReachfunctionThe ring system's outer edge in body radii, or 1 for a body with no rings.
ringStripfunctionThe 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.
RingStriptypeThe strip of a body's rings: RGBA bytes width pixels across, and the inner and outer radii in body radii.
stopPlaceAufunctionWhere a body is in the Sun's frame at an instant, in astronomical units.
systemfunctionA 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).
SystemtypeA planet's own pose and its moons as the Earth sees them at a time, nearest first.