visualization-tools

Home > @visualization-tools/core > PlotInteractionConnector

PlotInteractionConnector class

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>

Remarks

The default state machine can be extended by providing supplying a custom initial state, pointing to the extension.

Constructors

Constructor Modifiers Description
(constructor)(stateChangeCallbacks, options, createEventHandler)   Constructs a new instance of the PlotInteractionConnector class

Methods

Method Modifiers Description
register(plot, chartEventService, getTargetProviders, getInitialState)    
unregister()    
update(canvasDims, startTime)