Skip to content

Tooltip

Defined in: map/tooltip.ts:4

A single shared, absolutely-positioned, pointer-events-none tooltip div in the host. Created lazily on first show; default inline look unless a className is given (then styling is entirely the caller’s). Always carries d3gl-tooltip.

new Tooltip(host, className?): Tooltip

Defined in: map/tooltip.ts:12

HTMLElement

string

Tooltip

destroy(): void

Defined in: map/tooltip.ts:64

void


hide(): void

Defined in: map/tooltip.ts:61

void


move(x, y): void

Defined in: map/tooltip.ts:50

Position near host-relative (x, y) with a 12px offset, clamped into the host. Reads host.clientWidth/clientHeight so the clamp tracks the CSS size correctly under responsive layouts where the host may differ from the engine’s logical size.

number

number

void


show(content): void

Defined in: map/tooltip.ts:35

string | HTMLElement

void