UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

7 lines 774 B
import type { HighlightItemIdentifierWithType } from "../../../../models/seriesType/index.js"; import type { ComposableChartSeriesType } from "../../../../models/seriesType/composition.js"; import type { ChartSeriesType, HighlightScope } from "../../../../models/seriesType/config.js"; /** * The isHighlighted logic for main charts (those that are identified by an id and a dataIndex) */ export declare function createIsHighlighted<SeriesType extends Exclude<ChartSeriesType, 'sankey' | 'heatmap'>>(highlightScope: HighlightScope<SeriesType> | null | undefined, highlightedItem: HighlightItemIdentifierWithType<SeriesType> | null): <TestedSeriesType extends ComposableChartSeriesType<SeriesType>>(item: HighlightItemIdentifierWithType<TestedSeriesType> | null) => boolean;