This function (if defined) is called whenever the diagram orientation changes due to dragging.
This function adds a sun icon ("Sun Icon for Diagram" in the library) on the celestial equator at the angle specified by angle
. The angle is measured counter-clockwise from the meridian in degrees.
This function adds a moon icon ("Moon Icon for Diagram" in the library) on the celestial equator at the angle specified by angle
. The angle is measured counter-clockwise from the meridian in degrees.
The function getSunLocations
returns an array of angles where sun icons have been added. The getMoonLocations
function does the same for the moon icons.
size
is the diameter of the celestial sphere in pixels. The default is 150 px.
lat
is in degrees. The default is 41°.
az
and alt
(both in degrees) determine the orientation of the celestial sphere. The defaults are 200° and 30°.
This function returns an object with az
and alt
properties, which define the orientation of the diagram.
When dragging the sphere's perspective (viewer direction) changes as the mouse moves.
This function removes all the sun and moon icons that have been attached to the celestial sphere.