@mui/x-charts
Version:
The community edition of the charts components (MUI X).
9 lines (8 loc) • 631 B
TypeScript
import { HighlightScope } from '../context/HighlightProvider';
import { SeriesItemIdentifier } from '../models';
export declare const useInteractionItemProps: (scope?: Partial<HighlightScope>) => (data: SeriesItemIdentifier) => {
onMouseEnter: () => void;
onMouseLeave: () => void;
};
export declare const getIsHighlighted: (selectedItem: SeriesItemIdentifier | null, currentItem: SeriesItemIdentifier, highlightScope?: Partial<HighlightScope>) => boolean;
export declare const getIsFaded: (selectedItem: SeriesItemIdentifier | null, currentItem: SeriesItemIdentifier, highlightScope?: Partial<HighlightScope>) => boolean;