@mui/x-charts 9.7.0 → 9.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/AnimatedBarElement.d.mts +1 -1
- package/BarChart/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarClipPath.d.mts +1 -1
- package/BarChart/BarClipPath.d.ts +1 -1
- package/BarChart/BarElement.d.mts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelItem.d.mts +1 -1
- package/BarChart/BarLabel/BarLabelItem.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelPlot.d.mts +2 -1
- package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -1
- package/BarChart/BatchBarPlot/BarGroup.d.mts +1 -1
- package/BarChart/BatchBarPlot/BarGroup.d.ts +1 -1
- package/BarChart/BatchBarPlot/BatchBarPlot.d.mts +2 -1
- package/BarChart/BatchBarPlot/BatchBarPlot.d.ts +2 -1
- package/BarChart/FocusedBar.d.mts +1 -1
- package/BarChart/FocusedBar.d.ts +1 -1
- package/BarChart/IndividualBarPlot.d.mts +2 -1
- package/BarChart/IndividualBarPlot.d.ts +2 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.d.mts +2 -3
- package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +2 -3
- package/BarChart/seriesConfig/bar/tooltipPosition.js +19 -15
- package/BarChart/seriesConfig/bar/tooltipPosition.mjs +18 -14
- package/BarChart/seriesConfig/index.js +2 -2
- package/BarChart/seriesConfig/index.mjs +2 -2
- package/BarChart/useBarPlotData.d.mts +5 -1
- package/BarChart/useBarPlotData.d.ts +5 -1
- package/BarChart/useBarPlotData.js +102 -25
- package/BarChart/useBarPlotData.mjs +102 -26
- package/CHANGELOG.md +249 -1
- package/ChartsAxis/ChartsAxis.d.mts +2 -1
- package/ChartsAxis/ChartsAxis.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +22 -5
- package/ChartsAxisHighlight/ChartsXAxisHighlight.mjs +23 -6
- package/ChartsAxisHighlight/ChartsYAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +22 -5
- package/ChartsAxisHighlight/ChartsYAxisHighlight.mjs +23 -6
- package/ChartsAxisHighlight/getSampledBandHighlight.d.mts +27 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.d.ts +27 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.js +35 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.mjs +29 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.mts +2 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.ts +2 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +2 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +2 -1
- package/ChartsClipPath/ChartsClipPath.d.mts +1 -1
- package/ChartsClipPath/ChartsClipPath.d.ts +1 -1
- package/ChartsDataProvider/ChartsDataProvider.d.mts +1 -1
- package/ChartsDataProvider/ChartsDataProvider.d.ts +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +1 -1
- package/ChartsGrid/ChartsGrid.d.ts +1 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.mts +2 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -1
- package/ChartsGrid/ChartsVerticalGrid.d.mts +2 -1
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.mts +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsOverlay.d.ts +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.ts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.ts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.ts +2 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
- package/ChartsRadialGrid/ChartsRadialGrid.d.mts +1 -1
- package/ChartsRadialGrid/ChartsRadialGrid.d.ts +1 -1
- package/ChartsRadialGrid/ChartsRadiusGrid.d.mts +2 -1
- package/ChartsRadialGrid/ChartsRadiusGrid.d.ts +2 -1
- package/ChartsRadialGrid/ChartsRotationGrid.d.mts +2 -1
- package/ChartsRadialGrid/ChartsRotationGrid.d.ts +2 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -1
- package/ChartsText/ChartsText.d.mts +1 -1
- package/ChartsText/ChartsText.d.ts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.mts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -1
- package/ChartsTooltip/ChartsItemTooltipContent.d.mts +2 -1
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +2 -1
- package/ChartsTooltip/ChartsTooltip.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltipContainer.js +10 -3
- package/ChartsTooltip/ChartsTooltipContainer.mjs +11 -4
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.mts +2 -1
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +2 -1
- package/ChartsXAxis/ChartsGroupedXAxisTicks.js +3 -13
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +2 -12
- package/ChartsXAxis/ChartsSingleXAxisTicks.d.mts +2 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +2 -1
- package/ChartsXAxis/ChartsXAxis.d.mts +1 -1
- package/ChartsXAxis/ChartsXAxis.d.ts +1 -1
- package/ChartsXAxis/ChartsXAxisImpl.d.mts +2 -1
- package/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.mts +2 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +2 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.js +4 -16
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +3 -13
- package/ChartsYAxis/ChartsSingleYAxisTicks.d.mts +2 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +2 -1
- package/ChartsYAxis/ChartsYAxis.d.mts +1 -1
- package/ChartsYAxis/ChartsYAxis.d.ts +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.d.mts +2 -1
- package/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -1
- package/Gauge/GaugeProvider.d.mts +1 -1
- package/Gauge/GaugeProvider.d.ts +1 -1
- package/Gauge/GaugeReferenceArc.d.mts +1 -1
- package/Gauge/GaugeReferenceArc.d.ts +1 -1
- package/Gauge/GaugeValueArc.d.mts +1 -1
- package/Gauge/GaugeValueArc.d.ts +1 -1
- package/Gauge/GaugeValueText.d.mts +1 -1
- package/Gauge/GaugeValueText.d.ts +1 -1
- package/LineChart/AnimatedArea.d.mts +1 -1
- package/LineChart/AnimatedArea.d.ts +1 -1
- package/LineChart/AppearingMask.d.mts +1 -1
- package/LineChart/AppearingMask.d.ts +1 -1
- package/LineChart/AreaElement.d.mts +1 -1
- package/LineChart/AreaElement.d.ts +1 -1
- package/LineChart/AreaPlot.d.mts +1 -1
- package/LineChart/AreaPlot.d.ts +1 -1
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/FocusedLineMark.d.mts +1 -1
- package/LineChart/FocusedLineMark.d.ts +1 -1
- package/LineChart/LineElement.d.mts +1 -1
- package/LineChart/LineElement.d.ts +1 -1
- package/LineChart/LineHighlightElement.d.mts +1 -1
- package/LineChart/LineHighlightElement.d.ts +1 -1
- package/LineChart/LineHighlightPlot.d.mts +1 -1
- package/LineChart/LineHighlightPlot.d.ts +1 -1
- package/LineChart/LinePlot.d.mts +1 -1
- package/LineChart/LinePlot.d.ts +1 -1
- package/LineChart/LinePlot.js +3 -2
- package/LineChart/LinePlot.mjs +3 -2
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkPlot.d.mts +1 -1
- package/LineChart/MarkPlot.d.ts +1 -1
- package/LineChart/seriesConfig/index.js +2 -2
- package/LineChart/seriesConfig/index.mjs +2 -2
- package/LineChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/LineChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/LineChart/seriesConfig/tooltipPosition.js +14 -14
- package/LineChart/seriesConfig/tooltipPosition.mjs +13 -13
- package/LineChart/useLinePlotData.d.mts +13 -1
- package/LineChart/useLinePlotData.d.ts +13 -1
- package/LineChart/useLinePlotData.js +90 -33
- package/LineChart/useLinePlotData.mjs +92 -34
- package/PieChart/FocusedPieArc.d.mts +1 -1
- package/PieChart/FocusedPieArc.d.ts +1 -1
- package/PieChart/PieArcLabelPlot.d.mts +1 -1
- package/PieChart/PieArcLabelPlot.d.ts +1 -1
- package/PieChart/PieArcPlot.d.mts +1 -1
- package/PieChart/PieArcPlot.d.ts +1 -1
- package/PieChart/PiePlot.d.mts +1 -1
- package/PieChart/PiePlot.d.ts +1 -1
- package/PieChart/seriesConfig/index.js +2 -2
- package/PieChart/seriesConfig/index.mjs +2 -2
- package/PieChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/PieChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/PieChart/seriesConfig/tooltipPosition.js +7 -11
- package/PieChart/seriesConfig/tooltipPosition.mjs +6 -10
- package/RadarChart/FocusedRadarMark.d.mts +1 -1
- package/RadarChart/FocusedRadarMark.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.d.mts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +1 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -1
- package/RadarChart/RadarGrid/CircularRadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/CircularRadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.d.mts +2 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +2 -1
- package/RadarChart/RadarGrid/RadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/RadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/SharpRadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/SharpRadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.d.mts +2 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +2 -1
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.mts +2 -1
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -1
- package/RadarChart/seriesConfig/index.js +2 -2
- package/RadarChart/seriesConfig/index.mjs +2 -2
- package/RadarChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/RadarChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/RadarChart/seriesConfig/tooltipPosition.js +9 -16
- package/RadarChart/seriesConfig/tooltipPosition.mjs +8 -15
- package/ScatterChart/BatchScatter.d.mts +2 -1
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/FocusedScatterMark.d.mts +1 -1
- package/ScatterChart/FocusedScatterMark.d.ts +1 -1
- package/ScatterChart/HighlightedScatterMark.d.mts +1 -1
- package/ScatterChart/HighlightedScatterMark.d.ts +1 -1
- package/ScatterChart/Scatter.d.mts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/ScatterMarker.d.mts +1 -1
- package/ScatterChart/ScatterMarker.d.ts +1 -1
- package/ScatterChart/ScatterPlot.d.mts +1 -1
- package/ScatterChart/ScatterPlot.d.ts +1 -1
- package/ScatterChart/async/ScatterAsync.d.mts +2 -1
- package/ScatterChart/async/ScatterAsync.d.ts +2 -1
- package/ScatterChart/async/ScatterAsyncBatch.d.mts +1 -1
- package/ScatterChart/async/ScatterAsyncBatch.d.ts +1 -1
- package/ScatterChart/seriesConfig/index.js +2 -2
- package/ScatterChart/seriesConfig/index.mjs +2 -2
- package/ScatterChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/ScatterChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/ScatterChart/seriesConfig/tooltipPosition.js +13 -13
- package/ScatterChart/seriesConfig/tooltipPosition.mjs +12 -12
- package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
- package/context/ChartsSlotsContext.d.mts +1 -1
- package/context/ChartsSlotsContext.d.ts +1 -1
- package/hooks/index.d.mts +2 -1
- package/hooks/index.d.ts +2 -1
- package/hooks/index.js +10 -2
- package/hooks/index.mjs +2 -1
- package/hooks/usePolarGeometry.d.mts +51 -0
- package/hooks/usePolarGeometry.d.ts +51 -0
- package/hooks/usePolarGeometry.js +47 -0
- package/hooks/usePolarGeometry.mjs +41 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/animation/animation.d.mts +1 -1
- package/internals/animation/animation.d.ts +1 -1
- package/internals/commonNextFocusItem.d.mts +15 -5
- package/internals/commonNextFocusItem.d.ts +15 -5
- package/internals/commonNextFocusItem.js +6 -0
- package/internals/commonNextFocusItem.mjs +7 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +2 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.mts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.mts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.mts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.mts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +2 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +5 -1
- package/internals/createCommonKeyboardFocusHandler.d.ts +5 -1
- package/internals/createGetBarDimensions.d.mts +14 -1
- package/internals/createGetBarDimensions.d.ts +14 -1
- package/internals/createGetBarDimensions.js +45 -0
- package/internals/createGetBarDimensions.mjs +45 -0
- package/internals/geometry.js +1 -1
- package/internals/geometry.mjs +1 -1
- package/internals/getGroupingConfig.d.mts +6 -0
- package/internals/getGroupingConfig.d.ts +6 -0
- package/internals/getGroupingConfig.js +20 -0
- package/internals/getGroupingConfig.mjs +12 -0
- package/internals/index.d.mts +1 -2
- package/internals/index.d.ts +1 -2
- package/internals/index.js +12 -8
- package/internals/index.mjs +1 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +13 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +13 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.mts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.ts +18 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +2 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +2 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +12 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.mts +26 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.ts +26 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +89 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +81 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.mts +93 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.ts +93 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +3 -8
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +3 -8
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -57
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +2 -57
- package/internals/shallowEqual.d.mts +1 -1
- package/internals/shallowEqual.d.ts +1 -1
- package/internals/shallowEqual.js +1 -1
- package/internals/shallowEqual.mjs +1 -1
- package/models/seriesType/config.d.mts +6 -2
- package/models/seriesType/config.d.ts +6 -2
- package/package.json +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +0 -34
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +0 -34
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +0 -49
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +0 -49
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +0 -124
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +0 -117
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +0 -64
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +0 -64
- /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.js → tooltipItemPositionSelector.types.js} +0 -0
- /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.mjs → tooltipItemPositionSelector.types.mjs} +0 -0
- /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.js → useChartCartesianAxis/sampling.types.js} +0 -0
- /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.mjs → useChartCartesianAxis/sampling.types.mjs} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadarGridProps } from "./RadarGrid.types.js";
|
|
2
|
-
declare function RadarGrid(props: RadarGridProps):
|
|
3
|
+
declare function RadarGrid(props: RadarGridProps): React.JSX.Element | null;
|
|
3
4
|
declare namespace RadarGrid {
|
|
4
5
|
var propTypes: any;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadarGridRenderProps } from "./RadarGrid.types.mjs";
|
|
2
3
|
/**
|
|
3
4
|
* @ignore - internal component.
|
|
4
5
|
*/
|
|
5
|
-
export declare function SharpRadarGrid(props: RadarGridRenderProps):
|
|
6
|
+
export declare function SharpRadarGrid(props: RadarGridRenderProps): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadarGridRenderProps } from "./RadarGrid.types.js";
|
|
2
3
|
/**
|
|
3
4
|
* @ignore - internal component.
|
|
4
5
|
*/
|
|
5
|
-
export declare function SharpRadarGrid(props: RadarGridRenderProps):
|
|
6
|
+
export declare function SharpRadarGrid(props: RadarGridRenderProps): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadarGridStripeRenderProps } from "./RadarGrid.types.mjs";
|
|
2
3
|
/**
|
|
3
4
|
* @ignore - internal component.
|
|
4
5
|
*/
|
|
5
|
-
export declare function SharpRadarStripes(props: RadarGridStripeRenderProps):
|
|
6
|
+
export declare function SharpRadarStripes(props: RadarGridStripeRenderProps): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadarGridStripeRenderProps } from "./RadarGrid.types.js";
|
|
2
3
|
/**
|
|
3
4
|
* @ignore - internal component.
|
|
4
5
|
*/
|
|
5
|
-
export declare function SharpRadarStripes(props: RadarGridStripeRenderProps):
|
|
6
|
+
export declare function SharpRadarStripes(props: RadarGridStripeRenderProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadarSeriesAreaProps } from "./RadarSeriesPlot.types.mjs";
|
|
2
3
|
import type { RadarClasses } from "../radarClasses.mjs";
|
|
3
4
|
import type { SeriesId, HighlightItemIdentifierWithType } from "../../models/seriesType/index.mjs";
|
|
@@ -24,7 +25,7 @@ export declare function getPathProps(params: GetPathPropsParams): {
|
|
|
24
25
|
'data-highlighted': true | undefined;
|
|
25
26
|
'data-faded': true | undefined;
|
|
26
27
|
};
|
|
27
|
-
declare function RadarSeriesArea(props: RadarSeriesAreaProps):
|
|
28
|
+
declare function RadarSeriesArea(props: RadarSeriesAreaProps): React.JSX.Element;
|
|
28
29
|
declare namespace RadarSeriesArea {
|
|
29
30
|
var propTypes: any;
|
|
30
31
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadarSeriesAreaProps } from "./RadarSeriesPlot.types.js";
|
|
2
3
|
import type { RadarClasses } from "../radarClasses.js";
|
|
3
4
|
import type { SeriesId, HighlightItemIdentifierWithType } from "../../models/seriesType/index.js";
|
|
@@ -24,7 +25,7 @@ export declare function getPathProps(params: GetPathPropsParams): {
|
|
|
24
25
|
'data-highlighted': true | undefined;
|
|
25
26
|
'data-faded': true | undefined;
|
|
26
27
|
};
|
|
27
|
-
declare function RadarSeriesArea(props: RadarSeriesAreaProps):
|
|
28
|
+
declare function RadarSeriesArea(props: RadarSeriesAreaProps): React.JSX.Element;
|
|
28
29
|
declare namespace RadarSeriesArea {
|
|
29
30
|
var propTypes: any;
|
|
30
31
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadarSeriesMarksProps } from "./RadarSeriesPlot.types.mjs";
|
|
2
3
|
import type { RadarClasses } from "../radarClasses.mjs";
|
|
3
4
|
import type { SeriesId } from "../../models/seriesType/common.mjs";
|
|
@@ -25,7 +26,7 @@ export declare function getCircleProps(params: GetCirclePropsParams): {
|
|
|
25
26
|
'data-highlighted': true | undefined;
|
|
26
27
|
'data-faded': true | undefined;
|
|
27
28
|
};
|
|
28
|
-
declare function RadarSeriesMarks(props: RadarSeriesMarksProps):
|
|
29
|
+
declare function RadarSeriesMarks(props: RadarSeriesMarksProps): React.JSX.Element;
|
|
29
30
|
declare namespace RadarSeriesMarks {
|
|
30
31
|
var propTypes: any;
|
|
31
32
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { RadarSeriesMarksProps } from "./RadarSeriesPlot.types.js";
|
|
2
3
|
import type { RadarClasses } from "../radarClasses.js";
|
|
3
4
|
import type { SeriesId } from "../../models/seriesType/common.js";
|
|
@@ -25,7 +26,7 @@ export declare function getCircleProps(params: GetCirclePropsParams): {
|
|
|
25
26
|
'data-highlighted': true | undefined;
|
|
26
27
|
'data-faded': true | undefined;
|
|
27
28
|
};
|
|
28
|
-
declare function RadarSeriesMarks(props: RadarSeriesMarksProps):
|
|
29
|
+
declare function RadarSeriesMarks(props: RadarSeriesMarksProps): React.JSX.Element;
|
|
29
30
|
declare namespace RadarSeriesMarks {
|
|
30
31
|
var propTypes: any;
|
|
31
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RadarSeriesPlotProps } from "./RadarSeriesPlot.types.mjs";
|
|
2
|
-
declare function RadarSeriesPlot(props: RadarSeriesPlotProps): import("react
|
|
2
|
+
declare function RadarSeriesPlot(props: RadarSeriesPlotProps): import("react").JSX.Element;
|
|
3
3
|
declare namespace RadarSeriesPlot {
|
|
4
4
|
var propTypes: any;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RadarSeriesPlotProps } from "./RadarSeriesPlot.types.js";
|
|
2
|
-
declare function RadarSeriesPlot(props: RadarSeriesPlotProps): import("react
|
|
2
|
+
declare function RadarSeriesPlot(props: RadarSeriesPlotProps): import("react").JSX.Element;
|
|
3
3
|
declare namespace RadarSeriesPlot {
|
|
4
4
|
var propTypes: any;
|
|
5
5
|
}
|
|
@@ -12,7 +12,7 @@ var _extremums = require("./extremums");
|
|
|
12
12
|
var _legend = _interopRequireDefault(require("./legend"));
|
|
13
13
|
var _tooltip = _interopRequireWildcard(require("./tooltip"));
|
|
14
14
|
var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
|
|
15
|
-
var _tooltipPosition =
|
|
15
|
+
var _tooltipPosition = require("./tooltipPosition");
|
|
16
16
|
var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
|
|
17
17
|
var _identifierSerializer = require("../../internals/identifierSerializer");
|
|
18
18
|
var _identifierCleaner = require("../../internals/identifierCleaner");
|
|
@@ -23,7 +23,7 @@ const radarSeriesConfig = exports.radarSeriesConfig = {
|
|
|
23
23
|
seriesProcessor: _seriesProcessor.default,
|
|
24
24
|
legendGetter: _legend.default,
|
|
25
25
|
tooltipGetter: _tooltip.default,
|
|
26
|
-
|
|
26
|
+
selectorTooltipItemPosition: _tooltipPosition.selectorTooltipItemPosition,
|
|
27
27
|
axisTooltipGetter: _tooltip.axisTooltipGetter,
|
|
28
28
|
getSeriesWithDefaultValues: _getSeriesWithDefaultValues.default,
|
|
29
29
|
radiusExtremumGetter: _extremums.radiusExtremumGetter,
|
|
@@ -4,7 +4,7 @@ import { radiusExtremumGetter, rotationExtremumGetter } from "./extremums.mjs";
|
|
|
4
4
|
import legendGetter from "./legend.mjs";
|
|
5
5
|
import tooltipGetter, { axisTooltipGetter } from "./tooltip.mjs";
|
|
6
6
|
import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.mjs";
|
|
7
|
-
import
|
|
7
|
+
import { selectorTooltipItemPosition } from "./tooltipPosition.mjs";
|
|
8
8
|
import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
|
|
9
9
|
import { identifierSerializerSeriesIdDataIndex } from "../../internals/identifierSerializer.mjs";
|
|
10
10
|
import { identifierCleanerSeriesIdDataIndex } from "../../internals/identifierCleaner.mjs";
|
|
@@ -15,7 +15,7 @@ export const radarSeriesConfig = {
|
|
|
15
15
|
seriesProcessor,
|
|
16
16
|
legendGetter,
|
|
17
17
|
tooltipGetter,
|
|
18
|
-
|
|
18
|
+
selectorTooltipItemPosition,
|
|
19
19
|
axisTooltipGetter,
|
|
20
20
|
getSeriesWithDefaultValues,
|
|
21
21
|
radiusExtremumGetter,
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
export default tooltipItemPositionGetter;
|
|
1
|
+
import type { TooltipItemPositionSelector } from "../../internals/plugins/corePlugins/useChartSeriesConfig/index.mjs";
|
|
2
|
+
export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'radar'>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
export default tooltipItemPositionGetter;
|
|
1
|
+
import type { TooltipItemPositionSelector } from "../../internals/plugins/corePlugins/useChartSeriesConfig/index.js";
|
|
2
|
+
export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'radar'>;
|
|
@@ -3,28 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.selectorTooltipItemPosition = void 0;
|
|
7
|
+
var _store = require("@mui/x-internals/store");
|
|
7
8
|
var _coordinateTransformation = require("../../internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation");
|
|
8
9
|
var _useChartPolarAxis = require("../../internals/plugins/featurePlugins/useChartPolarAxis");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
placement
|
|
16
|
-
} = params;
|
|
17
|
-
if (!identifier) {
|
|
10
|
+
var _useChartPolarAxis2 = require("../../internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors");
|
|
11
|
+
var _useChartTooltip = require("../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors");
|
|
12
|
+
var _useChartSeries = require("../../internals/plugins/corePlugins/useChartSeries");
|
|
13
|
+
var _useChartDimensions = require("../../internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors");
|
|
14
|
+
const selectorTooltipItemPosition = exports.selectorTooltipItemPosition = (0, _store.createSelectorMemoized)(_useChartTooltip.selectorChartsTooltipItem, _useChartSeries.selectorChartSeriesProcessed, _useChartPolarAxis2.selectorChartRotationAxis, _useChartPolarAxis2.selectorChartRadiusAxis, _useChartDimensions.selectorChartDrawingArea, function selectorTooltipItemPosition(identifier, series, rotationAxes, radiusAxes, drawingArea, placement) {
|
|
15
|
+
if (!identifier || identifier.type !== 'radar') {
|
|
18
16
|
return null;
|
|
19
17
|
}
|
|
20
18
|
const itemSeries = series.radar?.series[identifier.seriesId];
|
|
21
19
|
if (itemSeries == null) {
|
|
22
20
|
return null;
|
|
23
21
|
}
|
|
24
|
-
const {
|
|
25
|
-
radiusAxes,
|
|
26
|
-
rotationAxes
|
|
27
|
-
} = axesConfig;
|
|
28
22
|
if (radiusAxes === undefined || rotationAxes === undefined) {
|
|
29
23
|
return null;
|
|
30
24
|
}
|
|
@@ -102,5 +96,4 @@ const tooltipItemPositionGetter = params => {
|
|
|
102
96
|
y: top
|
|
103
97
|
};
|
|
104
98
|
}
|
|
105
|
-
};
|
|
106
|
-
var _default = exports.default = tooltipItemPositionGetter;
|
|
99
|
+
});
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
+
import { createSelectorMemoized } from '@mui/x-internals/store';
|
|
1
2
|
import { generatePolar2svg } from "../../internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.mjs";
|
|
2
3
|
import { getDrawingAreaCenter } from "../../internals/plugins/featurePlugins/useChartPolarAxis/index.mjs";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
placement
|
|
10
|
-
} = params;
|
|
11
|
-
if (!identifier) {
|
|
4
|
+
import { selectorChartRotationAxis, selectorChartRadiusAxis } from "../../internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.mjs";
|
|
5
|
+
import { selectorChartsTooltipItem } from "../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs";
|
|
6
|
+
import { selectorChartSeriesProcessed } from "../../internals/plugins/corePlugins/useChartSeries/index.mjs";
|
|
7
|
+
import { selectorChartDrawingArea } from "../../internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.mjs";
|
|
8
|
+
export const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartRotationAxis, selectorChartRadiusAxis, selectorChartDrawingArea, function selectorTooltipItemPosition(identifier, series, rotationAxes, radiusAxes, drawingArea, placement) {
|
|
9
|
+
if (!identifier || identifier.type !== 'radar') {
|
|
12
10
|
return null;
|
|
13
11
|
}
|
|
14
12
|
const itemSeries = series.radar?.series[identifier.seriesId];
|
|
15
13
|
if (itemSeries == null) {
|
|
16
14
|
return null;
|
|
17
15
|
}
|
|
18
|
-
const {
|
|
19
|
-
radiusAxes,
|
|
20
|
-
rotationAxes
|
|
21
|
-
} = axesConfig;
|
|
22
16
|
if (radiusAxes === undefined || rotationAxes === undefined) {
|
|
23
17
|
return null;
|
|
24
18
|
}
|
|
@@ -96,5 +90,4 @@ const tooltipItemPositionGetter = params => {
|
|
|
96
90
|
y: top
|
|
97
91
|
};
|
|
98
92
|
}
|
|
99
|
-
};
|
|
100
|
-
export default tooltipItemPositionGetter;
|
|
93
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { DefaultizedScatterSeriesType } from "../models/seriesType/scatter.mjs";
|
|
2
3
|
import type { D3Scale } from "../models/axis.mjs";
|
|
3
4
|
import type { ScatterClasses } from "./scatterClasses.mjs";
|
|
@@ -23,4 +24,4 @@ export interface BatchScatterProps {
|
|
|
23
24
|
*
|
|
24
25
|
* You can read about all the limitations [here](https://mui.com/x/react-charts/scatter/#performance).
|
|
25
26
|
*/
|
|
26
|
-
export declare function BatchScatter(props: BatchScatterProps):
|
|
27
|
+
export declare function BatchScatter(props: BatchScatterProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { DefaultizedScatterSeriesType } from "../models/seriesType/scatter.js";
|
|
2
3
|
import type { D3Scale } from "../models/axis.js";
|
|
3
4
|
import type { ScatterClasses } from "./scatterClasses.js";
|
|
@@ -23,4 +24,4 @@ export interface BatchScatterProps {
|
|
|
23
24
|
*
|
|
24
25
|
* You can read about all the limitations [here](https://mui.com/x/react-charts/scatter/#performance).
|
|
25
26
|
*/
|
|
26
|
-
export declare function BatchScatter(props: BatchScatterProps):
|
|
27
|
+
export declare function BatchScatter(props: BatchScatterProps): React.JSX.Element;
|
|
@@ -8,4 +8,4 @@ import * as React from 'react';
|
|
|
8
8
|
export declare function HighlightedScatterMark({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.SVGAttributes<SVGCircleElement>):
|
|
11
|
+
}: React.SVGAttributes<SVGCircleElement>): React.JSX.Element | null;
|
|
@@ -8,4 +8,4 @@ import * as React from 'react';
|
|
|
8
8
|
export declare function HighlightedScatterMark({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.SVGAttributes<SVGCircleElement>):
|
|
11
|
+
}: React.SVGAttributes<SVGCircleElement>): React.JSX.Element | null;
|
|
@@ -53,7 +53,7 @@ export interface ScatterSlotProps extends ScatterMarkerSlotProps {}
|
|
|
53
53
|
*
|
|
54
54
|
* - [Scatter API](https://mui.com/x/api/charts/scatter/)
|
|
55
55
|
*/
|
|
56
|
-
declare function Scatter(props: ScatterProps):
|
|
56
|
+
declare function Scatter(props: ScatterProps): React.JSX.Element;
|
|
57
57
|
declare namespace Scatter {
|
|
58
58
|
var propTypes: any;
|
|
59
59
|
}
|
|
@@ -53,7 +53,7 @@ export interface ScatterSlotProps extends ScatterMarkerSlotProps {}
|
|
|
53
53
|
*
|
|
54
54
|
* - [Scatter API](https://mui.com/x/api/charts/scatter/)
|
|
55
55
|
*/
|
|
56
|
-
declare function Scatter(props: ScatterProps):
|
|
56
|
+
declare function Scatter(props: ScatterProps): React.JSX.Element;
|
|
57
57
|
declare namespace Scatter {
|
|
58
58
|
var propTypes: any;
|
|
59
59
|
}
|
|
@@ -39,7 +39,7 @@ export interface ScatterMarkerProps {
|
|
|
39
39
|
*/
|
|
40
40
|
onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>) => void;
|
|
41
41
|
}
|
|
42
|
-
declare function ScatterMarker(props: ScatterMarkerProps):
|
|
42
|
+
declare function ScatterMarker(props: ScatterMarkerProps): React.JSX.Element;
|
|
43
43
|
declare namespace ScatterMarker {
|
|
44
44
|
var propTypes: any;
|
|
45
45
|
}
|
|
@@ -39,7 +39,7 @@ export interface ScatterMarkerProps {
|
|
|
39
39
|
*/
|
|
40
40
|
onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>) => void;
|
|
41
41
|
}
|
|
42
|
-
declare function ScatterMarker(props: ScatterMarkerProps):
|
|
42
|
+
declare function ScatterMarker(props: ScatterMarkerProps): React.JSX.Element;
|
|
43
43
|
declare namespace ScatterMarker {
|
|
44
44
|
var propTypes: any;
|
|
45
45
|
}
|
|
@@ -49,7 +49,7 @@ export interface ScatterPlotProps extends Pick<ScatterProps, 'classes'> {
|
|
|
49
49
|
*
|
|
50
50
|
* - [ScatterPlot API](https://mui.com/x/api/charts/scatter-plot/)
|
|
51
51
|
*/
|
|
52
|
-
declare function ScatterPlot(props: ScatterPlotProps):
|
|
52
|
+
declare function ScatterPlot(props: ScatterPlotProps): React.JSX.Element | null;
|
|
53
53
|
declare namespace ScatterPlot {
|
|
54
54
|
var propTypes: any;
|
|
55
55
|
}
|
|
@@ -49,7 +49,7 @@ export interface ScatterPlotProps extends Pick<ScatterProps, 'classes'> {
|
|
|
49
49
|
*
|
|
50
50
|
* - [ScatterPlot API](https://mui.com/x/api/charts/scatter-plot/)
|
|
51
51
|
*/
|
|
52
|
-
declare function ScatterPlot(props: ScatterPlotProps):
|
|
52
|
+
declare function ScatterPlot(props: ScatterPlotProps): React.JSX.Element | null;
|
|
53
53
|
declare namespace ScatterPlot {
|
|
54
54
|
var propTypes: any;
|
|
55
55
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ScatterProps } from "../Scatter.mjs";
|
|
2
3
|
/**
|
|
3
4
|
* Interacting sample stride. Multiple of `nBatches` (batch 0's stride) so the
|
|
@@ -8,7 +9,7 @@ export declare function getInteractionStep(count: number, nBatches: number, budg
|
|
|
8
9
|
/**
|
|
9
10
|
* @ignore - internal component.
|
|
10
11
|
*/
|
|
11
|
-
declare function ScatterAsync(props: ScatterProps):
|
|
12
|
+
declare function ScatterAsync(props: ScatterProps): React.JSX.Element;
|
|
12
13
|
declare namespace ScatterAsync {
|
|
13
14
|
var propTypes: any;
|
|
14
15
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ScatterProps } from "../Scatter.js";
|
|
2
3
|
/**
|
|
3
4
|
* Interacting sample stride. Multiple of `nBatches` (batch 0's stride) so the
|
|
@@ -8,7 +9,7 @@ export declare function getInteractionStep(count: number, nBatches: number, budg
|
|
|
8
9
|
/**
|
|
9
10
|
* @ignore - internal component.
|
|
10
11
|
*/
|
|
11
|
-
declare function ScatterAsync(props: ScatterProps):
|
|
12
|
+
declare function ScatterAsync(props: ScatterProps): React.JSX.Element;
|
|
12
13
|
declare namespace ScatterAsync {
|
|
13
14
|
var propTypes: any;
|
|
14
15
|
}
|
|
@@ -24,6 +24,6 @@ export interface ScatterAsyncBatchProps extends Pick<ScatterProps, 'series' | 'c
|
|
|
24
24
|
/**
|
|
25
25
|
* @ignore - internal component.
|
|
26
26
|
*/
|
|
27
|
-
declare function ScatterAsyncBatchComponent(props: ScatterAsyncBatchProps):
|
|
27
|
+
declare function ScatterAsyncBatchComponent(props: ScatterAsyncBatchProps): React.JSX.Element;
|
|
28
28
|
declare const ScatterAsyncBatch: React.MemoExoticComponent<typeof ScatterAsyncBatchComponent>;
|
|
29
29
|
export { ScatterAsyncBatch };
|
|
@@ -24,6 +24,6 @@ export interface ScatterAsyncBatchProps extends Pick<ScatterProps, 'series' | 'c
|
|
|
24
24
|
/**
|
|
25
25
|
* @ignore - internal component.
|
|
26
26
|
*/
|
|
27
|
-
declare function ScatterAsyncBatchComponent(props: ScatterAsyncBatchProps):
|
|
27
|
+
declare function ScatterAsyncBatchComponent(props: ScatterAsyncBatchProps): React.JSX.Element;
|
|
28
28
|
declare const ScatterAsyncBatch: React.MemoExoticComponent<typeof ScatterAsyncBatchComponent>;
|
|
29
29
|
export { ScatterAsyncBatch };
|
|
@@ -11,7 +11,7 @@ var _getColor = _interopRequireDefault(require("./getColor"));
|
|
|
11
11
|
var _legend = _interopRequireDefault(require("./legend"));
|
|
12
12
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
13
13
|
var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
|
|
14
|
-
var _tooltipPosition =
|
|
14
|
+
var _tooltipPosition = require("./tooltipPosition");
|
|
15
15
|
var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandler"));
|
|
16
16
|
var _identifierSerializer = require("../../internals/identifierSerializer");
|
|
17
17
|
var _identifierCleaner = require("../../internals/identifierCleaner");
|
|
@@ -22,7 +22,7 @@ const scatterSeriesConfig = exports.scatterSeriesConfig = {
|
|
|
22
22
|
colorProcessor: _getColor.default,
|
|
23
23
|
legendGetter: _legend.default,
|
|
24
24
|
tooltipGetter: _tooltip.default,
|
|
25
|
-
|
|
25
|
+
selectorTooltipItemPosition: _tooltipPosition.selectorTooltipItemPosition,
|
|
26
26
|
xExtremumGetter: _extremums.getExtremumX,
|
|
27
27
|
yExtremumGetter: _extremums.getExtremumY,
|
|
28
28
|
getSeriesWithDefaultValues: _getSeriesWithDefaultValues.default,
|
|
@@ -4,7 +4,7 @@ import getColor from "./getColor.mjs";
|
|
|
4
4
|
import legendGetter from "./legend.mjs";
|
|
5
5
|
import tooltipGetter from "./tooltip.mjs";
|
|
6
6
|
import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.mjs";
|
|
7
|
-
import
|
|
7
|
+
import { selectorTooltipItemPosition } from "./tooltipPosition.mjs";
|
|
8
8
|
import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
|
|
9
9
|
import { identifierSerializerSeriesIdDataIndex } from "../../internals/identifierSerializer.mjs";
|
|
10
10
|
import { identifierCleanerSeriesIdDataIndex } from "../../internals/identifierCleaner.mjs";
|
|
@@ -15,7 +15,7 @@ export const scatterSeriesConfig = {
|
|
|
15
15
|
colorProcessor: getColor,
|
|
16
16
|
legendGetter,
|
|
17
17
|
tooltipGetter,
|
|
18
|
-
|
|
18
|
+
selectorTooltipItemPosition,
|
|
19
19
|
xExtremumGetter: getExtremumX,
|
|
20
20
|
yExtremumGetter: getExtremumY,
|
|
21
21
|
getSeriesWithDefaultValues,
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
export default tooltipItemPositionGetter;
|
|
1
|
+
import type { TooltipItemPositionSelector } from "../../internals/plugins/corePlugins/useChartSeriesConfig/index.mjs";
|
|
2
|
+
export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'scatter'>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const
|
|
3
|
-
export default tooltipItemPositionGetter;
|
|
1
|
+
import type { TooltipItemPositionSelector } from "../../internals/plugins/corePlugins/useChartSeriesConfig/index.js";
|
|
2
|
+
export declare const selectorTooltipItemPosition: TooltipItemPositionSelector<'scatter'>;
|
|
@@ -3,21 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (!identifier || identifier.dataIndex === undefined) {
|
|
6
|
+
exports.selectorTooltipItemPosition = void 0;
|
|
7
|
+
var _store = require("@mui/x-internals/store");
|
|
8
|
+
var _useChartTooltip = require("../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors");
|
|
9
|
+
var _useChartSeries = require("../../internals/plugins/corePlugins/useChartSeries");
|
|
10
|
+
var _useChartCartesianAxisRendering = require("../../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors");
|
|
11
|
+
const selectorTooltipItemPosition = exports.selectorTooltipItemPosition = (0, _store.createSelectorMemoized)(_useChartTooltip.selectorChartsTooltipItem, _useChartSeries.selectorChartSeriesProcessed, _useChartCartesianAxisRendering.selectorChartXAxis, _useChartCartesianAxisRendering.selectorChartYAxis, function selectorTooltipItemPosition(identifier, series, xAxes, yAxes) {
|
|
12
|
+
if (!identifier || identifier.type !== 'scatter' || identifier.dataIndex === undefined) {
|
|
14
13
|
return null;
|
|
15
14
|
}
|
|
16
15
|
const itemSeries = series.scatter?.series[identifier.seriesId];
|
|
17
16
|
if (itemSeries == null) {
|
|
18
17
|
return null;
|
|
19
18
|
}
|
|
20
|
-
|
|
19
|
+
const xAxis = xAxes.axis[itemSeries.xAxisId ?? xAxes.axisIds[0]];
|
|
20
|
+
const yAxis = yAxes.axis[itemSeries.yAxisId ?? yAxes.axisIds[0]];
|
|
21
|
+
if (xAxis === undefined || yAxis === undefined) {
|
|
21
22
|
return null;
|
|
22
23
|
}
|
|
23
24
|
const xValue = itemSeries.data?.[identifier.dataIndex].x;
|
|
@@ -26,8 +27,7 @@ const tooltipItemPositionGetter = params => {
|
|
|
26
27
|
return null;
|
|
27
28
|
}
|
|
28
29
|
return {
|
|
29
|
-
x:
|
|
30
|
-
y:
|
|
30
|
+
x: xAxis.scale(xValue),
|
|
31
|
+
y: yAxis.scale(yValue)
|
|
31
32
|
};
|
|
32
|
-
};
|
|
33
|
-
var _default = exports.default = tooltipItemPositionGetter;
|
|
33
|
+
});
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (!identifier || identifier.dataIndex === undefined) {
|
|
1
|
+
import { createSelectorMemoized } from '@mui/x-internals/store';
|
|
2
|
+
import { selectorChartsTooltipItem } from "../../internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs";
|
|
3
|
+
import { selectorChartSeriesProcessed } from "../../internals/plugins/corePlugins/useChartSeries/index.mjs";
|
|
4
|
+
import { selectorChartXAxis, selectorChartYAxis } from "../../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";
|
|
5
|
+
export const selectorTooltipItemPosition = createSelectorMemoized(selectorChartsTooltipItem, selectorChartSeriesProcessed, selectorChartXAxis, selectorChartYAxis, function selectorTooltipItemPosition(identifier, series, xAxes, yAxes) {
|
|
6
|
+
if (!identifier || identifier.type !== 'scatter' || identifier.dataIndex === undefined) {
|
|
8
7
|
return null;
|
|
9
8
|
}
|
|
10
9
|
const itemSeries = series.scatter?.series[identifier.seriesId];
|
|
11
10
|
if (itemSeries == null) {
|
|
12
11
|
return null;
|
|
13
12
|
}
|
|
14
|
-
|
|
13
|
+
const xAxis = xAxes.axis[itemSeries.xAxisId ?? xAxes.axisIds[0]];
|
|
14
|
+
const yAxis = yAxes.axis[itemSeries.yAxisId ?? yAxes.axisIds[0]];
|
|
15
|
+
if (xAxis === undefined || yAxis === undefined) {
|
|
15
16
|
return null;
|
|
16
17
|
}
|
|
17
18
|
const xValue = itemSeries.data?.[identifier.dataIndex].x;
|
|
@@ -20,8 +21,7 @@ const tooltipItemPositionGetter = params => {
|
|
|
20
21
|
return null;
|
|
21
22
|
}
|
|
22
23
|
return {
|
|
23
|
-
x:
|
|
24
|
-
y:
|
|
24
|
+
x: xAxis.scale(xValue),
|
|
25
|
+
y: yAxis.scale(yValue)
|
|
25
26
|
};
|
|
26
|
-
};
|
|
27
|
-
export default tooltipItemPositionGetter;
|
|
27
|
+
});
|
|
@@ -3,5 +3,5 @@ import type { ChartsProviderProps } from "./ChartsProvider.types.mjs";
|
|
|
3
3
|
import type { ChartAnyPluginSignature } from "../../internals/plugins/models/index.mjs";
|
|
4
4
|
import type { ChartSeriesType } from "../../models/seriesType/config.mjs";
|
|
5
5
|
import type { ChartCorePluginSignatures } from "../../internals/plugins/corePlugins/index.mjs";
|
|
6
|
-
declare function ChartsProvider<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = ChartCorePluginSignatures<SeriesType>>(props: React.PropsWithChildren<ChartsProviderProps<SeriesType, TSignatures>>):
|
|
6
|
+
declare function ChartsProvider<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = ChartCorePluginSignatures<SeriesType>>(props: React.PropsWithChildren<ChartsProviderProps<SeriesType, TSignatures>>): React.JSX.Element;
|
|
7
7
|
export { ChartsProvider };
|
|
@@ -3,5 +3,5 @@ import type { ChartsProviderProps } from "./ChartsProvider.types.js";
|
|
|
3
3
|
import type { ChartAnyPluginSignature } from "../../internals/plugins/models/index.js";
|
|
4
4
|
import type { ChartSeriesType } from "../../models/seriesType/config.js";
|
|
5
5
|
import type { ChartCorePluginSignatures } from "../../internals/plugins/corePlugins/index.js";
|
|
6
|
-
declare function ChartsProvider<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = ChartCorePluginSignatures<SeriesType>>(props: React.PropsWithChildren<ChartsProviderProps<SeriesType, TSignatures>>):
|
|
6
|
+
declare function ChartsProvider<SeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = ChartCorePluginSignatures<SeriesType>>(props: React.PropsWithChildren<ChartsProviderProps<SeriesType, TSignatures>>): React.JSX.Element;
|
|
7
7
|
export { ChartsProvider };
|
|
@@ -16,5 +16,5 @@ interface ChartsSlotsProviderProps {
|
|
|
16
16
|
slotProps?: Partial<ChartsSlotProps>;
|
|
17
17
|
defaultSlots: ChartsSlots;
|
|
18
18
|
}
|
|
19
|
-
export declare function ChartsSlotsProvider(props: React.PropsWithChildren<ChartsSlotsProviderProps>):
|
|
19
|
+
export declare function ChartsSlotsProvider(props: React.PropsWithChildren<ChartsSlotsProviderProps>): React.JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -16,5 +16,5 @@ interface ChartsSlotsProviderProps {
|
|
|
16
16
|
slotProps?: Partial<ChartsSlotProps>;
|
|
17
17
|
defaultSlots: ChartsSlots;
|
|
18
18
|
}
|
|
19
|
-
export declare function ChartsSlotsProvider(props: React.PropsWithChildren<ChartsSlotsProviderProps>):
|
|
19
|
+
export declare function ChartsSlotsProvider(props: React.PropsWithChildren<ChartsSlotsProviderProps>): React.JSX.Element;
|
|
20
20
|
export {};
|
package/hooks/index.d.mts
CHANGED
|
@@ -24,4 +24,5 @@ export * from "./useFocusedItem.mjs";
|
|
|
24
24
|
export { useXAxisCoordinates, useYAxisCoordinates, type AxisCoordinates } from "./useAxisCoordinates.mjs";
|
|
25
25
|
export * from "./useAxisTicks.mjs";
|
|
26
26
|
export { type TickItem } from "./useTicks.mjs";
|
|
27
|
-
export * from "./getValueToPositionMapper.mjs";
|
|
27
|
+
export * from "./getValueToPositionMapper.mjs";
|
|
28
|
+
export { usePolarGeometry } from "./usePolarGeometry.mjs";
|