visualization-tools

Home > @visualization-tools/core > OnPlotRequiresUpdate > registerListener

OnPlotRequiresUpdate.registerListener() method

Signature:

static registerListener(eventService: IEventService, onEvent: (plot: IReadonlyPlot<IPlotRange, unknown>, updateFlag: EEntityUpdateFlag) => void): () => void;

Parameters

Parameter Type Description
eventService IEventService  
onEvent (plot: IReadonlyPlot<IPlotRange, unknown>, updateFlag: EEntityUpdateFlag) => void  

Returns:

() => void