A cached reference to the global tooltip element
A reference to the HTML element which is currently tool-tipped, if any.
Is the tooltip currently active?
A reference to a window timeout function when an element is activated.
A reference to a window timeout function when an element is deactivated.
An element which is pending tooltip activation if hover is sustained
Maintain state about active locked tooltips in order to perform appropriate automatic dismissal.
An amount of margin which is used to offset tooltips from their anchored element.
The number of milliseconds delay which activates a tooltip on a "long hover".
The directions in which a tooltip can extend, relative to its tool-tipped element.
The number of pixels buffer around a locked tooltip zone before they should be dismissed.
Activate interactivity by listening for hover events on HTML elements which have a data-tooltip defined.
Activate the tooltip for a hovered HTML element which defines a tooltip localization key.
The HTML element being hovered.
Additional options which can override tooltip behavior.
Deactivate the tooltip from a previously hovered HTML element.
Clear any pending activation workflow.
Lock the current tooltip.
Dismiss a given locked tooltip.
The locked tooltip to dismiss.
Dismiss the set of active locked tooltips.
Create a locked tooltip at the given position.
A position object with coordinates for where the tooltip should be placed
Explicit top position for the tooltip
Explicit right position for the tooltip
Explicit bottom position for the tooltip
Explicit left position for the tooltip
Explicit tooltip text or HTML to display.
Additional options which can override tooltip behavior.
Handle a request to lock the current tooltip.
The click event.
Handle dismissing a locked tooltip.
The click event.
If an explicit tooltip expansion direction was not specified, figure out a valid direction based on the bounds of the target element and the screen.
Set tooltip position relative to an HTML element using an explicitly provided data-tooltip-direction.
The tooltip expansion direction specified by the element or a parent element.
Apply inline styling rules to the tooltip for positioning and text alignment.
Handle hover events which activate a tooltipped element.
The initiating pointerenter event
Handle hover events which deactivate a tooltipped element.
The initiating pointerleave event
Start the deactivation process.
Clear any existing deactivation workflow.
Compute the unified bounding box from the set of locked tooltip elements.
Check whether the user is moving away from the locked tooltips and dismiss them if so.
The mouse move event.
A singleton Tooltip Manager class responsible for rendering and positioning a dynamic tooltip element which is accessible as
game.tooltip
.{@link Game.tooltip}
API Usage
HTML Usage