@mui/x-charts 9.0.0-alpha.2 → 9.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/AnimatedBarElement.d.mts +1 -1
- package/BarChart/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarChart.js +5 -2
- package/BarChart/BarChart.mjs +5 -2
- package/BarChart/BarElement.d.mts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarElement.js +8 -7
- package/BarChart/BarElement.mjs +8 -7
- package/BarChart/BarLabel/BarLabel.js +4 -0
- package/BarChart/BarLabel/BarLabel.mjs +4 -0
- package/BarChart/BarLabel/BarLabel.types.d.mts +2 -2
- package/BarChart/BarLabel/BarLabel.types.d.ts +2 -2
- package/BarChart/BarLabel/BarLabelItem.js +8 -7
- package/BarChart/BarLabel/BarLabelItem.mjs +8 -7
- package/BarChart/BarLabel/barLabelClasses.d.mts +15 -0
- package/BarChart/BarLabel/barLabelClasses.d.ts +15 -0
- package/BarChart/BarLabel/barLabelClasses.js +19 -0
- package/BarChart/BarLabel/barLabelClasses.mjs +20 -0
- package/BarChart/BarPlot.js +1 -2
- package/BarChart/BarPlot.mjs +2 -3
- package/BarChart/barClasses.d.mts +21 -1
- package/BarChart/barClasses.d.ts +21 -1
- package/BarChart/barClasses.js +9 -3
- package/BarChart/barClasses.mjs +9 -3
- package/BarChart/barElementClasses.d.mts +17 -10
- package/BarChart/barElementClasses.d.ts +17 -10
- package/BarChart/barElementClasses.js +19 -0
- package/BarChart/barElementClasses.mjs +20 -0
- package/BarChart/index.d.mts +1 -1
- package/BarChart/index.d.ts +1 -1
- package/BarChart/index.js +1 -8
- package/BarChart/index.mjs +1 -1
- package/CHANGELOG.md +123 -1
- package/ChartContainer/ChartContainer.d.mts +1 -1
- package/ChartContainer/ChartContainer.d.ts +1 -1
- package/ChartContainer/useChartContainerProps.d.mts +2 -2
- package/ChartContainer/useChartContainerProps.d.ts +2 -2
- package/ChartDataProvider/ChartDataProvider.d.mts +1 -1
- package/ChartDataProvider/ChartDataProvider.d.ts +1 -1
- package/ChartDataProvider/useChartDataProviderProps.d.mts +2 -2
- package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/ChartsContainer/ChartsContainer.d.mts +1 -1
- package/ChartsContainer/ChartsContainer.d.ts +1 -1
- package/ChartsContainer/ChartsContainer.js +5 -2
- package/ChartsContainer/ChartsContainer.mjs +5 -2
- package/ChartsContainer/useChartsContainerProps.d.mts +3 -3
- package/ChartsContainer/useChartsContainerProps.d.ts +3 -3
- package/ChartsContainer/useChartsContainerProps.js +3 -3
- package/ChartsContainer/useChartsContainerProps.mjs +3 -3
- package/ChartsDataProvider/ChartsDataProvider.d.mts +2 -2
- package/ChartsDataProvider/ChartsDataProvider.d.ts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +2 -2
- package/ChartsLabel/ChartsLabelMark.d.mts +8 -1
- package/ChartsLabel/ChartsLabelMark.d.ts +8 -1
- package/ChartsLabel/ChartsLabelMark.js +29 -3
- package/ChartsLabel/ChartsLabelMark.mjs +29 -3
- package/ChartsLabel/labelMarkClasses.d.mts +2 -0
- package/ChartsLabel/labelMarkClasses.d.ts +2 -0
- package/ChartsLabel/labelMarkClasses.js +1 -1
- package/ChartsLabel/labelMarkClasses.mjs +1 -1
- package/ChartsLegend/ChartsLegend.js +4 -2
- package/ChartsLegend/ChartsLegend.mjs +4 -2
- package/ChartsLegend/legendContext.types.d.mts +1 -0
- package/ChartsLegend/legendContext.types.d.ts +1 -0
- package/ChartsTooltip/ChartsAxisTooltipContent.js +3 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +3 -1
- package/ChartsTooltip/ChartsItemTooltipContent.js +6 -2
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +6 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +7 -5
- package/ChartsTooltip/ChartsTooltipContainer.mjs +6 -4
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/useAxesTooltip.d.mts +1 -0
- package/ChartsTooltip/useAxesTooltip.d.ts +1 -0
- package/ChartsTooltip/useAxesTooltip.js +6 -4
- package/ChartsTooltip/useAxesTooltip.mjs +6 -4
- package/ChartsTooltip/useItemTooltip.d.mts +5 -3
- package/ChartsTooltip/useItemTooltip.d.ts +5 -3
- package/ChartsXAxis/useAxisTicksProps.d.mts +286 -286
- package/ChartsXAxis/useAxisTicksProps.d.ts +286 -286
- package/ChartsYAxis/useAxisTicksProps.d.mts +286 -286
- package/ChartsYAxis/useAxisTicksProps.d.ts +286 -286
- package/LineChart/AreaElement.d.mts +12 -0
- package/LineChart/AreaElement.d.ts +12 -0
- package/LineChart/AreaElement.js +28 -9
- package/LineChart/AreaElement.mjs +30 -9
- package/LineChart/AreaPlot.js +10 -4
- package/LineChart/AreaPlot.mjs +11 -5
- package/LineChart/CircleMarkElement.js +9 -2
- package/LineChart/CircleMarkElement.mjs +10 -3
- package/LineChart/LineChart.js +5 -2
- package/LineChart/LineChart.mjs +5 -2
- package/LineChart/LineElement.d.mts +12 -0
- package/LineChart/LineElement.d.ts +12 -0
- package/LineChart/LineElement.js +28 -9
- package/LineChart/LineElement.mjs +30 -9
- package/LineChart/LineHighlightElement.d.mts +12 -0
- package/LineChart/LineHighlightElement.d.ts +12 -0
- package/LineChart/LineHighlightElement.js +22 -3
- package/LineChart/LineHighlightElement.mjs +24 -3
- package/LineChart/LinePlot.js +11 -5
- package/LineChart/LinePlot.mjs +12 -6
- package/LineChart/MarkElement.js +9 -2
- package/LineChart/MarkElement.mjs +10 -3
- package/LineChart/MarkPlot.js +19 -9
- package/LineChart/MarkPlot.mjs +20 -10
- package/LineChart/index.d.mts +3 -1
- package/LineChart/index.d.ts +3 -1
- package/LineChart/index.js +10 -2
- package/LineChart/index.mjs +2 -1
- package/LineChart/lineClasses.d.mts +34 -0
- package/LineChart/lineClasses.d.ts +34 -0
- package/LineChart/lineClasses.js +32 -0
- package/LineChart/lineClasses.mjs +23 -0
- package/LineChart/markElementClasses.d.mts +17 -8
- package/LineChart/markElementClasses.d.ts +17 -8
- package/LineChart/markElementClasses.js +19 -0
- package/LineChart/markElementClasses.mjs +20 -0
- package/LineChart/seriesConfig/legend.js +1 -0
- package/LineChart/seriesConfig/legend.mjs +1 -0
- package/LineChart/seriesConfig/seriesProcessor.js +1 -1
- package/LineChart/seriesConfig/seriesProcessor.mjs +1 -1
- package/LineChart/seriesConfig/tooltip.js +2 -1
- package/LineChart/seriesConfig/tooltip.mjs +2 -1
- package/PieChart/FocusedPieArc.js +8 -6
- package/PieChart/FocusedPieArc.mjs +8 -6
- package/PieChart/PieArc.d.mts +14 -11
- package/PieChart/PieArc.d.ts +14 -11
- package/PieChart/PieArc.js +22 -4
- package/PieChart/PieArc.mjs +24 -4
- package/PieChart/PieArcLabel.d.mts +16 -2
- package/PieChart/PieArcLabel.d.ts +16 -2
- package/PieChart/PieArcLabel.js +26 -5
- package/PieChart/PieArcLabel.mjs +28 -5
- package/PieChart/PieArcLabelPlot.js +6 -1
- package/PieChart/PieArcLabelPlot.mjs +6 -1
- package/PieChart/PieArcPlot.js +6 -1
- package/PieChart/PieArcPlot.mjs +6 -1
- package/PieChart/PieChart.js +5 -2
- package/PieChart/PieChart.mjs +5 -2
- package/PieChart/PiePlot.d.mts +1 -0
- package/PieChart/PiePlot.d.ts +1 -0
- package/PieChart/PiePlot.js +4 -1
- package/PieChart/PiePlot.mjs +4 -1
- package/PieChart/dataTransform/useTransformData.js +6 -8
- package/PieChart/dataTransform/useTransformData.mjs +6 -8
- package/PieChart/pieClasses.d.mts +22 -1
- package/PieChart/pieClasses.d.ts +22 -1
- package/PieChart/pieClasses.js +10 -3
- package/PieChart/pieClasses.mjs +10 -3
- package/RadarChart/RadarChart.js +5 -2
- package/RadarChart/RadarChart.mjs +5 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +3 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +3 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +7 -14
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +7 -14
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +7 -14
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +7 -14
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +4 -9
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -9
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +8 -16
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +8 -16
- package/RadarChart/seriesConfig/tooltip.js +13 -8
- package/RadarChart/seriesConfig/tooltip.mjs +13 -8
- package/RadarChart/useRadarChartProps.js +3 -3
- package/RadarChart/useRadarChartProps.mjs +3 -3
- package/ScatterChart/BatchScatter.d.mts +2 -1
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/BatchScatter.js +5 -3
- package/ScatterChart/BatchScatter.mjs +4 -3
- package/ScatterChart/FocusedScatterMark.d.mts +4 -1
- package/ScatterChart/FocusedScatterMark.d.ts +4 -1
- package/ScatterChart/FocusedScatterMark.js +12 -2
- package/ScatterChart/FocusedScatterMark.mjs +11 -1
- package/ScatterChart/Scatter.d.mts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/Scatter.js +11 -9
- package/ScatterChart/Scatter.mjs +11 -9
- package/ScatterChart/ScatterChart.js +5 -2
- package/ScatterChart/ScatterChart.mjs +5 -2
- package/ScatterChart/ScatterPlot.d.mts +2 -1
- package/ScatterChart/ScatterPlot.d.ts +2 -1
- package/ScatterChart/ScatterPlot.js +16 -2
- package/ScatterChart/ScatterPlot.mjs +16 -2
- package/ScatterChart/index.d.mts +2 -2
- package/ScatterChart/index.d.ts +2 -2
- package/ScatterChart/scatterClasses.d.mts +14 -2
- package/ScatterChart/scatterClasses.d.ts +14 -2
- package/ScatterChart/scatterClasses.js +9 -3
- package/ScatterChart/scatterClasses.mjs +9 -3
- package/SparkLineChart/SparkLineChart.js +5 -2
- package/SparkLineChart/SparkLineChart.mjs +5 -2
- package/context/ChartApi.d.mts +1 -1
- package/context/ChartApi.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.types.d.mts +2 -2
- package/context/ChartProvider/ChartProvider.types.d.ts +2 -2
- package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
- package/context/ChartsProvider/ChartsProvider.types.d.mts +3 -3
- package/context/ChartsProvider/ChartsProvider.types.d.ts +3 -3
- package/hooks/index.d.mts +2 -2
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +8 -8
- package/hooks/index.mjs +2 -2
- package/hooks/useInteractionItemProps.d.mts +1 -2
- package/hooks/useInteractionItemProps.d.ts +1 -2
- package/hooks/{useItemHighlighted.d.mts → useItemHighlightState.d.mts} +5 -13
- package/hooks/{useItemHighlighted.d.ts → useItemHighlightState.d.ts} +5 -13
- package/hooks/{useItemHighlighted.js → useItemHighlightState.js} +5 -10
- package/hooks/useItemHighlightState.mjs +17 -0
- package/hooks/useItemHighlightStateGetter.d.mts +9 -0
- package/hooks/useItemHighlightStateGetter.d.ts +9 -0
- package/hooks/useItemHighlightStateGetter.js +21 -0
- package/hooks/useItemHighlightStateGetter.mjs +16 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/commonNextFocusItem.d.mts +5 -5
- package/internals/commonNextFocusItem.d.ts +5 -5
- package/internals/createCommonKeyboardFocusHandler.d.mts +2 -2
- package/internals/createCommonKeyboardFocusHandler.d.ts +2 -2
- package/internals/identifierCleaner.d.mts +8 -4
- package/internals/identifierCleaner.d.ts +8 -4
- package/internals/identifierCleaner.js +5 -1
- package/internals/identifierCleaner.mjs +5 -1
- package/internals/identifierSerializer.d.mts +10 -2
- package/internals/identifierSerializer.d.ts +10 -2
- package/internals/identifierSerializer.js +8 -0
- package/internals/identifierSerializer.mjs +8 -0
- package/internals/plugins/allPlugins.d.mts +2 -2
- package/internals/plugins/allPlugins.d.ts +2 -2
- package/internals/plugins/corePlugins/corePlugins.d.mts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.mts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +28 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +28 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +21 -11
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +21 -11
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.mts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.mts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +0 -5
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.mjs +0 -4
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +27 -64
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +24 -60
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +8 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +8 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +6 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +6 -4
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.mts +10 -10
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.mts +16 -16
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.ts +16 -16
- package/internals/plugins/models/chart.d.mts +1 -1
- package/internals/plugins/models/chart.d.ts +1 -1
- package/models/seriesType/config.d.mts +18 -6
- package/models/seriesType/config.d.ts +18 -6
- package/models/seriesType/index.d.mts +8 -8
- package/models/seriesType/index.d.ts +8 -8
- package/models/seriesType/line.d.mts +2 -1
- package/models/seriesType/line.d.ts +2 -1
- package/models/seriesType/radar.d.mts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/package.json +3 -3
- package/themeAugmentation/components.d.mts +26 -1
- package/themeAugmentation/components.d.ts +26 -1
- package/themeAugmentation/overrides.d.mts +15 -1
- package/themeAugmentation/overrides.d.ts +15 -1
- package/hooks/useItemHighlighted.mjs +0 -22
- package/hooks/useItemHighlightedGetter.d.mts +0 -53
- package/hooks/useItemHighlightedGetter.d.ts +0 -53
- package/hooks/useItemHighlightedGetter.js +0 -26
- package/hooks/useItemHighlightedGetter.mjs +0 -21
|
@@ -12,7 +12,7 @@ const selectKeyboardNavigation = state => state.keyboardNavigation;
|
|
|
12
12
|
const selectorChartsItemIsFocused = exports.selectorChartsItemIsFocused = (0, _store.createSelector)(selectKeyboardNavigation, (keyboardNavigationState, item) => keyboardNavigationState?.isFocused === true && keyboardNavigationState?.item != null && (0, _fastObjectShallowCompare.fastObjectShallowCompare)(keyboardNavigationState.item, item));
|
|
13
13
|
const selectorChartsHasFocusedItem = exports.selectorChartsHasFocusedItem = (0, _store.createSelector)(selectKeyboardNavigation, keyboardNavigationState => keyboardNavigationState?.isFocused === true && keyboardNavigationState?.item != null);
|
|
14
14
|
const selectorChartsFocusedItem = exports.selectorChartsFocusedItem = (0, _store.createSelector)(selectKeyboardNavigation, keyboardNavigationState => keyboardNavigationState?.isFocused === true ? keyboardNavigationState?.item ?? null : null);
|
|
15
|
-
const selectorChartsIsKeyboardNavigationEnabled = exports.selectorChartsIsKeyboardNavigationEnabled = (0, _store.createSelector)(selectKeyboardNavigation, keyboardNavigationState => !!keyboardNavigationState?.
|
|
15
|
+
const selectorChartsIsKeyboardNavigationEnabled = exports.selectorChartsIsKeyboardNavigationEnabled = (0, _store.createSelector)(selectKeyboardNavigation, keyboardNavigationState => !!keyboardNavigationState?.enabled);
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Selectors to override highlight behavior.
|
|
@@ -6,7 +6,7 @@ const selectKeyboardNavigation = state => state.keyboardNavigation;
|
|
|
6
6
|
export const selectorChartsItemIsFocused = createSelector(selectKeyboardNavigation, (keyboardNavigationState, item) => keyboardNavigationState?.isFocused === true && keyboardNavigationState?.item != null && fastObjectShallowCompare(keyboardNavigationState.item, item));
|
|
7
7
|
export const selectorChartsHasFocusedItem = createSelector(selectKeyboardNavigation, keyboardNavigationState => keyboardNavigationState?.isFocused === true && keyboardNavigationState?.item != null);
|
|
8
8
|
export const selectorChartsFocusedItem = createSelector(selectKeyboardNavigation, keyboardNavigationState => keyboardNavigationState?.isFocused === true ? keyboardNavigationState?.item ?? null : null);
|
|
9
|
-
export const selectorChartsIsKeyboardNavigationEnabled = createSelector(selectKeyboardNavigation, keyboardNavigationState => !!keyboardNavigationState?.
|
|
9
|
+
export const selectorChartsIsKeyboardNavigationEnabled = createSelector(selectKeyboardNavigation, keyboardNavigationState => !!keyboardNavigationState?.enabled);
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Selectors to override highlight behavior.
|
|
@@ -9,11 +9,17 @@ export interface UseChartKeyboardNavigationState {
|
|
|
9
9
|
keyboardNavigation: {
|
|
10
10
|
item: null | FocusedItemIdentifier<ChartSeriesType>;
|
|
11
11
|
isFocused: boolean;
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Indicates whether keyboard navigation is enabled or not.
|
|
14
|
+
*/
|
|
15
|
+
enabled: boolean;
|
|
13
16
|
};
|
|
14
17
|
}
|
|
15
18
|
type UseChartKeyboardNavigationParameters = {
|
|
16
|
-
|
|
19
|
+
/**
|
|
20
|
+
* If `true`, disables keyboard navigation for the chart.
|
|
21
|
+
*/
|
|
22
|
+
disableKeyboardNavigation?: boolean;
|
|
17
23
|
};
|
|
18
24
|
export type UseChartKeyboardNavigationSignature = ChartPluginSignature<{
|
|
19
25
|
params: UseChartKeyboardNavigationParameters;
|
|
@@ -9,11 +9,17 @@ export interface UseChartKeyboardNavigationState {
|
|
|
9
9
|
keyboardNavigation: {
|
|
10
10
|
item: null | FocusedItemIdentifier<ChartSeriesType>;
|
|
11
11
|
isFocused: boolean;
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Indicates whether keyboard navigation is enabled or not.
|
|
14
|
+
*/
|
|
15
|
+
enabled: boolean;
|
|
13
16
|
};
|
|
14
17
|
}
|
|
15
18
|
type UseChartKeyboardNavigationParameters = {
|
|
16
|
-
|
|
19
|
+
/**
|
|
20
|
+
* If `true`, disables keyboard navigation for the chart.
|
|
21
|
+
*/
|
|
22
|
+
disableKeyboardNavigation?: boolean;
|
|
17
23
|
};
|
|
18
24
|
export type UseChartKeyboardNavigationSignature = ChartPluginSignature<{
|
|
19
25
|
params: UseChartKeyboardNavigationParameters;
|
|
@@ -11,16 +11,16 @@ export type ComputeResult<T extends ChartsAxisProps> = {
|
|
|
11
11
|
axis: DefaultizedAxisConfig<T>;
|
|
12
12
|
axisIds: string[];
|
|
13
13
|
};
|
|
14
|
-
type ComputeCommonParams<
|
|
14
|
+
type ComputeCommonParams<SeriesType extends ChartSeriesType = ChartSeriesType> = {
|
|
15
15
|
drawingArea: ChartDrawingArea;
|
|
16
|
-
formattedSeries: ProcessedSeries<
|
|
17
|
-
seriesConfig: ChartSeriesConfig<
|
|
16
|
+
formattedSeries: ProcessedSeries<SeriesType>;
|
|
17
|
+
seriesConfig: ChartSeriesConfig<SeriesType>;
|
|
18
18
|
};
|
|
19
|
-
export declare function computeAxisValue<
|
|
19
|
+
export declare function computeAxisValue<SeriesType extends ChartSeriesType>(options: ComputeCommonParams<SeriesType> & {
|
|
20
20
|
axis?: AxisConfig<'linear', any, ChartsRadiusAxisProps>[];
|
|
21
21
|
axisDirection: 'radius';
|
|
22
22
|
}): ComputeResult<ChartsRadiusAxisProps>;
|
|
23
|
-
export declare function computeAxisValue<
|
|
23
|
+
export declare function computeAxisValue<SeriesType extends ChartSeriesType>(options: ComputeCommonParams<SeriesType> & {
|
|
24
24
|
axis?: AxisConfig<ScaleName, any, ChartsRotationAxisProps>[];
|
|
25
25
|
axisDirection: 'rotation';
|
|
26
26
|
}): ComputeResult<ChartsRotationAxisProps>;
|
|
@@ -11,16 +11,16 @@ export type ComputeResult<T extends ChartsAxisProps> = {
|
|
|
11
11
|
axis: DefaultizedAxisConfig<T>;
|
|
12
12
|
axisIds: string[];
|
|
13
13
|
};
|
|
14
|
-
type ComputeCommonParams<
|
|
14
|
+
type ComputeCommonParams<SeriesType extends ChartSeriesType = ChartSeriesType> = {
|
|
15
15
|
drawingArea: ChartDrawingArea;
|
|
16
|
-
formattedSeries: ProcessedSeries<
|
|
17
|
-
seriesConfig: ChartSeriesConfig<
|
|
16
|
+
formattedSeries: ProcessedSeries<SeriesType>;
|
|
17
|
+
seriesConfig: ChartSeriesConfig<SeriesType>;
|
|
18
18
|
};
|
|
19
|
-
export declare function computeAxisValue<
|
|
19
|
+
export declare function computeAxisValue<SeriesType extends ChartSeriesType>(options: ComputeCommonParams<SeriesType> & {
|
|
20
20
|
axis?: AxisConfig<'linear', any, ChartsRadiusAxisProps>[];
|
|
21
21
|
axisDirection: 'radius';
|
|
22
22
|
}): ComputeResult<ChartsRadiusAxisProps>;
|
|
23
|
-
export declare function computeAxisValue<
|
|
23
|
+
export declare function computeAxisValue<SeriesType extends ChartSeriesType>(options: ComputeCommonParams<SeriesType> & {
|
|
24
24
|
axis?: AxisConfig<ScaleName, any, ChartsRotationAxisProps>[];
|
|
25
25
|
axisDirection: 'rotation';
|
|
26
26
|
}): ComputeResult<ChartsRotationAxisProps>;
|
|
@@ -2,4 +2,4 @@ import { type AxisConfig } from "../../../../models/axis.mjs";
|
|
|
2
2
|
import { type PolarChartSeriesType } from "../../../../models/seriesType/config.mjs";
|
|
3
3
|
import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
|
|
4
4
|
import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.mjs";
|
|
5
|
-
export declare const getAxisExtremum: <
|
|
5
|
+
export declare const getAxisExtremum: <SeriesType extends PolarChartSeriesType>(axis: AxisConfig, axisDirection: "rotation" | "radius", seriesConfig: ChartSeriesConfig<SeriesType>, axisIndex: number, formattedSeries: ProcessedSeries<SeriesType>) => number[];
|
|
@@ -2,4 +2,4 @@ import { type AxisConfig } from "../../../../models/axis.js";
|
|
|
2
2
|
import { type PolarChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
3
3
|
import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
|
|
4
4
|
import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
|
|
5
|
-
export declare const getAxisExtremum: <
|
|
5
|
+
export declare const getAxisExtremum: <SeriesType extends PolarChartSeriesType>(axis: AxisConfig, axisDirection: "rotation" | "radius", seriesConfig: ChartSeriesConfig<SeriesType>, axisIndex: number, formattedSeries: ProcessedSeries<SeriesType>) => number[];
|
|
@@ -2,4 +2,4 @@ import { type PolarChartSeriesType } from "../../../../models/seriesType/config.
|
|
|
2
2
|
import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
|
|
3
3
|
import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.mjs";
|
|
4
4
|
import { type AxisId } from "../../../../models/axis.mjs";
|
|
5
|
-
export declare const getAxisTriggerTooltip: <
|
|
5
|
+
export declare const getAxisTriggerTooltip: <SeriesType extends PolarChartSeriesType>(axisDirection: "radius" | "rotation", seriesConfig: ChartSeriesConfig<SeriesType>, formattedSeries: ProcessedSeries<SeriesType>, defaultAxisId: AxisId) => Set<AxisId>;
|
|
@@ -2,4 +2,4 @@ import { type PolarChartSeriesType } from "../../../../models/seriesType/config.
|
|
|
2
2
|
import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
|
|
3
3
|
import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
|
|
4
4
|
import { type AxisId } from "../../../../models/axis.js";
|
|
5
|
-
export declare const getAxisTriggerTooltip: <
|
|
5
|
+
export declare const getAxisTriggerTooltip: <SeriesType extends PolarChartSeriesType>(axisDirection: "radius" | "rotation", seriesConfig: ChartSeriesConfig<SeriesType>, formattedSeries: ProcessedSeries<SeriesType>, defaultAxisId: AxisId) => Set<AxisId>;
|
package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js
CHANGED
|
@@ -30,9 +30,10 @@ const selectorChartsInteractionRotationAngle = (0, _store.createSelector)(_useCh
|
|
|
30
30
|
}
|
|
31
31
|
return (0, _coordinateTransformation.generateSvg2rotation)(center)(x, y);
|
|
32
32
|
});
|
|
33
|
-
const selectorChartsInteractionRotationAxisIndex = exports.selectorChartsInteractionRotationAxisIndex = (0, _store.createSelector)(selectorChartsInteractionRotationAngle, _useChartPolarAxis.selectorChartRotationAxis, optionalGetAxisId, (rotation, rotationAxis, id
|
|
34
|
-
const selectorChartsInteractionRotationAxisIndexes = exports.selectorChartsInteractionRotationAxisIndexes = (0, _store.createSelector)(selectorChartsInteractionRotationAngle, _useChartPolarAxis.selectorChartRotationAxis, optionalGetAxisIds, (rotation, rotationAxis, ids
|
|
35
|
-
const selectorChartsInteractionRotationAxisValue = exports.selectorChartsInteractionRotationAxisValue = (0, _store.createSelector)(_useChartPolarAxis.selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndex, optionalGetAxisId, (rotationAxis, rotationIndex, id
|
|
33
|
+
const selectorChartsInteractionRotationAxisIndex = exports.selectorChartsInteractionRotationAxisIndex = (0, _store.createSelector)(selectorChartsInteractionRotationAngle, _useChartPolarAxis.selectorChartRotationAxis, optionalGetAxisId, (rotation, rotationAxis, id) => rotation === null ? null : indexGetter(rotation, rotationAxis, id ?? rotationAxis.axisIds[0]));
|
|
34
|
+
const selectorChartsInteractionRotationAxisIndexes = exports.selectorChartsInteractionRotationAxisIndexes = (0, _store.createSelector)(selectorChartsInteractionRotationAngle, _useChartPolarAxis.selectorChartRotationAxis, optionalGetAxisIds, (rotation, rotationAxis, ids) => rotation === null ? null : indexGetter(rotation, rotationAxis, ids ?? rotationAxis.axisIds));
|
|
35
|
+
const selectorChartsInteractionRotationAxisValue = exports.selectorChartsInteractionRotationAxisValue = (0, _store.createSelector)(_useChartPolarAxis.selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndex, optionalGetAxisId, (rotationAxis, rotationIndex, id) => {
|
|
36
|
+
id = id ?? rotationAxis.axisIds[0];
|
|
36
37
|
if (rotationIndex === null || rotationIndex === -1 || rotationAxis.axisIds.length === 0) {
|
|
37
38
|
return null;
|
|
38
39
|
}
|
|
@@ -42,7 +43,8 @@ const selectorChartsInteractionRotationAxisValue = exports.selectorChartsInterac
|
|
|
42
43
|
}
|
|
43
44
|
return data[rotationIndex];
|
|
44
45
|
});
|
|
45
|
-
const selectorChartsInteractionRotationAxisValues = exports.selectorChartsInteractionRotationAxisValues = (0, _store.createSelector)(_useChartPolarAxis.selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndexes, optionalGetAxisIds, (rotationAxis, rotationIndexes, ids
|
|
46
|
+
const selectorChartsInteractionRotationAxisValues = exports.selectorChartsInteractionRotationAxisValues = (0, _store.createSelector)(_useChartPolarAxis.selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndexes, optionalGetAxisIds, (rotationAxis, rotationIndexes, ids) => {
|
|
47
|
+
ids = ids ?? rotationAxis.axisIds;
|
|
46
48
|
if (rotationIndexes === null) {
|
|
47
49
|
return null;
|
|
48
50
|
}
|
package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs
CHANGED
|
@@ -24,9 +24,10 @@ const selectorChartsInteractionRotationAngle = createSelector(selectorChartsInte
|
|
|
24
24
|
}
|
|
25
25
|
return generateSvg2rotation(center)(x, y);
|
|
26
26
|
});
|
|
27
|
-
export const selectorChartsInteractionRotationAxisIndex = createSelector(selectorChartsInteractionRotationAngle, selectorChartRotationAxis, optionalGetAxisId, (rotation, rotationAxis, id
|
|
28
|
-
export const selectorChartsInteractionRotationAxisIndexes = createSelector(selectorChartsInteractionRotationAngle, selectorChartRotationAxis, optionalGetAxisIds, (rotation, rotationAxis, ids
|
|
29
|
-
export const selectorChartsInteractionRotationAxisValue = createSelector(selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndex, optionalGetAxisId, (rotationAxis, rotationIndex, id
|
|
27
|
+
export const selectorChartsInteractionRotationAxisIndex = createSelector(selectorChartsInteractionRotationAngle, selectorChartRotationAxis, optionalGetAxisId, (rotation, rotationAxis, id) => rotation === null ? null : indexGetter(rotation, rotationAxis, id ?? rotationAxis.axisIds[0]));
|
|
28
|
+
export const selectorChartsInteractionRotationAxisIndexes = createSelector(selectorChartsInteractionRotationAngle, selectorChartRotationAxis, optionalGetAxisIds, (rotation, rotationAxis, ids) => rotation === null ? null : indexGetter(rotation, rotationAxis, ids ?? rotationAxis.axisIds));
|
|
29
|
+
export const selectorChartsInteractionRotationAxisValue = createSelector(selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndex, optionalGetAxisId, (rotationAxis, rotationIndex, id) => {
|
|
30
|
+
id = id ?? rotationAxis.axisIds[0];
|
|
30
31
|
if (rotationIndex === null || rotationIndex === -1 || rotationAxis.axisIds.length === 0) {
|
|
31
32
|
return null;
|
|
32
33
|
}
|
|
@@ -36,7 +37,8 @@ export const selectorChartsInteractionRotationAxisValue = createSelector(selecto
|
|
|
36
37
|
}
|
|
37
38
|
return data[rotationIndex];
|
|
38
39
|
});
|
|
39
|
-
export const selectorChartsInteractionRotationAxisValues = createSelector(selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndexes, optionalGetAxisIds, (rotationAxis, rotationIndexes, ids
|
|
40
|
+
export const selectorChartsInteractionRotationAxisValues = createSelector(selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndexes, optionalGetAxisIds, (rotationAxis, rotationIndexes, ids) => {
|
|
41
|
+
ids = ids ?? rotationAxis.axisIds;
|
|
40
42
|
if (rotationIndexes === null) {
|
|
41
43
|
return null;
|
|
42
44
|
}
|
|
@@ -17,21 +17,21 @@ export interface UseChartTooltipInstance {
|
|
|
17
17
|
*/
|
|
18
18
|
removeTooltipItem: (itemToRemove?: SeriesItemIdentifierWithType<ChartSeriesType>) => void;
|
|
19
19
|
}
|
|
20
|
-
export interface UseChartTooltipParameters<
|
|
20
|
+
export interface UseChartTooltipParameters<SeriesType extends ChartSeriesType = ChartSeriesType> {
|
|
21
21
|
/**
|
|
22
22
|
* The tooltip item.
|
|
23
23
|
* Used when the tooltip is controlled.
|
|
24
24
|
*/
|
|
25
|
-
tooltipItem?: SeriesItemIdentifier<
|
|
25
|
+
tooltipItem?: SeriesItemIdentifier<SeriesType> | SeriesItemIdentifierWithType<SeriesType> | null;
|
|
26
26
|
/**
|
|
27
27
|
* The callback fired when the tooltip item changes.
|
|
28
28
|
*
|
|
29
|
-
* @param {SeriesItemIdentifier<
|
|
29
|
+
* @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
|
|
30
30
|
*/
|
|
31
|
-
onTooltipItemChange?: (tooltipItem: SeriesItemIdentifierWithType<
|
|
31
|
+
onTooltipItemChange?: (tooltipItem: SeriesItemIdentifierWithType<SeriesType> | null) => void;
|
|
32
32
|
}
|
|
33
|
-
export type UseChartTooltipDefaultizedParameters<
|
|
34
|
-
export interface UseChartTooltipState<
|
|
33
|
+
export type UseChartTooltipDefaultizedParameters<SeriesType extends ChartSeriesType = ChartSeriesType> = DefaultizedProps<UseChartTooltipParameters<SeriesType>, 'tooltipItem'>;
|
|
34
|
+
export interface UseChartTooltipState<SeriesType extends ChartSeriesType = ChartSeriesType> {
|
|
35
35
|
tooltip: {
|
|
36
36
|
/**
|
|
37
37
|
* Indicates if the tooltip item is controlled.
|
|
@@ -40,12 +40,12 @@ export interface UseChartTooltipState<TSeries extends ChartSeriesType = ChartSer
|
|
|
40
40
|
/**
|
|
41
41
|
* The item currently under the pointer.
|
|
42
42
|
*/
|
|
43
|
-
item: null | SeriesItemIdentifierWithType<
|
|
43
|
+
item: null | SeriesItemIdentifierWithType<SeriesType>;
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export type UseChartTooltipSignature<
|
|
46
|
+
export type UseChartTooltipSignature<SeriesType extends ChartSeriesType = ChartSeriesType> = ChartPluginSignature<{
|
|
47
47
|
instance: UseChartTooltipInstance;
|
|
48
48
|
state: UseChartTooltipState;
|
|
49
|
-
params: UseChartTooltipParameters<
|
|
50
|
-
defaultizedParams: UseChartTooltipDefaultizedParameters<
|
|
49
|
+
params: UseChartTooltipParameters<SeriesType>;
|
|
50
|
+
defaultizedParams: UseChartTooltipDefaultizedParameters<SeriesType>;
|
|
51
51
|
}>;
|
|
@@ -17,21 +17,21 @@ export interface UseChartTooltipInstance {
|
|
|
17
17
|
*/
|
|
18
18
|
removeTooltipItem: (itemToRemove?: SeriesItemIdentifierWithType<ChartSeriesType>) => void;
|
|
19
19
|
}
|
|
20
|
-
export interface UseChartTooltipParameters<
|
|
20
|
+
export interface UseChartTooltipParameters<SeriesType extends ChartSeriesType = ChartSeriesType> {
|
|
21
21
|
/**
|
|
22
22
|
* The tooltip item.
|
|
23
23
|
* Used when the tooltip is controlled.
|
|
24
24
|
*/
|
|
25
|
-
tooltipItem?: SeriesItemIdentifier<
|
|
25
|
+
tooltipItem?: SeriesItemIdentifier<SeriesType> | SeriesItemIdentifierWithType<SeriesType> | null;
|
|
26
26
|
/**
|
|
27
27
|
* The callback fired when the tooltip item changes.
|
|
28
28
|
*
|
|
29
|
-
* @param {SeriesItemIdentifier<
|
|
29
|
+
* @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
|
|
30
30
|
*/
|
|
31
|
-
onTooltipItemChange?: (tooltipItem: SeriesItemIdentifierWithType<
|
|
31
|
+
onTooltipItemChange?: (tooltipItem: SeriesItemIdentifierWithType<SeriesType> | null) => void;
|
|
32
32
|
}
|
|
33
|
-
export type UseChartTooltipDefaultizedParameters<
|
|
34
|
-
export interface UseChartTooltipState<
|
|
33
|
+
export type UseChartTooltipDefaultizedParameters<SeriesType extends ChartSeriesType = ChartSeriesType> = DefaultizedProps<UseChartTooltipParameters<SeriesType>, 'tooltipItem'>;
|
|
34
|
+
export interface UseChartTooltipState<SeriesType extends ChartSeriesType = ChartSeriesType> {
|
|
35
35
|
tooltip: {
|
|
36
36
|
/**
|
|
37
37
|
* Indicates if the tooltip item is controlled.
|
|
@@ -40,12 +40,12 @@ export interface UseChartTooltipState<TSeries extends ChartSeriesType = ChartSer
|
|
|
40
40
|
/**
|
|
41
41
|
* The item currently under the pointer.
|
|
42
42
|
*/
|
|
43
|
-
item: null | SeriesItemIdentifierWithType<
|
|
43
|
+
item: null | SeriesItemIdentifierWithType<SeriesType>;
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export type UseChartTooltipSignature<
|
|
46
|
+
export type UseChartTooltipSignature<SeriesType extends ChartSeriesType = ChartSeriesType> = ChartPluginSignature<{
|
|
47
47
|
instance: UseChartTooltipInstance;
|
|
48
48
|
state: UseChartTooltipState;
|
|
49
|
-
params: UseChartTooltipParameters<
|
|
50
|
-
defaultizedParams: UseChartTooltipDefaultizedParameters<
|
|
49
|
+
params: UseChartTooltipParameters<SeriesType>;
|
|
50
|
+
defaultizedParams: UseChartTooltipDefaultizedParameters<SeriesType>;
|
|
51
51
|
}>;
|
|
@@ -2,7 +2,7 @@ import { type ChartPluginSignature } from "../../models/index.mjs";
|
|
|
2
2
|
import { type UseChartSeriesSignature } from "../../corePlugins/useChartSeries/index.mjs";
|
|
3
3
|
import { type SeriesId, type SeriesItemIdentifierWithType } from "../../../../models/index.mjs";
|
|
4
4
|
import { type ChartSeriesType } from "../../../../models/seriesType/config.mjs";
|
|
5
|
-
export type VisibilityIdentifier<
|
|
5
|
+
export type VisibilityIdentifier<SeriesType extends ChartSeriesType = ChartSeriesType> = Partial<SeriesItemIdentifierWithType<SeriesType>> & (SeriesItemIdentifierWithType<SeriesType> extends {
|
|
6
6
|
subType?: infer U;
|
|
7
7
|
} ? {
|
|
8
8
|
subType: U;
|
|
@@ -10,8 +10,8 @@ export type VisibilityIdentifier<T extends ChartSeriesType = ChartSeriesType> =
|
|
|
10
10
|
} : {
|
|
11
11
|
seriesId: SeriesId;
|
|
12
12
|
});
|
|
13
|
-
export type VisibilityIdentifierWithType<
|
|
14
|
-
type:
|
|
13
|
+
export type VisibilityIdentifierWithType<SeriesType extends ChartSeriesType = ChartSeriesType> = SeriesType extends any ? VisibilityIdentifier<SeriesType> & {
|
|
14
|
+
type: SeriesType;
|
|
15
15
|
} : never;
|
|
16
16
|
export type VisibilityMap = Map<string, VisibilityIdentifierWithType>;
|
|
17
17
|
export type IsItemVisibleFunction = {
|
|
@@ -23,32 +23,32 @@ export type IsItemVisibleFunction = {
|
|
|
23
23
|
*/
|
|
24
24
|
(identifier: VisibilityIdentifierWithType): boolean;
|
|
25
25
|
};
|
|
26
|
-
export interface UseChartVisibilityManagerInstance<
|
|
26
|
+
export interface UseChartVisibilityManagerInstance<SeriesType extends ChartSeriesType> {
|
|
27
27
|
/**
|
|
28
28
|
* Hide an item by its identifier.
|
|
29
29
|
*
|
|
30
30
|
* @param {VisibilityIdentifier} identifier The identifier of the item to hide.
|
|
31
31
|
*/
|
|
32
|
-
hideItem(identifier: VisibilityIdentifier<
|
|
32
|
+
hideItem(identifier: VisibilityIdentifier<SeriesType>): void;
|
|
33
33
|
/**
|
|
34
34
|
* Show an item by its identifier.
|
|
35
35
|
*
|
|
36
36
|
* @param {VisibilityIdentifier} identifier The identifier of the item to show.
|
|
37
37
|
*/
|
|
38
|
-
showItem(identifier: VisibilityIdentifier<
|
|
38
|
+
showItem(identifier: VisibilityIdentifier<SeriesType>): void;
|
|
39
39
|
/**
|
|
40
40
|
* Toggle the visibility of an item by its identifier.
|
|
41
41
|
*
|
|
42
42
|
* @param {VisibilityIdentifier} identifier The identifier of the item to toggle.
|
|
43
43
|
*/
|
|
44
|
-
toggleItemVisibility(identifier: VisibilityIdentifier<
|
|
44
|
+
toggleItemVisibility(identifier: VisibilityIdentifier<SeriesType> | VisibilityIdentifierWithType<SeriesType>): void;
|
|
45
45
|
}
|
|
46
|
-
export interface UseChartVisibilityManagerParameters<
|
|
46
|
+
export interface UseChartVisibilityManagerParameters<SeriesType extends ChartSeriesType> {
|
|
47
47
|
/**
|
|
48
48
|
* Callback fired when any hidden identifiers change.
|
|
49
49
|
* @param {VisibilityIdentifierWithType[]} hiddenItems The new list of hidden identifiers.
|
|
50
50
|
*/
|
|
51
|
-
onHiddenItemsChange?: (hiddenItems: VisibilityIdentifierWithType<
|
|
51
|
+
onHiddenItemsChange?: (hiddenItems: VisibilityIdentifierWithType<SeriesType>[]) => void;
|
|
52
52
|
/**
|
|
53
53
|
* List of hidden series and/or items.
|
|
54
54
|
*
|
|
@@ -69,7 +69,7 @@ export interface UseChartVisibilityManagerParameters<T extends ChartSeriesType>
|
|
|
69
69
|
* ]
|
|
70
70
|
* ```
|
|
71
71
|
*/
|
|
72
|
-
hiddenItems?: (VisibilityIdentifier<
|
|
72
|
+
hiddenItems?: (VisibilityIdentifier<SeriesType> | VisibilityIdentifierWithType<SeriesType>)[];
|
|
73
73
|
/**
|
|
74
74
|
* List of initially hidden series and/or items.
|
|
75
75
|
* Used for uncontrolled state.
|
|
@@ -91,9 +91,9 @@ export interface UseChartVisibilityManagerParameters<T extends ChartSeriesType>
|
|
|
91
91
|
* ]
|
|
92
92
|
* ```
|
|
93
93
|
*/
|
|
94
|
-
initialHiddenItems?: (VisibilityIdentifier<
|
|
94
|
+
initialHiddenItems?: (VisibilityIdentifier<SeriesType> | VisibilityIdentifierWithType<SeriesType>)[];
|
|
95
95
|
}
|
|
96
|
-
export type UseChartVisibilityManagerDefaultizedParameters<
|
|
96
|
+
export type UseChartVisibilityManagerDefaultizedParameters<SeriesType extends ChartSeriesType> = UseChartVisibilityManagerParameters<SeriesType>;
|
|
97
97
|
export interface UseChartVisibilityManagerState {
|
|
98
98
|
visibilityManager: {
|
|
99
99
|
/**
|
|
@@ -106,10 +106,10 @@ export interface UseChartVisibilityManagerState {
|
|
|
106
106
|
isControlled: boolean;
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
export type UseChartVisibilityManagerSignature<
|
|
110
|
-
instance: UseChartVisibilityManagerInstance<
|
|
109
|
+
export type UseChartVisibilityManagerSignature<SeriesType extends ChartSeriesType = ChartSeriesType> = ChartPluginSignature<{
|
|
110
|
+
instance: UseChartVisibilityManagerInstance<SeriesType>;
|
|
111
111
|
state: UseChartVisibilityManagerState;
|
|
112
|
-
params: UseChartVisibilityManagerParameters<
|
|
113
|
-
defaultizedParams: UseChartVisibilityManagerDefaultizedParameters<
|
|
112
|
+
params: UseChartVisibilityManagerParameters<SeriesType>;
|
|
113
|
+
defaultizedParams: UseChartVisibilityManagerDefaultizedParameters<SeriesType>;
|
|
114
114
|
dependencies: [UseChartSeriesSignature];
|
|
115
115
|
}>;
|
|
@@ -2,7 +2,7 @@ import { type ChartPluginSignature } from "../../models/index.js";
|
|
|
2
2
|
import { type UseChartSeriesSignature } from "../../corePlugins/useChartSeries/index.js";
|
|
3
3
|
import { type SeriesId, type SeriesItemIdentifierWithType } from "../../../../models/index.js";
|
|
4
4
|
import { type ChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
5
|
-
export type VisibilityIdentifier<
|
|
5
|
+
export type VisibilityIdentifier<SeriesType extends ChartSeriesType = ChartSeriesType> = Partial<SeriesItemIdentifierWithType<SeriesType>> & (SeriesItemIdentifierWithType<SeriesType> extends {
|
|
6
6
|
subType?: infer U;
|
|
7
7
|
} ? {
|
|
8
8
|
subType: U;
|
|
@@ -10,8 +10,8 @@ export type VisibilityIdentifier<T extends ChartSeriesType = ChartSeriesType> =
|
|
|
10
10
|
} : {
|
|
11
11
|
seriesId: SeriesId;
|
|
12
12
|
});
|
|
13
|
-
export type VisibilityIdentifierWithType<
|
|
14
|
-
type:
|
|
13
|
+
export type VisibilityIdentifierWithType<SeriesType extends ChartSeriesType = ChartSeriesType> = SeriesType extends any ? VisibilityIdentifier<SeriesType> & {
|
|
14
|
+
type: SeriesType;
|
|
15
15
|
} : never;
|
|
16
16
|
export type VisibilityMap = Map<string, VisibilityIdentifierWithType>;
|
|
17
17
|
export type IsItemVisibleFunction = {
|
|
@@ -23,32 +23,32 @@ export type IsItemVisibleFunction = {
|
|
|
23
23
|
*/
|
|
24
24
|
(identifier: VisibilityIdentifierWithType): boolean;
|
|
25
25
|
};
|
|
26
|
-
export interface UseChartVisibilityManagerInstance<
|
|
26
|
+
export interface UseChartVisibilityManagerInstance<SeriesType extends ChartSeriesType> {
|
|
27
27
|
/**
|
|
28
28
|
* Hide an item by its identifier.
|
|
29
29
|
*
|
|
30
30
|
* @param {VisibilityIdentifier} identifier The identifier of the item to hide.
|
|
31
31
|
*/
|
|
32
|
-
hideItem(identifier: VisibilityIdentifier<
|
|
32
|
+
hideItem(identifier: VisibilityIdentifier<SeriesType>): void;
|
|
33
33
|
/**
|
|
34
34
|
* Show an item by its identifier.
|
|
35
35
|
*
|
|
36
36
|
* @param {VisibilityIdentifier} identifier The identifier of the item to show.
|
|
37
37
|
*/
|
|
38
|
-
showItem(identifier: VisibilityIdentifier<
|
|
38
|
+
showItem(identifier: VisibilityIdentifier<SeriesType>): void;
|
|
39
39
|
/**
|
|
40
40
|
* Toggle the visibility of an item by its identifier.
|
|
41
41
|
*
|
|
42
42
|
* @param {VisibilityIdentifier} identifier The identifier of the item to toggle.
|
|
43
43
|
*/
|
|
44
|
-
toggleItemVisibility(identifier: VisibilityIdentifier<
|
|
44
|
+
toggleItemVisibility(identifier: VisibilityIdentifier<SeriesType> | VisibilityIdentifierWithType<SeriesType>): void;
|
|
45
45
|
}
|
|
46
|
-
export interface UseChartVisibilityManagerParameters<
|
|
46
|
+
export interface UseChartVisibilityManagerParameters<SeriesType extends ChartSeriesType> {
|
|
47
47
|
/**
|
|
48
48
|
* Callback fired when any hidden identifiers change.
|
|
49
49
|
* @param {VisibilityIdentifierWithType[]} hiddenItems The new list of hidden identifiers.
|
|
50
50
|
*/
|
|
51
|
-
onHiddenItemsChange?: (hiddenItems: VisibilityIdentifierWithType<
|
|
51
|
+
onHiddenItemsChange?: (hiddenItems: VisibilityIdentifierWithType<SeriesType>[]) => void;
|
|
52
52
|
/**
|
|
53
53
|
* List of hidden series and/or items.
|
|
54
54
|
*
|
|
@@ -69,7 +69,7 @@ export interface UseChartVisibilityManagerParameters<T extends ChartSeriesType>
|
|
|
69
69
|
* ]
|
|
70
70
|
* ```
|
|
71
71
|
*/
|
|
72
|
-
hiddenItems?: (VisibilityIdentifier<
|
|
72
|
+
hiddenItems?: (VisibilityIdentifier<SeriesType> | VisibilityIdentifierWithType<SeriesType>)[];
|
|
73
73
|
/**
|
|
74
74
|
* List of initially hidden series and/or items.
|
|
75
75
|
* Used for uncontrolled state.
|
|
@@ -91,9 +91,9 @@ export interface UseChartVisibilityManagerParameters<T extends ChartSeriesType>
|
|
|
91
91
|
* ]
|
|
92
92
|
* ```
|
|
93
93
|
*/
|
|
94
|
-
initialHiddenItems?: (VisibilityIdentifier<
|
|
94
|
+
initialHiddenItems?: (VisibilityIdentifier<SeriesType> | VisibilityIdentifierWithType<SeriesType>)[];
|
|
95
95
|
}
|
|
96
|
-
export type UseChartVisibilityManagerDefaultizedParameters<
|
|
96
|
+
export type UseChartVisibilityManagerDefaultizedParameters<SeriesType extends ChartSeriesType> = UseChartVisibilityManagerParameters<SeriesType>;
|
|
97
97
|
export interface UseChartVisibilityManagerState {
|
|
98
98
|
visibilityManager: {
|
|
99
99
|
/**
|
|
@@ -106,10 +106,10 @@ export interface UseChartVisibilityManagerState {
|
|
|
106
106
|
isControlled: boolean;
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
export type UseChartVisibilityManagerSignature<
|
|
110
|
-
instance: UseChartVisibilityManagerInstance<
|
|
109
|
+
export type UseChartVisibilityManagerSignature<SeriesType extends ChartSeriesType = ChartSeriesType> = ChartPluginSignature<{
|
|
110
|
+
instance: UseChartVisibilityManagerInstance<SeriesType>;
|
|
111
111
|
state: UseChartVisibilityManagerState;
|
|
112
|
-
params: UseChartVisibilityManagerParameters<
|
|
113
|
-
defaultizedParams: UseChartVisibilityManagerDefaultizedParameters<
|
|
112
|
+
params: UseChartVisibilityManagerParameters<SeriesType>;
|
|
113
|
+
defaultizedParams: UseChartVisibilityManagerDefaultizedParameters<SeriesType>;
|
|
114
114
|
dependencies: [UseChartSeriesSignature];
|
|
115
115
|
}>;
|
|
@@ -7,7 +7,7 @@ export type ChartPublicAPI<TSignatures extends readonly ChartAnyPluginSignature[
|
|
|
7
7
|
export type ChartStateCacheKey = {
|
|
8
8
|
id: number;
|
|
9
9
|
};
|
|
10
|
-
export type ChartState<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = [],
|
|
10
|
+
export type ChartState<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = [], SeriesType extends ChartSeriesType = ChartSeriesType> = MergeSignaturesProperty<[...ChartCorePluginSignatures<SeriesType>, ...TSignatures], 'state'> & Partial<MergeSignaturesProperty<TOptionalSignatures, 'state'>> & {
|
|
11
11
|
/**
|
|
12
12
|
* The key used to identify the chart in the global cache object.
|
|
13
13
|
*/
|
|
@@ -7,7 +7,7 @@ export type ChartPublicAPI<TSignatures extends readonly ChartAnyPluginSignature[
|
|
|
7
7
|
export type ChartStateCacheKey = {
|
|
8
8
|
id: number;
|
|
9
9
|
};
|
|
10
|
-
export type ChartState<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = [],
|
|
10
|
+
export type ChartState<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = [], SeriesType extends ChartSeriesType = ChartSeriesType> = MergeSignaturesProperty<[...ChartCorePluginSignatures<SeriesType>, ...TSignatures], 'state'> & Partial<MergeSignaturesProperty<TOptionalSignatures, 'state'>> & {
|
|
11
11
|
/**
|
|
12
12
|
* The key used to identify the chart in the global cache object.
|
|
13
13
|
*/
|
|
@@ -25,7 +25,13 @@ export interface ChartsSeriesConfig {
|
|
|
25
25
|
* Series typing such that the one user need to provide
|
|
26
26
|
*/
|
|
27
27
|
seriesProp: BarSeriesType;
|
|
28
|
+
/**
|
|
29
|
+
* The minimal information to identify a specific item in the series.
|
|
30
|
+
*/
|
|
28
31
|
itemIdentifier: BarItemIdentifier;
|
|
32
|
+
/**
|
|
33
|
+
* The minimal information to identify a specific item in the series. Plus the data associated to it.
|
|
34
|
+
*/
|
|
29
35
|
itemIdentifierWithData: BarItemIdentifier;
|
|
30
36
|
valueType: number | null;
|
|
31
37
|
canBeStacked: true;
|
|
@@ -111,22 +117,28 @@ export type ChartSeriesType = keyof ChartsSeriesConfig;
|
|
|
111
117
|
export type CartesianChartSeriesType = keyof Pick<ChartsSeriesConfig, { [Key in ChartSeriesType]: ChartsSeriesConfig[Key] extends {
|
|
112
118
|
axisType: 'cartesian';
|
|
113
119
|
} ? Key : never }[ChartSeriesType]>;
|
|
120
|
+
/**
|
|
121
|
+
* Extracts series types whose itemIdentifier includes a `dataIndex` property.
|
|
122
|
+
* This prevents accidentally using dataIndex-based cleaners/serializers
|
|
123
|
+
* for series types that use different identifier properties (e.g., heatmap uses xIndex/yIndex).
|
|
124
|
+
*/
|
|
125
|
+
export type SeriesTypeWithDataIndex = { [K in ChartSeriesType]: 'dataIndex' extends keyof ChartsSeriesConfig[K]['itemIdentifier'] ? K : never }[ChartSeriesType];
|
|
114
126
|
export type PolarChartSeriesType = keyof Pick<ChartsSeriesConfig, { [Key in ChartSeriesType]: ChartsSeriesConfig[Key] extends {
|
|
115
127
|
axisType: 'polar';
|
|
116
128
|
} ? Key : never }[ChartSeriesType]>;
|
|
117
129
|
export type StackableChartSeriesType = keyof Pick<ChartsSeriesConfig, { [Key in ChartSeriesType]: ChartsSeriesConfig[Key] extends {
|
|
118
130
|
canBeStacked: true;
|
|
119
131
|
} ? Key : never }[ChartSeriesType]>;
|
|
120
|
-
export type ChartSeries<
|
|
121
|
-
export type ChartSeriesDefaultized<
|
|
132
|
+
export type ChartSeries<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType]['seriesInput'];
|
|
133
|
+
export type ChartSeriesDefaultized<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType] extends {
|
|
122
134
|
canBeStacked: true;
|
|
123
|
-
} ? ChartsSeriesConfig[
|
|
135
|
+
} ? ChartsSeriesConfig[SeriesType]['series'] & {
|
|
124
136
|
visibleStackedData: [number, number][];
|
|
125
137
|
stackedData: [number, number][];
|
|
126
|
-
} : ChartsSeriesConfig[
|
|
127
|
-
export type ChartSeriesLayout<
|
|
138
|
+
} : ChartsSeriesConfig[SeriesType]['series'];
|
|
139
|
+
export type ChartSeriesLayout<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType] extends any ? ChartsSeriesConfig[SeriesType]['seriesLayout'] : never;
|
|
128
140
|
export type DatasetElementType<T> = {
|
|
129
141
|
[key: string]: T;
|
|
130
142
|
};
|
|
131
143
|
export type DatasetType<T = unknown> = DatasetElementType<T>[];
|
|
132
|
-
export type HighlightScope<
|
|
144
|
+
export type HighlightScope<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType] extends any ? ChartsSeriesConfig[SeriesType]['highlightScope'] : never;
|
|
@@ -25,7 +25,13 @@ export interface ChartsSeriesConfig {
|
|
|
25
25
|
* Series typing such that the one user need to provide
|
|
26
26
|
*/
|
|
27
27
|
seriesProp: BarSeriesType;
|
|
28
|
+
/**
|
|
29
|
+
* The minimal information to identify a specific item in the series.
|
|
30
|
+
*/
|
|
28
31
|
itemIdentifier: BarItemIdentifier;
|
|
32
|
+
/**
|
|
33
|
+
* The minimal information to identify a specific item in the series. Plus the data associated to it.
|
|
34
|
+
*/
|
|
29
35
|
itemIdentifierWithData: BarItemIdentifier;
|
|
30
36
|
valueType: number | null;
|
|
31
37
|
canBeStacked: true;
|
|
@@ -111,22 +117,28 @@ export type ChartSeriesType = keyof ChartsSeriesConfig;
|
|
|
111
117
|
export type CartesianChartSeriesType = keyof Pick<ChartsSeriesConfig, { [Key in ChartSeriesType]: ChartsSeriesConfig[Key] extends {
|
|
112
118
|
axisType: 'cartesian';
|
|
113
119
|
} ? Key : never }[ChartSeriesType]>;
|
|
120
|
+
/**
|
|
121
|
+
* Extracts series types whose itemIdentifier includes a `dataIndex` property.
|
|
122
|
+
* This prevents accidentally using dataIndex-based cleaners/serializers
|
|
123
|
+
* for series types that use different identifier properties (e.g., heatmap uses xIndex/yIndex).
|
|
124
|
+
*/
|
|
125
|
+
export type SeriesTypeWithDataIndex = { [K in ChartSeriesType]: 'dataIndex' extends keyof ChartsSeriesConfig[K]['itemIdentifier'] ? K : never }[ChartSeriesType];
|
|
114
126
|
export type PolarChartSeriesType = keyof Pick<ChartsSeriesConfig, { [Key in ChartSeriesType]: ChartsSeriesConfig[Key] extends {
|
|
115
127
|
axisType: 'polar';
|
|
116
128
|
} ? Key : never }[ChartSeriesType]>;
|
|
117
129
|
export type StackableChartSeriesType = keyof Pick<ChartsSeriesConfig, { [Key in ChartSeriesType]: ChartsSeriesConfig[Key] extends {
|
|
118
130
|
canBeStacked: true;
|
|
119
131
|
} ? Key : never }[ChartSeriesType]>;
|
|
120
|
-
export type ChartSeries<
|
|
121
|
-
export type ChartSeriesDefaultized<
|
|
132
|
+
export type ChartSeries<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType]['seriesInput'];
|
|
133
|
+
export type ChartSeriesDefaultized<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType] extends {
|
|
122
134
|
canBeStacked: true;
|
|
123
|
-
} ? ChartsSeriesConfig[
|
|
135
|
+
} ? ChartsSeriesConfig[SeriesType]['series'] & {
|
|
124
136
|
visibleStackedData: [number, number][];
|
|
125
137
|
stackedData: [number, number][];
|
|
126
|
-
} : ChartsSeriesConfig[
|
|
127
|
-
export type ChartSeriesLayout<
|
|
138
|
+
} : ChartsSeriesConfig[SeriesType]['series'];
|
|
139
|
+
export type ChartSeriesLayout<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType] extends any ? ChartsSeriesConfig[SeriesType]['seriesLayout'] : never;
|
|
128
140
|
export type DatasetElementType<T> = {
|
|
129
141
|
[key: string]: T;
|
|
130
142
|
};
|
|
131
143
|
export type DatasetType<T = unknown> = DatasetElementType<T>[];
|
|
132
|
-
export type HighlightScope<
|
|
144
|
+
export type HighlightScope<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType] extends any ? ChartsSeriesConfig[SeriesType]['highlightScope'] : never;
|