Ir al contenido

TooltipManager

Defined in: export/TooltipManager.ts:17

Shows HTML tooltips for parts when hovering over them. A part shows its tooltip when it has a non-empty tooltip text.

new TooltipManager(diagram, options?): TooltipManager

Defined in: export/TooltipManager.ts:25

Diagram

TooltipOptions = {}

TooltipManager

get isTooltipVisible(): boolean

Defined in: export/TooltipManager.ts:53

Check whether a tooltip is currently visible.

boolean

destroy(): void

Defined in: export/TooltipManager.ts:134

Destroy the tooltip manager.

void


getCurrentPart(): Part | null

Defined in: export/TooltipManager.ts:48

Get the part currently showing a tooltip, or null.

Part | null


getElement(): HTMLDivElement

Defined in: export/TooltipManager.ts:43

Get the tooltip DOM element.

HTMLDivElement


handleMouseLeave(): void

Defined in: export/TooltipManager.ts:88

Called when the mouse leaves the canvas.

void


handleMouseMove(e): void

Defined in: export/TooltipManager.ts:61

Called on mouse move: decides whether to show a tooltip for the part under the cursor.

MouseEvent

void


hide(): void

Defined in: export/TooltipManager.ts:118

Hide the tooltip.

void