Tooltips are notes that hover by entities when they are moused over. They serve as an excellent way to show additional data about a particular entity that would otherwise overwhelm the display if continuously shown.
User's don't instantiate this class directly. Instead users should call:
thinkmap.display.Display.tooltips()
display.tooltips(function(e) {
if (e.isType('movie')) {
return ''+e.data.title+'
'+e.data.year+' ('+e.data.rating+')';
}
});
Removes and disposes this Tooltip. This is not meant to be called directly by the user as it is called by the display when appropriate.
Sets or gets the easing function used for animating the transitions of this Tooltip.
The default value is a linear easing function which animates at constant speed. See the package thinkmap.easing for more details.
the easing function if no arguments are passed in, else the easing function is set and this Tooltip is returned
Sets or gets the fadeInDuration of this Tooltip. This duration is the amount of time this Tooltip will take to fade in to the screen, making it fully visible.
The default value is 1000 milliseconds.
the number in milliseconds for this Tooltip to finish its fade in animation
the fade in duration if no arguments are passed in, else the fadeInDuration is set and this Tooltip is returned
Sets or gets the fadeOutDuration of this Tooltip. This duration is the amount of time this Tooltip will take to fade off the screen, making it no longer visible.
The default value is 750 milliseconds.
the number in milliseconds for this Tooltip to finish its fade out animation
the fadeOutDuration if no arguments are passed in, else the fadeOutDuration is set and this Tooltip is returned
Sets or gets the hideDelay of this Tooltip. This delay is the amount of time to delay before hiding this Tooltip once it is no longer required on the screen. This only applies when this Tooltip is on the screen.
The default value is 750 milliseconds.
the delay in milliseconds for when hiding this Tooltip,
the number if no arguments are passed in, else the hideDelay is set and this Tooltip is returned
Sets or gets the moveDelay of this Tooltip. The moveDelay is the amount of time to delay before this Tooltip will move to the next entity requiring this Tooltip. This only applies when this Tooltip is on the screen.
The default value is 200 milliseconds.
the delay for when moving this Tooltip to the next entity requiring this Tooltip.
the number if no arguments are passed in, else the delay is set and this Tooltip is returned
Sets or gets the moveDuration of this Tooltip. This duration is the amount of time this Tooltip will take to move from its current location to the next entity that requires this Tooltip.
The default value is 1000 milliseconds.
the number in milliseconds for this Tooltip to finish its movement from its current location to its next position
the moveDuration if no arguments are passed in, else the moveDuration is set and this Tooltip is returned
Sets the horizontal side which tooltips prefer when they are shown. The default is "right", except on touch screen devices, in which case it is "left".
either "left" or "right"
the preferX value if no arguments are passed in, else the preferX is set and this Tooltip is returned
Sets the vertical side which tooltips prefer when they are shown. The default is "bottom", except on touch screen devices, in which case it is "top".
either "top" or "bottom"
the preferY value if no arguments are passed in, else the preferY is set and this Tooltip is returned
Sets or gets the delay on which this Tooltip will be shown.
The default value is 2000 milliseconds.
the delay for when to show this Tooltip
the number if no arguments are passed in, else the delay is set and this Tooltip is returned