@mui/x-charts 9.0.0-alpha.3 → 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/BarChart.d.mts +2 -2
- package/BarChart/BarChart.d.ts +2 -2
- package/BarChart/BarChart.js +36 -6
- package/BarChart/BarChart.mjs +36 -6
- package/BarChart/BarElement.js +1 -3
- package/BarChart/BarElement.mjs +1 -3
- package/BarChart/BarLabel/BarLabel.js +1 -11
- package/BarChart/BarLabel/BarLabel.mjs +1 -11
- package/BarChart/BarLabel/BarLabelItem.js +1 -3
- package/BarChart/BarLabel/BarLabelItem.mjs +1 -3
- 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 +8 -2
- package/BarChart/BarPlot.mjs +8 -2
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -3
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -3
- package/BarChart/index.d.mts +0 -1
- package/BarChart/index.d.ts +0 -1
- package/BarChart/index.js +0 -12
- package/BarChart/index.mjs +0 -1
- 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 +123 -0
- 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.js +49 -15
- package/ChartsContainer/ChartsContainer.mjs +49 -15
- package/ChartsContainer/useChartsContainerProps.d.mts +2 -2
- package/ChartsContainer/useChartsContainerProps.d.ts +2 -2
- package/ChartsContainer/useChartsContainerProps.js +8 -8
- package/ChartsContainer/useChartsContainerProps.mjs +8 -8
- package/ChartsDataProvider/ChartsDataProvider.js +0 -6
- package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
- 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/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 +2 -2
- package/ChartsLegend/ChartsLegend.mjs +2 -2
- package/ChartsLegend/legendContext.types.d.mts +0 -6
- package/ChartsLegend/legendContext.types.d.ts +0 -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 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -31
- package/ChartsTooltip/ChartsItemTooltipContent.js +77 -41
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +76 -41
- package/ChartsTooltip/ChartsTooltipContainer.js +5 -1
- package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -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 +2 -3
- package/ChartsTooltip/useAxesTooltip.d.ts +2 -3
- package/ChartsTooltip/useItemTooltip.d.mts +2 -4
- package/ChartsTooltip/useItemTooltip.d.ts +2 -4
- 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 +81 -0
- package/ChartsXAxis/useAxisTicksProps.d.ts +81 -0
- 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 +81 -0
- package/ChartsYAxis/useAxisTicksProps.d.ts +81 -0
- 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 -35
- package/LineChart/AreaElement.d.ts +2 -35
- package/LineChart/AreaElement.js +3 -41
- package/LineChart/AreaElement.mjs +3 -41
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +3 -11
- package/LineChart/CircleMarkElement.mjs +4 -12
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +33 -9
- package/LineChart/LineChart.mjs +33 -9
- package/LineChart/LineElement.d.mts +2 -35
- package/LineChart/LineElement.d.ts +2 -35
- package/LineChart/LineElement.js +3 -41
- package/LineChart/LineElement.mjs +3 -41
- package/LineChart/LineHighlightElement.d.mts +0 -20
- package/LineChart/LineHighlightElement.d.ts +0 -20
- package/LineChart/LineHighlightElement.js +2 -39
- package/LineChart/LineHighlightElement.mjs +2 -39
- package/LineChart/LineHighlightPlot.js +2 -2
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +3 -4
- package/LineChart/MarkElement.mjs +4 -5
- package/LineChart/MarkPlot.js +2 -2
- package/LineChart/MarkPlot.mjs +2 -2
- package/LineChart/index.d.mts +0 -2
- package/LineChart/index.d.ts +0 -2
- package/LineChart/index.js +0 -15
- package/LineChart/index.mjs +0 -1
- package/LineChart/seriesConfig/seriesProcessor.js +8 -5
- package/LineChart/seriesConfig/seriesProcessor.mjs +8 -5
- 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 +1 -4
- package/PieChart/FocusedPieArc.mjs +2 -4
- package/PieChart/PieArc.d.mts +0 -37
- package/PieChart/PieArc.d.ts +0 -37
- package/PieChart/PieArc.js +3 -42
- package/PieChart/PieArc.mjs +3 -42
- package/PieChart/PieArcLabel.d.mts +2 -43
- package/PieChart/PieArcLabel.d.ts +2 -43
- package/PieChart/PieArcLabel.js +3 -46
- package/PieChart/PieArcLabel.mjs +5 -48
- package/PieChart/PieArcLabelPlot.js +0 -2
- package/PieChart/PieArcLabelPlot.mjs +0 -2
- package/PieChart/PieChart.d.mts +2 -2
- package/PieChart/PieChart.d.ts +2 -2
- package/PieChart/PieChart.js +17 -5
- package/PieChart/PieChart.mjs +17 -5
- package/PieChart/index.d.mts +1 -1
- package/PieChart/index.d.ts +1 -1
- 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 +15 -0
- package/RadarChart/RadarChart.mjs +15 -0
- 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 +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -2
- 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.js +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +2 -2
- 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/ScatterChart/BatchScatter.js +3 -3
- package/ScatterChart/BatchScatter.mjs +3 -3
- package/ScatterChart/Scatter.js +3 -3
- package/ScatterChart/Scatter.mjs +3 -3
- package/ScatterChart/ScatterChart.d.mts +15 -3
- package/ScatterChart/ScatterChart.d.ts +15 -3
- package/ScatterChart/ScatterChart.js +55 -13
- package/ScatterChart/ScatterChart.mjs +55 -13
- 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 +40 -10
- package/SparkLineChart/SparkLineChart.mjs +40 -10
- 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/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.js +2 -2
- package/hooks/useInteractionItemProps.mjs +2 -2
- 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/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/identifierCleaner.d.mts +5 -5
- package/internals/identifierCleaner.d.ts +5 -5
- package/internals/identifierCleaner.js +0 -1
- package/internals/identifierCleaner.mjs +0 -1
- 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/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/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/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/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/seriesConfig.types.d.mts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +16 -37
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +16 -37
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +2 -2
- 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/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/useChartItemClick/useChartItemClick.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
- 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/line.d.mts +2 -1
- package/models/seriesType/line.d.ts +2 -1
- package/models/seriesType/scatter.d.mts +0 -7
- package/models/seriesType/scatter.d.ts +0 -7
- package/package.json +87 -115
- package/themeAugmentation/components.d.mts +5 -25
- package/themeAugmentation/components.d.ts +5 -25
- package/themeAugmentation/overrides.d.mts +3 -15
- package/themeAugmentation/overrides.d.ts +3 -15
- package/themeAugmentation/props.d.mts +0 -2
- package/themeAugmentation/props.d.ts +0 -2
- package/BarChart/BarLabel/barLabelClasses.d.mts +0 -41
- package/BarChart/BarLabel/barLabelClasses.d.ts +0 -41
- package/BarChart/BarLabel/barLabelClasses.js +0 -49
- package/BarChart/BarLabel/barLabelClasses.mjs +0 -40
- package/BarChart/barElementClasses.d.mts +0 -40
- package/BarChart/barElementClasses.d.ts +0 -40
- package/BarChart/barElementClasses.js +0 -48
- package/BarChart/barElementClasses.mjs +0 -39
- 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 -42
- package/LineChart/markElementClasses.d.ts +0 -42
- package/LineChart/markElementClasses.js +0 -48
- package/LineChart/markElementClasses.mjs +0 -40
- 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/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
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["seriesId", "onItemClick"];
|
|
3
|
+
const _excluded = ["seriesId", "onItemClick", "classes"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { clsx } from 'clsx';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
6
|
import { useRadarSeriesData } from "./useRadarSeriesData.mjs";
|
|
7
|
+
import { useUtilityClasses } from "../radarClasses.mjs";
|
|
8
8
|
import { useItemHighlightStateGetter } from "../../hooks/useItemHighlightStateGetter.mjs";
|
|
9
|
-
import { useUtilityClasses } from "./radarSeriesPlotClasses.mjs";
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
10
|
export function getCircleProps(params) {
|
|
12
11
|
const {
|
|
@@ -30,16 +29,19 @@ export function getCircleProps(params) {
|
|
|
30
29
|
fill: color,
|
|
31
30
|
stroke: color,
|
|
32
31
|
opacity: fillArea && isItemFaded ? 0.5 : 1,
|
|
33
|
-
className:
|
|
32
|
+
className: classes.seriesMark,
|
|
33
|
+
'data-highlighted': isItemHighlighted || undefined,
|
|
34
|
+
'data-faded': isItemFaded || undefined
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
function RadarSeriesMarks(props) {
|
|
37
38
|
const {
|
|
38
|
-
onItemClick
|
|
39
|
+
onItemClick,
|
|
40
|
+
classes: inClasses
|
|
39
41
|
} = props,
|
|
40
42
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
41
43
|
const seriesCoordinates = useRadarSeriesData(props.seriesId);
|
|
42
|
-
const classes = useUtilityClasses(
|
|
44
|
+
const classes = useUtilityClasses(inClasses);
|
|
43
45
|
const getHighlightState = useItemHighlightStateGetter();
|
|
44
46
|
return /*#__PURE__*/_jsx(React.Fragment, {
|
|
45
47
|
children: seriesCoordinates?.map(({
|
|
@@ -7,10 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.RadarSeriesPlot = RadarSeriesPlot;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
10
11
|
var _useRadarSeriesData = require("./useRadarSeriesData");
|
|
11
12
|
var _useInteractionAllItemProps = require("./useInteractionAllItemProps");
|
|
13
|
+
var _radarClasses = require("../radarClasses");
|
|
12
14
|
var _useItemHighlightStateGetter = require("../../hooks/useItemHighlightStateGetter");
|
|
13
|
-
var _radarSeriesPlotClasses = require("./radarSeriesPlotClasses");
|
|
14
15
|
var _RadarSeriesArea = require("./RadarSeriesArea");
|
|
15
16
|
var _RadarSeriesMarks = require("./RadarSeriesMarks");
|
|
16
17
|
var _useRadarRotationIndex = require("./useRadarRotationIndex");
|
|
@@ -18,6 +19,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
18
19
|
function RadarSeriesPlot(props) {
|
|
19
20
|
const {
|
|
20
21
|
seriesId: inSeriesId,
|
|
22
|
+
className,
|
|
21
23
|
classes: inClasses,
|
|
22
24
|
onAreaClick,
|
|
23
25
|
onMarkClick
|
|
@@ -26,9 +28,9 @@ function RadarSeriesPlot(props) {
|
|
|
26
28
|
const getRotationIndex = (0, _useRadarRotationIndex.useRadarRotationIndex)();
|
|
27
29
|
const interactionProps = (0, _useInteractionAllItemProps.useInteractionAllItemProps)(seriesCoordinates);
|
|
28
30
|
const getHighlightState = (0, _useItemHighlightStateGetter.useItemHighlightStateGetter)();
|
|
29
|
-
const classes = (0,
|
|
31
|
+
const classes = (0, _radarClasses.useUtilityClasses)(inClasses);
|
|
30
32
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
31
|
-
className: classes.
|
|
33
|
+
className: (0, _clsx.default)(classes.seriesRoot, className),
|
|
32
34
|
children: seriesCoordinates?.map(({
|
|
33
35
|
seriesId,
|
|
34
36
|
points,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import clsx from 'clsx';
|
|
3
4
|
import { useRadarSeriesData } from "./useRadarSeriesData.mjs";
|
|
4
5
|
import { useInteractionAllItemProps } from "./useInteractionAllItemProps.mjs";
|
|
6
|
+
import { useUtilityClasses } from "../radarClasses.mjs";
|
|
5
7
|
import { useItemHighlightStateGetter } from "../../hooks/useItemHighlightStateGetter.mjs";
|
|
6
|
-
import { useUtilityClasses } from "./radarSeriesPlotClasses.mjs";
|
|
7
8
|
import { getPathProps } from "./RadarSeriesArea.mjs";
|
|
8
9
|
import { getCircleProps } from "./RadarSeriesMarks.mjs";
|
|
9
10
|
import { useRadarRotationIndex } from "./useRadarRotationIndex.mjs";
|
|
@@ -11,6 +12,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
12
|
function RadarSeriesPlot(props) {
|
|
12
13
|
const {
|
|
13
14
|
seriesId: inSeriesId,
|
|
15
|
+
className,
|
|
14
16
|
classes: inClasses,
|
|
15
17
|
onAreaClick,
|
|
16
18
|
onMarkClick
|
|
@@ -21,7 +23,7 @@ function RadarSeriesPlot(props) {
|
|
|
21
23
|
const getHighlightState = useItemHighlightStateGetter();
|
|
22
24
|
const classes = useUtilityClasses(inClasses);
|
|
23
25
|
return /*#__PURE__*/_jsx("g", {
|
|
24
|
-
className: classes.
|
|
26
|
+
className: clsx(classes.seriesRoot, className),
|
|
25
27
|
children: seriesCoordinates?.map(({
|
|
26
28
|
seriesId,
|
|
27
29
|
points,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type RadarClasses } from "../radarClasses.mjs";
|
|
3
3
|
import { type RadarItemIdentifier } from "../../models/seriesType/radar.mjs";
|
|
4
|
-
export interface RadarSeriesAreaClasses extends RadarSeriesPlotClasses {}
|
|
5
|
-
export interface RadarSeriesMarksClasses extends RadarSeriesPlotClasses {}
|
|
6
4
|
interface CommonRadarSeriesPlotProps {
|
|
5
|
+
/**
|
|
6
|
+
* A CSS class name applied to the root element.
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
7
9
|
/**
|
|
8
10
|
* The id of the series to display.
|
|
9
11
|
* If undefined all series are displayed.
|
|
@@ -12,7 +14,7 @@ interface CommonRadarSeriesPlotProps {
|
|
|
12
14
|
/**
|
|
13
15
|
* Override or extend the styles applied to the component.
|
|
14
16
|
*/
|
|
15
|
-
classes?: Partial<
|
|
17
|
+
classes?: Partial<RadarClasses>;
|
|
16
18
|
}
|
|
17
19
|
export interface RadarSeriesPlotProps extends CommonRadarSeriesPlotProps {
|
|
18
20
|
/**
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type RadarClasses } from "../radarClasses.js";
|
|
3
3
|
import { type RadarItemIdentifier } from "../../models/seriesType/radar.js";
|
|
4
|
-
export interface RadarSeriesAreaClasses extends RadarSeriesPlotClasses {}
|
|
5
|
-
export interface RadarSeriesMarksClasses extends RadarSeriesPlotClasses {}
|
|
6
4
|
interface CommonRadarSeriesPlotProps {
|
|
5
|
+
/**
|
|
6
|
+
* A CSS class name applied to the root element.
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
7
9
|
/**
|
|
8
10
|
* The id of the series to display.
|
|
9
11
|
* If undefined all series are displayed.
|
|
@@ -12,7 +14,7 @@ interface CommonRadarSeriesPlotProps {
|
|
|
12
14
|
/**
|
|
13
15
|
* Override or extend the styles applied to the component.
|
|
14
16
|
*/
|
|
15
|
-
classes?: Partial<
|
|
17
|
+
classes?: Partial<RadarClasses>;
|
|
16
18
|
}
|
|
17
19
|
export interface RadarSeriesPlotProps extends CommonRadarSeriesPlotProps {
|
|
18
20
|
/**
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export * from "./RadarSeriesPlot.mjs";
|
|
2
2
|
export type * from "./RadarSeriesPlot.types.mjs";
|
|
3
3
|
export { RadarSeriesArea } from "./RadarSeriesArea.mjs";
|
|
4
|
-
export { RadarSeriesMarks } from "./RadarSeriesMarks.mjs";
|
|
5
|
-
export type { RadarSeriesPlotClasses, RadarSeriesPlotClassKey } from "./radarSeriesPlotClasses.mjs";
|
|
6
|
-
export { radarSeriesPlotClasses } from "./radarSeriesPlotClasses.mjs";
|
|
4
|
+
export { RadarSeriesMarks } from "./RadarSeriesMarks.mjs";
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export * from "./RadarSeriesPlot.js";
|
|
2
2
|
export type * from "./RadarSeriesPlot.types.js";
|
|
3
3
|
export { RadarSeriesArea } from "./RadarSeriesArea.js";
|
|
4
|
-
export { RadarSeriesMarks } from "./RadarSeriesMarks.js";
|
|
5
|
-
export type { RadarSeriesPlotClasses, RadarSeriesPlotClassKey } from "./radarSeriesPlotClasses.js";
|
|
6
|
-
export { radarSeriesPlotClasses } from "./radarSeriesPlotClasses.js";
|
|
4
|
+
export { RadarSeriesMarks } from "./RadarSeriesMarks.js";
|
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
RadarSeriesArea: true,
|
|
8
|
-
RadarSeriesMarks: true
|
|
9
|
-
radarSeriesPlotClasses: true
|
|
8
|
+
RadarSeriesMarks: true
|
|
10
9
|
};
|
|
11
10
|
Object.defineProperty(exports, "RadarSeriesArea", {
|
|
12
11
|
enumerable: true,
|
|
@@ -20,12 +19,6 @@ Object.defineProperty(exports, "RadarSeriesMarks", {
|
|
|
20
19
|
return _RadarSeriesMarks.RadarSeriesMarks;
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
|
-
Object.defineProperty(exports, "radarSeriesPlotClasses", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () {
|
|
26
|
-
return _radarSeriesPlotClasses.radarSeriesPlotClasses;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
22
|
var _RadarSeriesPlot = require("./RadarSeriesPlot");
|
|
30
23
|
Object.keys(_RadarSeriesPlot).forEach(function (key) {
|
|
31
24
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -39,5 +32,4 @@ Object.keys(_RadarSeriesPlot).forEach(function (key) {
|
|
|
39
32
|
});
|
|
40
33
|
});
|
|
41
34
|
var _RadarSeriesArea = require("./RadarSeriesArea");
|
|
42
|
-
var _RadarSeriesMarks = require("./RadarSeriesMarks");
|
|
43
|
-
var _radarSeriesPlotClasses = require("./radarSeriesPlotClasses");
|
|
35
|
+
var _RadarSeriesMarks = require("./RadarSeriesMarks");
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export * from "./RadarSeriesPlot.mjs";
|
|
2
2
|
export { RadarSeriesArea } from "./RadarSeriesArea.mjs";
|
|
3
|
-
export { RadarSeriesMarks } from "./RadarSeriesMarks.mjs";
|
|
4
|
-
export { radarSeriesPlotClasses } from "./radarSeriesPlotClasses.mjs";
|
|
3
|
+
export { RadarSeriesMarks } from "./RadarSeriesMarks.mjs";
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.useInteractionAllItemProps = void 0;
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _useChartsContext = require("../../context/ChartsProvider/useChartsContext");
|
|
10
10
|
var _useInteractionItemProps = require("../../hooks/useInteractionItemProps");
|
|
11
11
|
const useInteractionAllItemProps = (data, skip) => {
|
|
12
12
|
const {
|
|
13
13
|
instance
|
|
14
|
-
} = (0,
|
|
14
|
+
} = (0, _useChartsContext.useChartsContext)();
|
|
15
15
|
const results = React.useMemo(() => {
|
|
16
16
|
return data.map(item => {
|
|
17
17
|
return skip ? {} : (0, _useInteractionItemProps.getInteractionItemProps)(instance, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useChartsContext } from "../../context/ChartsProvider/useChartsContext.mjs";
|
|
3
3
|
import { getInteractionItemProps } from "../../hooks/useInteractionItemProps.mjs";
|
|
4
4
|
export const useInteractionAllItemProps = (data, skip) => {
|
|
5
5
|
const {
|
|
6
6
|
instance
|
|
7
|
-
} =
|
|
7
|
+
} = useChartsContext();
|
|
8
8
|
const results = React.useMemo(() => {
|
|
9
9
|
return data.map(item => {
|
|
10
10
|
return skip ? {} : getInteractionItemProps(instance, {
|
|
@@ -10,7 +10,7 @@ var _useScale = require("../../hooks/useScale");
|
|
|
10
10
|
var _useRadarSeries = require("../../hooks/useRadarSeries");
|
|
11
11
|
var _useAxis = require("../../hooks/useAxis");
|
|
12
12
|
var _useItemHighlightStateGetter = require("../../hooks/useItemHighlightStateGetter");
|
|
13
|
-
var
|
|
13
|
+
var _useChartsContext = require("../../context/ChartsProvider/useChartsContext");
|
|
14
14
|
var _getSeriesColorFn = require("../../internals/getSeriesColorFn");
|
|
15
15
|
/**
|
|
16
16
|
* This hook provides all the data needed to display radar series.
|
|
@@ -20,7 +20,7 @@ var _getSeriesColorFn = require("../../internals/getSeriesColorFn");
|
|
|
20
20
|
function useRadarSeriesData(querySeriesId) {
|
|
21
21
|
const {
|
|
22
22
|
instance
|
|
23
|
-
} = (0,
|
|
23
|
+
} = (0, _useChartsContext.useChartsContext)();
|
|
24
24
|
const rotationScale = (0, _useScale.useRotationScale)();
|
|
25
25
|
const {
|
|
26
26
|
radiusAxis
|
|
@@ -3,7 +3,7 @@ import { useRotationScale } from "../../hooks/useScale.mjs";
|
|
|
3
3
|
import { useRadarSeries } from "../../hooks/useRadarSeries.mjs";
|
|
4
4
|
import { useRadiusAxes } from "../../hooks/useAxis.mjs";
|
|
5
5
|
import { useItemHighlightStateGetter } from "../../hooks/useItemHighlightStateGetter.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { useChartsContext } from "../../context/ChartsProvider/useChartsContext.mjs";
|
|
7
7
|
import { getSeriesColorFn } from "../../internals/getSeriesColorFn.mjs";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -14,7 +14,7 @@ import { getSeriesColorFn } from "../../internals/getSeriesColorFn.mjs";
|
|
|
14
14
|
export function useRadarSeriesData(querySeriesId) {
|
|
15
15
|
const {
|
|
16
16
|
instance
|
|
17
|
-
} =
|
|
17
|
+
} = useChartsContext();
|
|
18
18
|
const rotationScale = useRotationScale();
|
|
19
19
|
const {
|
|
20
20
|
radiusAxis
|
package/RadarChart/index.d.mts
CHANGED
|
@@ -17,4 +17,6 @@ export * from "./RadarAxis/index.mjs";
|
|
|
17
17
|
export * from "./RadarAxisHighlight/index.mjs";
|
|
18
18
|
export * from "./RadarMetricLabels/index.mjs";
|
|
19
19
|
export * from "./RadarSeriesPlot/index.mjs";
|
|
20
|
-
export * from "./RadarChart.plugins.mjs";
|
|
20
|
+
export * from "./RadarChart.plugins.mjs";
|
|
21
|
+
export { radarClasses } from "./radarClasses.mjs";
|
|
22
|
+
export type { RadarClassKey, RadarClasses } from "./radarClasses.mjs";
|
package/RadarChart/index.d.ts
CHANGED
|
@@ -17,4 +17,6 @@ export * from "./RadarAxis/index.js";
|
|
|
17
17
|
export * from "./RadarAxisHighlight/index.js";
|
|
18
18
|
export * from "./RadarMetricLabels/index.js";
|
|
19
19
|
export * from "./RadarSeriesPlot/index.js";
|
|
20
|
-
export * from "./RadarChart.plugins.js";
|
|
20
|
+
export * from "./RadarChart.plugins.js";
|
|
21
|
+
export { radarClasses } from "./radarClasses.js";
|
|
22
|
+
export type { RadarClassKey, RadarClasses } from "./radarClasses.js";
|
package/RadarChart/index.js
CHANGED
|
@@ -7,7 +7,8 @@ var _exportNames = {
|
|
|
7
7
|
Unstable_RadarChart: true,
|
|
8
8
|
Unstable_RadarDataProvider: true,
|
|
9
9
|
RadarChart: true,
|
|
10
|
-
RadarDataProvider: true
|
|
10
|
+
RadarDataProvider: true,
|
|
11
|
+
radarClasses: true
|
|
11
12
|
};
|
|
12
13
|
Object.defineProperty(exports, "RadarChart", {
|
|
13
14
|
enumerable: true,
|
|
@@ -22,6 +23,12 @@ Object.defineProperty(exports, "RadarDataProvider", {
|
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
25
|
exports.Unstable_RadarDataProvider = exports.Unstable_RadarChart = void 0;
|
|
26
|
+
Object.defineProperty(exports, "radarClasses", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return _radarClasses.radarClasses;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
25
32
|
var _RadarChart = require("./RadarChart");
|
|
26
33
|
var _RadarDataProvider = require("./RadarDataProvider");
|
|
27
34
|
var _FocusedRadarMark = require("./FocusedRadarMark");
|
|
@@ -108,6 +115,7 @@ Object.keys(_RadarChart2).forEach(function (key) {
|
|
|
108
115
|
}
|
|
109
116
|
});
|
|
110
117
|
});
|
|
118
|
+
var _radarClasses = require("./radarClasses");
|
|
111
119
|
/**
|
|
112
120
|
* @deprecated radar chart is now stable, import `RadarChart` instead
|
|
113
121
|
*/
|
package/RadarChart/index.mjs
CHANGED
|
@@ -18,4 +18,5 @@ export * from "./RadarAxis/index.mjs";
|
|
|
18
18
|
export * from "./RadarAxisHighlight/index.mjs";
|
|
19
19
|
export * from "./RadarMetricLabels/index.mjs";
|
|
20
20
|
export * from "./RadarSeriesPlot/index.mjs";
|
|
21
|
-
export * from "./RadarChart.plugins.mjs";
|
|
21
|
+
export * from "./RadarChart.plugins.mjs";
|
|
22
|
+
export { radarClasses } from "./radarClasses.mjs";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface RadarClasses {
|
|
2
|
+
/** Styles applied to the radar axis root element. */
|
|
3
|
+
axisRoot: string;
|
|
4
|
+
/** Styles applied to the radar axis line element. */
|
|
5
|
+
axisLine: string;
|
|
6
|
+
/** Styles applied to every radar axis label element. */
|
|
7
|
+
axisLabel: string;
|
|
8
|
+
/** Styles applied to every radial line element of the grid. */
|
|
9
|
+
gridRadial: string;
|
|
10
|
+
/** Styles applied to every divider element of the grid. */
|
|
11
|
+
gridDivider: string;
|
|
12
|
+
/** Styles applied to every stripe element of the grid. */
|
|
13
|
+
gridStripe: string;
|
|
14
|
+
/** Styles applied to the series plot root element. */
|
|
15
|
+
seriesRoot: string;
|
|
16
|
+
/** Styles applied to the series area element. */
|
|
17
|
+
seriesArea: string;
|
|
18
|
+
/** Styles applied to the series mark element. */
|
|
19
|
+
seriesMark: string;
|
|
20
|
+
/** Styles applied to the axis highlight root element. */
|
|
21
|
+
axisHighlightRoot: string;
|
|
22
|
+
/** Styles applied to the axis highlight line element. */
|
|
23
|
+
axisHighlightLine: string;
|
|
24
|
+
/** Styles applied to every axis highlight dot element. */
|
|
25
|
+
axisHighlightDot: string;
|
|
26
|
+
}
|
|
27
|
+
export type RadarClassKey = keyof RadarClasses;
|
|
28
|
+
export declare function getRadarUtilityClass(slot: string): string;
|
|
29
|
+
export declare const radarClasses: RadarClasses;
|
|
30
|
+
export declare const useUtilityClasses: (classes?: Partial<RadarClasses>) => Record<"axisLine" | "axisLabel" | "axisRoot" | "gridRadial" | "gridDivider" | "gridStripe" | "seriesRoot" | "seriesArea" | "seriesMark" | "axisHighlightRoot" | "axisHighlightLine" | "axisHighlightDot", string>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface RadarClasses {
|
|
2
|
+
/** Styles applied to the radar axis root element. */
|
|
3
|
+
axisRoot: string;
|
|
4
|
+
/** Styles applied to the radar axis line element. */
|
|
5
|
+
axisLine: string;
|
|
6
|
+
/** Styles applied to every radar axis label element. */
|
|
7
|
+
axisLabel: string;
|
|
8
|
+
/** Styles applied to every radial line element of the grid. */
|
|
9
|
+
gridRadial: string;
|
|
10
|
+
/** Styles applied to every divider element of the grid. */
|
|
11
|
+
gridDivider: string;
|
|
12
|
+
/** Styles applied to every stripe element of the grid. */
|
|
13
|
+
gridStripe: string;
|
|
14
|
+
/** Styles applied to the series plot root element. */
|
|
15
|
+
seriesRoot: string;
|
|
16
|
+
/** Styles applied to the series area element. */
|
|
17
|
+
seriesArea: string;
|
|
18
|
+
/** Styles applied to the series mark element. */
|
|
19
|
+
seriesMark: string;
|
|
20
|
+
/** Styles applied to the axis highlight root element. */
|
|
21
|
+
axisHighlightRoot: string;
|
|
22
|
+
/** Styles applied to the axis highlight line element. */
|
|
23
|
+
axisHighlightLine: string;
|
|
24
|
+
/** Styles applied to every axis highlight dot element. */
|
|
25
|
+
axisHighlightDot: string;
|
|
26
|
+
}
|
|
27
|
+
export type RadarClassKey = keyof RadarClasses;
|
|
28
|
+
export declare function getRadarUtilityClass(slot: string): string;
|
|
29
|
+
export declare const radarClasses: RadarClasses;
|
|
30
|
+
export declare const useUtilityClasses: (classes?: Partial<RadarClasses>) => Record<"axisLine" | "axisLabel" | "axisRoot" | "gridRadial" | "gridDivider" | "gridStripe" | "seriesRoot" | "seriesArea" | "seriesMark" | "axisHighlightRoot" | "axisHighlightLine" | "axisHighlightDot", string>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.getRadarUtilityClass = getRadarUtilityClass;
|
|
8
|
+
exports.useUtilityClasses = exports.radarClasses = void 0;
|
|
9
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
10
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
11
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
12
|
+
function getRadarUtilityClass(slot) {
|
|
13
|
+
return (0, _generateUtilityClass.default)('MuiRadarChart', slot);
|
|
14
|
+
}
|
|
15
|
+
const radarClasses = exports.radarClasses = (0, _generateUtilityClasses.default)('MuiRadarChart', ['axisRoot', 'axisLine', 'axisLabel', 'gridRadial', 'gridDivider', 'gridStripe', 'seriesRoot', 'seriesArea', 'seriesMark', 'axisHighlightRoot', 'axisHighlightLine', 'axisHighlightDot']);
|
|
16
|
+
const useUtilityClasses = classes => {
|
|
17
|
+
const slots = {
|
|
18
|
+
axisRoot: ['axisRoot'],
|
|
19
|
+
axisLine: ['axisLine'],
|
|
20
|
+
axisLabel: ['axisLabel'],
|
|
21
|
+
gridRadial: ['gridRadial'],
|
|
22
|
+
gridDivider: ['gridDivider'],
|
|
23
|
+
gridStripe: ['gridStripe'],
|
|
24
|
+
seriesRoot: ['seriesRoot'],
|
|
25
|
+
seriesArea: ['seriesArea'],
|
|
26
|
+
seriesMark: ['seriesMark'],
|
|
27
|
+
axisHighlightRoot: ['axisHighlightRoot'],
|
|
28
|
+
axisHighlightLine: ['axisHighlightLine'],
|
|
29
|
+
axisHighlightDot: ['axisHighlightDot']
|
|
30
|
+
};
|
|
31
|
+
return (0, _composeClasses.default)(slots, getRadarUtilityClass, classes);
|
|
32
|
+
};
|
|
33
|
+
exports.useUtilityClasses = useUtilityClasses;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
3
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
4
|
+
export function getRadarUtilityClass(slot) {
|
|
5
|
+
return generateUtilityClass('MuiRadarChart', slot);
|
|
6
|
+
}
|
|
7
|
+
export const radarClasses = generateUtilityClasses('MuiRadarChart', ['axisRoot', 'axisLine', 'axisLabel', 'gridRadial', 'gridDivider', 'gridStripe', 'seriesRoot', 'seriesArea', 'seriesMark', 'axisHighlightRoot', 'axisHighlightLine', 'axisHighlightDot']);
|
|
8
|
+
export const useUtilityClasses = classes => {
|
|
9
|
+
const slots = {
|
|
10
|
+
axisRoot: ['axisRoot'],
|
|
11
|
+
axisLine: ['axisLine'],
|
|
12
|
+
axisLabel: ['axisLabel'],
|
|
13
|
+
gridRadial: ['gridRadial'],
|
|
14
|
+
gridDivider: ['gridDivider'],
|
|
15
|
+
gridStripe: ['gridStripe'],
|
|
16
|
+
seriesRoot: ['seriesRoot'],
|
|
17
|
+
seriesArea: ['seriesArea'],
|
|
18
|
+
seriesMark: ['seriesMark'],
|
|
19
|
+
axisHighlightRoot: ['axisHighlightRoot'],
|
|
20
|
+
axisHighlightLine: ['axisHighlightLine'],
|
|
21
|
+
axisHighlightDot: ['axisHighlightDot']
|
|
22
|
+
};
|
|
23
|
+
return composeClasses(slots, getRadarUtilityClass, classes);
|
|
24
|
+
};
|
|
@@ -4,25 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
const legendGetter =
|
|
9
|
-
const {
|
|
10
|
-
seriesOrder,
|
|
11
|
-
series
|
|
12
|
-
} = params;
|
|
13
|
-
return seriesOrder.reduce((acc, seriesId) => {
|
|
14
|
-
const formattedLabel = (0, _getLabel.getLabel)(series[seriesId].label, 'legend');
|
|
15
|
-
if (formattedLabel === undefined) {
|
|
16
|
-
return acc;
|
|
17
|
-
}
|
|
18
|
-
acc.push({
|
|
19
|
-
type: 'radar',
|
|
20
|
-
seriesId,
|
|
21
|
-
color: series[seriesId].color,
|
|
22
|
-
label: formattedLabel,
|
|
23
|
-
markType: series[seriesId].labelMarkType ?? 'square'
|
|
24
|
-
});
|
|
25
|
-
return acc;
|
|
26
|
-
}, []);
|
|
27
|
-
};
|
|
7
|
+
var _legendUtils = require("../../internals/legendUtils");
|
|
8
|
+
const legendGetter = series => (0, _legendUtils.getSeriesLegendItems)('radar', series, 'square');
|
|
28
9
|
var _default = exports.default = legendGetter;
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const legendGetter =
|
|
3
|
-
const {
|
|
4
|
-
seriesOrder,
|
|
5
|
-
series
|
|
6
|
-
} = params;
|
|
7
|
-
return seriesOrder.reduce((acc, seriesId) => {
|
|
8
|
-
const formattedLabel = getLabel(series[seriesId].label, 'legend');
|
|
9
|
-
if (formattedLabel === undefined) {
|
|
10
|
-
return acc;
|
|
11
|
-
}
|
|
12
|
-
acc.push({
|
|
13
|
-
type: 'radar',
|
|
14
|
-
seriesId,
|
|
15
|
-
color: series[seriesId].color,
|
|
16
|
-
label: formattedLabel,
|
|
17
|
-
markType: series[seriesId].labelMarkType ?? 'square'
|
|
18
|
-
});
|
|
19
|
-
return acc;
|
|
20
|
-
}, []);
|
|
21
|
-
};
|
|
1
|
+
import { getSeriesLegendItems } from "../../internals/legendUtils.mjs";
|
|
2
|
+
const legendGetter = series => getSeriesLegendItems('radar', series, 'square');
|
|
22
3
|
export default legendGetter;
|
|
@@ -11,7 +11,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
12
|
var _styles = require("@mui/material/styles");
|
|
13
13
|
var _scatterClasses = require("./scatterClasses");
|
|
14
|
-
var
|
|
14
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
15
15
|
var _getValueToPositionMapper = require("../hooks/getValueToPositionMapper");
|
|
16
16
|
var _useChartHighlight = require("../internals/plugins/featurePlugins/useChartHighlight");
|
|
17
17
|
var _appendAtKey = require("../internals/appendAtKey");
|
|
@@ -26,7 +26,7 @@ function createPath(x, y, markerSize) {
|
|
|
26
26
|
function useCreatePaths(seriesData, markerSize, xScale, yScale, color, colorGetter) {
|
|
27
27
|
const {
|
|
28
28
|
instance
|
|
29
|
-
} = (0,
|
|
29
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
30
30
|
const getXPosition = (0, _getValueToPositionMapper.getValueToPositionMapper)(xScale);
|
|
31
31
|
const getYPosition = (0, _getValueToPositionMapper.getValueToPositionMapper)(yScale);
|
|
32
32
|
const paths = new Map();
|
|
@@ -119,7 +119,7 @@ function BatchScatter(props) {
|
|
|
119
119
|
} = props;
|
|
120
120
|
const {
|
|
121
121
|
store
|
|
122
|
-
} = (0,
|
|
122
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
123
123
|
const isSeriesHighlighted = store.use(_useChartHighlight.selectorChartIsSeriesHighlighted, series.id);
|
|
124
124
|
const isSeriesFaded = store.use(_useChartHighlight.selectorChartIsSeriesFaded, series.id);
|
|
125
125
|
const seriesHighlightedItem = store.use(_useChartHighlight.selectorChartSeriesHighlightedItem, series.id);
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { styled } from '@mui/material/styles';
|
|
6
6
|
import { useUtilityClasses } from "./scatterClasses.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
8
8
|
import { getValueToPositionMapper } from "../hooks/getValueToPositionMapper.mjs";
|
|
9
9
|
import { selectorChartIsSeriesFaded, selectorChartIsSeriesHighlighted, selectorChartSeriesUnfadedItem, selectorChartSeriesHighlightedItem } from "../internals/plugins/featurePlugins/useChartHighlight/index.mjs";
|
|
10
10
|
import { appendAtKey } from "../internals/appendAtKey.mjs";
|
|
@@ -19,7 +19,7 @@ function createPath(x, y, markerSize) {
|
|
|
19
19
|
function useCreatePaths(seriesData, markerSize, xScale, yScale, color, colorGetter) {
|
|
20
20
|
const {
|
|
21
21
|
instance
|
|
22
|
-
} =
|
|
22
|
+
} = useChartsContext();
|
|
23
23
|
const getXPosition = getValueToPositionMapper(xScale);
|
|
24
24
|
const getYPosition = getValueToPositionMapper(yScale);
|
|
25
25
|
const paths = new Map();
|
|
@@ -112,7 +112,7 @@ export function BatchScatter(props) {
|
|
|
112
112
|
} = props;
|
|
113
113
|
const {
|
|
114
114
|
store
|
|
115
|
-
} =
|
|
115
|
+
} = useChartsContext();
|
|
116
116
|
const isSeriesHighlighted = store.use(selectorChartIsSeriesHighlighted, series.id);
|
|
117
117
|
const isSeriesFaded = store.use(selectorChartIsSeriesFaded, series.id);
|
|
118
118
|
const seriesHighlightedItem = store.use(selectorChartSeriesHighlightedItem, series.id);
|
package/ScatterChart/Scatter.js
CHANGED
|
@@ -20,7 +20,7 @@ var _useChartClosestPoint = require("../internals/plugins/featurePlugins/useChar
|
|
|
20
20
|
var _ScatterMarker = require("./ScatterMarker");
|
|
21
21
|
var _scatterClasses = require("./scatterClasses");
|
|
22
22
|
var _useScatterPlotData = require("./useScatterPlotData");
|
|
23
|
-
var
|
|
23
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
24
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
25
|
const _excluded = ["ownerState"];
|
|
26
26
|
/**
|
|
@@ -46,10 +46,10 @@ function Scatter(props) {
|
|
|
46
46
|
} = props;
|
|
47
47
|
const {
|
|
48
48
|
instance
|
|
49
|
-
} = (0,
|
|
49
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
50
50
|
const store = (0, _useStore.useStore)();
|
|
51
51
|
const isVoronoiEnabled = store.use(_useChartClosestPoint.selectorChartsIsVoronoiEnabled);
|
|
52
|
-
const skipInteractionHandlers = isVoronoiEnabled
|
|
52
|
+
const skipInteractionHandlers = isVoronoiEnabled;
|
|
53
53
|
const getHighlightState = (0, _useItemHighlightStateGetter.useItemHighlightStateGetter)();
|
|
54
54
|
const scatterPlotData = (0, _useScatterPlotData.useScatterPlotData)(series, xScale, yScale, instance.isPointInside);
|
|
55
55
|
const Marker = slots?.marker ?? _ScatterMarker.ScatterMarker;
|
package/ScatterChart/Scatter.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { selectorChartsIsVoronoiEnabled } from "../internals/plugins/featurePlug
|
|
|
14
14
|
import { ScatterMarker } from "./ScatterMarker.mjs";
|
|
15
15
|
import { useUtilityClasses } from "./scatterClasses.mjs";
|
|
16
16
|
import { useScatterPlotData } from "./useScatterPlotData.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
/**
|
|
20
20
|
* Demos:
|
|
@@ -39,10 +39,10 @@ function Scatter(props) {
|
|
|
39
39
|
} = props;
|
|
40
40
|
const {
|
|
41
41
|
instance
|
|
42
|
-
} =
|
|
42
|
+
} = useChartsContext();
|
|
43
43
|
const store = useStore();
|
|
44
44
|
const isVoronoiEnabled = store.use(selectorChartsIsVoronoiEnabled);
|
|
45
|
-
const skipInteractionHandlers = isVoronoiEnabled
|
|
45
|
+
const skipInteractionHandlers = isVoronoiEnabled;
|
|
46
46
|
const getHighlightState = useItemHighlightStateGetter();
|
|
47
47
|
const scatterPlotData = useScatterPlotData(series, xScale, yScale, instance.isPointInside);
|
|
48
48
|
const Marker = slots?.marker ?? ScatterMarker;
|