ag-charts-community
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
26 lines (25 loc) • 1.04 kB
TypeScript
import { type DynamicContext } from 'ag-charts-core';
import type { HighlightNodeDatum } from '../../core/eventsHub';
import type { ChartRegistry } from '../../module/moduleContext';
/**
* Manages the actively highlighted series/datum for a chart. Tracks the requested highlights from
* distinct dependents and handles conflicting highlight requests.
*/
export declare class HighlightManager {
private readonly ctx;
private readonly highlightStates;
private readonly pendingUnhighlights;
unhighlightDelay: number;
private static readonly HIGHLIGHT_CHANGE_EVENT;
constructor(ctx: DynamicContext<ChartRegistry>);
private highlightInViewport;
updateHighlight(callerId: string, highlightedDatum?: HighlightNodeDatum, delayed?: boolean, inViewport?: boolean): void;
private maybeEmitChange;
private applyPendingUnhighlight;
getActiveHighlight(): HighlightNodeDatum | undefined;
destroy(): void;
private isEqual;
private idsMatch;
private pointsMatch;
private pointsAreEqual;
}