Properties

DIV

static

Element

The HTML container. Set once by Blockly.Tooltip.createDom.

HOVER_MS

static

Delay before tooltip appears.

LIMIT

static

Maximum width (in characters) of a tooltip.

MARGINS

static

Horizontal padding between tooltip and screen edge.

OFFSET_X

static

Horizontal offset between mouse cursor and tooltip.

OFFSET_Y

static

Vertical offset between mouse cursor and tooltip.

RADIUS_OK

static

Radius mouse can move before killing tooltip.

visible

static

Is a tooltip currently showing?

Methods

bindMouseEvents

static

bindMouseEvents(element)

Binds the required mouse events onto an SVG element.

Parameter

element

Element

SVG element onto which tooltip is to be bound.

Value must not be null.

block

static

block()

Hide any in-progress tooltips and block showing new tooltips until the next call to unblock().

createDom

static

createDom()

Create the tooltip div and inject it onto the page.

hide

static

hide()

Hide the tooltip.

unblock

static

unblock()

Unblock tooltips: allow them to be scheduled and shown according to their own logic.