@mui/x-charts 8.26.0 → 9.0.0-alpha.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/AnimatedBarElement.d.ts +2 -2
- package/BarChart/AnimatedBarElement.js +1 -1
- package/BarChart/BarChart.js +9 -4
- package/BarChart/BarElement.d.ts +2 -2
- package/BarChart/BarElement.js +9 -9
- package/BarChart/BarLabel/BarLabel.js +1 -1
- package/BarChart/FocusedBar.js +4 -6
- package/BarChart/IndividualBarPlot.js +1 -1
- package/BarChart/barClasses.d.ts +1 -1
- package/BarChart/barClasses.js +2 -2
- package/BarChart/barElementClasses.d.ts +2 -1
- package/BarChart/barElementClasses.js +2 -2
- package/BarChart/seriesConfig/bar/extremums.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getColor.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +2 -2
- package/BarChart/seriesConfig/bar/keyboardFocusHandler.d.ts +2 -1
- package/BarChart/seriesConfig/bar/keyboardFocusHandler.js +4 -5
- package/BarChart/seriesConfig/bar/legend.d.ts +1 -1
- package/BarChart/seriesConfig/bar/legend.js +0 -1
- package/BarChart/seriesConfig/bar/seriesProcessor.d.ts +1 -1
- package/BarChart/seriesConfig/bar/tooltip.d.ts +1 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +1 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.js +5 -6
- package/BarChart/seriesConfig/index.d.ts +1 -1
- package/BarChart/seriesConfig/index.js +3 -1
- package/BarChart/useBarPlotData.d.ts +1 -1
- package/BarChart/useBarPlotData.js +9 -10
- package/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/CHANGELOG.md +355 -3
- package/ChartContainer/ChartContainer.d.ts +16 -29
- package/ChartContainer/ChartContainer.js +14 -1691
- package/ChartContainer/index.d.ts +1 -8
- package/ChartContainer/useChartContainerProps.d.ts +9 -10
- package/ChartContainer/useChartContainerProps.js +9 -94
- package/ChartDataProvider/ChartDataProvider.d.ts +5 -3
- package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/ChartDataProvider/useChartDataProviderProps.js +7 -6
- package/ChartsAxis/ChartsAxis.d.ts +1 -0
- package/ChartsAxis/ChartsAxis.js +4 -2
- package/ChartsAxis/axisClasses.d.ts +0 -5
- package/ChartsAxis/axisClasses.js +1 -1
- package/ChartsContainer/ChartsContainer.d.ts +37 -0
- package/ChartsContainer/ChartsContainer.js +1698 -0
- package/ChartsContainer/index.d.ts +1 -0
- package/ChartsContainer/index.js +16 -0
- package/ChartsContainer/useChartsContainerProps.d.ts +15 -0
- package/ChartsContainer/useChartsContainerProps.js +106 -0
- package/ChartsLabel/ChartsLabelMark.js +34 -32
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -3
- package/ChartsLabel/labelMarkClasses.js +1 -2
- package/ChartsLegend/ChartsLegend.js +1 -7
- package/ChartsLegend/chartsLegendClasses.d.ts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsLegend/legendContext.types.d.ts +1 -8
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
- package/ChartsSurface/ChartsSurface.js +5 -3
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -0
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -0
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +16 -1
- package/ChartsTooltip/index.d.ts +1 -2
- package/ChartsTooltip/index.js +0 -12
- package/ChartsTooltip/useAxesTooltip.d.ts +29 -3
- package/ChartsTooltip/useAxesTooltip.js +173 -6
- package/ChartsTooltip/useItemTooltip.d.ts +1 -1
- package/ChartsTooltip/useItemTooltip.js +2 -2
- package/ChartsXAxis/ChartsXAxis.d.ts +3 -1
- package/ChartsXAxis/ChartsXAxis.js +2 -1
- package/ChartsXAxis/ChartsXAxisImpl.js +2 -1
- package/ChartsXAxis/getVisibleLabels.d.ts +2 -2
- package/ChartsXAxis/shortenLabels.d.ts +2 -2
- package/ChartsXAxis/useAxisTicksProps.d.ts +674 -671
- package/ChartsXAxis/useAxisTicksProps.js +1 -1
- package/ChartsXAxis/utilities.d.ts +1 -1
- package/ChartsXAxis/utilities.js +2 -3
- package/ChartsYAxis/ChartsYAxis.d.ts +3 -1
- package/ChartsYAxis/ChartsYAxis.js +2 -1
- package/ChartsYAxis/ChartsYAxisImpl.js +2 -1
- package/ChartsYAxis/shortenLabels.d.ts +2 -2
- package/ChartsYAxis/useAxisTicksProps.d.ts +674 -671
- package/ChartsYAxis/useAxisTicksProps.js +1 -1
- package/ChartsYAxis/utilities.js +2 -3
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +3 -1
- package/LineChart/AnimatedArea.js +3 -3
- package/LineChart/AnimatedLine.js +4 -4
- package/LineChart/AppearingMask.d.ts +1 -1
- package/LineChart/AppearingMask.js +1 -1
- package/LineChart/AreaElement.d.ts +2 -2
- package/LineChart/AreaElement.js +8 -8
- package/LineChart/AreaPlot.js +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +5 -5
- package/LineChart/LineChart.js +9 -4
- package/LineChart/LineElement.d.ts +2 -2
- package/LineChart/LineElement.js +8 -8
- package/LineChart/LineHighlightElement.d.ts +3 -3
- package/LineChart/LineHighlightElement.js +4 -4
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LinePlot.js +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +5 -5
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/markElementClasses.d.ts +1 -1
- package/LineChart/markElementClasses.js +2 -2
- package/LineChart/seriesConfig/extremums.d.ts +1 -1
- package/LineChart/seriesConfig/getColor.d.ts +1 -1
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/LineChart/seriesConfig/index.d.ts +1 -1
- package/LineChart/seriesConfig/index.js +3 -1
- package/LineChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
- package/LineChart/seriesConfig/keyboardFocusHandler.js +4 -5
- package/LineChart/seriesConfig/legend.d.ts +1 -1
- package/LineChart/seriesConfig/legend.js +0 -1
- package/LineChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/LineChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/PieChart/FocusedPieArc.d.ts +1 -1
- package/PieChart/FocusedPieArc.js +1 -1
- package/PieChart/PieArc.d.ts +4 -4
- package/PieChart/PieArc.js +7 -7
- package/PieChart/PieArcLabel.d.ts +4 -4
- package/PieChart/PieArcLabel.js +6 -6
- package/PieChart/PieArcLabelPlot.d.ts +5 -1
- package/PieChart/PieArcLabelPlot.js +5 -5
- package/PieChart/PieArcPlot.d.ts +5 -1
- package/PieChart/PieArcPlot.js +6 -6
- package/PieChart/PieChart.js +4 -4
- package/PieChart/PiePlot.js +2 -2
- package/PieChart/index.d.ts +1 -0
- package/PieChart/index.js +12 -0
- package/PieChart/pieClasses.d.ts +1 -1
- package/PieChart/seriesConfig/getColor.d.ts +1 -1
- package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/PieChart/seriesConfig/index.d.ts +1 -1
- package/PieChart/seriesConfig/index.js +3 -1
- package/PieChart/seriesConfig/legend.d.ts +1 -1
- package/PieChart/seriesConfig/legend.js +0 -1
- package/PieChart/seriesConfig/seriesLayout.d.ts +1 -1
- package/PieChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/PieChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/RadarChart/RadarAxisHighlight/index.d.ts +2 -1
- package/RadarChart/RadarChart.d.ts +1 -1
- package/RadarChart/RadarChart.js +4 -4
- package/RadarChart/RadarGrid/index.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +2 -0
- package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.js +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +2 -2
- package/RadarChart/seriesConfig/extremums.d.ts +1 -1
- package/RadarChart/seriesConfig/getColor.d.ts +1 -1
- package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/RadarChart/seriesConfig/index.d.ts +1 -1
- package/RadarChart/seriesConfig/index.js +3 -1
- package/RadarChart/seriesConfig/legend.d.ts +1 -1
- package/RadarChart/seriesConfig/legend.js +0 -1
- package/RadarChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadarChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/RadarChart/useRadarChartProps.js +1 -1
- package/ScatterChart/BatchScatter.d.ts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/ScatterChart.js +9 -4
- package/ScatterChart/scatterClasses.js +2 -2
- package/ScatterChart/seriesConfig/extremums.d.ts +1 -1
- package/ScatterChart/seriesConfig/getColor.d.ts +1 -1
- package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/ScatterChart/seriesConfig/index.d.ts +1 -1
- package/ScatterChart/seriesConfig/index.js +3 -1
- package/ScatterChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
- package/ScatterChart/seriesConfig/keyboardFocusHandler.js +4 -5
- package/ScatterChart/seriesConfig/legend.d.ts +1 -1
- package/ScatterChart/seriesConfig/legend.js +0 -1
- package/ScatterChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/ScatterChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.js +16 -16
- package/context/ChartProvider/ChartProvider.d.ts +3 -4
- package/context/ChartProvider/ChartProvider.js +2 -15
- package/context/ChartProvider/ChartProvider.types.d.ts +3 -18
- package/context/index.d.ts +2 -1
- package/esm/BarChart/AnimatedBarElement.d.ts +2 -2
- package/esm/BarChart/AnimatedBarElement.js +1 -1
- package/esm/BarChart/BarChart.js +9 -4
- package/esm/BarChart/BarElement.d.ts +2 -2
- package/esm/BarChart/BarElement.js +9 -9
- package/esm/BarChart/BarLabel/BarLabel.js +1 -1
- package/esm/BarChart/FocusedBar.js +4 -6
- package/esm/BarChart/IndividualBarPlot.js +1 -1
- package/esm/BarChart/barClasses.d.ts +1 -1
- package/esm/BarChart/barClasses.js +2 -2
- package/esm/BarChart/barElementClasses.d.ts +2 -1
- package/esm/BarChart/barElementClasses.js +2 -2
- package/esm/BarChart/seriesConfig/bar/extremums.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/getColor.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +2 -2
- package/esm/BarChart/seriesConfig/bar/keyboardFocusHandler.d.ts +2 -1
- package/esm/BarChart/seriesConfig/bar/keyboardFocusHandler.js +5 -6
- package/esm/BarChart/seriesConfig/bar/legend.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/legend.js +0 -1
- package/esm/BarChart/seriesConfig/bar/seriesProcessor.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/tooltip.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/tooltipPosition.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/tooltipPosition.js +5 -6
- package/esm/BarChart/seriesConfig/index.d.ts +1 -1
- package/esm/BarChart/seriesConfig/index.js +3 -1
- package/esm/BarChart/useBarPlotData.d.ts +1 -1
- package/esm/BarChart/useBarPlotData.js +9 -10
- package/esm/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/esm/ChartContainer/ChartContainer.d.ts +16 -29
- package/esm/ChartContainer/ChartContainer.js +15 -1690
- package/esm/ChartContainer/index.d.ts +1 -8
- package/esm/ChartContainer/index.js +1 -6
- package/esm/ChartContainer/useChartContainerProps.d.ts +9 -10
- package/esm/ChartContainer/useChartContainerProps.js +10 -93
- package/esm/ChartDataProvider/ChartDataProvider.d.ts +5 -3
- package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/esm/ChartDataProvider/useChartDataProviderProps.js +7 -6
- package/esm/ChartsAxis/ChartsAxis.d.ts +1 -0
- package/esm/ChartsAxis/ChartsAxis.js +4 -2
- package/esm/ChartsAxis/axisClasses.d.ts +0 -5
- package/esm/ChartsAxis/axisClasses.js +1 -1
- package/esm/ChartsContainer/ChartsContainer.d.ts +37 -0
- package/esm/ChartsContainer/ChartsContainer.js +1692 -0
- package/esm/ChartsContainer/index.d.ts +1 -0
- package/esm/ChartsContainer/index.js +1 -0
- package/esm/ChartsContainer/useChartsContainerProps.d.ts +15 -0
- package/esm/ChartsContainer/useChartsContainerProps.js +99 -0
- package/esm/ChartsLabel/ChartsLabelMark.js +35 -33
- package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -3
- package/esm/ChartsLabel/labelMarkClasses.js +1 -2
- package/esm/ChartsLegend/ChartsLegend.js +1 -7
- package/esm/ChartsLegend/chartsLegendClasses.d.ts +1 -1
- package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/esm/ChartsLegend/legendContext.types.d.ts +1 -8
- package/esm/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
- package/esm/ChartsSurface/ChartsSurface.js +6 -4
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -0
- package/esm/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -0
- package/esm/ChartsTooltip/ChartsTooltipContainer.d.ts +16 -1
- package/esm/ChartsTooltip/index.d.ts +1 -2
- package/esm/ChartsTooltip/index.js +0 -1
- package/esm/ChartsTooltip/useAxesTooltip.d.ts +29 -3
- package/esm/ChartsTooltip/useAxesTooltip.js +173 -5
- package/esm/ChartsTooltip/useItemTooltip.d.ts +1 -1
- package/esm/ChartsTooltip/useItemTooltip.js +1 -1
- package/esm/ChartsXAxis/ChartsXAxis.d.ts +3 -1
- package/esm/ChartsXAxis/ChartsXAxis.js +1 -2
- package/esm/ChartsXAxis/ChartsXAxisImpl.js +2 -1
- package/esm/ChartsXAxis/getVisibleLabels.d.ts +2 -2
- package/esm/ChartsXAxis/shortenLabels.d.ts +2 -2
- package/esm/ChartsXAxis/useAxisTicksProps.d.ts +674 -671
- package/esm/ChartsXAxis/useAxisTicksProps.js +1 -1
- package/esm/ChartsXAxis/utilities.d.ts +1 -1
- package/esm/ChartsXAxis/utilities.js +2 -3
- package/esm/ChartsYAxis/ChartsYAxis.d.ts +3 -1
- package/esm/ChartsYAxis/ChartsYAxis.js +1 -2
- package/esm/ChartsYAxis/ChartsYAxisImpl.js +2 -1
- package/esm/ChartsYAxis/shortenLabels.d.ts +2 -2
- package/esm/ChartsYAxis/useAxisTicksProps.d.ts +674 -671
- package/esm/ChartsYAxis/useAxisTicksProps.js +1 -1
- package/esm/ChartsYAxis/utilities.js +2 -3
- package/esm/Gauge/GaugeContainer.d.ts +1 -1
- package/esm/Gauge/GaugeContainer.js +3 -1
- package/esm/LineChart/AnimatedArea.js +3 -3
- package/esm/LineChart/AnimatedLine.js +4 -4
- package/esm/LineChart/AppearingMask.d.ts +1 -1
- package/esm/LineChart/AppearingMask.js +1 -1
- package/esm/LineChart/AreaElement.d.ts +2 -2
- package/esm/LineChart/AreaElement.js +8 -8
- package/esm/LineChart/AreaPlot.js +1 -1
- package/esm/LineChart/CircleMarkElement.d.ts +1 -1
- package/esm/LineChart/CircleMarkElement.js +5 -5
- package/esm/LineChart/LineChart.js +9 -4
- package/esm/LineChart/LineElement.d.ts +2 -2
- package/esm/LineChart/LineElement.js +8 -8
- package/esm/LineChart/LineHighlightElement.d.ts +3 -3
- package/esm/LineChart/LineHighlightElement.js +4 -4
- package/esm/LineChart/LineHighlightPlot.js +1 -1
- package/esm/LineChart/LinePlot.js +1 -1
- package/esm/LineChart/MarkElement.d.ts +1 -1
- package/esm/LineChart/MarkElement.js +5 -5
- package/esm/LineChart/MarkPlot.js +1 -1
- package/esm/LineChart/markElementClasses.d.ts +1 -1
- package/esm/LineChart/markElementClasses.js +2 -2
- package/esm/LineChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/LineChart/seriesConfig/index.d.ts +1 -1
- package/esm/LineChart/seriesConfig/index.js +3 -1
- package/esm/LineChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
- package/esm/LineChart/seriesConfig/keyboardFocusHandler.js +5 -6
- package/esm/LineChart/seriesConfig/legend.d.ts +1 -1
- package/esm/LineChart/seriesConfig/legend.js +0 -1
- package/esm/LineChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/LineChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/esm/PieChart/FocusedPieArc.d.ts +1 -1
- package/esm/PieChart/FocusedPieArc.js +1 -1
- package/esm/PieChart/PieArc.d.ts +4 -4
- package/esm/PieChart/PieArc.js +7 -7
- package/esm/PieChart/PieArcLabel.d.ts +4 -4
- package/esm/PieChart/PieArcLabel.js +6 -6
- package/esm/PieChart/PieArcLabelPlot.d.ts +5 -1
- package/esm/PieChart/PieArcLabelPlot.js +5 -5
- package/esm/PieChart/PieArcPlot.d.ts +5 -1
- package/esm/PieChart/PieArcPlot.js +6 -6
- package/esm/PieChart/PieChart.js +4 -4
- package/esm/PieChart/PiePlot.js +2 -2
- package/esm/PieChart/index.d.ts +1 -0
- package/esm/PieChart/index.js +1 -0
- package/esm/PieChart/pieClasses.d.ts +1 -1
- package/esm/PieChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/PieChart/seriesConfig/index.d.ts +1 -1
- package/esm/PieChart/seriesConfig/index.js +3 -1
- package/esm/PieChart/seriesConfig/legend.d.ts +1 -1
- package/esm/PieChart/seriesConfig/legend.js +0 -1
- package/esm/PieChart/seriesConfig/seriesLayout.d.ts +1 -1
- package/esm/PieChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/PieChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/esm/RadarChart/RadarAxisHighlight/index.d.ts +2 -1
- package/esm/RadarChart/RadarAxisHighlight/index.js +2 -1
- package/esm/RadarChart/RadarChart.d.ts +1 -1
- package/esm/RadarChart/RadarChart.js +4 -4
- package/esm/RadarChart/RadarGrid/index.d.ts +2 -1
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +2 -0
- package/esm/RadarChart/RadarSeriesPlot/useRadarRotationIndex.js +2 -2
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +2 -2
- package/esm/RadarChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/index.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/index.js +3 -1
- package/esm/RadarChart/seriesConfig/legend.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/legend.js +0 -1
- package/esm/RadarChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/esm/RadarChart/useRadarChartProps.js +1 -1
- package/esm/ScatterChart/BatchScatter.d.ts +1 -1
- package/esm/ScatterChart/Scatter.d.ts +1 -1
- package/esm/ScatterChart/ScatterChart.js +9 -4
- package/esm/ScatterChart/scatterClasses.js +2 -2
- package/esm/ScatterChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/index.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/index.js +3 -1
- package/esm/ScatterChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
- package/esm/ScatterChart/seriesConfig/keyboardFocusHandler.js +5 -6
- package/esm/ScatterChart/seriesConfig/legend.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/legend.js +0 -1
- package/esm/ScatterChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/esm/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/esm/SparkLineChart/SparkLineChart.js +16 -16
- package/esm/context/ChartProvider/ChartProvider.d.ts +3 -4
- package/esm/context/ChartProvider/ChartProvider.js +2 -14
- package/esm/context/ChartProvider/ChartProvider.types.d.ts +3 -18
- package/esm/context/index.d.ts +2 -1
- package/esm/hooks/index.d.ts +4 -1
- package/esm/hooks/index.js +3 -1
- package/esm/hooks/useAxisCoordinates.d.ts +30 -0
- package/esm/hooks/useAxisCoordinates.js +105 -0
- package/esm/hooks/useAxisTicks.d.ts +14 -0
- package/esm/hooks/useAxisTicks.js +68 -0
- package/esm/hooks/useChartRootRef.d.ts +1 -1
- package/esm/hooks/useChartRootRef.js +4 -2
- package/esm/hooks/useInteractionItemProps.d.ts +1 -1
- package/esm/hooks/useLegend.js +1 -1
- package/esm/hooks/useSvgRef.js +4 -5
- package/esm/hooks/useTicks.d.ts +19 -4
- package/esm/index.d.ts +3 -1
- package/esm/index.js +2 -1
- package/esm/internals/commonNextFocusItem.d.ts +2 -0
- package/esm/internals/commonNextFocusItem.js +3 -2
- package/esm/internals/components/WebGLContext.d.ts +3 -0
- package/esm/internals/components/WebGLContext.js +108 -0
- package/esm/internals/consumeSlots.js +1 -1
- package/esm/internals/consumeThemeProps.js +1 -1
- package/esm/internals/{getBarDimensions.d.ts → createGetBarDimensions.d.ts} +2 -4
- package/esm/internals/createGetBarDimensions.js +55 -0
- package/esm/internals/getChartPoint.d.ts +7 -0
- package/esm/internals/getChartPoint.js +13 -0
- package/esm/internals/getSeriesColorFn.d.ts +3 -2
- package/esm/internals/identifierCleaner.d.ts +11 -0
- package/esm/internals/identifierCleaner.js +12 -0
- package/esm/internals/index.d.ts +8 -2
- package/esm/internals/index.js +8 -3
- package/esm/internals/plugins/corePlugins/corePlugins.d.ts +5 -3
- package/esm/internals/plugins/corePlugins/corePlugins.js +3 -1
- package/esm/internals/plugins/corePlugins/index.d.ts +2 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +4 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +5 -5
- package/esm/internals/plugins/corePlugins/useChartElementRef/index.d.ts +2 -0
- package/esm/internals/plugins/corePlugins/useChartElementRef/index.js +1 -0
- package/esm/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.js +14 -0
- package/esm/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.types.d.ts +15 -0
- package/esm/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +5 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +6 -14
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +4 -7
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +2 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +3 -16
- package/esm/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/index.d.ts +4 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/index.js +3 -0
- package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/cartesianExtremumGetter.types.d.ts +3 -3
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/colorProcessor.types.d.ts +4 -4
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +8 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +3 -0
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.d.ts +3 -1
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.js +3 -1
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +4 -0
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/polarExtremumGetter.types.d.ts +3 -3
- package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesConfig.types.d.ts +20 -3
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/seriesLayout.types.d.ts +3 -3
- package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesProcessor.types.d.ts +4 -4
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.js +1 -0
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/tooltipGetter.types.d.ts +5 -5
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.js +1 -0
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/tooltipItemPositionGetter.types.d.ts +6 -6
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.js +1 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.js +35 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.d.ts +6 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js +3 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +48 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js +1 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +15 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.js +18 -0
- package/esm/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +3 -2
- package/esm/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +6 -4
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +14 -14
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +4 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +22 -9
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +18 -12
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +7 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +3 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +50 -51
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +6 -6
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +8 -8
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +5 -3
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +11 -7
- package/esm/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +3 -3
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +17 -19
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +4 -4
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +6 -6
- package/esm/internals/plugins/featurePlugins/useChartItemClick/index.d.ts +2 -0
- package/esm/internals/plugins/featurePlugins/useChartItemClick/index.js +1 -0
- package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.ts +3 -0
- package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +48 -0
- package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +23 -0
- package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.js +1 -0
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -3
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +7 -7
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +8 -7
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +6 -6
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.js +4 -4
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.d.ts +3 -5
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.js +9 -4
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +1 -1
- package/esm/internals/plugins/models/index.d.ts +1 -2
- package/esm/internals/plugins/models/index.js +1 -2
- package/esm/internals/plugins/models/plugin.d.ts +1 -16
- package/esm/internals/plugins/utils/defaultSeriesConfig.d.ts +2 -0
- package/esm/internals/plugins/utils/defaultSeriesConfig.js +10 -0
- package/esm/internals/seriesSelectorOfType.d.ts +8 -8
- package/esm/internals/seriesSelectorOfType.js +1 -1
- package/esm/internals/stacking/stackSeries.d.ts +3 -2
- package/esm/internals/stacking/stackSeries.js +0 -1
- package/esm/internals/store/useCharts.d.ts +2 -7
- package/esm/internals/store/useCharts.js +4 -12
- package/esm/internals/store/useCharts.types.d.ts +6 -0
- package/esm/models/axis.d.ts +16 -3
- package/esm/models/index.d.ts +1 -0
- package/esm/models/seriesType/bar.d.ts +1 -1
- package/esm/models/seriesType/common.d.ts +5 -5
- package/esm/models/seriesType/config.d.ts +8 -1
- package/esm/models/seriesType/index.d.ts +5 -30
- package/esm/models/seriesType/index.js +1 -32
- package/esm/models/seriesType/line.d.ts +1 -1
- package/esm/models/seriesType/pie.d.ts +1 -1
- package/esm/models/seriesType/radar.d.ts +1 -1
- package/esm/models/seriesType/scatter.d.ts +1 -1
- package/hooks/index.d.ts +4 -1
- package/hooks/index.js +28 -1
- package/hooks/useAxisCoordinates.d.ts +30 -0
- package/hooks/useAxisCoordinates.js +115 -0
- package/hooks/useAxisTicks.d.ts +14 -0
- package/hooks/useAxisTicks.js +75 -0
- package/hooks/useChartRootRef.d.ts +1 -1
- package/hooks/useChartRootRef.js +4 -2
- package/hooks/useInteractionItemProps.d.ts +1 -1
- package/hooks/useLegend.js +2 -2
- package/hooks/useSvgRef.js +4 -5
- package/hooks/useTicks.d.ts +19 -4
- package/index.d.ts +3 -1
- package/index.js +9 -1
- package/internals/commonNextFocusItem.d.ts +2 -0
- package/internals/commonNextFocusItem.js +4 -2
- package/internals/components/WebGLContext.d.ts +3 -0
- package/internals/components/WebGLContext.js +116 -0
- package/internals/consumeSlots.js +1 -1
- package/internals/consumeThemeProps.js +1 -1
- package/internals/{getBarDimensions.d.ts → createGetBarDimensions.d.ts} +2 -4
- package/internals/createGetBarDimensions.js +61 -0
- package/internals/getChartPoint.d.ts +7 -0
- package/internals/getChartPoint.js +19 -0
- package/internals/getSeriesColorFn.d.ts +3 -2
- package/internals/identifierCleaner.d.ts +11 -0
- package/internals/identifierCleaner.js +19 -0
- package/internals/index.d.ts +8 -2
- package/internals/index.js +76 -4
- package/internals/plugins/corePlugins/corePlugins.d.ts +5 -3
- package/internals/plugins/corePlugins/corePlugins.js +3 -1
- package/internals/plugins/corePlugins/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +4 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +5 -5
- package/internals/plugins/corePlugins/useChartElementRef/index.d.ts +2 -0
- package/internals/plugins/corePlugins/useChartElementRef/index.js +12 -0
- package/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.js +21 -0
- package/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.types.d.ts +15 -0
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +5 -2
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +6 -14
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +4 -7
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +5 -5
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +3 -16
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/index.d.ts +4 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/index.js +39 -0
- package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/colorProcessor.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +8 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +3 -0
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.d.ts +3 -1
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.js +22 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +4 -0
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/polarExtremumGetter.types.d.ts +3 -3
- package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesConfig.types.d.ts +20 -3
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/seriesLayout.types.d.ts +3 -3
- package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesProcessor.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.js +5 -0
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/tooltipGetter.types.d.ts +5 -5
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.js +5 -0
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/tooltipItemPositionGetter.types.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.js +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.js +42 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.d.ts +6 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js +10 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +48 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +15 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.js +25 -0
- package/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.d.ts +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +3 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +6 -4
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +14 -14
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +4 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +21 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +18 -12
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +7 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +4 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +3 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +50 -51
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +7 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +6 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +8 -8
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +5 -3
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +11 -7
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +5 -5
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +17 -19
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -3
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +6 -6
- package/internals/plugins/featurePlugins/useChartItemClick/index.d.ts +2 -0
- package/internals/plugins/featurePlugins/useChartItemClick/index.js +12 -0
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +54 -0
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +23 -0
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.js +5 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +7 -7
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +8 -7
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +3 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +6 -6
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -1
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.js +4 -4
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.d.ts +3 -5
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.js +9 -4
- package/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.js +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +1 -1
- package/internals/plugins/models/index.d.ts +1 -2
- package/internals/plugins/models/index.js +0 -11
- package/internals/plugins/models/plugin.d.ts +1 -16
- package/internals/plugins/utils/defaultSeriesConfig.d.ts +2 -0
- package/internals/plugins/utils/defaultSeriesConfig.js +16 -0
- package/internals/seriesSelectorOfType.d.ts +8 -8
- package/internals/seriesSelectorOfType.js +1 -1
- package/internals/stacking/stackSeries.d.ts +3 -2
- package/internals/stacking/stackSeries.js +0 -1
- package/internals/store/useCharts.d.ts +2 -7
- package/internals/store/useCharts.js +4 -12
- package/internals/store/useCharts.types.d.ts +6 -0
- package/models/axis.d.ts +16 -3
- package/models/index.d.ts +1 -0
- package/models/seriesType/bar.d.ts +1 -1
- package/models/seriesType/common.d.ts +5 -5
- package/models/seriesType/config.d.ts +8 -1
- package/models/seriesType/index.d.ts +5 -30
- package/models/seriesType/index.js +1 -48
- package/models/seriesType/line.d.ts +1 -1
- package/models/seriesType/pie.d.ts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/models/seriesType/scatter.d.ts +1 -1
- package/package.json +6 -6
- package/ChartsTooltip/useAxisTooltip.d.ts +0 -42
- package/ChartsTooltip/useAxisTooltip.js +0 -181
- package/esm/ChartsTooltip/useAxisTooltip.d.ts +0 -42
- package/esm/ChartsTooltip/useAxisTooltip.js +0 -176
- package/esm/internals/getBarDimensions.js +0 -55
- package/esm/internals/getSVGPoint.d.ts +0 -6
- package/esm/internals/getSVGPoint.js +0 -11
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.d.ts +0 -4
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.js +0 -5
- package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +0 -3
- package/esm/internals/plugins/models/seriesConfig/identifierSerializer.types.d.ts +0 -2
- package/esm/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +0 -4
- package/internals/getBarDimensions.js +0 -61
- package/internals/getSVGPoint.d.ts +0 -6
- package/internals/getSVGPoint.js +0 -17
- package/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.d.ts +0 -4
- package/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.js +0 -12
- package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +0 -3
- package/internals/plugins/models/seriesConfig/identifierSerializer.types.d.ts +0 -2
- package/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +0 -4
- /package/esm/internals/plugins/{models/seriesConfig/cartesianExtremumGetter.types.js → corePlugins/useChartElementRef/useChartElementRef.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/colorProcessor.types.js → corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/getSeriesWithDefaultValues.types.js → corePlugins/useChartSeriesConfig/types/colorProcessor.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/identifierSerializer.types.js → corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/legendGetter.types.js → corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/polarExtremumGetter.types.js → corePlugins/useChartSeriesConfig/types/identifierCleaner.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/seriesConfig.types.js → corePlugins/useChartSeriesConfig/types/identifierSerializer.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/seriesLayout.types.js → corePlugins/useChartSeriesConfig/types/legendGetter.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/seriesProcessor.types.js → corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/tooltipGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesConfig.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/tooltipItemPositionGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesLayout.types.js} +0 -0
- /package/esm/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.js +0 -0
- /package/internals/plugins/{models/seriesConfig/cartesianExtremumGetter.types.js → corePlugins/useChartElementRef/useChartElementRef.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/colorProcessor.types.js → corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/getSeriesWithDefaultValues.types.js → corePlugins/useChartSeriesConfig/types/colorProcessor.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/identifierSerializer.types.js → corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/legendGetter.types.js → corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/polarExtremumGetter.types.js → corePlugins/useChartSeriesConfig/types/identifierCleaner.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/seriesConfig.types.js → corePlugins/useChartSeriesConfig/types/identifierSerializer.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/seriesLayout.types.js → corePlugins/useChartSeriesConfig/types/legendGetter.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/seriesProcessor.types.js → corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/tooltipGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesConfig.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/tooltipItemPositionGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesLayout.types.js} +0 -0
- /package/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.js +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type TickItem } from "./useTicks.js";
|
|
2
|
+
import { type AxisId } from "../models/axis.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns the ticks for the given X axis. Ticks outside the drawing area are not included.
|
|
5
|
+
* The ticks returned from this hook are not grouped, i.e., they don't follow the `groups` prop of the axis.
|
|
6
|
+
* @param axisId The id of the X axis.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useXAxisTicks(axisId: AxisId): TickItem[];
|
|
9
|
+
/**
|
|
10
|
+
* Returns the ticks for the given Y axis. Ticks outside the drawing area are not included.
|
|
11
|
+
* The ticks returned from this hook are not grouped, i.e., they don't follow the `groups` prop of the axis.
|
|
12
|
+
* @param axisId The id of the Y axis.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useYAxisTicks(axisId: AxisId): TickItem[];
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import { useThemeProps } from '@mui/material/styles';
|
|
3
|
+
import { useXAxes, useYAxes } from "./useAxis.js";
|
|
4
|
+
import { useTicks } from "./useTicks.js";
|
|
5
|
+
import { defaultProps } from "../ChartsXAxis/utilities.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Returns the ticks for the given X axis. Ticks outside the drawing area are not included.
|
|
9
|
+
* The ticks returned from this hook are not grouped, i.e., they don't follow the `groups` prop of the axis.
|
|
10
|
+
* @param axisId The id of the X axis.
|
|
11
|
+
*/
|
|
12
|
+
export function useXAxisTicks(axisId) {
|
|
13
|
+
const {
|
|
14
|
+
xAxis: xAxes
|
|
15
|
+
} = useXAxes();
|
|
16
|
+
const axis = xAxes[axisId];
|
|
17
|
+
|
|
18
|
+
// FIXME: `useAxisTicksProps` does this, but should we do it here?
|
|
19
|
+
// eslint-disable-next-line mui/material-ui-name-matches-component-name
|
|
20
|
+
const themedProps = useThemeProps({
|
|
21
|
+
props: axis,
|
|
22
|
+
name: 'MuiChartsXAxis'
|
|
23
|
+
});
|
|
24
|
+
const defaultizedProps = _extends({}, defaultProps, themedProps);
|
|
25
|
+
return useTicks({
|
|
26
|
+
scale: axis.scale,
|
|
27
|
+
tickNumber: axis.tickNumber,
|
|
28
|
+
valueFormatter: defaultizedProps.valueFormatter,
|
|
29
|
+
tickInterval: defaultizedProps.tickInterval,
|
|
30
|
+
tickPlacement: defaultizedProps.tickPlacement,
|
|
31
|
+
tickLabelPlacement: defaultizedProps.tickLabelPlacement,
|
|
32
|
+
tickSpacing: defaultizedProps.tickSpacing,
|
|
33
|
+
direction: 'x',
|
|
34
|
+
ordinalTimeTicks: 'ordinalTimeTicks' in defaultizedProps ? defaultizedProps.ordinalTimeTicks : undefined
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Returns the ticks for the given Y axis. Ticks outside the drawing area are not included.
|
|
40
|
+
* The ticks returned from this hook are not grouped, i.e., they don't follow the `groups` prop of the axis.
|
|
41
|
+
* @param axisId The id of the Y axis.
|
|
42
|
+
*/
|
|
43
|
+
export function useYAxisTicks(axisId) {
|
|
44
|
+
const {
|
|
45
|
+
yAxis: yAxes
|
|
46
|
+
} = useYAxes();
|
|
47
|
+
const axis = yAxes[axisId];
|
|
48
|
+
|
|
49
|
+
// FIXME: `useAxisTicksProps` does this, but should we do it here?
|
|
50
|
+
// eslint-disable-next-line mui/material-ui-name-matches-component-name
|
|
51
|
+
const themedProps = useThemeProps({
|
|
52
|
+
props: axis,
|
|
53
|
+
name: 'MuiChartsYAxis'
|
|
54
|
+
});
|
|
55
|
+
const defaultizedProps = _extends({}, defaultProps, themedProps);
|
|
56
|
+
return useTicks({
|
|
57
|
+
scale: axis.scale,
|
|
58
|
+
tickNumber: axis.tickNumber,
|
|
59
|
+
valueFormatter: defaultizedProps.valueFormatter,
|
|
60
|
+
tickInterval: defaultizedProps.tickInterval,
|
|
61
|
+
tickPlacement: defaultizedProps.tickPlacement,
|
|
62
|
+
tickLabelPlacement: defaultizedProps.tickLabelPlacement,
|
|
63
|
+
tickSpacing: defaultizedProps.tickSpacing,
|
|
64
|
+
direction: 'y',
|
|
65
|
+
// @ts-expect-error
|
|
66
|
+
ordinalTimeTicks: defaultizedProps.ordinalTimeTicks
|
|
67
|
+
});
|
|
68
|
+
}
|
|
@@ -3,4 +3,4 @@ import type * as React from 'react';
|
|
|
3
3
|
* Get the ref for the root chart element.
|
|
4
4
|
* @returns The root chart element ref.
|
|
5
5
|
*/
|
|
6
|
-
export declare function useChartRootRef(): React.RefObject<
|
|
6
|
+
export declare function useChartRootRef<T extends Element = HTMLDivElement>(): React.RefObject<T | null>;
|
|
@@ -7,6 +7,8 @@ import { useChartContext } from "../context/ChartProvider/index.js";
|
|
|
7
7
|
* @returns The root chart element ref.
|
|
8
8
|
*/
|
|
9
9
|
export function useChartRootRef() {
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
const {
|
|
11
|
+
instance
|
|
12
|
+
} = useChartContext();
|
|
13
|
+
return instance.chartRootRef;
|
|
12
14
|
}
|
|
@@ -6,7 +6,7 @@ import type { ChartSeriesType } from "../models/seriesType/config.js";
|
|
|
6
6
|
import type { SeriesItemIdentifier } from "../models/seriesType/index.js";
|
|
7
7
|
import type { ChartInstance } from "../internals/plugins/models/index.js";
|
|
8
8
|
import type { UseChartTooltipSignature } from "../internals/plugins/featurePlugins/useChartTooltip/index.js";
|
|
9
|
-
export declare const useInteractionItemProps: (data: SeriesItemIdentifierWithData
|
|
9
|
+
export declare const useInteractionItemProps: <SeriesType extends ChartSeriesType>(data: SeriesItemIdentifierWithData<SeriesType>, skip?: boolean) => {
|
|
10
10
|
onPointerEnter?: () => void;
|
|
11
11
|
onPointerLeave?: () => void;
|
|
12
12
|
onPointerDown?: (event: React.PointerEvent) => void;
|
package/esm/hooks/useLegend.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { selectorChartSeriesConfig } from "../internals/plugins/corePlugins/
|
|
3
|
+
import { selectorChartSeriesConfig } from "../internals/plugins/corePlugins/useChartSeriesConfig/index.js";
|
|
4
4
|
import { useSeries } from "./useSeries.js";
|
|
5
5
|
import { useStore } from "../internals/store/useStore.js";
|
|
6
6
|
function getSeriesToDisplay(series, seriesConfig) {
|
package/esm/hooks/useSvgRef.js
CHANGED
|
@@ -7,9 +7,8 @@ import { useChartContext } from "../context/ChartProvider/index.js";
|
|
|
7
7
|
* @returns The SVG ref.
|
|
8
8
|
*/
|
|
9
9
|
export function useSvgRef() {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return context.svgRef;
|
|
10
|
+
const {
|
|
11
|
+
instance
|
|
12
|
+
} = useChartContext();
|
|
13
|
+
return instance.svgRef;
|
|
15
14
|
}
|
package/esm/hooks/useTicks.d.ts
CHANGED
|
@@ -46,13 +46,28 @@ export interface TickParams {
|
|
|
46
46
|
*/
|
|
47
47
|
tickSpacing?: number;
|
|
48
48
|
}
|
|
49
|
-
export type
|
|
49
|
+
export type TickItem = {
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* The value of the tick.
|
|
52
|
+
* It is only `undefined` if it's the tick closing the last band.
|
|
52
53
|
*/
|
|
53
54
|
value?: any;
|
|
55
|
+
/**
|
|
56
|
+
* The formatted value of the tick.
|
|
57
|
+
* It is only `undefined` if it's the tick closing the last band.
|
|
58
|
+
*/
|
|
54
59
|
formattedValue?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The offset in pixels relative to the SVG origin.
|
|
62
|
+
* For an x-axis, it is relative to the left side of the SVG.
|
|
63
|
+
* For a y-axis, it is relative to the top side of the SVG.
|
|
64
|
+
*/
|
|
55
65
|
offset: number;
|
|
66
|
+
/**
|
|
67
|
+
* The offset in pixels relative to the tick position.
|
|
68
|
+
* For an x-axis, a positive value means the label is shifted to the right of the tick.
|
|
69
|
+
* For a y-axis, a positive value means the label is shifted downwards from the tick.
|
|
70
|
+
*/
|
|
56
71
|
labelOffset: number;
|
|
57
72
|
};
|
|
58
73
|
/**
|
|
@@ -69,8 +84,8 @@ interface GetTicksOptions extends Pick<TickParams, 'tickInterval' | 'tickPlaceme
|
|
|
69
84
|
isInside: (offset: number) => boolean;
|
|
70
85
|
ordinalTimeTicks?: OrdinalTimeTicks;
|
|
71
86
|
}
|
|
72
|
-
export declare function getTicks(options: GetTicksOptions):
|
|
87
|
+
export declare function getTicks(options: GetTicksOptions): TickItem[];
|
|
73
88
|
export declare function useTicks(options: Omit<GetTicksOptions, 'isInside'> & {
|
|
74
89
|
direction: 'x' | 'y';
|
|
75
|
-
}):
|
|
90
|
+
}): TickItem[];
|
|
76
91
|
export {};
|
package/esm/index.d.ts
CHANGED
|
@@ -24,8 +24,10 @@ export * from "./SparkLineChart/index.js";
|
|
|
24
24
|
export * from "./Gauge/index.js";
|
|
25
25
|
export * from "./RadarChart/index.js";
|
|
26
26
|
export * from "./ChartsSurface/index.js";
|
|
27
|
+
export { ChartsContainer } from "./ChartsContainer/index.js";
|
|
28
|
+
export type { ChartsContainerProps, ChartsContainerSlots, ChartsContainerSlotProps } from "./ChartsContainer/index.js";
|
|
27
29
|
export { ChartContainer } from "./ChartContainer/index.js";
|
|
28
|
-
export type { ChartContainerProps } from "./ChartContainer/index.js";
|
|
30
|
+
export type { ChartContainerProps, ChartContainerSlots, ChartContainerSlotProps } from "./ChartContainer/index.js";
|
|
29
31
|
export * from "./ChartDataProvider/index.js";
|
|
30
32
|
export * from "./Toolbar/index.js";
|
|
31
33
|
export * from "./ChartsWrapper/index.js";
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts
|
|
2
|
+
* @mui/x-charts v9.0.0-alpha.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -31,6 +31,7 @@ export * from "./SparkLineChart/index.js";
|
|
|
31
31
|
export * from "./Gauge/index.js";
|
|
32
32
|
export * from "./RadarChart/index.js";
|
|
33
33
|
export * from "./ChartsSurface/index.js";
|
|
34
|
+
export { ChartsContainer } from "./ChartsContainer/index.js";
|
|
34
35
|
export { ChartContainer } from "./ChartContainer/index.js";
|
|
35
36
|
export * from "./ChartDataProvider/index.js";
|
|
36
37
|
export * from "./Toolbar/index.js";
|
|
@@ -36,4 +36,6 @@ export declare function createGetPreviousSeriesFocusedItem<InSeriesType extends
|
|
|
36
36
|
* The set of series types compatible with this navigation action.
|
|
37
37
|
*/
|
|
38
38
|
compatibleSeriesTypes: Set<OutSeriesType>): (currentItem: SeriesItemIdentifier<InSeriesType> | null, state: StateParameters<InSeriesType>) => ReturnedItem<OutSeriesType>;
|
|
39
|
+
export type ComposableCartesianChartSeriesType = 'bar' | 'line' | 'scatter' | ('rangeBar' extends ChartSeriesType ? 'rangeBar' : never);
|
|
40
|
+
export declare const composableCartesianSeriesTypes: Set<ComposableCartesianChartSeriesType>;
|
|
39
41
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getPreviousNonEmptySeries } from "./plugins/featurePlugins/useChartKeyboardNavigation/utils/getPreviousNonEmptySeries.js";
|
|
2
2
|
import { getMaxSeriesLength } from "./plugins/featurePlugins/useChartKeyboardNavigation/utils/getMaxSeriesLength.js";
|
|
3
|
-
import { selectorChartSeriesProcessed } from "./plugins/corePlugins/useChartSeries/index.js";
|
|
4
3
|
import { getNextNonEmptySeries } from "./plugins/featurePlugins/useChartKeyboardNavigation/utils/getNextNonEmptySeries.js";
|
|
5
4
|
import { seriesHasData } from "./seriesHasData.js";
|
|
5
|
+
import { selectorChartSeriesProcessed } from "./plugins/corePlugins/useChartSeries/useChartSeries.selectors.js";
|
|
6
6
|
export function createGetNextIndexFocusedItem(
|
|
7
7
|
/**
|
|
8
8
|
* The set of series types compatible with this navigation action.
|
|
@@ -119,4 +119,5 @@ compatibleSeriesTypes) {
|
|
|
119
119
|
dataIndex
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
-
}
|
|
122
|
+
}
|
|
123
|
+
export const composableCartesianSeriesTypes = new Set(['bar', 'line', 'scatter', 'rangeBar']);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function useWebGLContext(): WebGL2RenderingContext | null;
|
|
3
|
+
export declare const WebGLProvider: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<React.DetailedHTMLProps<React.CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>>, "ref"> & React.RefAttributes<HTMLCanvasElement>>;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["children"];
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import * as ReactDOM from 'react-dom';
|
|
8
|
+
import useForkRef from '@mui/utils/useForkRef';
|
|
9
|
+
import { useChartRootRef, useDrawingArea } from "../../hooks/index.js";
|
|
10
|
+
import { selectorChartSvgHeight, selectorChartSvgWidth } from "../plugins/corePlugins/useChartDimensions/index.js";
|
|
11
|
+
import { useStore } from "../store/useStore.js";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
const WebGLContext = /*#__PURE__*/React.createContext(null);
|
|
14
|
+
if (process.env.NODE_ENV !== "production") WebGLContext.displayName = "WebGLContext";
|
|
15
|
+
export function useWebGLContext() {
|
|
16
|
+
return React.useContext(WebGLContext);
|
|
17
|
+
}
|
|
18
|
+
export const WebGLProvider = /*#__PURE__*/React.forwardRef(function WebGLProvider(_ref, ref) {
|
|
19
|
+
let {
|
|
20
|
+
children
|
|
21
|
+
} = _ref,
|
|
22
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
23
|
+
const canvasRef = React.useRef(null);
|
|
24
|
+
const [context, setContext] = React.useState(null);
|
|
25
|
+
const handleRef = useForkRef(canvasRef, ref);
|
|
26
|
+
const chartRoot = useChartRootRef().current;
|
|
27
|
+
const drawingArea = useDrawingArea();
|
|
28
|
+
const [, rerender] = React.useReducer(s => s + 1, 0);
|
|
29
|
+
React.useEffect(() => {
|
|
30
|
+
/* The chart root isn't available on first render because the ref is only set after mounting the root component. */
|
|
31
|
+
if (!chartRoot) {
|
|
32
|
+
rerender();
|
|
33
|
+
}
|
|
34
|
+
}, [chartRoot]);
|
|
35
|
+
React.useEffect(() => {
|
|
36
|
+
const canvas = canvasRef.current;
|
|
37
|
+
if (!canvas) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
const handleContextLost = event => {
|
|
41
|
+
// Must prevent default otherwise the context won't be marked as restorable
|
|
42
|
+
// https://registry.khronos.org/webgl/extensions/WEBGL_lose_context/
|
|
43
|
+
event.preventDefault();
|
|
44
|
+
setContext(null);
|
|
45
|
+
};
|
|
46
|
+
const initializeContext = () => {
|
|
47
|
+
const ctx = canvas.getContext('webgl2', {
|
|
48
|
+
/* Fixes blurry lines when drawing sharp edges */
|
|
49
|
+
antialias: false,
|
|
50
|
+
/* Required so we can export the WebGL plot */
|
|
51
|
+
preserveDrawingBuffer: true
|
|
52
|
+
});
|
|
53
|
+
if (!ctx) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
setContext(ctx);
|
|
57
|
+
};
|
|
58
|
+
canvas.addEventListener('webglcontextlost', handleContextLost);
|
|
59
|
+
canvas.addEventListener('webglcontextrestored', initializeContext);
|
|
60
|
+
initializeContext();
|
|
61
|
+
return () => {
|
|
62
|
+
canvas.removeEventListener('webglcontextlost', handleContextLost);
|
|
63
|
+
canvas.removeEventListener('webglcontextrestored', initializeContext);
|
|
64
|
+
};
|
|
65
|
+
}, [chartRoot]);
|
|
66
|
+
if (!chartRoot) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return /*#__PURE__*/_jsxs(WebGLContext.Provider, {
|
|
70
|
+
value: context,
|
|
71
|
+
children: [/*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/_jsx(CanvasPositioner, {
|
|
72
|
+
children: /*#__PURE__*/_jsx("canvas", _extends({
|
|
73
|
+
ref: handleRef
|
|
74
|
+
}, props, {
|
|
75
|
+
style: {
|
|
76
|
+
position: 'relative',
|
|
77
|
+
left: drawingArea.left,
|
|
78
|
+
top: drawingArea.top,
|
|
79
|
+
width: drawingArea.width,
|
|
80
|
+
height: drawingArea.height
|
|
81
|
+
}
|
|
82
|
+
}))
|
|
83
|
+
}), chartRoot), children]
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
if (process.env.NODE_ENV !== "production") WebGLProvider.displayName = "WebGLProvider";
|
|
87
|
+
function CanvasPositioner({
|
|
88
|
+
children
|
|
89
|
+
}) {
|
|
90
|
+
const store = useStore();
|
|
91
|
+
const svgWidth = store.use(selectorChartSvgWidth);
|
|
92
|
+
const svgHeight = store.use(selectorChartSvgHeight);
|
|
93
|
+
return /*#__PURE__*/_jsx("div", {
|
|
94
|
+
style: {
|
|
95
|
+
position: 'relative',
|
|
96
|
+
pointerEvents: 'none',
|
|
97
|
+
/* Ensures the canvas occupies the same space as the SVG */
|
|
98
|
+
gridArea: 'chart',
|
|
99
|
+
/* This property ensures the canvas renders below the SVG */
|
|
100
|
+
order: -1,
|
|
101
|
+
maxWidth: svgWidth,
|
|
102
|
+
maxHeight: svgHeight,
|
|
103
|
+
width: '100%',
|
|
104
|
+
height: '100%'
|
|
105
|
+
},
|
|
106
|
+
children: children
|
|
107
|
+
});
|
|
108
|
+
}
|
|
@@ -55,7 +55,7 @@ export const consumeSlots = (name, slotPropName, options, InComponent) => {
|
|
|
55
55
|
function ConsumeSlotsInternal(props, ref) {
|
|
56
56
|
const themedProps = useThemeProps({
|
|
57
57
|
props,
|
|
58
|
-
// eslint-disable-next-line material-ui
|
|
58
|
+
// eslint-disable-next-line mui/material-ui-name-matches-component-name
|
|
59
59
|
name
|
|
60
60
|
});
|
|
61
61
|
const defaultProps = typeof options.defaultProps === 'function' ? options.defaultProps(themedProps) : options.defaultProps ?? {};
|
|
@@ -54,7 +54,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
54
54
|
export const consumeThemeProps = (name, options, InComponent) => /*#__PURE__*/React.forwardRef(function ConsumeThemeInternal(props, ref) {
|
|
55
55
|
const themedProps = useThemeProps({
|
|
56
56
|
props,
|
|
57
|
-
// eslint-disable-next-line material-ui
|
|
57
|
+
// eslint-disable-next-line mui/material-ui-name-matches-component-name
|
|
58
58
|
name
|
|
59
59
|
});
|
|
60
60
|
const defaultProps = typeof options.defaultProps === 'function' ? options.defaultProps(themedProps) : options.defaultProps ?? {};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { ChartsXAxisProps, ChartsYAxisProps, ComputedAxis, ScaleName } from "../models/axis.js";
|
|
2
2
|
import type { ChartSeriesDefaultized } from "../models/seriesType/config.js";
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function createGetBarDimensions(params: {
|
|
4
4
|
verticalLayout: boolean;
|
|
5
5
|
xAxisConfig: ComputedAxis<ScaleName, any, ChartsXAxisProps>;
|
|
6
6
|
yAxisConfig: ComputedAxis<ScaleName, any, ChartsYAxisProps>;
|
|
7
7
|
series: ChartSeriesDefaultized<'bar'>;
|
|
8
|
-
dataIndex: number;
|
|
9
8
|
numberOfGroups: number;
|
|
10
|
-
|
|
11
|
-
}): {
|
|
9
|
+
}): (dataIndex: number, groupIndex: number) => {
|
|
12
10
|
x: number;
|
|
13
11
|
y: number;
|
|
14
12
|
height: number;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { findMinMax } from "./findMinMax.js";
|
|
2
|
+
import { getBandSize } from "./getBandSize.js";
|
|
3
|
+
function shouldInvertStartCoordinate(verticalLayout, baseValue, reverse) {
|
|
4
|
+
const isVerticalAndPositive = verticalLayout && baseValue > 0;
|
|
5
|
+
const isHorizontalAndNegative = !verticalLayout && baseValue < 0;
|
|
6
|
+
const invertStartCoordinate = isVerticalAndPositive || isHorizontalAndNegative;
|
|
7
|
+
return reverse ? !invertStartCoordinate : invertStartCoordinate;
|
|
8
|
+
}
|
|
9
|
+
export function createGetBarDimensions(params) {
|
|
10
|
+
const {
|
|
11
|
+
verticalLayout,
|
|
12
|
+
xAxisConfig,
|
|
13
|
+
yAxisConfig,
|
|
14
|
+
series,
|
|
15
|
+
numberOfGroups
|
|
16
|
+
} = params;
|
|
17
|
+
const baseScaleConfig = verticalLayout ? xAxisConfig : yAxisConfig;
|
|
18
|
+
const reverse = (verticalLayout ? yAxisConfig.reverse : xAxisConfig.reverse) ?? false;
|
|
19
|
+
const {
|
|
20
|
+
barWidth,
|
|
21
|
+
offset
|
|
22
|
+
} = getBandSize(baseScaleConfig.scale.bandwidth(), numberOfGroups, baseScaleConfig.barGapRatio);
|
|
23
|
+
const xScale = xAxisConfig.scale;
|
|
24
|
+
const yScale = yAxisConfig.scale;
|
|
25
|
+
return function getBarDimensions(dataIndex, groupIndex) {
|
|
26
|
+
const barOffset = groupIndex * (barWidth + offset);
|
|
27
|
+
const baseValue = baseScaleConfig.data[dataIndex];
|
|
28
|
+
const seriesValue = series.data[dataIndex];
|
|
29
|
+
if (seriesValue == null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
const values = series.visibleStackedData[dataIndex];
|
|
33
|
+
const valueCoordinates = values.map(v => verticalLayout ? yScale(v) : xScale(v));
|
|
34
|
+
const [minValueCoord, maxValueCoord] = findMinMax(valueCoordinates).map(v => Math.round(v));
|
|
35
|
+
let barSize = 0;
|
|
36
|
+
if (seriesValue !== 0) {
|
|
37
|
+
if (!series.hidden) {
|
|
38
|
+
barSize = Math.max(series.minBarSize, maxValueCoord - minValueCoord);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const shouldInvert = shouldInvertStartCoordinate(verticalLayout, seriesValue, reverse);
|
|
42
|
+
let startCoordinate = 0;
|
|
43
|
+
if (shouldInvert) {
|
|
44
|
+
startCoordinate = maxValueCoord - barSize;
|
|
45
|
+
} else {
|
|
46
|
+
startCoordinate = minValueCoord;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
x: verticalLayout ? xScale(baseValue) + barOffset : startCoordinate,
|
|
50
|
+
y: verticalLayout ? startCoordinate : yScale(baseValue) + barOffset,
|
|
51
|
+
height: verticalLayout ? barSize : barWidth,
|
|
52
|
+
width: verticalLayout ? barWidth : barSize
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transform mouse event position to coordinates relative to the layer container.
|
|
3
|
+
* (0, 0) is the top-left corner of the layer container.
|
|
4
|
+
* @param element The the layer container
|
|
5
|
+
* @param event The mouseEvent to transform
|
|
6
|
+
*/
|
|
7
|
+
export declare function getChartPoint(element: Element, event: Pick<MouseEvent, 'clientX' | 'clientY'>): DOMPoint;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transform mouse event position to coordinates relative to the layer container.
|
|
3
|
+
* (0, 0) is the top-left corner of the layer container.
|
|
4
|
+
* @param element The the layer container
|
|
5
|
+
* @param event The mouseEvent to transform
|
|
6
|
+
*/
|
|
7
|
+
export function getChartPoint(element, event) {
|
|
8
|
+
const rect = element.getBoundingClientRect();
|
|
9
|
+
const style = getComputedStyle(element);
|
|
10
|
+
const transform = new DOMMatrix(style.transform);
|
|
11
|
+
const point = new DOMPoint(event.clientX - rect.left, event.clientY - rect.top);
|
|
12
|
+
return point.matrixTransform(transform.inverse());
|
|
13
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CommonSeriesType, type ColorCallbackValue } from "../models/seriesType/common.js";
|
|
2
|
+
import { type ChartSeriesType } from "../models/seriesType/config.js";
|
|
2
3
|
export declare function getSeriesColorFn<TValue>(series: {
|
|
3
|
-
color: NonNullable<CommonSeriesType<TValue>['color']>;
|
|
4
|
-
colorGetter?: CommonSeriesType<TValue>['colorGetter'];
|
|
4
|
+
color: NonNullable<CommonSeriesType<TValue, ChartSeriesType>['color']>;
|
|
5
|
+
colorGetter?: CommonSeriesType<TValue, ChartSeriesType>['colorGetter'];
|
|
5
6
|
}): (data: ColorCallbackValue<TValue>) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SeriesId, SeriesItemIdentifier } from "../models/index.js";
|
|
2
|
+
import type { ChartSeriesType } from "../models/seriesType/config.js";
|
|
3
|
+
/**
|
|
4
|
+
* Cleans an identifier by extracting only type, seriesId, and dataIndex properties.
|
|
5
|
+
* This is the common cleaner for most series types (bar, line, pie, scatter, radar, etc.).
|
|
6
|
+
*/
|
|
7
|
+
export declare const identifierCleanerSeriesIdDataIndex: <T extends ChartSeriesType>(identifier: {
|
|
8
|
+
type: T;
|
|
9
|
+
seriesId: SeriesId;
|
|
10
|
+
dataIndex?: number;
|
|
11
|
+
}) => SeriesItemIdentifier<T>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cleans an identifier by extracting only type, seriesId, and dataIndex properties.
|
|
3
|
+
* This is the common cleaner for most series types (bar, line, pie, scatter, radar, etc.).
|
|
4
|
+
*/
|
|
5
|
+
export const identifierCleanerSeriesIdDataIndex = identifier => {
|
|
6
|
+
// @ts-expect-error we need to trust the output type here, since T is generic
|
|
7
|
+
return {
|
|
8
|
+
type: identifier.type,
|
|
9
|
+
seriesId: identifier.seriesId,
|
|
10
|
+
dataIndex: identifier.dataIndex
|
|
11
|
+
};
|
|
12
|
+
};
|
package/esm/internals/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "../ChartsLabel/ChartsLabelMark.js";
|
|
|
3
3
|
export * from "./components/NotRendered.js";
|
|
4
4
|
export * from "../BarChart/BarLabel/BarLabelPlot.js";
|
|
5
5
|
export * from "../BarChart/BarClipPath.js";
|
|
6
|
+
export * from "./components/WebGLContext.js";
|
|
6
7
|
export { useSeries } from "../hooks/useSeries.js";
|
|
7
8
|
export { useInteractionItemProps } from "../hooks/useInteractionItemProps.js";
|
|
8
9
|
export { useDrawingArea } from "../hooks/useDrawingArea.js";
|
|
@@ -15,6 +16,7 @@ export { useLinePlotData } from "../LineChart/useLinePlotData.js";
|
|
|
15
16
|
export * from "../BarChart/useBarChartProps.js";
|
|
16
17
|
export { processBarDataForPlot } from "../BarChart/useBarPlotData.js";
|
|
17
18
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.js";
|
|
19
|
+
export * from "../ChartsContainer/useChartsContainerProps.js";
|
|
18
20
|
export * from "../ChartContainer/useChartContainerProps.js";
|
|
19
21
|
export * from "../ChartDataProvider/useChartDataProviderProps.js";
|
|
20
22
|
export * from "./seriesSelectorOfType.js";
|
|
@@ -24,6 +26,7 @@ export * from "./plugins/corePlugins/useChartId/index.js";
|
|
|
24
26
|
export * from "./plugins/corePlugins/useChartSeries/index.js";
|
|
25
27
|
export * from "./plugins/corePlugins/useChartDimensions/index.js";
|
|
26
28
|
export * from "./plugins/corePlugins/useChartInteractionListener/index.js";
|
|
29
|
+
export * from "./plugins/corePlugins/useChartSeriesConfig/index.js";
|
|
27
30
|
export * from "./plugins/featurePlugins/useChartZAxis/index.js";
|
|
28
31
|
export * from "./plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
29
32
|
export * from "./plugins/featurePlugins/useChartPolarAxis/index.js";
|
|
@@ -34,6 +37,7 @@ export * from "./plugins/featurePlugins/useChartVisibilityManager/index.js";
|
|
|
34
37
|
export * from "./plugins/featurePlugins/useChartKeyboardNavigation/index.js";
|
|
35
38
|
export * from "./plugins/featurePlugins/useChartClosestPoint/index.js";
|
|
36
39
|
export * from "./plugins/featurePlugins/useChartBrush/index.js";
|
|
40
|
+
export * from "./plugins/featurePlugins/useChartItemClick/index.js";
|
|
37
41
|
export * from "./plugins/utils/selectors.js";
|
|
38
42
|
export { getAxisTriggerTooltip as getCartesianAxisTriggerTooltip } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.js";
|
|
39
43
|
export { getAxisIndex as getCartesianAxisIndex } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js";
|
|
@@ -46,7 +50,7 @@ export * from "../RadarChart/RadarChart.plugins.js";
|
|
|
46
50
|
export * from "../PieChart/PieChart.plugins.js";
|
|
47
51
|
export * from "./configInit.js";
|
|
48
52
|
export * from "./getLabel.js";
|
|
49
|
-
export * from "./
|
|
53
|
+
export * from "./getChartPoint.js";
|
|
50
54
|
export * from "./isDefined.js";
|
|
51
55
|
export * from "./getScale.js";
|
|
52
56
|
export * from "./stacking/index.js";
|
|
@@ -64,6 +68,7 @@ export * from "./commonNextFocusItem.js";
|
|
|
64
68
|
export { getSeriesColorFn } from "./getSeriesColorFn.js";
|
|
65
69
|
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.js";
|
|
66
70
|
export { getBandSize } from "./getBandSize.js";
|
|
71
|
+
export * from "./plugins/utils/defaultSeriesConfig.js";
|
|
67
72
|
export { getAxisExtrema } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.js";
|
|
68
73
|
export * from "../context/ChartProvider/index.js";
|
|
69
74
|
export * from "../context/ChartsSlotsContext.js";
|
|
@@ -76,4 +81,5 @@ export * from "./material/index.js";
|
|
|
76
81
|
export * from "./createSvgIcon.js";
|
|
77
82
|
export * from "./constants.js";
|
|
78
83
|
export * from "./scales/index.js";
|
|
79
|
-
export * from "./identifierSerializer.js";
|
|
84
|
+
export * from "./identifierSerializer.js";
|
|
85
|
+
export * from "./identifierCleaner.js";
|
package/esm/internals/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export * from "../ChartsLabel/ChartsLabelMark.js";
|
|
|
4
4
|
export * from "./components/NotRendered.js";
|
|
5
5
|
export * from "../BarChart/BarLabel/BarLabelPlot.js";
|
|
6
6
|
export * from "../BarChart/BarClipPath.js";
|
|
7
|
+
export * from "./components/WebGLContext.js";
|
|
7
8
|
|
|
8
9
|
// hooks
|
|
9
10
|
export { useSeries } from "../hooks/useSeries.js";
|
|
@@ -18,6 +19,7 @@ export { useLinePlotData } from "../LineChart/useLinePlotData.js";
|
|
|
18
19
|
export * from "../BarChart/useBarChartProps.js";
|
|
19
20
|
export { processBarDataForPlot } from "../BarChart/useBarPlotData.js";
|
|
20
21
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.js";
|
|
22
|
+
export * from "../ChartsContainer/useChartsContainerProps.js";
|
|
21
23
|
export * from "../ChartContainer/useChartContainerProps.js";
|
|
22
24
|
export * from "../ChartDataProvider/useChartDataProviderProps.js";
|
|
23
25
|
export * from "./seriesSelectorOfType.js";
|
|
@@ -29,6 +31,7 @@ export * from "./plugins/corePlugins/useChartId/index.js";
|
|
|
29
31
|
export * from "./plugins/corePlugins/useChartSeries/index.js";
|
|
30
32
|
export * from "./plugins/corePlugins/useChartDimensions/index.js";
|
|
31
33
|
export * from "./plugins/corePlugins/useChartInteractionListener/index.js";
|
|
34
|
+
export * from "./plugins/corePlugins/useChartSeriesConfig/index.js";
|
|
32
35
|
export * from "./plugins/featurePlugins/useChartZAxis/index.js";
|
|
33
36
|
export * from "./plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
34
37
|
export * from "./plugins/featurePlugins/useChartPolarAxis/index.js";
|
|
@@ -39,6 +42,7 @@ export * from "./plugins/featurePlugins/useChartVisibilityManager/index.js";
|
|
|
39
42
|
export * from "./plugins/featurePlugins/useChartKeyboardNavigation/index.js";
|
|
40
43
|
export * from "./plugins/featurePlugins/useChartClosestPoint/index.js";
|
|
41
44
|
export * from "./plugins/featurePlugins/useChartBrush/index.js";
|
|
45
|
+
export * from "./plugins/featurePlugins/useChartItemClick/index.js";
|
|
42
46
|
export * from "./plugins/utils/selectors.js";
|
|
43
47
|
export { getAxisTriggerTooltip as getCartesianAxisTriggerTooltip } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.js";
|
|
44
48
|
export { getAxisIndex as getCartesianAxisIndex } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js";
|
|
@@ -46,7 +50,6 @@ export * from "./store/useCharts.js";
|
|
|
46
50
|
export * from "./store/useStore.js";
|
|
47
51
|
|
|
48
52
|
// plugins configs
|
|
49
|
-
|
|
50
53
|
export * from "../BarChart/BarChart.plugins.js";
|
|
51
54
|
export * from "../LineChart/LineChart.plugins.js";
|
|
52
55
|
export * from "../ScatterChart/ScatterChart.plugins.js";
|
|
@@ -56,7 +59,7 @@ export * from "../PieChart/PieChart.plugins.js";
|
|
|
56
59
|
// utils
|
|
57
60
|
export * from "./configInit.js";
|
|
58
61
|
export * from "./getLabel.js";
|
|
59
|
-
export * from "./
|
|
62
|
+
export * from "./getChartPoint.js";
|
|
60
63
|
export * from "./isDefined.js";
|
|
61
64
|
export * from "./getScale.js";
|
|
62
65
|
export * from "./stacking/index.js";
|
|
@@ -74,6 +77,7 @@ export * from "./commonNextFocusItem.js";
|
|
|
74
77
|
export { getSeriesColorFn } from "./getSeriesColorFn.js";
|
|
75
78
|
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.js";
|
|
76
79
|
export { getBandSize } from "./getBandSize.js";
|
|
80
|
+
export * from "./plugins/utils/defaultSeriesConfig.js";
|
|
77
81
|
|
|
78
82
|
// contexts
|
|
79
83
|
export { getAxisExtrema } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.js";
|
|
@@ -90,4 +94,5 @@ export * from "./material/index.js";
|
|
|
90
94
|
export * from "./createSvgIcon.js";
|
|
91
95
|
export * from "./constants.js";
|
|
92
96
|
export * from "./scales/index.js";
|
|
93
|
-
export * from "./identifierSerializer.js";
|
|
97
|
+
export * from "./identifierSerializer.js";
|
|
98
|
+
export * from "./identifierCleaner.js";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type UseChartAnimationSignature } from "./useChartAnimation/index.js";
|
|
2
2
|
import { type UseChartDimensionsSignature } from "./useChartDimensions/index.js";
|
|
3
|
+
import { type UseChartElementRefSignature } from "./useChartElementRef/index.js";
|
|
3
4
|
import { type UseChartExperimentalFeaturesSignature } from "./useChartExperimentalFeature/index.js";
|
|
4
5
|
import { type UseChartIdSignature, type UseChartIdParameters } from "./useChartId/index.js";
|
|
6
|
+
import { type UseChartSeriesConfigSignature, type UseChartSeriesConfigParameters } from "./useChartSeriesConfig/index.js";
|
|
5
7
|
import { type UseChartSeriesSignature } from "./useChartSeries/index.js";
|
|
6
8
|
import { type UseChartInteractionListenerSignature } from "./useChartInteractionListener/index.js";
|
|
7
9
|
import type { ChartSeriesType } from "../../../models/seriesType/config.js";
|
|
@@ -9,6 +11,6 @@ import type { ChartSeriesType } from "../../../models/seriesType/config.js";
|
|
|
9
11
|
* Internal plugins that create the tools used by the other plugins.
|
|
10
12
|
* These plugins are used by the Charts components.
|
|
11
13
|
*/
|
|
12
|
-
export declare const CHART_CORE_PLUGINS: readonly [import("../models/index.js").ChartPlugin<UseChartIdSignature>, import("../models/index.js").ChartPlugin<UseChartExperimentalFeaturesSignature>, import("../models/index.js").ChartPlugin<UseChartDimensionsSignature>, import("../models/index.js").ChartPlugin<UseChartSeriesSignature>, import("../models/index.js").ChartPlugin<UseChartInteractionListenerSignature>, import("../models/index.js").ChartPlugin<UseChartAnimationSignature>];
|
|
13
|
-
export type ChartCorePluginSignatures<TSeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartIdSignature, UseChartExperimentalFeaturesSignature, UseChartDimensionsSignature, UseChartSeriesSignature<TSeriesType>, UseChartAnimationSignature, UseChartInteractionListenerSignature];
|
|
14
|
-
export interface ChartCorePluginParameters extends UseChartIdParameters {}
|
|
14
|
+
export declare const CHART_CORE_PLUGINS: readonly [import("../models/index.js").ChartPlugin<UseChartElementRefSignature>, import("../models/index.js").ChartPlugin<UseChartIdSignature>, import("../models/index.js").ChartPlugin<UseChartSeriesConfigSignature>, import("../models/index.js").ChartPlugin<UseChartExperimentalFeaturesSignature>, import("../models/index.js").ChartPlugin<UseChartDimensionsSignature>, import("../models/index.js").ChartPlugin<UseChartSeriesSignature>, import("../models/index.js").ChartPlugin<UseChartInteractionListenerSignature>, import("../models/index.js").ChartPlugin<UseChartAnimationSignature>];
|
|
15
|
+
export type ChartCorePluginSignatures<TSeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartElementRefSignature, UseChartIdSignature, UseChartSeriesConfigSignature<TSeriesType>, UseChartExperimentalFeaturesSignature, UseChartDimensionsSignature, UseChartSeriesSignature<TSeriesType>, UseChartAnimationSignature, UseChartInteractionListenerSignature];
|
|
16
|
+
export interface ChartCorePluginParameters extends UseChartIdParameters, UseChartSeriesConfigParameters {}
|