@mui/x-charts
Version:
The community edition of MUI X Charts components.
17 lines • 1.24 kB
TypeScript
import * as React from 'react';
import type { UseChartHighlightSignature } from "../internals/plugins/featurePlugins/useChartHighlight/index.js";
import type { UseChartInteractionSignature } from "../internals/plugins/featurePlugins/useChartInteraction/index.js";
import type { ChartSeriesType } from "../models/seriesType/config.js";
import type { SeriesItemIdentifierWithType } from "../models/seriesType/index.js";
import type { ChartInstance } from "../internals/plugins/models/index.js";
import type { UseChartTooltipSignature } from "../internals/plugins/featurePlugins/useChartTooltip/index.js";
export declare const useInteractionItemProps: <SeriesType extends ChartSeriesType>(data: SeriesItemIdentifierWithType<SeriesType>) => {
onPointerEnter?: () => void;
onPointerLeave?: () => void;
onPointerDown?: (event: React.PointerEvent) => void;
};
export declare function getInteractionItemProps<SeriesType extends ChartSeriesType>(instance: ChartInstance<[UseChartInteractionSignature, UseChartHighlightSignature<SeriesType>, UseChartTooltipSignature]>, item: SeriesItemIdentifierWithType<SeriesType>): {
onPointerEnter?: () => void;
onPointerLeave?: () => void;
onPointerDown?: (event: React.PointerEvent) => void;
};