Skip to content

@feds01/graphika


@feds01/graphika / tooltip/manager

tooltip/manager

Classes

default

Defined in: tooltip/manager.ts:99

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:115

Parameters
ParameterType
graphdefault
optionsTooltipOptions
Returns

default

Methods

destroy()
ts
destroy(): void;

Defined in: tooltip/manager.ts:399

Cleanup resources.

Returns

void

draw()
ts
draw(): void;

Defined in: tooltip/manager.ts:373

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

Returns

void

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

Defined in: tooltip/manager.ts:385

Get the current tooltip state.

Returns

Readonly<TooltipState>

isActive()
ts
isActive(): boolean;

Defined in: tooltip/manager.ts:392

Check if the tooltip is currently active.

Returns

boolean

Released under the ISC License.