@mui/x-charts
Version:
The community edition of MUI X Charts components.
18 lines • 1.22 kB
TypeScript
import * as React from 'react';
import { type SeriesItemIdentifierWithData } from "../models/index.js";
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 { SeriesItemIdentifier } 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: (data: SeriesItemIdentifierWithData, skip?: boolean) => {
onPointerEnter?: () => void;
onPointerLeave?: () => void;
onPointerDown?: (event: React.PointerEvent) => void;
};
export declare function getInteractionItemProps(instance: ChartInstance<[UseChartInteractionSignature, UseChartHighlightSignature, UseChartTooltipSignature]>, item: SeriesItemIdentifier<ChartSeriesType>): {
onPointerEnter?: () => void;
onPointerLeave?: () => void;
onPointerDown?: (event: React.PointerEvent) => void;
};