Home > @visualization-tools/core > emitToPlots
Emits the event on all connected plots.
Signature:
export declare function emitToPlots<TKey extends string, TArgs extends unknown[]>(chart: ChartComponent<TUnknownRenderer>, event: IEventCategoryCtor<TKey, TArgs>, ...args: TArgs): void;
| Parameter | Type | Description |
|---|---|---|
| chart | ChartComponent<TUnknownRenderer> | |
| event | IEventCategoryCtor<TKey, TArgs> | |
| args | TArgs |
Returns:
void
Has a higher overhead due to arg spreading so shouldn’t be used in performance critical sections.