@mui/x-charts
Version:
The community edition of the charts components (MUI X).
25 lines (24 loc) • 810 B
TypeScript
import { AxisInteractionData, ItemInteractionData } from '../context/InteractionProvider';
import { ChartSeriesType } from '../models/seriesType/config';
export declare function generateVirtualElement(mousePosition: {
x: number;
y: number;
} | null): {
getBoundingClientRect: () => {
width: number;
height: number;
x: number;
y: number;
top: number;
right: number;
bottom: number;
left: number;
toJSON: () => string;
};
};
export declare function useMouseTracker(): {
x: number;
y: number;
} | null;
export type TriggerOptions = 'item' | 'axis' | 'none';
export declare function getTooltipHasData(trigger: TriggerOptions, displayedData: null | AxisInteractionData | ItemInteractionData<ChartSeriesType>): boolean;