Skip to content

@feds01/graphika


@feds01/graphika / tooltip/manager

tooltip/manager

Classes

default

Defined in: tooltip/manager.ts:93

TooltipManager handles interactive tooltip display on the graph.

It listens to mouse events on the canvas, computes interpolated values at the cursor position, and renders the tooltip using the configured renderer.

Constructors

Constructor
ts
new default(graph, options): default;

Defined in: tooltip/manager.ts:109

Parameters
ParameterType
graphdefault
optionsTooltipOptions
Returns

default

Methods

destroy()
ts
destroy(): void;

Defined in: tooltip/manager.ts:381

Cleanup resources.

Returns

void

draw()
ts
draw(): void;

Defined in: tooltip/manager.ts:355

Draw the tooltip. Called from BasicGraph.draw().

Returns

void

getState()
ts
getState(): Readonly<TooltipState>;

Defined in: tooltip/manager.ts:367

Get the current tooltip state.

Returns

Readonly<TooltipState>

isActive()
ts
isActive(): boolean;

Defined in: tooltip/manager.ts:374

Check if the tooltip is currently active.

Returns

boolean

Released under the ISC License.