UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

17 lines 1.24 kB
import * as React from 'react'; import type { UseChartHighlightSignature } from "../internals/plugins/featurePlugins/useChartHighlight/index.mjs"; import type { UseChartInteractionSignature } from "../internals/plugins/featurePlugins/useChartInteraction/index.mjs"; import type { ChartSeriesType } from "../models/seriesType/config.mjs"; import type { SeriesItemIdentifierWithType } from "../models/seriesType/index.mjs"; import type { ChartInstance } from "../internals/plugins/models/index.mjs"; import type { UseChartTooltipSignature } from "../internals/plugins/featurePlugins/useChartTooltip/index.mjs"; 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; };