@mui/x-charts 9.0.0-alpha.2 → 9.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/AnimatedBarElement.d.mts +1 -1
- package/BarChart/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarChart.d.mts +2 -2
- package/BarChart/BarChart.d.ts +2 -2
- package/BarChart/BarChart.js +41 -8
- package/BarChart/BarChart.mjs +41 -8
- package/BarChart/BarElement.d.mts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarElement.js +7 -8
- package/BarChart/BarElement.mjs +6 -7
- package/BarChart/BarLabel/BarLabel.js +1 -7
- package/BarChart/BarLabel/BarLabel.mjs +1 -7
- package/BarChart/BarLabel/BarLabel.types.d.mts +2 -2
- package/BarChart/BarLabel/BarLabel.types.d.ts +2 -2
- package/BarChart/BarLabel/BarLabelItem.js +7 -8
- package/BarChart/BarLabel/BarLabelItem.mjs +6 -7
- package/BarChart/BarLabel/index.d.mts +1 -3
- package/BarChart/BarLabel/index.d.ts +1 -3
- package/BarChart/BarLabel/index.js +1 -14
- package/BarChart/BarLabel/index.mjs +1 -2
- package/BarChart/BarPlot.d.mts +4 -0
- package/BarChart/BarPlot.d.ts +4 -0
- package/BarChart/BarPlot.js +9 -4
- package/BarChart/BarPlot.mjs +10 -5
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -3
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -3
- package/BarChart/barClasses.d.mts +21 -1
- package/BarChart/barClasses.d.ts +21 -1
- package/BarChart/barClasses.js +9 -3
- package/BarChart/barClasses.mjs +9 -3
- package/BarChart/index.d.mts +1 -2
- package/BarChart/index.d.ts +1 -2
- package/BarChart/index.js +1 -20
- package/BarChart/index.mjs +1 -2
- package/BarChart/seriesConfig/bar/legend.js +2 -21
- package/BarChart/seriesConfig/bar/legend.mjs +2 -21
- package/BarChart/useBarChartProps.d.mts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +2 -2
- package/BarChart/useBarChartProps.mjs +2 -2
- package/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/BarChart/useRegisterItemClickHandlers.mjs +2 -2
- package/CHANGELOG.md +246 -1
- package/ChartsAxis/index.d.mts +2 -1
- package/ChartsAxis/index.d.ts +2 -1
- package/ChartsAxis/index.js +11 -11
- package/ChartsAxis/index.mjs +1 -1
- package/ChartsAxisHighlight/index.d.mts +2 -1
- package/ChartsAxisHighlight/index.d.ts +2 -1
- package/ChartsAxisHighlight/index.js +12 -10
- package/ChartsAxisHighlight/index.mjs +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -9
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +12 -9
- package/ChartsContainer/ChartsContainer.d.mts +1 -1
- package/ChartsContainer/ChartsContainer.d.ts +1 -1
- package/ChartsContainer/ChartsContainer.js +52 -15
- package/ChartsContainer/ChartsContainer.mjs +52 -15
- package/ChartsContainer/useChartsContainerProps.d.mts +4 -4
- package/ChartsContainer/useChartsContainerProps.d.ts +4 -4
- package/ChartsContainer/useChartsContainerProps.js +10 -10
- package/ChartsContainer/useChartsContainerProps.mjs +10 -10
- package/ChartsDataProvider/ChartsDataProvider.d.mts +2 -2
- package/ChartsDataProvider/ChartsDataProvider.d.ts +2 -2
- package/ChartsDataProvider/ChartsDataProvider.js +0 -6
- package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.js +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.mjs +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +4 -0
- package/ChartsGrid/ChartsGrid.d.ts +4 -0
- package/ChartsGrid/ChartsGrid.js +4 -2
- package/ChartsGrid/ChartsGrid.mjs +4 -2
- package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
- package/ChartsGrid/ChartsHorizontalGrid.mjs +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +2 -2
- package/ChartsGrid/ChartsVerticalGrid.mjs +2 -2
- package/ChartsGrid/index.d.mts +2 -1
- package/ChartsGrid/index.d.ts +2 -1
- package/ChartsGrid/index.js +11 -11
- package/ChartsGrid/index.mjs +1 -1
- package/ChartsLabel/ChartsLabelMark.d.mts +8 -1
- package/ChartsLabel/ChartsLabelMark.d.ts +8 -1
- package/ChartsLabel/ChartsLabelMark.js +29 -3
- package/ChartsLabel/ChartsLabelMark.mjs +29 -3
- package/ChartsLabel/labelMarkClasses.d.mts +2 -0
- package/ChartsLabel/labelMarkClasses.d.ts +2 -0
- package/ChartsLabel/labelMarkClasses.js +1 -1
- package/ChartsLabel/labelMarkClasses.mjs +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.d.mts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.d.ts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.js +49 -9
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +50 -10
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.mts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.ts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.js +21 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.mjs +13 -0
- package/ChartsLegend/ChartsLegend.js +6 -4
- package/ChartsLegend/ChartsLegend.mjs +6 -4
- package/ChartsLegend/legendContext.types.d.mts +1 -6
- package/ChartsLegend/legendContext.types.d.ts +1 -6
- package/ChartsLegend/onClickContextBuilder.js +0 -1
- package/ChartsLegend/onClickContextBuilder.mjs +0 -1
- package/ChartsOverlay/ChartsLoadingOverlay.js +2 -8
- package/ChartsOverlay/ChartsLoadingOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.js +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsOverlay.d.mts +0 -6
- package/ChartsOverlay/ChartsOverlay.d.ts +0 -6
- package/ChartsReferenceLine/index.d.mts +2 -1
- package/ChartsReferenceLine/index.d.ts +2 -1
- package/ChartsReferenceLine/index.js +11 -11
- package/ChartsReferenceLine/index.mjs +1 -2
- package/ChartsSurface/ChartsSurface.d.mts +2 -3
- package/ChartsSurface/ChartsSurface.d.ts +2 -3
- package/ChartsSurface/ChartsSurface.js +14 -2
- package/ChartsSurface/ChartsSurface.mjs +14 -2
- package/ChartsSvgLayer/ChartsSvgLayer.d.mts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.d.ts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.js +9 -31
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +9 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.js +45 -29
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -29
- package/ChartsTooltip/ChartsItemTooltipContent.js +80 -40
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +79 -40
- package/ChartsTooltip/ChartsTooltipContainer.js +10 -4
- package/ChartsTooltip/ChartsTooltipContainer.mjs +9 -3
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/index.d.mts +1 -2
- package/ChartsTooltip/index.d.ts +1 -2
- package/ChartsTooltip/index.js +1 -16
- package/ChartsTooltip/index.mjs +1 -2
- package/ChartsTooltip/useAxesTooltip.d.mts +3 -3
- package/ChartsTooltip/useAxesTooltip.d.ts +3 -3
- package/ChartsTooltip/useAxesTooltip.js +6 -4
- package/ChartsTooltip/useAxesTooltip.mjs +6 -4
- package/ChartsTooltip/useItemTooltip.d.mts +3 -3
- package/ChartsTooltip/useItemTooltip.d.ts +3 -3
- package/ChartsTooltip/utils.d.mts +0 -4
- package/ChartsTooltip/utils.d.ts +0 -4
- package/ChartsTooltip/utils.js +0 -39
- package/ChartsTooltip/utils.mjs +0 -38
- package/ChartsXAxis/ChartsGroupedXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsXAxisImpl.js +3 -1
- package/ChartsXAxis/ChartsXAxisImpl.mjs +3 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +367 -286
- package/ChartsXAxis/useAxisTicksProps.d.ts +367 -286
- package/ChartsYAxis/ChartsGroupedYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +3 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +3 -1
- package/ChartsYAxis/useAxisTicksProps.d.mts +367 -286
- package/ChartsYAxis/useAxisTicksProps.d.ts +367 -286
- package/Gauge/Gauge.js +12 -0
- package/Gauge/Gauge.mjs +12 -0
- package/Gauge/GaugeContainer.d.mts +1 -1
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +14 -2
- package/Gauge/GaugeContainer.mjs +14 -2
- package/Gauge/index.d.mts +2 -1
- package/Gauge/index.d.ts +2 -1
- package/Gauge/index.js +7 -11
- package/Gauge/index.mjs +1 -1
- package/LineChart/AreaElement.d.mts +2 -23
- package/LineChart/AreaElement.d.ts +2 -23
- package/LineChart/AreaElement.js +10 -29
- package/LineChart/AreaElement.mjs +10 -27
- package/LineChart/AreaPlot.js +10 -4
- package/LineChart/AreaPlot.mjs +11 -5
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +10 -11
- package/LineChart/CircleMarkElement.mjs +10 -11
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +38 -11
- package/LineChart/LineChart.mjs +38 -11
- package/LineChart/LineElement.d.mts +2 -23
- package/LineChart/LineElement.d.ts +2 -23
- package/LineChart/LineElement.js +10 -29
- package/LineChart/LineElement.mjs +10 -27
- package/LineChart/LineHighlightElement.d.mts +0 -8
- package/LineChart/LineHighlightElement.d.ts +0 -8
- package/LineChart/LineHighlightElement.js +4 -22
- package/LineChart/LineHighlightElement.mjs +4 -20
- package/LineChart/LineHighlightPlot.js +2 -2
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/LinePlot.js +11 -5
- package/LineChart/LinePlot.mjs +12 -6
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +10 -4
- package/LineChart/MarkElement.mjs +10 -4
- package/LineChart/MarkPlot.js +21 -11
- package/LineChart/MarkPlot.mjs +22 -12
- package/LineChart/index.d.mts +2 -2
- package/LineChart/index.d.ts +2 -2
- package/LineChart/index.js +4 -11
- package/LineChart/index.mjs +1 -1
- package/LineChart/lineClasses.d.mts +34 -0
- package/LineChart/lineClasses.d.ts +34 -0
- package/LineChart/lineClasses.js +32 -0
- package/LineChart/lineClasses.mjs +23 -0
- package/LineChart/seriesConfig/legend.js +1 -0
- package/LineChart/seriesConfig/legend.mjs +1 -0
- package/LineChart/seriesConfig/seriesProcessor.js +9 -6
- package/LineChart/seriesConfig/seriesProcessor.mjs +9 -6
- package/LineChart/seriesConfig/tooltip.js +2 -1
- package/LineChart/seriesConfig/tooltip.mjs +2 -1
- package/LineChart/useLineChartProps.d.mts +2 -2
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/LineChart/useLineChartProps.js +2 -2
- package/LineChart/useLineChartProps.mjs +2 -2
- package/LineChart/useMarkPlotData.js +2 -2
- package/LineChart/useMarkPlotData.mjs +2 -2
- package/PieChart/FocusedPieArc.js +7 -8
- package/PieChart/FocusedPieArc.mjs +8 -8
- package/PieChart/PieArc.d.mts +1 -35
- package/PieChart/PieArc.d.ts +1 -35
- package/PieChart/PieArc.js +6 -27
- package/PieChart/PieArc.mjs +6 -25
- package/PieChart/PieArcLabel.d.mts +3 -30
- package/PieChart/PieArcLabel.d.ts +3 -30
- package/PieChart/PieArcLabel.js +9 -31
- package/PieChart/PieArcLabel.mjs +8 -28
- package/PieChart/PieArcLabelPlot.js +6 -3
- package/PieChart/PieArcLabelPlot.mjs +6 -3
- package/PieChart/PieArcPlot.js +6 -1
- package/PieChart/PieArcPlot.mjs +6 -1
- package/PieChart/PieChart.d.mts +2 -2
- package/PieChart/PieChart.d.ts +2 -2
- package/PieChart/PieChart.js +22 -7
- package/PieChart/PieChart.mjs +22 -7
- package/PieChart/PiePlot.d.mts +1 -0
- package/PieChart/PiePlot.d.ts +1 -0
- package/PieChart/PiePlot.js +4 -1
- package/PieChart/PiePlot.mjs +4 -1
- package/PieChart/dataTransform/useTransformData.js +6 -8
- package/PieChart/dataTransform/useTransformData.mjs +6 -8
- package/PieChart/index.d.mts +1 -1
- package/PieChart/index.d.ts +1 -1
- package/PieChart/pieClasses.d.mts +22 -1
- package/PieChart/pieClasses.d.ts +22 -1
- package/PieChart/pieClasses.js +10 -3
- package/PieChart/pieClasses.mjs +10 -3
- package/PieChart/seriesConfig/legend.js +0 -2
- package/PieChart/seriesConfig/legend.mjs +0 -2
- package/RadarChart/RadarAxis/RadarAxis.d.mts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.d.ts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.js +7 -5
- package/RadarChart/RadarAxis/RadarAxis.mjs +6 -4
- package/RadarChart/RadarAxis/index.d.mts +1 -2
- package/RadarChart/RadarAxis/index.d.ts +1 -2
- package/RadarChart/RadarAxis/index.js +1 -13
- package/RadarChart/RadarAxis/index.mjs +1 -2
- package/RadarChart/RadarAxis/useRadarAxis.js +2 -2
- package/RadarChart/RadarAxis/useRadarAxis.mjs +2 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +9 -14
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +8 -13
- package/RadarChart/RadarAxisHighlight/index.d.mts +1 -2
- package/RadarChart/RadarAxisHighlight/index.d.ts +1 -2
- package/RadarChart/RadarAxisHighlight/index.mjs +1 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +2 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.mjs +2 -2
- package/RadarChart/RadarChart.js +20 -2
- package/RadarChart/RadarChart.mjs +20 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.js +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +2 -2
- package/RadarChart/RadarGrid/RadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/RadarGrid.types.d.mts +6 -7
- package/RadarChart/RadarGrid/RadarGrid.types.d.ts +6 -7
- package/RadarChart/RadarGrid/SharpRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/SharpRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/SharpRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/index.d.mts +1 -2
- package/RadarChart/RadarGrid/index.d.ts +1 -2
- package/RadarChart/RadarGrid/useRadarGridData.js +2 -2
- package/RadarChart/RadarGrid/useRadarGridData.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +5 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +5 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +13 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +13 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +15 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +15 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +15 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +15 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +9 -12
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +8 -11
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.mts +6 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +6 -4
- package/RadarChart/RadarSeriesPlot/index.d.mts +1 -3
- package/RadarChart/RadarSeriesPlot/index.d.ts +1 -3
- package/RadarChart/RadarSeriesPlot/index.js +2 -10
- package/RadarChart/RadarSeriesPlot/index.mjs +1 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.js +2 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +10 -18
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +10 -18
- package/RadarChart/index.d.mts +3 -1
- package/RadarChart/index.d.ts +3 -1
- package/RadarChart/index.js +9 -1
- package/RadarChart/index.mjs +2 -1
- package/RadarChart/radarClasses.d.mts +30 -0
- package/RadarChart/radarClasses.d.ts +30 -0
- package/RadarChart/radarClasses.js +33 -0
- package/RadarChart/radarClasses.mjs +24 -0
- package/RadarChart/seriesConfig/legend.js +2 -21
- package/RadarChart/seriesConfig/legend.mjs +2 -21
- package/RadarChart/seriesConfig/tooltip.js +13 -8
- package/RadarChart/seriesConfig/tooltip.mjs +13 -8
- package/RadarChart/useRadarChartProps.js +3 -3
- package/RadarChart/useRadarChartProps.mjs +3 -3
- package/ScatterChart/BatchScatter.d.mts +2 -1
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/BatchScatter.js +8 -6
- package/ScatterChart/BatchScatter.mjs +7 -6
- package/ScatterChart/FocusedScatterMark.d.mts +4 -1
- package/ScatterChart/FocusedScatterMark.d.ts +4 -1
- package/ScatterChart/FocusedScatterMark.js +12 -2
- package/ScatterChart/FocusedScatterMark.mjs +11 -1
- package/ScatterChart/Scatter.d.mts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/Scatter.js +14 -12
- package/ScatterChart/Scatter.mjs +14 -12
- package/ScatterChart/ScatterChart.d.mts +15 -3
- package/ScatterChart/ScatterChart.d.ts +15 -3
- package/ScatterChart/ScatterChart.js +60 -15
- package/ScatterChart/ScatterChart.mjs +60 -15
- package/ScatterChart/ScatterPlot.d.mts +2 -1
- package/ScatterChart/ScatterPlot.d.ts +2 -1
- package/ScatterChart/ScatterPlot.js +16 -2
- package/ScatterChart/ScatterPlot.mjs +16 -2
- package/ScatterChart/index.d.mts +2 -2
- package/ScatterChart/index.d.ts +2 -2
- package/ScatterChart/scatterClasses.d.mts +14 -2
- package/ScatterChart/scatterClasses.d.ts +14 -2
- package/ScatterChart/scatterClasses.js +9 -3
- package/ScatterChart/scatterClasses.mjs +9 -3
- package/ScatterChart/seriesConfig/legend.js +2 -21
- package/ScatterChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/useScatterChartProps.d.mts +2 -2
- package/ScatterChart/useScatterChartProps.d.ts +2 -2
- package/ScatterChart/useScatterChartProps.js +9 -8
- package/ScatterChart/useScatterChartProps.mjs +9 -8
- package/SparkLineChart/SparkLineChart.d.mts +2 -2
- package/SparkLineChart/SparkLineChart.d.ts +2 -2
- package/SparkLineChart/SparkLineChart.js +45 -12
- package/SparkLineChart/SparkLineChart.mjs +45 -12
- package/context/ChartApi.d.mts +1 -1
- package/context/ChartApi.d.ts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
- package/context/ChartsProvider/ChartsProvider.types.d.mts +3 -3
- package/context/ChartsProvider/ChartsProvider.types.d.ts +3 -3
- package/context/useChartApiContext.d.mts +1 -1
- package/context/useChartApiContext.d.ts +1 -1
- package/context/useChartApiContext.js +3 -3
- package/context/useChartApiContext.mjs +3 -3
- package/hooks/animation/useAnimatePieArcLabel.d.mts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.js +6 -10
- package/hooks/animation/useAnimatePieArcLabel.mjs +6 -10
- package/hooks/index.d.mts +2 -2
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +8 -8
- package/hooks/index.mjs +2 -2
- package/hooks/useChartRootRef.js +2 -2
- package/hooks/useChartRootRef.mjs +2 -2
- package/hooks/useChartsLayerContainerRef.js +2 -2
- package/hooks/useChartsLayerContainerRef.mjs +2 -2
- package/hooks/useDataset.js +1 -1
- package/hooks/useDataset.mjs +2 -2
- package/hooks/useInteractionItemProps.d.mts +1 -2
- package/hooks/useInteractionItemProps.d.ts +1 -2
- package/hooks/useInteractionItemProps.js +2 -2
- package/hooks/useInteractionItemProps.mjs +2 -2
- package/hooks/{useItemHighlighted.d.mts → useItemHighlightState.d.mts} +5 -13
- package/hooks/{useItemHighlighted.d.ts → useItemHighlightState.d.ts} +5 -13
- package/hooks/{useItemHighlighted.js → useItemHighlightState.js} +5 -10
- package/hooks/useItemHighlightState.mjs +17 -0
- package/hooks/useItemHighlightStateGetter.d.mts +9 -0
- package/hooks/useItemHighlightStateGetter.d.ts +9 -0
- package/hooks/useItemHighlightStateGetter.js +21 -0
- package/hooks/useItemHighlightStateGetter.mjs +16 -0
- package/hooks/useTicks.js +2 -2
- package/hooks/useTicks.mjs +2 -2
- package/index.d.mts +0 -3
- package/index.d.ts +0 -3
- package/index.js +2 -22
- package/index.mjs +1 -3
- package/internals/commonNextFocusItem.d.mts +5 -5
- package/internals/commonNextFocusItem.d.ts +5 -5
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +2 -2
- package/internals/createCommonKeyboardFocusHandler.d.ts +2 -2
- package/internals/identifierCleaner.d.mts +8 -4
- package/internals/identifierCleaner.d.ts +8 -4
- package/internals/identifierCleaner.js +4 -1
- package/internals/identifierCleaner.mjs +4 -1
- package/internals/identifierSerializer.d.mts +10 -2
- package/internals/identifierSerializer.d.ts +10 -2
- package/internals/identifierSerializer.js +8 -0
- package/internals/identifierSerializer.mjs +8 -0
- package/internals/index.d.mts +2 -3
- package/internals/index.d.ts +2 -3
- package/internals/index.js +27 -36
- package/internals/index.mjs +2 -3
- package/internals/legendUtils.d.mts +11 -0
- package/internals/legendUtils.d.ts +11 -0
- package/internals/legendUtils.js +28 -0
- package/internals/legendUtils.mjs +22 -0
- package/internals/plugins/allPlugins.d.mts +2 -2
- package/internals/plugins/allPlugins.d.ts +2 -2
- package/internals/plugins/corePlugins/corePlugins.d.mts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +2 -2
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +2 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +1 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +1 -6
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +1 -6
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +24 -3
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +23 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.mts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.mts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.ts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +11 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +33 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +33 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +27 -38
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +27 -38
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.mts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.ts +3 -3
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.mts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +0 -5
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.mjs +0 -4
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +27 -64
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +24 -60
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +8 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +8 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +6 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +6 -4
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.mts +10 -10
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.mts +16 -16
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.ts +16 -16
- package/internals/plugins/models/chart.d.mts +1 -1
- package/internals/plugins/models/chart.d.ts +1 -1
- package/internals/seriesSelectorOfType.d.mts +3 -3
- package/internals/seriesSelectorOfType.d.ts +3 -3
- package/internals/store/useStore.js +2 -2
- package/internals/store/useStore.mjs +2 -2
- package/locales/elGR.d.mts +4 -0
- package/locales/elGR.d.ts +4 -0
- package/locales/elGR.js +6 -0
- package/locales/elGR.mjs +6 -0
- package/locales/enUS.d.mts +4 -0
- package/locales/enUS.d.ts +4 -0
- package/locales/enUS.js +6 -1
- package/locales/enUS.mjs +6 -1
- package/locales/frFR.d.mts +4 -0
- package/locales/frFR.d.ts +4 -0
- package/locales/frFR.js +6 -1
- package/locales/frFR.mjs +6 -1
- package/locales/nbNO.d.mts +4 -0
- package/locales/nbNO.d.ts +4 -0
- package/locales/nbNO.js +6 -0
- package/locales/nbNO.mjs +6 -0
- package/locales/ptBR.d.mts +4 -0
- package/locales/ptBR.d.ts +4 -0
- package/locales/ptBR.js +6 -0
- package/locales/ptBR.mjs +6 -0
- package/locales/ptPT.d.mts +4 -0
- package/locales/ptPT.d.ts +4 -0
- package/locales/ptPT.js +102 -99
- package/locales/ptPT.mjs +102 -99
- package/locales/svSE.d.mts +4 -0
- package/locales/svSE.d.ts +4 -0
- package/locales/svSE.js +6 -0
- package/locales/svSE.mjs +6 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +16 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +16 -0
- package/locales/utils/getChartsLocalization.d.mts +4 -0
- package/locales/utils/getChartsLocalization.d.ts +4 -0
- package/models/axis.d.mts +4 -0
- package/models/axis.d.ts +4 -0
- package/models/seriesType/composition.d.mts +1 -1
- package/models/seriesType/composition.d.ts +1 -1
- package/models/seriesType/composition.js +1 -1
- package/models/seriesType/composition.mjs +1 -1
- package/models/seriesType/config.d.mts +18 -6
- package/models/seriesType/config.d.ts +18 -6
- package/models/seriesType/index.d.mts +8 -8
- package/models/seriesType/index.d.ts +8 -8
- package/models/seriesType/line.d.mts +4 -2
- package/models/seriesType/line.d.ts +4 -2
- package/models/seriesType/radar.d.mts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/models/seriesType/scatter.d.mts +0 -7
- package/models/seriesType/scatter.d.ts +0 -7
- package/package.json +86 -114
- package/themeAugmentation/components.d.mts +22 -17
- package/themeAugmentation/components.d.ts +22 -17
- package/themeAugmentation/overrides.d.mts +10 -8
- package/themeAugmentation/overrides.d.ts +10 -8
- package/themeAugmentation/props.d.mts +0 -2
- package/themeAugmentation/props.d.ts +0 -2
- package/BarChart/BarLabel/barLabelClasses.d.mts +0 -26
- package/BarChart/BarLabel/barLabelClasses.d.ts +0 -26
- package/BarChart/BarLabel/barLabelClasses.js +0 -30
- package/BarChart/BarLabel/barLabelClasses.mjs +0 -20
- package/BarChart/barElementClasses.d.mts +0 -33
- package/BarChart/barElementClasses.d.ts +0 -33
- package/BarChart/barElementClasses.js +0 -29
- package/BarChart/barElementClasses.mjs +0 -19
- package/ChartContainer/ChartContainer.d.mts +0 -22
- package/ChartContainer/ChartContainer.d.ts +0 -22
- package/ChartContainer/ChartContainer.js +0 -24
- package/ChartContainer/ChartContainer.mjs +0 -20
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -1
- package/ChartContainer/useChartContainerProps.d.mts +0 -13
- package/ChartContainer/useChartContainerProps.d.ts +0 -13
- package/ChartContainer/useChartContainerProps.js +0 -19
- package/ChartContainer/useChartContainerProps.mjs +0 -14
- package/ChartDataProvider/ChartDataProvider.d.mts +0 -20
- package/ChartDataProvider/ChartDataProvider.d.ts +0 -20
- package/ChartDataProvider/ChartDataProvider.js +0 -24
- package/ChartDataProvider/ChartDataProvider.mjs +0 -20
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -1
- package/ChartDataProvider/useChartDataProviderProps.d.mts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.d.ts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.js +0 -12
- package/ChartDataProvider/useChartDataProviderProps.mjs +0 -8
- package/LineChart/markElementClasses.d.mts +0 -33
- package/LineChart/markElementClasses.d.ts +0 -33
- package/LineChart/markElementClasses.js +0 -29
- package/LineChart/markElementClasses.mjs +0 -20
- package/RadarChart/RadarAxis/radarAxisClasses.d.mts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.d.ts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.js +0 -25
- package/RadarChart/RadarAxis/radarAxisClasses.mjs +0 -15
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.mts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +0 -14
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.mjs +0 -6
- package/RadarChart/RadarGrid/radarGridClasses.d.mts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.d.ts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.js +0 -25
- package/RadarChart/RadarGrid/radarGridClasses.mjs +0 -15
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.mts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +0 -26
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.mjs +0 -17
- package/context/ChartProvider/ChartContext.d.mts +0 -5
- package/context/ChartProvider/ChartContext.d.ts +0 -5
- package/context/ChartProvider/ChartContext.js +0 -13
- package/context/ChartProvider/ChartContext.mjs +0 -9
- package/context/ChartProvider/ChartProvider.d.mts +0 -5
- package/context/ChartProvider/ChartProvider.d.ts +0 -5
- package/context/ChartProvider/ChartProvider.js +0 -12
- package/context/ChartProvider/ChartProvider.mjs +0 -8
- package/context/ChartProvider/ChartProvider.types.d.mts +0 -15
- package/context/ChartProvider/ChartProvider.types.d.ts +0 -15
- package/context/ChartProvider/index.d.mts +0 -3
- package/context/ChartProvider/index.d.ts +0 -3
- package/context/ChartProvider/index.js +0 -38
- package/context/ChartProvider/index.mjs +0 -3
- package/context/ChartProvider/useChartContext.d.mts +0 -4
- package/context/ChartProvider/useChartContext.d.ts +0 -4
- package/context/ChartProvider/useChartContext.js +0 -12
- package/context/ChartProvider/useChartContext.mjs +0 -8
- package/hooks/useItemHighlighted.mjs +0 -22
- package/hooks/useItemHighlightedGetter.d.mts +0 -53
- package/hooks/useItemHighlightedGetter.d.ts +0 -53
- package/hooks/useItemHighlightedGetter.js +0 -26
- package/hooks/useItemHighlightedGetter.mjs +0 -21
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
- /package/{context/ChartProvider/ChartProvider.types.js → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.js} +0 -0
- /package/{context/ChartProvider/ChartProvider.types.mjs → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.mjs} +0 -0
package/LineChart/LineElement.js
CHANGED
|
@@ -7,37 +7,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
exports.LineElement = LineElement;
|
|
10
|
-
exports.getLineElementUtilityClass = getLineElementUtilityClass;
|
|
11
|
-
exports.lineElementClasses = void 0;
|
|
12
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
14
12
|
var React = _interopRequireWildcard(require("react"));
|
|
15
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
|
-
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
17
14
|
var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
|
|
18
|
-
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
19
|
-
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
20
15
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
21
16
|
var _AnimatedLine = require("./AnimatedLine");
|
|
22
|
-
var
|
|
17
|
+
var _useItemHighlightState = require("../hooks/useItemHighlightState");
|
|
18
|
+
var _lineClasses = require("./lineClasses");
|
|
23
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
20
|
const _excluded = ["seriesId", "classes", "color", "gradientId", "slots", "slotProps", "onClick", "hidden"];
|
|
25
|
-
function getLineElementUtilityClass(slot) {
|
|
26
|
-
return (0, _generateUtilityClass.default)('MuiLineElement', slot);
|
|
27
|
-
}
|
|
28
|
-
const lineElementClasses = exports.lineElementClasses = (0, _generateUtilityClasses.default)('MuiLineElement', ['root', 'highlighted', 'faded', 'series']);
|
|
29
|
-
const useUtilityClasses = ownerState => {
|
|
30
|
-
const {
|
|
31
|
-
classes,
|
|
32
|
-
seriesId,
|
|
33
|
-
isFaded,
|
|
34
|
-
isHighlighted
|
|
35
|
-
} = ownerState;
|
|
36
|
-
const slots = {
|
|
37
|
-
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded']
|
|
38
|
-
};
|
|
39
|
-
return (0, _composeClasses.default)(slots, getLineElementUtilityClass, classes);
|
|
40
|
-
};
|
|
41
21
|
/**
|
|
42
22
|
* Demos:
|
|
43
23
|
*
|
|
@@ -65,10 +45,9 @@ function LineElement(props) {
|
|
|
65
45
|
seriesId
|
|
66
46
|
}), [seriesId]);
|
|
67
47
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)(identifier);
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
} = (0, _useItemHighlighted.useItemHighlighted)(identifier);
|
|
48
|
+
const highlightState = (0, _useItemHighlightState.useItemHighlightState)(identifier);
|
|
49
|
+
const isHighlighted = highlightState === 'highlighted';
|
|
50
|
+
const isFaded = highlightState === 'faded';
|
|
72
51
|
const ownerState = {
|
|
73
52
|
seriesId,
|
|
74
53
|
classes: innerClasses,
|
|
@@ -78,7 +57,7 @@ function LineElement(props) {
|
|
|
78
57
|
isHighlighted,
|
|
79
58
|
hidden
|
|
80
59
|
};
|
|
81
|
-
const classes = useUtilityClasses(
|
|
60
|
+
const classes = (0, _lineClasses.useUtilityClasses)();
|
|
82
61
|
const Line = slots?.line ?? _AnimatedLine.AnimatedLine;
|
|
83
62
|
const lineProps = (0, _useSlotProps.default)({
|
|
84
63
|
elementType: Line,
|
|
@@ -87,9 +66,11 @@ function LineElement(props) {
|
|
|
87
66
|
onClick,
|
|
88
67
|
cursor: onClick ? 'pointer' : 'unset',
|
|
89
68
|
'data-highlighted': isHighlighted || undefined,
|
|
90
|
-
'data-faded': isFaded || undefined
|
|
69
|
+
'data-faded': isFaded || undefined,
|
|
70
|
+
'data-series-id': seriesId,
|
|
71
|
+
'data-series': seriesId
|
|
91
72
|
}),
|
|
92
|
-
className: classes.
|
|
73
|
+
className: classes.line,
|
|
93
74
|
ownerState
|
|
94
75
|
});
|
|
95
76
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, (0, _extends2.default)({}, other, lineProps));
|
|
@@ -5,30 +5,12 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
5
5
|
const _excluded = ["seriesId", "classes", "color", "gradientId", "slots", "slotProps", "onClick", "hidden"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import composeClasses from '@mui/utils/composeClasses';
|
|
9
8
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
10
|
-
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
11
|
-
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
12
9
|
import { useInteractionItemProps } from "../hooks/useInteractionItemProps.mjs";
|
|
13
10
|
import { AnimatedLine } from "./AnimatedLine.mjs";
|
|
14
|
-
import {
|
|
11
|
+
import { useItemHighlightState } from "../hooks/useItemHighlightState.mjs";
|
|
12
|
+
import { useUtilityClasses as useLineUtilityClasses } from "./lineClasses.mjs";
|
|
15
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
export function getLineElementUtilityClass(slot) {
|
|
17
|
-
return generateUtilityClass('MuiLineElement', slot);
|
|
18
|
-
}
|
|
19
|
-
export const lineElementClasses = generateUtilityClasses('MuiLineElement', ['root', 'highlighted', 'faded', 'series']);
|
|
20
|
-
const useUtilityClasses = ownerState => {
|
|
21
|
-
const {
|
|
22
|
-
classes,
|
|
23
|
-
seriesId,
|
|
24
|
-
isFaded,
|
|
25
|
-
isHighlighted
|
|
26
|
-
} = ownerState;
|
|
27
|
-
const slots = {
|
|
28
|
-
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded']
|
|
29
|
-
};
|
|
30
|
-
return composeClasses(slots, getLineElementUtilityClass, classes);
|
|
31
|
-
};
|
|
32
14
|
/**
|
|
33
15
|
* Demos:
|
|
34
16
|
*
|
|
@@ -56,10 +38,9 @@ function LineElement(props) {
|
|
|
56
38
|
seriesId
|
|
57
39
|
}), [seriesId]);
|
|
58
40
|
const interactionProps = useInteractionItemProps(identifier);
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} = useItemHighlighted(identifier);
|
|
41
|
+
const highlightState = useItemHighlightState(identifier);
|
|
42
|
+
const isHighlighted = highlightState === 'highlighted';
|
|
43
|
+
const isFaded = highlightState === 'faded';
|
|
63
44
|
const ownerState = {
|
|
64
45
|
seriesId,
|
|
65
46
|
classes: innerClasses,
|
|
@@ -69,7 +50,7 @@ function LineElement(props) {
|
|
|
69
50
|
isHighlighted,
|
|
70
51
|
hidden
|
|
71
52
|
};
|
|
72
|
-
const classes =
|
|
53
|
+
const classes = useLineUtilityClasses();
|
|
73
54
|
const Line = slots?.line ?? AnimatedLine;
|
|
74
55
|
const lineProps = useSlotProps({
|
|
75
56
|
elementType: Line,
|
|
@@ -78,9 +59,11 @@ function LineElement(props) {
|
|
|
78
59
|
onClick,
|
|
79
60
|
cursor: onClick ? 'pointer' : 'unset',
|
|
80
61
|
'data-highlighted': isHighlighted || undefined,
|
|
81
|
-
'data-faded': isFaded || undefined
|
|
62
|
+
'data-faded': isFaded || undefined,
|
|
63
|
+
'data-series-id': seriesId,
|
|
64
|
+
'data-series': seriesId
|
|
82
65
|
}),
|
|
83
|
-
className: classes.
|
|
66
|
+
className: classes.line,
|
|
84
67
|
ownerState
|
|
85
68
|
});
|
|
86
69
|
return /*#__PURE__*/_jsx(Line, _extends({}, other, lineProps));
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SeriesId } from "../models/seriesType/common.mjs";
|
|
3
|
-
export interface LineHighlightElementClasses {
|
|
4
|
-
/** Styles applied to the root element. */
|
|
5
|
-
root: string;
|
|
6
|
-
}
|
|
7
|
-
export type HighlightElementClassKey = keyof LineHighlightElementClasses;
|
|
8
3
|
interface LineHighlightElementCommonProps {
|
|
9
4
|
seriesId: SeriesId;
|
|
10
5
|
color: string;
|
|
11
6
|
x: number;
|
|
12
7
|
y: number;
|
|
13
|
-
classes?: Partial<LineHighlightElementClasses>;
|
|
14
8
|
}
|
|
15
|
-
export declare function getHighlightElementUtilityClass(slot: string): string;
|
|
16
|
-
export declare const lineHighlightElementClasses: LineHighlightElementClasses;
|
|
17
9
|
export type LineHighlightElementProps = (LineHighlightElementCommonProps & {
|
|
18
10
|
shape: 'circle';
|
|
19
11
|
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'>) | (LineHighlightElementCommonProps & {
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SeriesId } from "../models/seriesType/common.js";
|
|
3
|
-
export interface LineHighlightElementClasses {
|
|
4
|
-
/** Styles applied to the root element. */
|
|
5
|
-
root: string;
|
|
6
|
-
}
|
|
7
|
-
export type HighlightElementClassKey = keyof LineHighlightElementClasses;
|
|
8
3
|
interface LineHighlightElementCommonProps {
|
|
9
4
|
seriesId: SeriesId;
|
|
10
5
|
color: string;
|
|
11
6
|
x: number;
|
|
12
7
|
y: number;
|
|
13
|
-
classes?: Partial<LineHighlightElementClasses>;
|
|
14
8
|
}
|
|
15
|
-
export declare function getHighlightElementUtilityClass(slot: string): string;
|
|
16
|
-
export declare const lineHighlightElementClasses: LineHighlightElementClasses;
|
|
17
9
|
export type LineHighlightElementProps = (LineHighlightElementCommonProps & {
|
|
18
10
|
shape: 'circle';
|
|
19
11
|
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'>) | (LineHighlightElementCommonProps & {
|
|
@@ -7,34 +7,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
exports.LineHighlightElement = LineHighlightElement;
|
|
10
|
-
exports.getHighlightElementUtilityClass = getHighlightElementUtilityClass;
|
|
11
|
-
exports.lineHighlightElementClasses = void 0;
|
|
12
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
14
12
|
var React = _interopRequireWildcard(require("react"));
|
|
15
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
14
|
var _reactMajor = _interopRequireDefault(require("@mui/x-internals/reactMajor"));
|
|
17
15
|
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
18
|
-
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
19
|
-
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
20
|
-
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
21
16
|
var _getSymbol = require("../internals/getSymbol");
|
|
17
|
+
var _lineClasses = require("./lineClasses");
|
|
22
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
const _excluded = ["x", "y", "seriesId", "
|
|
24
|
-
function getHighlightElementUtilityClass(slot) {
|
|
25
|
-
return (0, _generateUtilityClass.default)('MuiHighlightElement', slot);
|
|
26
|
-
}
|
|
27
|
-
const lineHighlightElementClasses = exports.lineHighlightElementClasses = (0, _generateUtilityClasses.default)('MuiHighlightElement', ['root']);
|
|
28
|
-
const useUtilityClasses = ownerState => {
|
|
29
|
-
const {
|
|
30
|
-
classes,
|
|
31
|
-
seriesId
|
|
32
|
-
} = ownerState;
|
|
33
|
-
const slots = {
|
|
34
|
-
root: ['root', `series-${seriesId}`]
|
|
35
|
-
};
|
|
36
|
-
return (0, _composeClasses.default)(slots, getHighlightElementUtilityClass, classes);
|
|
37
|
-
};
|
|
19
|
+
const _excluded = ["x", "y", "seriesId", "color", "shape"];
|
|
38
20
|
/**
|
|
39
21
|
* Demos:
|
|
40
22
|
*
|
|
@@ -53,7 +35,7 @@ function LineHighlightElement(props) {
|
|
|
53
35
|
shape
|
|
54
36
|
} = props,
|
|
55
37
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
56
|
-
const classes = useUtilityClasses(
|
|
38
|
+
const classes = (0, _lineClasses.useUtilityClasses)();
|
|
57
39
|
const Element = shape === 'circle' ? 'circle' : 'path';
|
|
58
40
|
const additionalProps = shape === 'circle' ? {
|
|
59
41
|
cx: 0,
|
|
@@ -71,7 +53,7 @@ function LineHighlightElement(props) {
|
|
|
71
53
|
};
|
|
72
54
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Element, (0, _extends2.default)({
|
|
73
55
|
pointerEvents: "none",
|
|
74
|
-
className: classes.
|
|
56
|
+
className: classes.highlight,
|
|
75
57
|
transform: `translate(${x} ${y})`,
|
|
76
58
|
fill: color
|
|
77
59
|
}, transformOrigin, additionalProps, other));
|
|
@@ -2,30 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["x", "y", "seriesId", "
|
|
5
|
+
const _excluded = ["x", "y", "seriesId", "color", "shape"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import reactMajor from '@mui/x-internals/reactMajor';
|
|
9
9
|
import { symbol as d3Symbol, symbolsFill as d3SymbolsFill } from '@mui/x-charts-vendor/d3-shape';
|
|
10
|
-
import composeClasses from '@mui/utils/composeClasses';
|
|
11
|
-
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
12
|
-
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
13
10
|
import { getSymbol } from "../internals/getSymbol.mjs";
|
|
11
|
+
import { useUtilityClasses as useLineUtilityClasses } from "./lineClasses.mjs";
|
|
14
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
export function getHighlightElementUtilityClass(slot) {
|
|
16
|
-
return generateUtilityClass('MuiHighlightElement', slot);
|
|
17
|
-
}
|
|
18
|
-
export const lineHighlightElementClasses = generateUtilityClasses('MuiHighlightElement', ['root']);
|
|
19
|
-
const useUtilityClasses = ownerState => {
|
|
20
|
-
const {
|
|
21
|
-
classes,
|
|
22
|
-
seriesId
|
|
23
|
-
} = ownerState;
|
|
24
|
-
const slots = {
|
|
25
|
-
root: ['root', `series-${seriesId}`]
|
|
26
|
-
};
|
|
27
|
-
return composeClasses(slots, getHighlightElementUtilityClass, classes);
|
|
28
|
-
};
|
|
29
13
|
/**
|
|
30
14
|
* Demos:
|
|
31
15
|
*
|
|
@@ -44,7 +28,7 @@ function LineHighlightElement(props) {
|
|
|
44
28
|
shape
|
|
45
29
|
} = props,
|
|
46
30
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
47
|
-
const classes =
|
|
31
|
+
const classes = useLineUtilityClasses();
|
|
48
32
|
const Element = shape === 'circle' ? 'circle' : 'path';
|
|
49
33
|
const additionalProps = shape === 'circle' ? {
|
|
50
34
|
cx: 0,
|
|
@@ -62,7 +46,7 @@ function LineHighlightElement(props) {
|
|
|
62
46
|
};
|
|
63
47
|
return /*#__PURE__*/_jsx(Element, _extends({
|
|
64
48
|
pointerEvents: "none",
|
|
65
|
-
className: classes.
|
|
49
|
+
className: classes.highlight,
|
|
66
50
|
transform: `translate(${x} ${y})`,
|
|
67
51
|
fill: color
|
|
68
52
|
}, transformOrigin, additionalProps, other));
|
|
@@ -18,7 +18,7 @@ var _getValueToPositionMapper = require("../hooks/getValueToPositionMapper");
|
|
|
18
18
|
var _constants = require("../constants");
|
|
19
19
|
var _useLineSeries = require("../hooks/useLineSeries");
|
|
20
20
|
var _getColor = _interopRequireDefault(require("./seriesConfig/getColor"));
|
|
21
|
-
var
|
|
21
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
22
22
|
var _useChartCartesianAxis = require("../internals/plugins/featurePlugins/useChartCartesianAxis");
|
|
23
23
|
var _useAxis = require("../hooks/useAxis");
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -50,7 +50,7 @@ function LineHighlightPlot(props) {
|
|
|
50
50
|
} = (0, _useAxis.useYAxes)();
|
|
51
51
|
const {
|
|
52
52
|
instance
|
|
53
|
-
} = (0,
|
|
53
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
54
54
|
const store = (0, _useStore.useStore)();
|
|
55
55
|
const highlightedIndexes = store.use(_useChartCartesianAxis.selectorChartsHighlightXAxisIndex);
|
|
56
56
|
if (highlightedIndexes.length === 0) {
|
|
@@ -12,7 +12,7 @@ import { getValueToPositionMapper } from "../hooks/getValueToPositionMapper.mjs"
|
|
|
12
12
|
import { DEFAULT_X_AXIS_KEY } from "../constants/index.mjs";
|
|
13
13
|
import { useLineSeriesContext } from "../hooks/useLineSeries.mjs";
|
|
14
14
|
import getColor from "./seriesConfig/getColor.mjs";
|
|
15
|
-
import {
|
|
15
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
16
16
|
import { selectorChartsHighlightXAxisIndex } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs";
|
|
17
17
|
import { useXAxes, useYAxes } from "../hooks/useAxis.mjs";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -43,7 +43,7 @@ function LineHighlightPlot(props) {
|
|
|
43
43
|
} = useYAxes();
|
|
44
44
|
const {
|
|
45
45
|
instance
|
|
46
|
-
} =
|
|
46
|
+
} = useChartsContext();
|
|
47
47
|
const store = useStore();
|
|
48
48
|
const highlightedIndexes = store.use(selectorChartsHighlightXAxisIndex);
|
|
49
49
|
if (highlightedIndexes.length === 0) {
|
package/LineChart/LinePlot.js
CHANGED
|
@@ -12,19 +12,21 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _styles = require("@mui/material/styles");
|
|
15
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
16
|
var _LineElement = require("./LineElement");
|
|
16
17
|
var _useSkipAnimation = require("../hooks/useSkipAnimation");
|
|
17
18
|
var _hooks = require("../hooks");
|
|
18
19
|
var _useInternalIsZoomInteracting = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting");
|
|
19
20
|
var _useLinePlotData = require("./useLinePlotData");
|
|
20
21
|
var _animation = require("../internals/animation/animation");
|
|
22
|
+
var _lineClasses = require("./lineClasses");
|
|
21
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
|
-
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick"];
|
|
24
|
+
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick", "className"];
|
|
23
25
|
const LinePlotRoot = (0, _styles.styled)('g', {
|
|
24
|
-
name: '
|
|
26
|
+
name: 'MuiLinePlot',
|
|
25
27
|
slot: 'Root'
|
|
26
28
|
})({
|
|
27
|
-
[`& .${
|
|
29
|
+
[`& .${_lineClasses.lineClasses.line}`]: {
|
|
28
30
|
transitionProperty: 'opacity, fill',
|
|
29
31
|
transitionDuration: `${_animation.ANIMATION_DURATION_MS}ms`,
|
|
30
32
|
transitionTimingFunction: _animation.ANIMATION_TIMING_FUNCTION
|
|
@@ -55,13 +57,17 @@ function LinePlot(props) {
|
|
|
55
57
|
slots,
|
|
56
58
|
slotProps,
|
|
57
59
|
skipAnimation: inSkipAnimation,
|
|
58
|
-
onItemClick
|
|
60
|
+
onItemClick,
|
|
61
|
+
className
|
|
59
62
|
} = props,
|
|
60
63
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
61
64
|
const isZoomInteracting = (0, _useInternalIsZoomInteracting.useInternalIsZoomInteracting)();
|
|
62
65
|
const skipAnimation = (0, _useSkipAnimation.useSkipAnimation)(isZoomInteracting || inSkipAnimation);
|
|
63
66
|
const completedData = useAggregatedData();
|
|
64
|
-
|
|
67
|
+
const classes = (0, _lineClasses.useUtilityClasses)();
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(LinePlotRoot, (0, _extends2.default)({
|
|
69
|
+
className: (0, _clsx.default)(classes.linePlot, className)
|
|
70
|
+
}, other, {
|
|
65
71
|
children: completedData.map(({
|
|
66
72
|
d,
|
|
67
73
|
seriesId,
|
package/LineChart/LinePlot.mjs
CHANGED
|
@@ -2,22 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick"];
|
|
5
|
+
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick", "className"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { styled } from '@mui/material/styles';
|
|
9
|
-
import
|
|
9
|
+
import clsx from 'clsx';
|
|
10
|
+
import { LineElement } from "./LineElement.mjs";
|
|
10
11
|
import { useSkipAnimation } from "../hooks/useSkipAnimation.mjs";
|
|
11
12
|
import { useXAxes, useYAxes } from "../hooks/index.mjs";
|
|
12
13
|
import { useInternalIsZoomInteracting } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting.mjs";
|
|
13
14
|
import { useLinePlotData } from "./useLinePlotData.mjs";
|
|
14
15
|
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.mjs";
|
|
16
|
+
import { lineClasses, useUtilityClasses } from "./lineClasses.mjs";
|
|
15
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
18
|
const LinePlotRoot = styled('g', {
|
|
17
|
-
name: '
|
|
19
|
+
name: 'MuiLinePlot',
|
|
18
20
|
slot: 'Root'
|
|
19
21
|
})({
|
|
20
|
-
[`& .${
|
|
22
|
+
[`& .${lineClasses.line}`]: {
|
|
21
23
|
transitionProperty: 'opacity, fill',
|
|
22
24
|
transitionDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
23
25
|
transitionTimingFunction: ANIMATION_TIMING_FUNCTION
|
|
@@ -48,13 +50,17 @@ function LinePlot(props) {
|
|
|
48
50
|
slots,
|
|
49
51
|
slotProps,
|
|
50
52
|
skipAnimation: inSkipAnimation,
|
|
51
|
-
onItemClick
|
|
53
|
+
onItemClick,
|
|
54
|
+
className
|
|
52
55
|
} = props,
|
|
53
56
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
54
57
|
const isZoomInteracting = useInternalIsZoomInteracting();
|
|
55
58
|
const skipAnimation = useSkipAnimation(isZoomInteracting || inSkipAnimation);
|
|
56
59
|
const completedData = useAggregatedData();
|
|
57
|
-
|
|
60
|
+
const classes = useUtilityClasses();
|
|
61
|
+
return /*#__PURE__*/_jsx(LinePlotRoot, _extends({
|
|
62
|
+
className: clsx(classes.linePlot, className)
|
|
63
|
+
}, other, {
|
|
58
64
|
children: completedData.map(({
|
|
59
65
|
d,
|
|
60
66
|
seriesId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type MarkElementOwnerState } from "./
|
|
2
|
+
import { type MarkElementOwnerState } from "./lineClasses.mjs";
|
|
3
3
|
export type MarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighlighted'> & Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
4
4
|
/**
|
|
5
5
|
* If `true`, the marker is hidden.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type MarkElementOwnerState } from "./
|
|
2
|
+
import { type MarkElementOwnerState } from "./lineClasses.js";
|
|
3
3
|
export type MarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighlighted'> & Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
4
4
|
/**
|
|
5
5
|
* If `true`, the marker is hidden.
|
package/LineChart/MarkElement.js
CHANGED
|
@@ -16,7 +16,7 @@ var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
|
16
16
|
var _animation = require("../internals/animation/animation");
|
|
17
17
|
var _getSymbol = require("../internals/getSymbol");
|
|
18
18
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
19
|
-
var
|
|
19
|
+
var _lineClasses = require("./lineClasses");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
const _excluded = ["x", "y", "seriesId", "classes", "color", "shape", "dataIndex", "onClick", "skipAnimation", "isFaded", "isHighlighted", "hidden", "style"];
|
|
22
22
|
const MarkElementPath = (0, _styles.styled)('path', {
|
|
@@ -26,7 +26,7 @@ const MarkElementPath = (0, _styles.styled)('path', {
|
|
|
26
26
|
theme
|
|
27
27
|
}) => ({
|
|
28
28
|
fill: (theme.vars || theme).palette.background.paper,
|
|
29
|
-
[`&.${
|
|
29
|
+
[`&.${_lineClasses.lineClasses.markAnimate}`]: {
|
|
30
30
|
transitionDuration: `${_animation.ANIMATION_DURATION_MS}ms`,
|
|
31
31
|
transitionProperty: 'transform, transform-origin, opacity',
|
|
32
32
|
transitionTimingFunction: _animation.ANIMATION_TIMING_FUNCTION
|
|
@@ -71,14 +71,17 @@ function MarkElement(props) {
|
|
|
71
71
|
isFaded,
|
|
72
72
|
skipAnimation
|
|
73
73
|
};
|
|
74
|
-
const classes = (0,
|
|
74
|
+
const classes = (0, _lineClasses.useUtilityClasses)({
|
|
75
|
+
skipAnimation,
|
|
76
|
+
classes: innerClasses
|
|
77
|
+
});
|
|
75
78
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(MarkElementPath, (0, _extends2.default)({}, other, {
|
|
76
79
|
style: (0, _extends2.default)({}, style, {
|
|
77
80
|
transform: `translate(${x}px, ${y}px)`,
|
|
78
81
|
transformOrigin: `${x}px ${y}px`
|
|
79
82
|
}),
|
|
80
83
|
ownerState: ownerState,
|
|
81
|
-
className: classes.
|
|
84
|
+
className: classes.mark,
|
|
82
85
|
d: (0, _d3Shape.symbol)(_d3Shape.symbolsFill[(0, _getSymbol.getSymbol)(shape)])(),
|
|
83
86
|
onClick: onClick,
|
|
84
87
|
cursor: onClick ? 'pointer' : 'unset',
|
|
@@ -86,6 +89,9 @@ function MarkElement(props) {
|
|
|
86
89
|
}, interactionProps, {
|
|
87
90
|
"data-highlighted": isHighlighted || undefined,
|
|
88
91
|
"data-faded": isFaded || undefined,
|
|
92
|
+
"data-series-id": seriesId,
|
|
93
|
+
"data-series": seriesId,
|
|
94
|
+
"data-index": dataIndex,
|
|
89
95
|
opacity: hidden ? 0 : 1,
|
|
90
96
|
strokeWidth: 2,
|
|
91
97
|
stroke: color
|
|
@@ -10,7 +10,7 @@ import { symbol as d3Symbol, symbolsFill as d3SymbolsFill } from '@mui/x-charts-
|
|
|
10
10
|
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.mjs";
|
|
11
11
|
import { getSymbol } from "../internals/getSymbol.mjs";
|
|
12
12
|
import { useInteractionItemProps } from "../hooks/useInteractionItemProps.mjs";
|
|
13
|
-
import {
|
|
13
|
+
import { lineClasses, useUtilityClasses as useLineUtilityClasses } from "./lineClasses.mjs";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
const MarkElementPath = styled('path', {
|
|
16
16
|
name: 'MuiMarkElement',
|
|
@@ -19,7 +19,7 @@ const MarkElementPath = styled('path', {
|
|
|
19
19
|
theme
|
|
20
20
|
}) => ({
|
|
21
21
|
fill: (theme.vars || theme).palette.background.paper,
|
|
22
|
-
[`&.${
|
|
22
|
+
[`&.${lineClasses.markAnimate}`]: {
|
|
23
23
|
transitionDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
24
24
|
transitionProperty: 'transform, transform-origin, opacity',
|
|
25
25
|
transitionTimingFunction: ANIMATION_TIMING_FUNCTION
|
|
@@ -64,14 +64,17 @@ function MarkElement(props) {
|
|
|
64
64
|
isFaded,
|
|
65
65
|
skipAnimation
|
|
66
66
|
};
|
|
67
|
-
const classes =
|
|
67
|
+
const classes = useLineUtilityClasses({
|
|
68
|
+
skipAnimation,
|
|
69
|
+
classes: innerClasses
|
|
70
|
+
});
|
|
68
71
|
return /*#__PURE__*/_jsx(MarkElementPath, _extends({}, other, {
|
|
69
72
|
style: _extends({}, style, {
|
|
70
73
|
transform: `translate(${x}px, ${y}px)`,
|
|
71
74
|
transformOrigin: `${x}px ${y}px`
|
|
72
75
|
}),
|
|
73
76
|
ownerState: ownerState,
|
|
74
|
-
className: classes.
|
|
77
|
+
className: classes.mark,
|
|
75
78
|
d: d3Symbol(d3SymbolsFill[getSymbol(shape)])(),
|
|
76
79
|
onClick: onClick,
|
|
77
80
|
cursor: onClick ? 'pointer' : 'unset',
|
|
@@ -79,6 +82,9 @@ function MarkElement(props) {
|
|
|
79
82
|
}, interactionProps, {
|
|
80
83
|
"data-highlighted": isHighlighted || undefined,
|
|
81
84
|
"data-faded": isFaded || undefined,
|
|
85
|
+
"data-series-id": seriesId,
|
|
86
|
+
"data-series": seriesId,
|
|
87
|
+
"data-index": dataIndex,
|
|
82
88
|
opacity: hidden ? 0 : 1,
|
|
83
89
|
strokeWidth: 2,
|
|
84
90
|
stroke: color
|
package/LineChart/MarkPlot.js
CHANGED
|
@@ -11,16 +11,24 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var React = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _styles = require("@mui/material/styles");
|
|
15
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
16
|
var _useSkipAnimation = require("../hooks/useSkipAnimation");
|
|
15
17
|
var _CircleMarkElement = require("./CircleMarkElement");
|
|
16
18
|
var _MarkElement = require("./MarkElement");
|
|
17
19
|
var _hooks = require("../hooks");
|
|
18
20
|
var _useInternalIsZoomInteracting = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting");
|
|
19
21
|
var _useChartCartesianAxis = require("../internals/plugins/featurePlugins/useChartCartesianAxis");
|
|
20
|
-
var
|
|
22
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
21
23
|
var _useMarkPlotData = require("./useMarkPlotData");
|
|
24
|
+
var _lineClasses = require("./lineClasses");
|
|
22
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick"];
|
|
26
|
+
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick", "className"];
|
|
27
|
+
const MarkPlotRoot = (0, _styles.styled)('g', {
|
|
28
|
+
name: 'MuiMarkPlot',
|
|
29
|
+
slot: 'Root'
|
|
30
|
+
})({});
|
|
31
|
+
|
|
24
32
|
/**
|
|
25
33
|
* Demos:
|
|
26
34
|
*
|
|
@@ -36,7 +44,8 @@ function MarkPlot(props) {
|
|
|
36
44
|
slots,
|
|
37
45
|
slotProps,
|
|
38
46
|
skipAnimation: inSkipAnimation,
|
|
39
|
-
onItemClick
|
|
47
|
+
onItemClick,
|
|
48
|
+
className
|
|
40
49
|
} = props,
|
|
41
50
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
42
51
|
const isZoomInteracting = (0, _useInternalIsZoomInteracting.useInternalIsZoomInteracting)();
|
|
@@ -49,11 +58,8 @@ function MarkPlot(props) {
|
|
|
49
58
|
} = (0, _hooks.useYAxes)();
|
|
50
59
|
const {
|
|
51
60
|
store
|
|
52
|
-
} = (0,
|
|
53
|
-
const
|
|
54
|
-
isFaded,
|
|
55
|
-
isHighlighted
|
|
56
|
-
} = (0, _hooks.useItemHighlightedGetter)();
|
|
61
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
62
|
+
const getHighlightState = (0, _hooks.useItemHighlightStateGetter)();
|
|
57
63
|
const xAxisHighlightIndexes = store.use(_useChartCartesianAxis.selectorChartsHighlightXAxisIndex);
|
|
58
64
|
const highlightedItems = React.useMemo(() => {
|
|
59
65
|
const rep = {};
|
|
@@ -70,7 +76,10 @@ function MarkPlot(props) {
|
|
|
70
76
|
return rep;
|
|
71
77
|
}, [xAxisHighlightIndexes]);
|
|
72
78
|
const completedData = (0, _useMarkPlotData.useMarkPlotData)(xAxis, yAxis);
|
|
73
|
-
|
|
79
|
+
const classes = (0, _lineClasses.useUtilityClasses)();
|
|
80
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(MarkPlotRoot, (0, _extends2.default)({
|
|
81
|
+
className: (0, _clsx.default)(classes.markPlot, className)
|
|
82
|
+
}, other, {
|
|
74
83
|
children: completedData.map(({
|
|
75
84
|
seriesId,
|
|
76
85
|
clipId,
|
|
@@ -84,8 +93,9 @@ function MarkPlot(props) {
|
|
|
84
93
|
type: 'line',
|
|
85
94
|
seriesId
|
|
86
95
|
};
|
|
87
|
-
const
|
|
88
|
-
const
|
|
96
|
+
const seriesHighlightState = getHighlightState(identifier);
|
|
97
|
+
const isSeriesHighlighted = seriesHighlightState === 'highlighted';
|
|
98
|
+
const isSeriesFaded = seriesHighlightState === 'faded';
|
|
89
99
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
90
100
|
clipPath: `url(#${clipId})`,
|
|
91
101
|
"data-series": seriesId,
|