Namespace: Ui

Ui

User interface.
Source:

Namespaces

CalibW
CommW
ConfigW
Controller
NavW

Members

(static) BleInstance

The single Bluetooth object used in the Hathor webapp.
Source:

(static) CalibInstance

The accepted reference frame Calibration object.
Source:

(static) db :Object

User interface parameters and data bindings.
Type:
  • Object
Properties:
Name Type Description
colorMenuSelected Object
colorMenuUnselected Object
startingLangName Object
stepSizeInputDatalistParams Object
lineSpeedInputDatalistParams Object
lineOnInputDatalistParams Object
circleSpeedInputDatalistParams Object
circleOnInputDatalistParams Object
circleApertureInputDatalistParams Object
objectsLabels Object
tracksLabels Object
objectCalibF Object
objectNavF Object
trackNavF Object
objectsTypeOptions Object
calibTypeOptions Object
tracksTypeOptions Object
pointerStyleOptions Object
trackStyleOptions Object
filterComboMinLength Object
Source:

(static) el :Object

User interface doom elements.
Type:
  • Object
Properties:
Name Type Description
controllerSVGcontainer Object
stepSizeR Object
stepSizeRList Object
stepSizeT Object
lineSpeedR Object
lineSpeedRList Object
lineSpeedT Object
lineOnR Object
lineOnRList Object
lineOnT Object
lineAngR Object
lineAngT Object
circleSpeedR Object
circleSpeedRList Object
circleSpeedT Object
circleOnR Object
circleOnRList Object
circleOnT Object
circleApR Object
circleApRList Object
circleApT Object
circleAngR Object
circleAngT Object
commStatus Object
calibLog Object
calibInfo Object
raH Object
raM Object
raS Object
raF Object
decD Object
decM Object
decS Object
decF Object
fixI Object
mobI Object
objDate Object
objTime Object
trackDate Object
trackTime Object
timeStepY Object
timeStepD Object
timeStepM Object
sideralOffset Object
objectPointerStyle Object
trackPointerStyle Object
coordsPointerStyle Object
calibObjectsTypeCombo Object
calibListCombo Object
navObjectsTypeCombo Object
navTracksTypeCombo Object
calibObjectsCombo Object
angFixStretch Object
angMobStretch Object
fixStretchOptim Object
mobStretchOptim Object
laserTiltOptim Object
laserTiltAng Object
mobTiltOptim Object
mobTiltAng Object
useParamsCalib Object
navObjectsCombo Object
navTracksCombo Object
trackAtDatetime Object
speechLanguage Object
speechRate Object
speechPitch Object
speakStarName Object
speakBayer Object
speakConstellation Object
speakHipparcos Object
controllerWidth Object
controllerWidthValue Object
unsafeModeWarning Object
Source:

(static) itemsData

Celestial objects and sets general data.
Source:

(static) itemsElements

ComboHTML elements and their bindings associated with Celestial objects in the Navigation and Calibration windows, and Tracks in the NAvigation Window.
Source:

(static) itemsNames

Celestial objects and sets names.
Source:

(static) trackCoords

Coordinates and data for a given sky track (e.g. constelation lines, bounds, asterisms, ecliptic, etc.).
Source:

Methods

(static) appTime()

Actual time in a readble format for the log text fields.
Source:
Returns:
time in the format: hours minutes seconds.

(static) createComboOptions(comboElement, options)

Create the options for a comboHTML element.
Parameters:
Name Type Description
comboElement Object aHTML select element.
options Array a list of options to be included in the comboElement.
Source:

(static) equatorialFromObjectData(value, date)

Equatorial coordinates of a celestial object from a combo list dom element.
Parameters:
Name Type Description
value Object an item value from the combo list.
date Date chosen data when the coordinates will be computed (default = now).
Source:
Returns:
a Basic.Equatorial object with the equatorial coordinates of the celestial object.

(static) filterCombo(filterElement, itemElement, minLength)

Get the text typed in a filterHTML element and matches all celestial objects that contain the typed text corresponding to the celestial object type selected in the type comboHTML element. The filtered objects are showed in a celestial object comboHTML element.
Parameters:
Name Type Description
filterElement Object a db.itemsElement.filters item.
itemElement Object a db.itemsElement item.
minLength number db.filterComboMinLength.
Source:

(static) getCoordinates(itemType, itemId)

Coordinates of a specific celestial object from the data files.
Parameters:
Name Type Description
itemType string a key of itemsData object.
itemId string the unique id for a celestial object in itemsData[itemType].features object.
Source:
Returns:
the celestial object coordinates or false if id not found.

(static) getRadioValue(elementName)

Value from a radioHTML element group.
Parameters:
Name Type Description
elementName string Radio element group name.
Source:
Returns:
the value of the checked radio option in the Radio element.

(static) loadItemsDataNames()

Method for reading the celestial objects data in json files and Solar System object names and ids.
Source:

(static) localDateString(date)

Date value for the dom element.
Parameters:
Name Type Description
date Date
Source:
Returns:
local date string in the format: year-month-day.

(static) localTimeString(date)

Date value for the dom element.
Parameters:
Name Type Description
date Date
Source:
Returns:
local date string in the format: hour:minute.

(static) ra24to180(ra)

Convertion from (0 to 24hs units) to (-180° to 180° units)
Parameters:
Name Type Description
ra Number in 0 to 24hs units.
Source:
Returns:
ra in -180° to 180° units.

(static) ra180to24(ra)

Convertion from (-180° to 180° units) to (0 to 24hs units).
Parameters:
Name Type Description
ra Number in -180° to 180° units.
Source:
Returns:
ra in 0 to 24hs units.

(static) setFiltersEvents(item, minLength)

Set the events keyup and click to the filterHTML element used to select a celestial object or configuration.
Parameters:
Name Type Description
item Object a db.itemsElement item
minLength number db.filterComboMinLenght.
Source:

(static) setInputRangeDatalist(params)

Sets the properties of an input rangeHTML element.
Parameters:
Name Type Description
params Object a db dataList object.
Source:

(static) textSelected(element)

Text from a selectHTML element.
Parameters:
Name Type Description
element Object Select element.
Source:
Returns:
the text of the selected option in the Select element.

(static) valueSelected(element)

Value from a selectHTML element.
Parameters:
Name Type Description
element Object Select element.
Source:
Returns:
the value of the selected option in the Select element.

(static) window.changeNav(id)

Open or close the selected tab in the user interface.
Parameters:
Name Type Description
id string Id of the tab dom element
Source:

(static) window.changeObjectsType(itemElement)

Method called when Object Type comboHTML element is changed.
Parameters:
Name Type Description
itemElement Object A comboHTML element for the celestial objects and tracks types.
Source:

(static) window.setWindow(windowId, menuElem)

Sets and shows the actual window choosen by the user in the app menu.
Parameters:
Name Type Description
windowId string Id of the chosen app window dom element.
menuElem object Dom element representing the menu chosen.
Source: