Home > @visualization-tools/core > PlotInteractionConnector
Provides a reasonably generic attach point for behaviors on events. A default state machine will be supplied which provides both mouse and touch events for: click, double click, pinch and mouse zooming, dragging and entity hover.
Signature:
export declare class PlotInteractionConnector<TPlotRange extends IPlotRange> implements IPlotInteractionConnector<TPlotRange>
Implements: IPlotInteractionConnector<TPlotRange>
The default state machine can be extended by providing supplying a custom initial state, pointing to the extension.
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(stateChangeCallbacks, options, createEventHandler) | Constructs a new instance of the PlotInteractionConnector class |
| Method | Modifiers | Description |
|---|---|---|
| register(plot, chartEventService, getTargetProviders, getInitialState) | ||
| unregister() | ||
| update(canvasDims, startTime) |