-
Notifications
You must be signed in to change notification settings - Fork 19
The speedometer currently has a very simple API, composed of few functions.
Description: constructor
Purpose: create a new speedometer instance
Parameters:
- String element: the DOM id of the speedometer container
- Object options: an hash of options for configuration, as documented in doc/configuration.textile
Returns: Object – a new speedometer instance
Description: main drawing function
Purpose: draw all the gauge components – background, meter, gloss, display, hand
Parameters: none
Returns: nothing
Description: update the speedometer instance to a new value, clipping to the configured maximum and minimum
Purpose: set the current value, move the hand, update the display
Parameters:
- Integer value: the new value to set
Returns: Integer – the value set
Description: getter
Parameters: none
Returns: Integer – the current value of the speedometer instance
Description: getter
Parameters: none
Returns: Integer – the minimum value of the speedometer instance
Description: getter
Parameters: none
Returns: Integer – the maximum value of the speedometer instance