Skip to content

Interface: D3PToolLike ​

Defined in: core/tools/toolbox.ts:6

Contract of anything that can live in a toolbox.

Methods ​

addToChart() ​

ts
addToChart(chart): void;

Defined in: core/tools/toolbox.ts:10

Attaches the tool to a chart.

Parameters ​

chart ​

D3PChart

Returns ​

void


destroy() ​

ts
destroy(): void;

Defined in: core/tools/toolbox.ts:14

Destroys the tool.

Returns ​

void


removeFromChart() ​

ts
removeFromChart(chart): void;

Defined in: core/tools/toolbox.ts:12

Detaches the tool from a chart.

Parameters ​

chart ​

D3PChart

Returns ​

void

Properties ​

name ​

ts
readonly name: string;

Defined in: core/tools/toolbox.ts:8

The name of the tool, unique in a toolbox (pan, wheel-zoom, reset...).