@mui/x-charts 8.1.0 → 8.2.0
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/BarChart.js +1 -1
- package/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
- package/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
- package/BarChart/BarLabel/index.d.ts +4 -4
- package/BarChart/checkScaleErrors.d.ts +3 -3
- package/BarChart/checkScaleErrors.js +4 -4
- package/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/BarChart/seriesConfig/seriesProcessor.js +2 -2
- package/BarChart/seriesConfig/tooltip.d.ts +1 -1
- package/BarChart/types.d.ts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +20 -2
- package/CHANGELOG.md +126 -7
- package/ChartContainer/ChartContainer.js +1 -1
- package/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/ChartsLabel/ChartsLabelMark.js +8 -4
- package/ChartsLabel/index.d.ts +4 -4
- package/ChartsLabel/labelClasses.d.ts +1 -1
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/ChartsLegend/ChartsLegend.d.ts +2 -2
- package/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
- package/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
- package/ChartsLegend/chartsLegend.types.d.ts +1 -1
- package/ChartsLegend/chartsLegendClasses.d.ts +2 -2
- package/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
- package/ChartsLegend/index.d.ts +4 -4
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
- package/ChartsLegend/useAxis.d.ts +2 -2
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/ChartsLocalizationProvider/index.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/ChartsOverlay/index.d.ts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/ChartsText/index.d.ts +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +1 -0
- package/ChartsTooltip/index.d.ts +3 -3
- package/ChartsTooltip/useAxisTooltip.d.ts +2 -2
- package/LineChart/AnimatedArea.d.ts +1 -1
- package/LineChart/AnimatedLine.d.ts +1 -1
- package/LineChart/AreaPlot.js +2 -2
- package/LineChart/LineChart.js +1 -1
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LinePlot.js +2 -2
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/index.d.ts +1 -1
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/LineChart/seriesConfig/seriesProcessor.js +2 -2
- package/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadarChart/RadarGrid/index.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
- package/RadarChart/index.d.ts +2 -2
- package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadarChart/useRadarChartProps.d.ts +2 -2
- package/ScatterChart/ScatterChart.js +1 -1
- package/ScatterChart/ScatterMarker.types.d.ts +1 -1
- package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
- package/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/ScatterChart/useScatterChartProps.d.ts +3 -3
- package/SparkLineChart/SparkLineChart.js +1 -1
- package/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
- package/colorPalettes/categorical/blueberryTwilight.js +10 -0
- package/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
- package/colorPalettes/categorical/cheerfulFiesta.js +10 -0
- package/colorPalettes/categorical/mangoFusion.d.ts +4 -0
- package/colorPalettes/categorical/mangoFusion.js +10 -0
- package/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
- package/colorPalettes/categorical/rainbowSurge.js +10 -0
- package/colorPalettes/index.d.ts +14 -1
- package/colorPalettes/index.js +147 -4
- package/colorPalettes/sequential/blue.d.ts +4 -0
- package/colorPalettes/sequential/blue.js +12 -0
- package/colorPalettes/sequential/cyan.d.ts +4 -0
- package/colorPalettes/sequential/cyan.js +12 -0
- package/colorPalettes/sequential/green.d.ts +4 -0
- package/colorPalettes/sequential/green.js +12 -0
- package/colorPalettes/sequential/orange.d.ts +4 -0
- package/colorPalettes/sequential/orange.js +12 -0
- package/colorPalettes/sequential/pink.d.ts +4 -0
- package/colorPalettes/sequential/pink.js +12 -0
- package/colorPalettes/sequential/purple.d.ts +4 -0
- package/colorPalettes/sequential/purple.js +12 -0
- package/colorPalettes/sequential/red.d.ts +4 -0
- package/colorPalettes/sequential/red.js +12 -0
- package/colorPalettes/sequential/strawberrySky.d.ts +4 -0
- package/colorPalettes/sequential/strawberrySky.js +10 -0
- package/colorPalettes/sequential/yellow.d.ts +4 -0
- package/colorPalettes/sequential/yellow.js +12 -0
- package/colorPalettes/types.d.ts +4 -0
- package/colorPalettes/types.js +5 -0
- package/context/ChartProvider/ChartContext.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.types.d.ts +6 -6
- package/context/ChartProvider/useChartContext.js +1 -1
- package/context/index.d.ts +1 -1
- package/esm/BarChart/BarChart.js +1 -1
- package/esm/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
- package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
- package/esm/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
- package/esm/BarChart/BarLabel/index.d.ts +4 -4
- package/esm/BarChart/checkScaleErrors.d.ts +3 -3
- package/esm/BarChart/checkScaleErrors.js +4 -4
- package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/BarChart/seriesConfig/seriesProcessor.js +2 -2
- package/esm/BarChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/BarChart/types.d.ts +2 -2
- package/esm/BarChart/useBarChartProps.d.ts +2 -2
- package/esm/BarChart/useBarChartProps.js +20 -2
- package/esm/ChartContainer/ChartContainer.js +1 -1
- package/esm/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
- package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
- package/esm/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/esm/ChartsLabel/ChartsLabelMark.js +8 -4
- package/esm/ChartsLabel/index.d.ts +4 -4
- package/esm/ChartsLabel/labelClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/esm/ChartsLegend/ChartsLegend.d.ts +2 -2
- package/esm/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
- package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
- package/esm/ChartsLegend/chartsLegend.types.d.ts +1 -1
- package/esm/ChartsLegend/chartsLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/index.d.ts +4 -4
- package/esm/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/useAxis.d.ts +2 -2
- package/esm/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/esm/ChartsLocalizationProvider/index.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/esm/ChartsOverlay/index.d.ts +1 -1
- package/esm/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/esm/ChartsText/index.d.ts +2 -2
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +1 -0
- package/esm/ChartsTooltip/index.d.ts +3 -3
- package/esm/ChartsTooltip/useAxisTooltip.d.ts +2 -2
- package/esm/LineChart/AnimatedArea.d.ts +1 -1
- package/esm/LineChart/AnimatedLine.d.ts +1 -1
- package/esm/LineChart/AreaPlot.js +2 -2
- package/esm/LineChart/LineChart.js +1 -1
- package/esm/LineChart/LineHighlightPlot.js +1 -1
- package/esm/LineChart/LinePlot.js +2 -2
- package/esm/LineChart/MarkPlot.js +1 -1
- package/esm/LineChart/index.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/LineChart/seriesConfig/seriesProcessor.js +2 -2
- package/esm/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/LineChart/useLineChartProps.d.ts +2 -2
- package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/index.d.ts +1 -1
- package/esm/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
- package/esm/RadarChart/index.d.ts +2 -2
- package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/RadarChart/useRadarChartProps.d.ts +2 -2
- package/esm/ScatterChart/ScatterChart.js +1 -1
- package/esm/ScatterChart/ScatterMarker.types.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
- package/esm/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/ScatterChart/useScatterChartProps.d.ts +3 -3
- package/esm/SparkLineChart/SparkLineChart.js +1 -1
- package/esm/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
- package/esm/colorPalettes/categorical/blueberryTwilight.js +3 -0
- package/esm/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
- package/esm/colorPalettes/categorical/cheerfulFiesta.js +3 -0
- package/esm/colorPalettes/categorical/mangoFusion.d.ts +4 -0
- package/esm/colorPalettes/categorical/mangoFusion.js +3 -0
- package/esm/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
- package/esm/colorPalettes/categorical/rainbowSurge.js +3 -0
- package/esm/colorPalettes/index.d.ts +14 -1
- package/esm/colorPalettes/index.js +20 -1
- package/esm/colorPalettes/sequential/blue.d.ts +4 -0
- package/esm/colorPalettes/sequential/blue.js +5 -0
- package/esm/colorPalettes/sequential/cyan.d.ts +4 -0
- package/esm/colorPalettes/sequential/cyan.js +5 -0
- package/esm/colorPalettes/sequential/green.d.ts +4 -0
- package/esm/colorPalettes/sequential/green.js +5 -0
- package/esm/colorPalettes/sequential/orange.d.ts +4 -0
- package/esm/colorPalettes/sequential/orange.js +5 -0
- package/esm/colorPalettes/sequential/pink.d.ts +4 -0
- package/esm/colorPalettes/sequential/pink.js +5 -0
- package/esm/colorPalettes/sequential/purple.d.ts +4 -0
- package/esm/colorPalettes/sequential/purple.js +5 -0
- package/esm/colorPalettes/sequential/red.d.ts +4 -0
- package/esm/colorPalettes/sequential/red.js +5 -0
- package/esm/colorPalettes/sequential/strawberrySky.d.ts +4 -0
- package/esm/colorPalettes/sequential/strawberrySky.js +3 -0
- package/esm/colorPalettes/sequential/yellow.d.ts +4 -0
- package/esm/colorPalettes/sequential/yellow.js +5 -0
- package/esm/colorPalettes/types.d.ts +4 -0
- package/esm/colorPalettes/types.js +1 -0
- package/esm/context/ChartProvider/ChartContext.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.types.d.ts +6 -6
- package/esm/context/ChartProvider/useChartContext.js +1 -1
- package/esm/context/index.d.ts +1 -1
- package/esm/hooks/animation/useAnimateArea.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBar.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/esm/hooks/animation/useAnimateLine.d.ts +1 -1
- package/esm/hooks/animation/useAnimatePieArc.d.ts +1 -1
- package/esm/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
- package/esm/hooks/useAxis.d.ts +6 -6
- package/esm/hooks/useChartsLocalization.d.ts +1 -1
- package/esm/hooks/useChartsLocalization.js +1 -1
- package/esm/hooks/useItemHighlightedGetter.d.ts +2 -2
- package/esm/hooks/useLegend.d.ts +1 -1
- package/esm/hooks/useSeries.d.ts +1 -1
- package/esm/hooks/useSvgRef.js +1 -1
- package/esm/hooks/useZAxis.d.ts +3 -3
- package/esm/index.js +1 -1
- package/esm/internals/createSeriesSelectorOfType.d.ts +1 -1
- package/esm/internals/createSeriesSelectorOfType.js +1 -1
- package/esm/internals/defaultizeMargin.d.ts +1 -1
- package/esm/internals/geometry.js +1 -1
- package/esm/internals/getPercentageValue.js +1 -1
- package/esm/internals/plugins/allPlugins.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +142 -142
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +6 -6
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +18 -14
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +892 -892
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
- package/esm/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
- package/esm/internals/plugins/models/chart.d.ts +3 -3
- package/esm/internals/plugins/models/helpers.d.ts +1 -1
- package/esm/internals/plugins/models/plugin.d.ts +2 -2
- package/esm/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
- package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
- package/esm/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
- package/esm/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
- package/esm/internals/plugins/utils/ChartStore.d.ts +2 -2
- package/esm/internals/stackSeries.d.ts +1 -1
- package/esm/internals/store/useChartModels.js +2 -2
- package/esm/internals/store/useCharts.d.ts +1 -1
- package/esm/internals/store/useStore.js +1 -1
- package/esm/locales/index.d.ts +1 -1
- package/esm/models/axis.d.ts +15 -3
- package/esm/models/axis.js +8 -0
- package/esm/models/index.d.ts +3 -3
- package/esm/models/seriesType/bar.d.ts +1 -1
- package/esm/models/seriesType/common.d.ts +2 -2
- package/esm/models/seriesType/line.d.ts +1 -1
- package/esm/models/seriesType/pie.d.ts +1 -1
- package/esm/themeAugmentation/components.js +1 -0
- package/esm/themeAugmentation/index.d.ts +3 -3
- package/esm/themeAugmentation/overrides.d.ts +3 -12
- package/esm/themeAugmentation/overrides.js +2 -0
- package/esm/themeAugmentation/props.d.ts +0 -7
- package/esm/themeAugmentation/props.js +2 -0
- package/hooks/animation/useAnimateArea.d.ts +1 -1
- package/hooks/animation/useAnimateBar.d.ts +1 -1
- package/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/hooks/animation/useAnimateLine.d.ts +1 -1
- package/hooks/animation/useAnimatePieArc.d.ts +1 -1
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
- package/hooks/useAxis.d.ts +6 -6
- package/hooks/useChartsLocalization.d.ts +1 -1
- package/hooks/useChartsLocalization.js +1 -1
- package/hooks/useItemHighlightedGetter.d.ts +2 -2
- package/hooks/useLegend.d.ts +1 -1
- package/hooks/useSeries.d.ts +1 -1
- package/hooks/useSvgRef.js +1 -1
- package/hooks/useZAxis.d.ts +3 -3
- package/index.js +1 -1
- package/internals/createSeriesSelectorOfType.d.ts +1 -1
- package/internals/createSeriesSelectorOfType.js +1 -1
- package/internals/defaultizeMargin.d.ts +1 -1
- package/internals/geometry.js +1 -1
- package/internals/getPercentageValue.js +1 -1
- package/internals/plugins/allPlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +142 -142
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +6 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +18 -14
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +892 -892
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
- package/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
- package/internals/plugins/models/chart.d.ts +3 -3
- package/internals/plugins/models/helpers.d.ts +1 -1
- package/internals/plugins/models/plugin.d.ts +2 -2
- package/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
- package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
- package/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
- package/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
- package/internals/plugins/utils/ChartStore.d.ts +2 -2
- package/internals/stackSeries.d.ts +1 -1
- package/internals/store/useChartModels.js +2 -2
- package/internals/store/useCharts.d.ts +1 -1
- package/internals/store/useStore.js +1 -1
- package/locales/index.d.ts +1 -1
- package/models/axis.d.ts +15 -3
- package/models/axis.js +8 -0
- package/models/index.d.ts +3 -3
- package/models/seriesType/bar.d.ts +1 -1
- package/models/seriesType/common.d.ts +2 -2
- package/models/seriesType/line.d.ts +1 -1
- package/models/seriesType/pie.d.ts +1 -1
- package/package.json +2 -2
- package/themeAugmentation/components.js +5 -0
- package/themeAugmentation/index.d.ts +3 -3
- package/themeAugmentation/overrides.d.ts +3 -12
- package/themeAugmentation/overrides.js +5 -0
- package/themeAugmentation/props.d.ts +0 -7
- package/themeAugmentation/props.js +5 -0
- package/colorPalettes/colorPalettes.d.ts +0 -16
- package/colorPalettes/colorPalettes.js +0 -22
- package/esm/colorPalettes/colorPalettes.d.ts +0 -16
- package/esm/colorPalettes/colorPalettes.js +0 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChartPluginSignature } from "../../models/index.js";
|
|
2
|
-
import type { UseChartCartesianAxisSignature } from
|
|
2
|
+
import type { UseChartCartesianAxisSignature } from "../../featurePlugins/useChartCartesianAxis/index.js";
|
|
3
3
|
export interface ChartMargin {
|
|
4
4
|
/**
|
|
5
5
|
* The gap between the left border of the SVG and the drawing area.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useChartId } from "./useChartId.js";
|
|
2
|
-
export type { UseChartIdSignature, UseChartIdParameters, UseChartIdDefaultizedParameters } from
|
|
2
|
+
export type { UseChartIdSignature, UseChartIdParameters, UseChartIdDefaultizedParameters } from "./useChartId.types.js";
|
|
3
3
|
export * from "./useChartId.selectors.js";
|
|
@@ -5,8 +5,8 @@ import { UseChartIdSignature } from "./useChartId.types.js";
|
|
|
5
5
|
* @param {ChartState<[UseChartIdSignature]>} state The state of the chart.
|
|
6
6
|
* @returns {string} The id attribute of the chart.
|
|
7
7
|
*/
|
|
8
|
-
export declare const selectorChartId: ((state: import("./useChartId.types").UseChartIdState & import("../useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
9
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
8
|
+
export declare const selectorChartId: ((state: import("./useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
|
|
9
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
10
10
|
}) => string | undefined) & {
|
|
11
11
|
clearCache: () => void;
|
|
12
12
|
resultsCount: () => number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useChartSeries } from "./useChartSeries.js";
|
|
2
|
-
export type { UseChartSeriesSignature, UseChartSeriesParameters, UseChartSeriesDefaultizedParameters, ProcessedSeries } from
|
|
2
|
+
export type { UseChartSeriesSignature, UseChartSeriesParameters, UseChartSeriesDefaultizedParameters, ProcessedSeries } from "./useChartSeries.types.js";
|
|
3
3
|
export * from "./useChartSeries.selectors.js";
|
|
@@ -27,7 +27,7 @@ export const preprocessSeries = ({
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
if (seriesGroups[seriesData.type]?.series[id] !== undefined) {
|
|
30
|
-
throw new Error(`MUI X: series' id "${id}" is not unique.`);
|
|
30
|
+
throw new Error(`MUI X Charts: series' id "${id}" is not unique.`);
|
|
31
31
|
}
|
|
32
32
|
seriesGroups[seriesData.type].series[id] = seriesWithDefaultValues;
|
|
33
33
|
seriesGroups[seriesData.type].seriesOrder.push(id);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { ChartRootSelector } from "../../utils/selectors.js";
|
|
2
2
|
import { UseChartSeriesSignature } from "./useChartSeries.types.js";
|
|
3
3
|
export declare const selectorChartSeriesState: ChartRootSelector<UseChartSeriesSignature>;
|
|
4
|
-
export declare const selectorChartSeriesProcessed: ((state: import("../useChartId/useChartId.types").UseChartIdState & import("../useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("./useChartSeries.types").UseChartSeriesState<keyof import("
|
|
5
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
6
|
-
}) => import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
4
|
+
export declare const selectorChartSeriesProcessed: ((state: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
|
|
5
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
6
|
+
}) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>) & {
|
|
7
7
|
clearCache: () => void;
|
|
8
8
|
resultsCount: () => number;
|
|
9
9
|
resetResultsCount: () => void;
|
|
10
10
|
} & {
|
|
11
11
|
resultFunc: (resultFuncArgs_0: {
|
|
12
|
-
processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
13
|
-
seriesConfig: import("../../models").ChartSeriesConfig<keyof import("
|
|
14
|
-
}) => import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
12
|
+
processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
13
|
+
seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
14
|
+
}) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
15
15
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
16
|
-
processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
17
|
-
seriesConfig: import("../../models").ChartSeriesConfig<keyof import("
|
|
18
|
-
}) => import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
16
|
+
processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
17
|
+
seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
18
|
+
}) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>) & {
|
|
19
19
|
clearCache: () => void;
|
|
20
20
|
resultsCount: () => number;
|
|
21
21
|
resetResultsCount: () => void;
|
|
22
22
|
};
|
|
23
|
-
lastResult: () => import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
23
|
+
lastResult: () => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
24
24
|
dependencies: [ChartRootSelector<UseChartSeriesSignature>];
|
|
25
25
|
recomputations: () => number;
|
|
26
26
|
resetRecomputations: () => void;
|
|
@@ -30,26 +30,26 @@ export declare const selectorChartSeriesProcessed: ((state: import("../useChartI
|
|
|
30
30
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
31
31
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
32
32
|
};
|
|
33
|
-
export declare const selectorChartSeriesConfig: ((state: import("../useChartId/useChartId.types").UseChartIdState & import("../useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("./useChartSeries.types").UseChartSeriesState<keyof import("
|
|
34
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
35
|
-
}) => import("../../models").ChartSeriesConfig<keyof import("
|
|
33
|
+
export declare const selectorChartSeriesConfig: ((state: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<{}> & {
|
|
34
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
35
|
+
}) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>) & {
|
|
36
36
|
clearCache: () => void;
|
|
37
37
|
resultsCount: () => number;
|
|
38
38
|
resetResultsCount: () => void;
|
|
39
39
|
} & {
|
|
40
40
|
resultFunc: (resultFuncArgs_0: {
|
|
41
|
-
processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
42
|
-
seriesConfig: import("../../models").ChartSeriesConfig<keyof import("
|
|
43
|
-
}) => import("../../models").ChartSeriesConfig<keyof import("
|
|
41
|
+
processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
42
|
+
seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
43
|
+
}) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
44
44
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
45
|
-
processedSeries: import("./useChartSeries.types").ProcessedSeries<keyof import("
|
|
46
|
-
seriesConfig: import("../../models").ChartSeriesConfig<keyof import("
|
|
47
|
-
}) => import("../../models").ChartSeriesConfig<keyof import("
|
|
45
|
+
processedSeries: import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
46
|
+
seriesConfig: import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
47
|
+
}) => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>) & {
|
|
48
48
|
clearCache: () => void;
|
|
49
49
|
resultsCount: () => number;
|
|
50
50
|
resetResultsCount: () => void;
|
|
51
51
|
};
|
|
52
|
-
lastResult: () => import("../../models").ChartSeriesConfig<keyof import("
|
|
52
|
+
lastResult: () => import("../../models/index.js").ChartSeriesConfig<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
53
53
|
dependencies: [ChartRootSelector<UseChartSeriesSignature>];
|
|
54
54
|
recomputations: () => number;
|
|
55
55
|
resetRecomputations: () => void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AxisConfig, ScaleName } from "../../../../models/index.js";
|
|
2
2
|
import { ChartsXAxisProps, ChartsAxisProps, ChartsYAxisProps, AxisId } from "../../../../models/axis.js";
|
|
3
3
|
import { ChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
4
|
-
import type { ChartDrawingArea } from
|
|
4
|
+
import type { ChartDrawingArea } from "../../../../hooks/index.js";
|
|
5
5
|
import { ChartSeriesConfig } from "../../models/seriesConfig/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ComputedAxisConfig, DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
|
|
7
7
|
import { ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
|
|
8
8
|
import { GetZoomAxisFilters, ZoomData } from "./zoom.types.js";
|
|
9
9
|
export type ComputeResult<T extends ChartsAxisProps> = {
|
|
10
|
-
axis:
|
|
10
|
+
axis: ComputedAxisConfig<T>;
|
|
11
11
|
axisIds: string[];
|
|
12
12
|
};
|
|
13
13
|
type ComputeCommonParams<T extends ChartSeriesType = ChartSeriesType> = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ChartsXAxisProps, ChartsYAxisProps } from "../../../../models/axis.js";
|
|
1
|
+
import { XAxis, YAxis } from "../../../../models/index.js";
|
|
2
|
+
import { DefaultedXAxis, DefaultedYAxis } from "../../../../models/axis.js";
|
|
4
3
|
import { DatasetType } from "../../../../models/seriesType/config.js";
|
|
5
|
-
export declare function defaultizeXAxis(
|
|
6
|
-
export declare function defaultizeYAxis(
|
|
4
|
+
export declare function defaultizeXAxis(inAxes: readonly XAxis[] | undefined, dataset: Readonly<DatasetType> | undefined): DefaultedXAxis[];
|
|
5
|
+
export declare function defaultizeYAxis(inAxes: readonly YAxis[] | undefined, dataset: Readonly<DatasetType> | undefined): DefaultedYAxis[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY, DEFAULT_AXIS_SIZE_HEIGHT, DEFAULT_AXIS_SIZE_WIDTH, AXIS_LABEL_DEFAULT_HEIGHT } from "../../../../constants/index.js";
|
|
3
|
-
export function defaultizeXAxis(
|
|
3
|
+
export function defaultizeXAxis(inAxes, dataset) {
|
|
4
4
|
const offsets = {
|
|
5
5
|
top: 0,
|
|
6
6
|
bottom: 0,
|
|
7
7
|
none: 0
|
|
8
8
|
};
|
|
9
|
-
const inputAxes =
|
|
9
|
+
const inputAxes = inAxes && inAxes.length > 0 ? inAxes : [{
|
|
10
10
|
id: DEFAULT_X_AXIS_KEY,
|
|
11
11
|
scaleType: 'linear'
|
|
12
12
|
}];
|
|
@@ -35,7 +35,7 @@ export function defaultizeXAxis(inAxis, dataset) {
|
|
|
35
35
|
return sharedConfig;
|
|
36
36
|
}
|
|
37
37
|
if (dataset === undefined) {
|
|
38
|
-
throw new Error(`MUI X: x-axis uses \`dataKey\` but no \`dataset\` is provided.`);
|
|
38
|
+
throw new Error(`MUI X Charts: x-axis uses \`dataKey\` but no \`dataset\` is provided.`);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// If `dataKey` is provided
|
|
@@ -45,13 +45,13 @@ export function defaultizeXAxis(inAxis, dataset) {
|
|
|
45
45
|
});
|
|
46
46
|
return parsedAxes;
|
|
47
47
|
}
|
|
48
|
-
export function defaultizeYAxis(
|
|
48
|
+
export function defaultizeYAxis(inAxes, dataset) {
|
|
49
49
|
const offsets = {
|
|
50
50
|
right: 0,
|
|
51
51
|
left: 0,
|
|
52
52
|
none: 0
|
|
53
53
|
};
|
|
54
|
-
const inputAxes =
|
|
54
|
+
const inputAxes = inAxes && inAxes.length > 0 ? inAxes : [{
|
|
55
55
|
id: DEFAULT_Y_AXIS_KEY,
|
|
56
56
|
scaleType: 'linear'
|
|
57
57
|
}];
|
|
@@ -80,7 +80,7 @@ export function defaultizeYAxis(inAxis, dataset) {
|
|
|
80
80
|
return sharedConfig;
|
|
81
81
|
}
|
|
82
82
|
if (dataset === undefined) {
|
|
83
|
-
throw new Error(`MUI X: y-axis uses \`dataKey\` but no \`dataset\` is provided.`);
|
|
83
|
+
throw new Error(`MUI X Charts: y-axis uses \`dataKey\` but no \`dataset\` is provided.`);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
// If `dataKey` is provided
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedAxis } from "../../../../models/axis.js";
|
|
2
2
|
/**
|
|
3
3
|
* For a pointer coordinate, this function returns the dataIndex associated.
|
|
4
4
|
* Returns `-1` if no dataIndex matches.
|
|
5
5
|
*/
|
|
6
|
-
export declare function getAxisIndex(axisConfig:
|
|
6
|
+
export declare function getAxisIndex(axisConfig: ComputedAxis, pointerValue: number): number;
|
|
7
7
|
/**
|
|
8
8
|
* For a pointer coordinate, this function returns the value associated.
|
|
9
9
|
* Returns `null` if the coordinate has no value associated.
|
|
10
10
|
*/
|
|
11
|
-
export declare function getAxisValue(axisConfig:
|
|
11
|
+
export declare function getAxisValue(axisConfig: ComputedAxis, pointerValue: number, dataIndex: number): number | Date | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { useChartCartesianAxis } from "./useChartCartesianAxis.js";
|
|
2
|
-
export type * from
|
|
2
|
+
export type * from "./useChartCartesianAxis.types.js";
|
|
3
3
|
export * from "./useChartCartesianAxisRendering.selectors.js";
|
|
4
4
|
export * from "./useChartCartesianAxisLayout.selectors.js";
|
|
5
5
|
export * from "./useChartCartesianInteraction.selectors.js";
|
package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
export declare const selectorChartLeftAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
2
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
1
|
+
export declare const selectorChartLeftAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
|
|
2
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
3
3
|
}) => number) & {
|
|
4
4
|
clearCache: () => void;
|
|
5
5
|
resultsCount: () => number;
|
|
6
6
|
resetResultsCount: () => void;
|
|
7
7
|
} & {
|
|
8
|
-
resultFunc: (resultFuncArgs_0: import("
|
|
9
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("
|
|
8
|
+
resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number;
|
|
9
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number) & {
|
|
10
10
|
clearCache: () => void;
|
|
11
11
|
resultsCount: () => number;
|
|
12
12
|
resetResultsCount: () => void;
|
|
13
13
|
};
|
|
14
14
|
lastResult: () => number;
|
|
15
|
-
dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
16
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
17
|
-
}) => import("
|
|
15
|
+
dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
|
|
16
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
17
|
+
}) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
|
|
18
18
|
clearCache: () => void;
|
|
19
19
|
resultsCount: () => number;
|
|
20
20
|
resetResultsCount: () => void;
|
|
21
21
|
} & {
|
|
22
22
|
resultFunc: (resultFuncArgs_0: {
|
|
23
|
-
x: import("
|
|
24
|
-
y: import("
|
|
25
|
-
} | undefined) => import("
|
|
23
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
24
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
25
|
+
} | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined;
|
|
26
26
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
27
|
-
x: import("
|
|
28
|
-
y: import("
|
|
29
|
-
} | undefined) => import("
|
|
27
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
28
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
29
|
+
} | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
|
|
30
30
|
clearCache: () => void;
|
|
31
31
|
resultsCount: () => number;
|
|
32
32
|
resetResultsCount: () => void;
|
|
33
33
|
};
|
|
34
|
-
lastResult: () => import("
|
|
35
|
-
dependencies: [(state: import("../../models").ChartState<[], [import("./useChartCartesianAxis.types").UseChartCartesianAxisSignature]>) => {
|
|
36
|
-
x: import("
|
|
37
|
-
y: import("
|
|
34
|
+
lastResult: () => import("../../../index.js").DefaultedYAxis[] | undefined;
|
|
35
|
+
dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
|
|
36
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
37
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
38
38
|
} | undefined];
|
|
39
39
|
recomputations: () => number;
|
|
40
40
|
resetRecomputations: () => void;
|
|
@@ -52,43 +52,43 @@ export declare const selectorChartLeftAxisSize: ((state: import("../../corePlugi
|
|
|
52
52
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
53
53
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
54
54
|
};
|
|
55
|
-
export declare const selectorChartRightAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
56
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
55
|
+
export declare const selectorChartRightAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
|
|
56
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
57
57
|
}) => number) & {
|
|
58
58
|
clearCache: () => void;
|
|
59
59
|
resultsCount: () => number;
|
|
60
60
|
resetResultsCount: () => void;
|
|
61
61
|
} & {
|
|
62
|
-
resultFunc: (resultFuncArgs_0: import("
|
|
63
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("
|
|
62
|
+
resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number;
|
|
63
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedYAxis[] | undefined) => number) & {
|
|
64
64
|
clearCache: () => void;
|
|
65
65
|
resultsCount: () => number;
|
|
66
66
|
resetResultsCount: () => void;
|
|
67
67
|
};
|
|
68
68
|
lastResult: () => number;
|
|
69
|
-
dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
70
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
71
|
-
}) => import("
|
|
69
|
+
dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
|
|
70
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
71
|
+
}) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
|
|
72
72
|
clearCache: () => void;
|
|
73
73
|
resultsCount: () => number;
|
|
74
74
|
resetResultsCount: () => void;
|
|
75
75
|
} & {
|
|
76
76
|
resultFunc: (resultFuncArgs_0: {
|
|
77
|
-
x: import("
|
|
78
|
-
y: import("
|
|
79
|
-
} | undefined) => import("
|
|
77
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
78
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
79
|
+
} | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined;
|
|
80
80
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
81
|
-
x: import("
|
|
82
|
-
y: import("
|
|
83
|
-
} | undefined) => import("
|
|
81
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
82
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
83
|
+
} | undefined) => import("../../../index.js").DefaultedYAxis[] | undefined) & {
|
|
84
84
|
clearCache: () => void;
|
|
85
85
|
resultsCount: () => number;
|
|
86
86
|
resetResultsCount: () => void;
|
|
87
87
|
};
|
|
88
|
-
lastResult: () => import("
|
|
89
|
-
dependencies: [(state: import("../../models").ChartState<[], [import("./useChartCartesianAxis.types").UseChartCartesianAxisSignature]>) => {
|
|
90
|
-
x: import("
|
|
91
|
-
y: import("
|
|
88
|
+
lastResult: () => import("../../../index.js").DefaultedYAxis[] | undefined;
|
|
89
|
+
dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
|
|
90
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
91
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
92
92
|
} | undefined];
|
|
93
93
|
recomputations: () => number;
|
|
94
94
|
resetRecomputations: () => void;
|
|
@@ -106,43 +106,43 @@ export declare const selectorChartRightAxisSize: ((state: import("../../corePlug
|
|
|
106
106
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
107
107
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
108
108
|
};
|
|
109
|
-
export declare const selectorChartTopAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
110
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
109
|
+
export declare const selectorChartTopAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
|
|
110
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
111
111
|
}) => number) & {
|
|
112
112
|
clearCache: () => void;
|
|
113
113
|
resultsCount: () => number;
|
|
114
114
|
resetResultsCount: () => void;
|
|
115
115
|
} & {
|
|
116
|
-
resultFunc: (resultFuncArgs_0: import("
|
|
117
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("
|
|
116
|
+
resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number;
|
|
117
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number) & {
|
|
118
118
|
clearCache: () => void;
|
|
119
119
|
resultsCount: () => number;
|
|
120
120
|
resetResultsCount: () => void;
|
|
121
121
|
};
|
|
122
122
|
lastResult: () => number;
|
|
123
|
-
dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
124
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
125
|
-
}) => import("
|
|
123
|
+
dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
|
|
124
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
125
|
+
}) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
|
|
126
126
|
clearCache: () => void;
|
|
127
127
|
resultsCount: () => number;
|
|
128
128
|
resetResultsCount: () => void;
|
|
129
129
|
} & {
|
|
130
130
|
resultFunc: (resultFuncArgs_0: {
|
|
131
|
-
x: import("
|
|
132
|
-
y: import("
|
|
133
|
-
} | undefined) => import("
|
|
131
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
132
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
133
|
+
} | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined;
|
|
134
134
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
135
|
-
x: import("
|
|
136
|
-
y: import("
|
|
137
|
-
} | undefined) => import("
|
|
135
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
136
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
137
|
+
} | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
|
|
138
138
|
clearCache: () => void;
|
|
139
139
|
resultsCount: () => number;
|
|
140
140
|
resetResultsCount: () => void;
|
|
141
141
|
};
|
|
142
|
-
lastResult: () => import("
|
|
143
|
-
dependencies: [(state: import("../../models").ChartState<[], [import("./useChartCartesianAxis.types").UseChartCartesianAxisSignature]>) => {
|
|
144
|
-
x: import("
|
|
145
|
-
y: import("
|
|
142
|
+
lastResult: () => import("../../../index.js").DefaultedXAxis[] | undefined;
|
|
143
|
+
dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
|
|
144
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
145
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
146
146
|
} | undefined];
|
|
147
147
|
recomputations: () => number;
|
|
148
148
|
resetRecomputations: () => void;
|
|
@@ -160,43 +160,43 @@ export declare const selectorChartTopAxisSize: ((state: import("../../corePlugin
|
|
|
160
160
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
161
161
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
162
162
|
};
|
|
163
|
-
export declare const selectorChartBottomAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
164
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
163
|
+
export declare const selectorChartBottomAxisSize: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
|
|
164
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
165
165
|
}) => number) & {
|
|
166
166
|
clearCache: () => void;
|
|
167
167
|
resultsCount: () => number;
|
|
168
168
|
resetResultsCount: () => void;
|
|
169
169
|
} & {
|
|
170
|
-
resultFunc: (resultFuncArgs_0: import("
|
|
171
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("
|
|
170
|
+
resultFunc: (resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number;
|
|
171
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../../../index.js").DefaultedXAxis[] | undefined) => number) & {
|
|
172
172
|
clearCache: () => void;
|
|
173
173
|
resultsCount: () => number;
|
|
174
174
|
resetResultsCount: () => void;
|
|
175
175
|
};
|
|
176
176
|
lastResult: () => number;
|
|
177
|
-
dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
178
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
179
|
-
}) => import("
|
|
177
|
+
dependencies: [((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
|
|
178
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
179
|
+
}) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
|
|
180
180
|
clearCache: () => void;
|
|
181
181
|
resultsCount: () => number;
|
|
182
182
|
resetResultsCount: () => void;
|
|
183
183
|
} & {
|
|
184
184
|
resultFunc: (resultFuncArgs_0: {
|
|
185
|
-
x: import("
|
|
186
|
-
y: import("
|
|
187
|
-
} | undefined) => import("
|
|
185
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
186
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
187
|
+
} | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined;
|
|
188
188
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
189
|
-
x: import("
|
|
190
|
-
y: import("
|
|
191
|
-
} | undefined) => import("
|
|
189
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
190
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
191
|
+
} | undefined) => import("../../../index.js").DefaultedXAxis[] | undefined) & {
|
|
192
192
|
clearCache: () => void;
|
|
193
193
|
resultsCount: () => number;
|
|
194
194
|
resetResultsCount: () => void;
|
|
195
195
|
};
|
|
196
|
-
lastResult: () => import("
|
|
197
|
-
dependencies: [(state: import("../../models").ChartState<[], [import("./useChartCartesianAxis.types").UseChartCartesianAxisSignature]>) => {
|
|
198
|
-
x: import("
|
|
199
|
-
y: import("
|
|
196
|
+
lastResult: () => import("../../../index.js").DefaultedXAxis[] | undefined;
|
|
197
|
+
dependencies: [(state: import("../../models/index.js").ChartState<[], [import("./useChartCartesianAxis.types.js").UseChartCartesianAxisSignature]>) => {
|
|
198
|
+
x: import("../../../index.js").DefaultedXAxis[];
|
|
199
|
+
y: import("../../../index.js").DefaultedYAxis[];
|
|
200
200
|
} | undefined];
|
|
201
201
|
recomputations: () => number;
|
|
202
202
|
resetRecomputations: () => void;
|
|
@@ -28,7 +28,7 @@ export const useChartCartesianAxis = ({
|
|
|
28
28
|
const ids = [...(xAxis ?? []), ...(yAxis ?? [])].filter(axis => axis.id).map(axis => axis.id);
|
|
29
29
|
const duplicates = new Set(ids.filter((id, index) => ids.indexOf(id) !== index));
|
|
30
30
|
if (duplicates.size > 0) {
|
|
31
|
-
warnOnce([`MUI X: The following axis ids are duplicated: ${Array.from(duplicates).join(', ')}.`, `Please make sure that each axis has a unique id.`].join('\n'), 'error');
|
|
31
|
+
warnOnce([`MUI X Charts: The following axis ids are duplicated: ${Array.from(duplicates).join(', ')}.`, `Please make sure that each axis has a unique id.`].join('\n'), 'error');
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
const drawingArea = useSelector(store, selectorChartDrawingArea);
|
package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import type { ChartPluginSignature } from
|
|
2
|
-
import type { ChartSeriesType, DatasetType } from
|
|
3
|
-
import type {
|
|
4
|
-
import type { UseChartSeriesSignature } from
|
|
5
|
-
import type { ZoomData, ZoomOptions } from
|
|
6
|
-
import type { UseChartInteractionSignature } from
|
|
7
|
-
import type { ChartsAxisProps } from
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import type { ChartPluginSignature } from "../../models/index.js";
|
|
2
|
+
import type { ChartSeriesType, DatasetType } from "../../../../models/seriesType/config.js";
|
|
3
|
+
import type { ComputedAxis, ScaleName, AxisId, ChartsAxisData, YAxis, XAxis, DefaultedXAxis, DefaultedYAxis } from "../../../../models/axis.js";
|
|
4
|
+
import type { UseChartSeriesSignature } from "../../corePlugins/useChartSeries/index.js";
|
|
5
|
+
import type { ZoomData, ZoomOptions } from "./zoom.types.js";
|
|
6
|
+
import type { UseChartInteractionSignature } from "../useChartInteraction/index.js";
|
|
7
|
+
import type { ChartsAxisProps } from "../../../../ChartsAxis/index.js";
|
|
8
|
+
/**
|
|
9
|
+
* The axes' configuration after computing.
|
|
10
|
+
* An axis in this state already contains a scale function and all the necessary properties to be rendered.
|
|
11
|
+
*/
|
|
12
|
+
export type ComputedAxisConfig<AxisProps extends ChartsAxisProps> = {
|
|
13
|
+
[axisId: AxisId]: ComputedAxis<ScaleName, any, AxisProps>;
|
|
10
14
|
};
|
|
11
15
|
export interface UseChartCartesianAxisParameters<S extends ScaleName = ScaleName> {
|
|
12
16
|
/**
|
|
@@ -29,7 +33,7 @@ export interface UseChartCartesianAxisParameters<S extends ScaleName = ScaleName
|
|
|
29
33
|
* The function called for onClick events.
|
|
30
34
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
31
35
|
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
32
|
-
* @param {null |
|
|
36
|
+
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
33
37
|
*/
|
|
34
38
|
onAxisClick?: (event: MouseEvent, data: null | ChartsAxisData) => void;
|
|
35
39
|
/**
|
|
@@ -40,8 +44,8 @@ export interface UseChartCartesianAxisParameters<S extends ScaleName = ScaleName
|
|
|
40
44
|
disableAxisListener?: boolean;
|
|
41
45
|
}
|
|
42
46
|
export type UseChartCartesianAxisDefaultizedParameters<S extends ScaleName = ScaleName> = UseChartCartesianAxisParameters<S> & {
|
|
43
|
-
defaultizedXAxis:
|
|
44
|
-
defaultizedYAxis:
|
|
47
|
+
defaultizedXAxis: DefaultedXAxis<S>[];
|
|
48
|
+
defaultizedYAxis: DefaultedYAxis<S>[];
|
|
45
49
|
};
|
|
46
50
|
export interface DefaultizedZoomOptions extends Required<ZoomOptions> {
|
|
47
51
|
axisId: AxisId;
|
|
@@ -56,8 +60,8 @@ export interface UseChartCartesianAxisState {
|
|
|
56
60
|
zoomData: readonly ZoomData[];
|
|
57
61
|
};
|
|
58
62
|
cartesianAxis: {
|
|
59
|
-
x:
|
|
60
|
-
y:
|
|
63
|
+
x: DefaultedXAxis[];
|
|
64
|
+
y: DefaultedYAxis[];
|
|
61
65
|
};
|
|
62
66
|
}
|
|
63
67
|
export type ExtremumFilter = (value: {
|