@mui/x-charts 9.8.0 → 9.10.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/barClasses.d.mts +1 -1
- package/BarChart/barClasses.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.mts +10 -10
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +10 -10
- 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 +230 -0
- 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/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.mts +1 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.ts +1 -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/ChartsDataProvider/useChartsDataProviderProps.d.mts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.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/ChartsLabel/labelGradientClasses.d.mts +1 -1
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.mts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/ChartsLegend/chartsLegend.types.d.mts +2 -1
- package/ChartsLegend/chartsLegend.types.d.ts +2 -1
- package/ChartsLegend/chartsLegendClasses.d.mts +1 -1
- package/ChartsLegend/chartsLegendClasses.d.ts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.mts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsLegend/piecewiseColorLegendClasses.d.mts +1 -1
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -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/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.mts +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.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/ChartsRadiusAxis/chartsRadiusAxisClasses.d.mts +1 -1
- package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.ts +1 -1
- package/ChartsRadiusAxis/createGetLabelTextAnchors.d.mts +6 -6
- package/ChartsRadiusAxis/createGetLabelTextAnchors.d.ts +6 -6
- package/ChartsReferenceLine/ChartsReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.mts +2 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +2 -2
- package/ChartsReferenceLine/ChartsYReferenceLine.d.mts +2 -2
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +2 -2
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.mts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.ts +1 -1
- package/ChartsText/ChartsText.d.mts +1 -1
- package/ChartsText/ChartsText.d.ts +1 -1
- package/ChartsTooltip/ChartTooltip.types.d.mts +2 -1
- package/ChartsTooltip/ChartTooltip.types.d.ts +2 -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 +5 -2
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +5 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +1 -5
- package/ChartsTooltip/ChartsTooltipContainer.mjs +2 -6
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/chartsTooltipClasses.d.mts +1 -1
- package/ChartsTooltip/chartsTooltipClasses.d.ts +1 -1
- package/ChartsTooltip/useItemTooltip.d.mts +1 -1
- package/ChartsTooltip/useItemTooltip.d.ts +1 -1
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.mts +2 -1
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +2 -1
- 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/ChartsXAxis/useAxisTicksProps.d.mts +2573 -2573
- package/ChartsXAxis/useAxisTicksProps.d.ts +2573 -2573
- package/ChartsXAxis/utilities.d.mts +1 -1
- package/ChartsXAxis/utilities.d.ts +1 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.mts +2 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +2 -1
- 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/ChartsYAxis/useAxisTicksProps.d.mts +2573 -2573
- package/ChartsYAxis/useAxisTicksProps.d.ts +2573 -2573
- package/ChartsYAxis/utilities.d.mts +1 -1
- package/ChartsYAxis/utilities.d.ts +1 -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 +4 -4
- package/LineChart/AreaPlot.d.ts +4 -4
- package/LineChart/AreaPlot.js +4 -5
- package/LineChart/AreaPlot.mjs +4 -5
- 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 +4 -4
- package/LineChart/LinePlot.d.ts +4 -4
- package/LineChart/LinePlot.js +7 -7
- package/LineChart/LinePlot.mjs +7 -7
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkPlot.d.mts +6 -5
- package/LineChart/MarkPlot.d.ts +6 -5
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/MarkPlot.mjs +1 -1
- package/LineChart/lineClasses.d.mts +1 -1
- package/LineChart/lineClasses.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/useLineItemClickHandler.d.mts +12 -0
- package/LineChart/useLineItemClickHandler.d.ts +12 -0
- package/LineChart/useLineItemClickHandler.js +54 -0
- package/LineChart/useLineItemClickHandler.mjs +48 -0
- 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 +3 -2
- package/PieChart/PieArcLabelPlot.d.ts +3 -2
- package/PieChart/PieArcPlot.d.mts +3 -2
- package/PieChart/PieArcPlot.d.ts +3 -2
- package/PieChart/PiePlot.d.mts +1 -1
- package/PieChart/PiePlot.d.ts +1 -1
- package/PieChart/pieClasses.d.mts +1 -1
- package/PieChart/pieClasses.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/RadarAxis/RadarAxis.utils.d.mts +5 -5
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +5 -5
- 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/RadarSeriesPlot/useInteractionAllItemProps.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +12 -12
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +12 -12
- package/RadarChart/radarClasses.d.mts +1 -1
- package/RadarChart/radarClasses.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/RadarChart/useRadarChartProps.d.mts +1 -1
- package/RadarChart/useRadarChartProps.d.ts +1 -1
- 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/ScatterChart.d.mts +2 -1
- package/ScatterChart/ScatterChart.d.ts +2 -1
- package/ScatterChart/ScatterMarker.d.mts +1 -1
- package/ScatterChart/ScatterMarker.d.ts +1 -1
- package/ScatterChart/ScatterMarker.types.d.mts +2 -1
- package/ScatterChart/ScatterMarker.types.d.ts +2 -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/scatterClasses.d.mts +1 -1
- package/ScatterChart/scatterClasses.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/ScatterChart/useScatterPlotData.d.mts +1 -1
- package/ScatterChart/useScatterPlotData.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.d.mts +1 -1
- package/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/Toolbar/Toolbar.types.d.mts +2 -1
- package/Toolbar/Toolbar.types.d.ts +2 -1
- 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/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/colorScale.d.mts +1 -1
- package/internals/colorScale.d.ts +1 -1
- 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/configInit.d.mts +1 -1
- package/internals/configInit.d.ts +1 -1
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/consumeThemeProps.d.mts +1 -1
- package/internals/consumeThemeProps.d.ts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.ts +1 -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/getGraphemeCount.d.mts +2 -2
- package/internals/getGraphemeCount.d.ts +2 -2
- package/internals/getGroupingConfig.d.mts +1 -1
- package/internals/getGroupingConfig.d.ts +1 -1
- package/internals/identifierCleaner.d.mts +1 -1
- package/internals/identifierCleaner.d.ts +1 -1
- 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/invertScale.d.mts +1 -1
- package/internals/invertScale.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +4 -4
- 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 +11 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +11 -6
- 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/useChartBrush/useChartBrush.selectors.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/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/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +70 -70
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +70 -70
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +78 -78
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +78 -78
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +7 -7
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +7 -7
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -53
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +2 -53
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +1 -1
- package/internals/seriesSelectorOfType.d.mts +6 -6
- package/internals/seriesSelectorOfType.d.ts +6 -6
- package/internals/sizeScale.d.mts +1 -1
- package/internals/sizeScale.d.ts +1 -1
- package/internals/sliceUntil.d.mts +2 -2
- package/internals/sliceUntil.d.ts +2 -2
- package/models/axis.d.mts +5 -4
- package/models/axis.d.ts +5 -4
- package/models/seriesType/config.d.mts +8 -4
- package/models/seriesType/config.d.ts +8 -4
- package/models/seriesType/index.d.mts +1 -1
- package/models/seriesType/index.d.ts +1 -1
- package/models/seriesType/line.d.mts +14 -1
- package/models/seriesType/line.d.ts +14 -1
- package/package.json +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +0 -45
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +0 -45
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +0 -48
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +0 -48
- 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 -73
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +0 -73
- /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,5 @@
|
|
|
1
1
|
import type { AxisConfig, ChartsYAxisProps } from "../models/axis.mjs";
|
|
2
|
-
export declare const useUtilityClasses: (ownerState: AxisConfig<any, any, ChartsYAxisProps>) => Record<"
|
|
2
|
+
export declare const useUtilityClasses: (ownerState: AxisConfig<any, any, ChartsYAxisProps>) => Record<"label" | "line" | "root" | "tick" | "tickContainer" | "tickLabel", string>;
|
|
3
3
|
export declare const TICK_LABEL_GAP = 2;
|
|
4
4
|
export declare const AXIS_LABEL_TICK_LABEL_GAP = 2;
|
|
5
5
|
export declare const defaultProps: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxisConfig, ChartsYAxisProps } from "../models/axis.js";
|
|
2
|
-
export declare const useUtilityClasses: (ownerState: AxisConfig<any, any, ChartsYAxisProps>) => Record<"
|
|
2
|
+
export declare const useUtilityClasses: (ownerState: AxisConfig<any, any, ChartsYAxisProps>) => Record<"label" | "line" | "root" | "tick" | "tickContainer" | "tickLabel", string>;
|
|
3
3
|
export declare const TICK_LABEL_GAP = 2;
|
|
4
4
|
export declare const AXIS_LABEL_TICK_LABEL_GAP = 2;
|
|
5
5
|
export declare const defaultProps: {
|
|
@@ -103,7 +103,7 @@ export declare const GaugeContext: React.Context<Required<GaugeConfig> & Process
|
|
|
103
103
|
export interface GaugeProviderProps extends GaugeConfig, CircularConfig {
|
|
104
104
|
children: React.ReactNode;
|
|
105
105
|
}
|
|
106
|
-
export declare function GaugeProvider(props: GaugeProviderProps):
|
|
106
|
+
export declare function GaugeProvider(props: GaugeProviderProps): React.JSX.Element;
|
|
107
107
|
export declare function useGaugeState(): Required<GaugeConfig> & ProcessedCircularConfig & {
|
|
108
108
|
/**
|
|
109
109
|
* The maximal radius from (cx, cy) that fits the arc in the drawing area.
|
package/Gauge/GaugeProvider.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export declare const GaugeContext: React.Context<Required<GaugeConfig> & Process
|
|
|
103
103
|
export interface GaugeProviderProps extends GaugeConfig, CircularConfig {
|
|
104
104
|
children: React.ReactNode;
|
|
105
105
|
}
|
|
106
|
-
export declare function GaugeProvider(props: GaugeProviderProps):
|
|
106
|
+
export declare function GaugeProvider(props: GaugeProviderProps): React.JSX.Element;
|
|
107
107
|
export declare function useGaugeState(): Required<GaugeConfig> & ProcessedCircularConfig & {
|
|
108
108
|
/**
|
|
109
109
|
* The maximal radius from (cx, cy) that fits the arc in the drawing area.
|
package/Gauge/GaugeValueArc.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface GaugeFormatterParams {
|
|
|
7
7
|
export interface GaugeValueTextProps extends Omit<ChartsTextProps, 'text'> {
|
|
8
8
|
text?: string | ((params: GaugeFormatterParams) => string | null);
|
|
9
9
|
}
|
|
10
|
-
declare function GaugeValueText(props: GaugeValueTextProps): import("react
|
|
10
|
+
declare function GaugeValueText(props: GaugeValueTextProps): import("react").JSX.Element | null;
|
|
11
11
|
declare namespace GaugeValueText {
|
|
12
12
|
var propTypes: any;
|
|
13
13
|
}
|
|
@@ -7,7 +7,7 @@ export interface GaugeFormatterParams {
|
|
|
7
7
|
export interface GaugeValueTextProps extends Omit<ChartsTextProps, 'text'> {
|
|
8
8
|
text?: string | ((params: GaugeFormatterParams) => string | null);
|
|
9
9
|
}
|
|
10
|
-
declare function GaugeValueText(props: GaugeValueTextProps): import("react
|
|
10
|
+
declare function GaugeValueText(props: GaugeValueTextProps): import("react").JSX.Element | null;
|
|
11
11
|
declare namespace GaugeValueText {
|
|
12
12
|
var propTypes: any;
|
|
13
13
|
}
|
|
@@ -19,7 +19,7 @@ export interface AnimatedAreaProps extends React.ComponentPropsWithoutRef<'path'
|
|
|
19
19
|
*
|
|
20
20
|
* - [AreaElement API](https://mui.com/x/api/charts/animated-area/)
|
|
21
21
|
*/
|
|
22
|
-
declare function AnimatedArea(props: AnimatedAreaProps):
|
|
22
|
+
declare function AnimatedArea(props: AnimatedAreaProps): React.JSX.Element;
|
|
23
23
|
declare namespace AnimatedArea {
|
|
24
24
|
var propTypes: any;
|
|
25
25
|
}
|
|
@@ -19,7 +19,7 @@ export interface AnimatedAreaProps extends React.ComponentPropsWithoutRef<'path'
|
|
|
19
19
|
*
|
|
20
20
|
* - [AreaElement API](https://mui.com/x/api/charts/animated-area/)
|
|
21
21
|
*/
|
|
22
|
-
declare function AnimatedArea(props: AnimatedAreaProps):
|
|
22
|
+
declare function AnimatedArea(props: AnimatedAreaProps): React.JSX.Element;
|
|
23
23
|
declare namespace AnimatedArea {
|
|
24
24
|
var propTypes: any;
|
|
25
25
|
}
|
|
@@ -13,5 +13,5 @@ export declare const appearingMaskClasses: AppearingMaskClasses;
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
export declare function AppearingMask(props: AppearingMaskProps):
|
|
16
|
+
export declare function AppearingMask(props: AppearingMaskProps): React.JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -13,5 +13,5 @@ export declare const appearingMaskClasses: AppearingMaskClasses;
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
export declare function AppearingMask(props: AppearingMaskProps):
|
|
16
|
+
export declare function AppearingMask(props: AppearingMaskProps): React.JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -45,7 +45,7 @@ export interface AreaElementProps extends Omit<AreaElementOwnerState, 'isFaded'
|
|
|
45
45
|
*
|
|
46
46
|
* - [AreaElement API](https://mui.com/x/api/charts/area-element/)
|
|
47
47
|
*/
|
|
48
|
-
declare function AreaElement(props: AreaElementProps):
|
|
48
|
+
declare function AreaElement(props: AreaElementProps): React.JSX.Element;
|
|
49
49
|
declare namespace AreaElement {
|
|
50
50
|
var propTypes: any;
|
|
51
51
|
}
|
|
@@ -45,7 +45,7 @@ export interface AreaElementProps extends Omit<AreaElementOwnerState, 'isFaded'
|
|
|
45
45
|
*
|
|
46
46
|
* - [AreaElement API](https://mui.com/x/api/charts/area-element/)
|
|
47
47
|
*/
|
|
48
|
-
declare function AreaElement(props: AreaElementProps):
|
|
48
|
+
declare function AreaElement(props: AreaElementProps): React.JSX.Element;
|
|
49
49
|
declare namespace AreaElement {
|
|
50
50
|
var propTypes: any;
|
|
51
51
|
}
|
package/LineChart/AreaPlot.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { AreaElementProps, AreaElementSlotProps, AreaElementSlots } from "./AreaElement.mjs";
|
|
3
|
-
import type {
|
|
3
|
+
import type { LineItemClickIdentifier } from "../models/seriesType/line.mjs";
|
|
4
4
|
export interface AreaPlotSlots extends AreaElementSlots {}
|
|
5
5
|
export interface AreaPlotSlotProps extends AreaElementSlotProps {}
|
|
6
6
|
export interface AreaPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<AreaElementProps, 'slots' | 'slotProps' | 'skipAnimation'> {
|
|
7
7
|
/**
|
|
8
8
|
* Callback fired when a line area item is clicked.
|
|
9
9
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
10
|
-
* @param {
|
|
10
|
+
* @param {LineItemClickIdentifier} lineItemIdentifier The line item identifier.
|
|
11
11
|
*/
|
|
12
|
-
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier:
|
|
12
|
+
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier: LineItemClickIdentifier) => void;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Demos:
|
|
@@ -22,7 +22,7 @@ export interface AreaPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
22
22
|
*
|
|
23
23
|
* - [AreaPlot API](https://mui.com/x/api/charts/area-plot/)
|
|
24
24
|
*/
|
|
25
|
-
declare function AreaPlot(props: AreaPlotProps):
|
|
25
|
+
declare function AreaPlot(props: AreaPlotProps): React.JSX.Element;
|
|
26
26
|
declare namespace AreaPlot {
|
|
27
27
|
var propTypes: any;
|
|
28
28
|
}
|
package/LineChart/AreaPlot.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { AreaElementProps, AreaElementSlotProps, AreaElementSlots } from "./AreaElement.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { LineItemClickIdentifier } from "../models/seriesType/line.js";
|
|
4
4
|
export interface AreaPlotSlots extends AreaElementSlots {}
|
|
5
5
|
export interface AreaPlotSlotProps extends AreaElementSlotProps {}
|
|
6
6
|
export interface AreaPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<AreaElementProps, 'slots' | 'slotProps' | 'skipAnimation'> {
|
|
7
7
|
/**
|
|
8
8
|
* Callback fired when a line area item is clicked.
|
|
9
9
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
10
|
-
* @param {
|
|
10
|
+
* @param {LineItemClickIdentifier} lineItemIdentifier The line item identifier.
|
|
11
11
|
*/
|
|
12
|
-
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier:
|
|
12
|
+
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier: LineItemClickIdentifier) => void;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Demos:
|
|
@@ -22,7 +22,7 @@ export interface AreaPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
22
22
|
*
|
|
23
23
|
* - [AreaPlot API](https://mui.com/x/api/charts/area-plot/)
|
|
24
24
|
*/
|
|
25
|
-
declare function AreaPlot(props: AreaPlotProps):
|
|
25
|
+
declare function AreaPlot(props: AreaPlotProps): React.JSX.Element;
|
|
26
26
|
declare namespace AreaPlot {
|
|
27
27
|
var propTypes: any;
|
|
28
28
|
}
|
package/LineChart/AreaPlot.js
CHANGED
|
@@ -18,6 +18,7 @@ var _useSkipAnimation = require("../hooks/useSkipAnimation");
|
|
|
18
18
|
var _useAxis = require("../hooks/useAxis");
|
|
19
19
|
var _useInternalIsZoomInteracting = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting");
|
|
20
20
|
var _useAreaPlotData = require("./useAreaPlotData");
|
|
21
|
+
var _useLineItemClickHandler = require("./useLineItemClickHandler");
|
|
21
22
|
var _animation = require("../internals/animation/animation");
|
|
22
23
|
var _lineClasses = require("./lineClasses");
|
|
23
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -66,6 +67,7 @@ function AreaPlot(props) {
|
|
|
66
67
|
const skipAnimation = (0, _useSkipAnimation.useSkipAnimation)(isZoomInteracting || inSkipAnimation);
|
|
67
68
|
const completedData = useAggregatedData();
|
|
68
69
|
const classes = (0, _lineClasses.useUtilityClasses)();
|
|
70
|
+
const onAreaItemClick = (0, _useLineItemClickHandler.useLineItemClickHandler)(onItemClick);
|
|
69
71
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(AreaPlotRoot, (0, _extends2.default)({
|
|
70
72
|
className: (0, _clsx.default)(classes.areaPlot, className)
|
|
71
73
|
}, other, {
|
|
@@ -82,10 +84,7 @@ function AreaPlot(props) {
|
|
|
82
84
|
gradientId: gradientId,
|
|
83
85
|
slots: slots,
|
|
84
86
|
slotProps: slotProps,
|
|
85
|
-
onClick:
|
|
86
|
-
type: 'line',
|
|
87
|
-
seriesId
|
|
88
|
-
})),
|
|
87
|
+
onClick: onAreaItemClick && (event => onAreaItemClick(event, seriesId)),
|
|
89
88
|
skipAnimation: skipAnimation
|
|
90
89
|
}, seriesId))
|
|
91
90
|
}));
|
|
@@ -98,7 +97,7 @@ process.env.NODE_ENV !== "production" ? AreaPlot.propTypes /* remove-proptypes *
|
|
|
98
97
|
/**
|
|
99
98
|
* Callback fired when a line area item is clicked.
|
|
100
99
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
101
|
-
* @param {
|
|
100
|
+
* @param {LineItemClickIdentifier} lineItemIdentifier The line item identifier.
|
|
102
101
|
*/
|
|
103
102
|
onItemClick: _propTypes.default.func,
|
|
104
103
|
/**
|
package/LineChart/AreaPlot.mjs
CHANGED
|
@@ -12,6 +12,7 @@ import { useSkipAnimation } from "../hooks/useSkipAnimation.mjs";
|
|
|
12
12
|
import { useXAxes, useYAxes } from "../hooks/useAxis.mjs";
|
|
13
13
|
import { useInternalIsZoomInteracting } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting.mjs";
|
|
14
14
|
import { useAreaPlotData } from "./useAreaPlotData.mjs";
|
|
15
|
+
import { useLineItemClickHandler } from "./useLineItemClickHandler.mjs";
|
|
15
16
|
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.mjs";
|
|
16
17
|
import { lineClasses, useUtilityClasses } from "./lineClasses.mjs";
|
|
17
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -59,6 +60,7 @@ function AreaPlot(props) {
|
|
|
59
60
|
const skipAnimation = useSkipAnimation(isZoomInteracting || inSkipAnimation);
|
|
60
61
|
const completedData = useAggregatedData();
|
|
61
62
|
const classes = useUtilityClasses();
|
|
63
|
+
const onAreaItemClick = useLineItemClickHandler(onItemClick);
|
|
62
64
|
return /*#__PURE__*/_jsx(AreaPlotRoot, _extends({
|
|
63
65
|
className: clsx(classes.areaPlot, className)
|
|
64
66
|
}, other, {
|
|
@@ -75,10 +77,7 @@ function AreaPlot(props) {
|
|
|
75
77
|
gradientId: gradientId,
|
|
76
78
|
slots: slots,
|
|
77
79
|
slotProps: slotProps,
|
|
78
|
-
onClick:
|
|
79
|
-
type: 'line',
|
|
80
|
-
seriesId
|
|
81
|
-
})),
|
|
80
|
+
onClick: onAreaItemClick && (event => onAreaItemClick(event, seriesId)),
|
|
82
81
|
skipAnimation: skipAnimation
|
|
83
82
|
}, seriesId))
|
|
84
83
|
}));
|
|
@@ -91,7 +90,7 @@ process.env.NODE_ENV !== "production" ? AreaPlot.propTypes /* remove-proptypes *
|
|
|
91
90
|
/**
|
|
92
91
|
* Callback fired when a line area item is clicked.
|
|
93
92
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
94
|
-
* @param {
|
|
93
|
+
* @param {LineItemClickIdentifier} lineItemIdentifier The line item identifier.
|
|
95
94
|
*/
|
|
96
95
|
onItemClick: PropTypes.func,
|
|
97
96
|
/**
|
|
@@ -38,7 +38,7 @@ type CircleMarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighlig
|
|
|
38
38
|
*
|
|
39
39
|
* - [CircleMarkElement API](https://mui.com/x/api/charts/circle-mark-element/)
|
|
40
40
|
*/
|
|
41
|
-
declare function CircleMarkElement(props: CircleMarkElementProps):
|
|
41
|
+
declare function CircleMarkElement(props: CircleMarkElementProps): React.JSX.Element;
|
|
42
42
|
declare namespace CircleMarkElement {
|
|
43
43
|
var propTypes: any;
|
|
44
44
|
}
|
|
@@ -38,7 +38,7 @@ type CircleMarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighlig
|
|
|
38
38
|
*
|
|
39
39
|
* - [CircleMarkElement API](https://mui.com/x/api/charts/circle-mark-element/)
|
|
40
40
|
*/
|
|
41
|
-
declare function CircleMarkElement(props: CircleMarkElementProps):
|
|
41
|
+
declare function CircleMarkElement(props: CircleMarkElementProps): React.JSX.Element;
|
|
42
42
|
declare namespace CircleMarkElement {
|
|
43
43
|
var propTypes: any;
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function FocusedLineMark(): import("react
|
|
1
|
+
export declare function FocusedLineMark(): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function FocusedLineMark(): import("react
|
|
1
|
+
export declare function FocusedLineMark(): import("react").JSX.Element | null;
|
|
@@ -49,7 +49,7 @@ export interface LineElementProps extends Omit<LineElementOwnerState, 'isFaded'
|
|
|
49
49
|
*
|
|
50
50
|
* - [LineElement API](https://mui.com/x/api/charts/line-element/)
|
|
51
51
|
*/
|
|
52
|
-
declare function LineElement(props: LineElementProps):
|
|
52
|
+
declare function LineElement(props: LineElementProps): React.JSX.Element;
|
|
53
53
|
declare namespace LineElement {
|
|
54
54
|
var propTypes: any;
|
|
55
55
|
}
|
|
@@ -49,7 +49,7 @@ export interface LineElementProps extends Omit<LineElementOwnerState, 'isFaded'
|
|
|
49
49
|
*
|
|
50
50
|
* - [LineElement API](https://mui.com/x/api/charts/line-element/)
|
|
51
51
|
*/
|
|
52
|
-
declare function LineElement(props: LineElementProps):
|
|
52
|
+
declare function LineElement(props: LineElementProps): React.JSX.Element;
|
|
53
53
|
declare namespace LineElement {
|
|
54
54
|
var propTypes: any;
|
|
55
55
|
}
|
|
@@ -21,7 +21,7 @@ export type LineHighlightElementProps = (LineHighlightElementCommonProps & {
|
|
|
21
21
|
*
|
|
22
22
|
* - [LineHighlightElement API](https://mui.com/x/api/charts/line-highlight-element/)
|
|
23
23
|
*/
|
|
24
|
-
declare function LineHighlightElement(props: LineHighlightElementProps):
|
|
24
|
+
declare function LineHighlightElement(props: LineHighlightElementProps): React.JSX.Element;
|
|
25
25
|
declare namespace LineHighlightElement {
|
|
26
26
|
var propTypes: any;
|
|
27
27
|
}
|
|
@@ -21,7 +21,7 @@ export type LineHighlightElementProps = (LineHighlightElementCommonProps & {
|
|
|
21
21
|
*
|
|
22
22
|
* - [LineHighlightElement API](https://mui.com/x/api/charts/line-highlight-element/)
|
|
23
23
|
*/
|
|
24
|
-
declare function LineHighlightElement(props: LineHighlightElementProps):
|
|
24
|
+
declare function LineHighlightElement(props: LineHighlightElementProps): React.JSX.Element;
|
|
25
25
|
declare namespace LineHighlightElement {
|
|
26
26
|
var propTypes: any;
|
|
27
27
|
}
|
|
@@ -30,7 +30,7 @@ export interface LineHighlightPlotProps extends React.SVGAttributes<SVGSVGElemen
|
|
|
30
30
|
*
|
|
31
31
|
* - [LineHighlightPlot API](https://mui.com/x/api/charts/line-highlight-plot/)
|
|
32
32
|
*/
|
|
33
|
-
declare function LineHighlightPlot(props: LineHighlightPlotProps):
|
|
33
|
+
declare function LineHighlightPlot(props: LineHighlightPlotProps): React.JSX.Element | null;
|
|
34
34
|
declare namespace LineHighlightPlot {
|
|
35
35
|
var propTypes: any;
|
|
36
36
|
}
|
|
@@ -30,7 +30,7 @@ export interface LineHighlightPlotProps extends React.SVGAttributes<SVGSVGElemen
|
|
|
30
30
|
*
|
|
31
31
|
* - [LineHighlightPlot API](https://mui.com/x/api/charts/line-highlight-plot/)
|
|
32
32
|
*/
|
|
33
|
-
declare function LineHighlightPlot(props: LineHighlightPlotProps):
|
|
33
|
+
declare function LineHighlightPlot(props: LineHighlightPlotProps): React.JSX.Element | null;
|
|
34
34
|
declare namespace LineHighlightPlot {
|
|
35
35
|
var propTypes: any;
|
|
36
36
|
}
|
package/LineChart/LinePlot.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { LineElementProps, LineElementSlotProps, LineElementSlots } from "./LineElement.mjs";
|
|
3
|
-
import type {
|
|
3
|
+
import type { LineItemClickIdentifier } from "../models/seriesType/line.mjs";
|
|
4
4
|
export interface LinePlotSlots extends LineElementSlots {}
|
|
5
5
|
export interface LinePlotSlotProps extends LineElementSlotProps {}
|
|
6
6
|
export interface LinePlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<LineElementProps, 'slots' | 'slotProps' | 'skipAnimation'> {
|
|
7
7
|
/**
|
|
8
8
|
* Callback fired when a line item is clicked.
|
|
9
9
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
10
|
-
* @param {
|
|
10
|
+
* @param {LineItemClickIdentifier} lineItemIdentifier The line item identifier.
|
|
11
11
|
*/
|
|
12
|
-
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier:
|
|
12
|
+
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier: LineItemClickIdentifier) => void;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Demos:
|
|
@@ -21,7 +21,7 @@ export interface LinePlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
21
21
|
*
|
|
22
22
|
* - [LinePlot API](https://mui.com/x/api/charts/line-plot/)
|
|
23
23
|
*/
|
|
24
|
-
declare function LinePlot(props: LinePlotProps):
|
|
24
|
+
declare function LinePlot(props: LinePlotProps): React.JSX.Element;
|
|
25
25
|
declare namespace LinePlot {
|
|
26
26
|
var propTypes: any;
|
|
27
27
|
}
|
package/LineChart/LinePlot.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { LineElementProps, LineElementSlotProps, LineElementSlots } from "./LineElement.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { LineItemClickIdentifier } from "../models/seriesType/line.js";
|
|
4
4
|
export interface LinePlotSlots extends LineElementSlots {}
|
|
5
5
|
export interface LinePlotSlotProps extends LineElementSlotProps {}
|
|
6
6
|
export interface LinePlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<LineElementProps, 'slots' | 'slotProps' | 'skipAnimation'> {
|
|
7
7
|
/**
|
|
8
8
|
* Callback fired when a line item is clicked.
|
|
9
9
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
10
|
-
* @param {
|
|
10
|
+
* @param {LineItemClickIdentifier} lineItemIdentifier The line item identifier.
|
|
11
11
|
*/
|
|
12
|
-
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier:
|
|
12
|
+
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier: LineItemClickIdentifier) => void;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Demos:
|
|
@@ -21,7 +21,7 @@ export interface LinePlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
21
21
|
*
|
|
22
22
|
* - [LinePlot API](https://mui.com/x/api/charts/line-plot/)
|
|
23
23
|
*/
|
|
24
|
-
declare function LinePlot(props: LinePlotProps):
|
|
24
|
+
declare function LinePlot(props: LinePlotProps): React.JSX.Element;
|
|
25
25
|
declare namespace LinePlot {
|
|
26
26
|
var propTypes: any;
|
|
27
27
|
}
|
package/LineChart/LinePlot.js
CHANGED
|
@@ -18,6 +18,7 @@ var _useSkipAnimation = require("../hooks/useSkipAnimation");
|
|
|
18
18
|
var _hooks = require("../hooks");
|
|
19
19
|
var _useInternalIsZoomInteracting = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting");
|
|
20
20
|
var _useLinePlotData = require("./useLinePlotData");
|
|
21
|
+
var _useLineItemClickHandler = require("./useLineItemClickHandler");
|
|
21
22
|
var _animation = require("../internals/animation/animation");
|
|
22
23
|
var _lineClasses = require("./lineClasses");
|
|
23
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -65,6 +66,7 @@ function LinePlot(props) {
|
|
|
65
66
|
const skipAnimation = (0, _useSkipAnimation.useSkipAnimation)(isZoomInteracting || inSkipAnimation);
|
|
66
67
|
const completedData = useAggregatedData();
|
|
67
68
|
const classes = (0, _lineClasses.useUtilityClasses)();
|
|
69
|
+
const onLineItemClick = (0, _useLineItemClickHandler.useLineItemClickHandler)(onItemClick);
|
|
68
70
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(LinePlotRoot, (0, _extends2.default)({
|
|
69
71
|
className: (0, _clsx.default)(classes.linePlot, className)
|
|
70
72
|
}, other, {
|
|
@@ -73,7 +75,8 @@ function LinePlot(props) {
|
|
|
73
75
|
seriesId,
|
|
74
76
|
color,
|
|
75
77
|
gradientId,
|
|
76
|
-
hidden
|
|
78
|
+
hidden,
|
|
79
|
+
isSampled
|
|
77
80
|
}) => {
|
|
78
81
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_LineElement.LineElement, {
|
|
79
82
|
seriesId: seriesId,
|
|
@@ -81,13 +84,10 @@ function LinePlot(props) {
|
|
|
81
84
|
color: color,
|
|
82
85
|
gradientId: gradientId,
|
|
83
86
|
hidden: hidden,
|
|
84
|
-
skipAnimation: skipAnimation,
|
|
87
|
+
skipAnimation: skipAnimation || isSampled,
|
|
85
88
|
slots: slots,
|
|
86
89
|
slotProps: slotProps,
|
|
87
|
-
onClick:
|
|
88
|
-
type: 'line',
|
|
89
|
-
seriesId
|
|
90
|
-
}))
|
|
90
|
+
onClick: onLineItemClick && (event => onLineItemClick(event, seriesId))
|
|
91
91
|
}, seriesId);
|
|
92
92
|
})
|
|
93
93
|
}));
|
|
@@ -100,7 +100,7 @@ process.env.NODE_ENV !== "production" ? LinePlot.propTypes /* remove-proptypes *
|
|
|
100
100
|
/**
|
|
101
101
|
* Callback fired when a line item is clicked.
|
|
102
102
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
103
|
-
* @param {
|
|
103
|
+
* @param {LineItemClickIdentifier} lineItemIdentifier The line item identifier.
|
|
104
104
|
*/
|
|
105
105
|
onItemClick: _propTypes.default.func,
|
|
106
106
|
/**
|
package/LineChart/LinePlot.mjs
CHANGED
|
@@ -12,6 +12,7 @@ import { useSkipAnimation } from "../hooks/useSkipAnimation.mjs";
|
|
|
12
12
|
import { useXAxes, useYAxes } from "../hooks/index.mjs";
|
|
13
13
|
import { useInternalIsZoomInteracting } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting.mjs";
|
|
14
14
|
import { useLinePlotData } from "./useLinePlotData.mjs";
|
|
15
|
+
import { useLineItemClickHandler } from "./useLineItemClickHandler.mjs";
|
|
15
16
|
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.mjs";
|
|
16
17
|
import { lineClasses, useUtilityClasses } from "./lineClasses.mjs";
|
|
17
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -58,6 +59,7 @@ function LinePlot(props) {
|
|
|
58
59
|
const skipAnimation = useSkipAnimation(isZoomInteracting || inSkipAnimation);
|
|
59
60
|
const completedData = useAggregatedData();
|
|
60
61
|
const classes = useUtilityClasses();
|
|
62
|
+
const onLineItemClick = useLineItemClickHandler(onItemClick);
|
|
61
63
|
return /*#__PURE__*/_jsx(LinePlotRoot, _extends({
|
|
62
64
|
className: clsx(classes.linePlot, className)
|
|
63
65
|
}, other, {
|
|
@@ -66,7 +68,8 @@ function LinePlot(props) {
|
|
|
66
68
|
seriesId,
|
|
67
69
|
color,
|
|
68
70
|
gradientId,
|
|
69
|
-
hidden
|
|
71
|
+
hidden,
|
|
72
|
+
isSampled
|
|
70
73
|
}) => {
|
|
71
74
|
return /*#__PURE__*/_jsx(LineElement, {
|
|
72
75
|
seriesId: seriesId,
|
|
@@ -74,13 +77,10 @@ function LinePlot(props) {
|
|
|
74
77
|
color: color,
|
|
75
78
|
gradientId: gradientId,
|
|
76
79
|
hidden: hidden,
|
|
77
|
-
skipAnimation: skipAnimation,
|
|
80
|
+
skipAnimation: skipAnimation || isSampled,
|
|
78
81
|
slots: slots,
|
|
79
82
|
slotProps: slotProps,
|
|
80
|
-
onClick:
|
|
81
|
-
type: 'line',
|
|
82
|
-
seriesId
|
|
83
|
-
}))
|
|
83
|
+
onClick: onLineItemClick && (event => onLineItemClick(event, seriesId))
|
|
84
84
|
}, seriesId);
|
|
85
85
|
})
|
|
86
86
|
}));
|
|
@@ -93,7 +93,7 @@ process.env.NODE_ENV !== "production" ? LinePlot.propTypes /* remove-proptypes *
|
|
|
93
93
|
/**
|
|
94
94
|
* Callback fired when a line item is clicked.
|
|
95
95
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
96
|
-
* @param {
|
|
96
|
+
* @param {LineItemClickIdentifier} lineItemIdentifier The line item identifier.
|
|
97
97
|
*/
|
|
98
98
|
onItemClick: PropTypes.func,
|
|
99
99
|
/**
|
|
@@ -48,7 +48,7 @@ export type MarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighli
|
|
|
48
48
|
*
|
|
49
49
|
* - [MarkElement API](https://mui.com/x/api/charts/mark-element/)
|
|
50
50
|
*/
|
|
51
|
-
declare function MarkElement(props: MarkElementProps):
|
|
51
|
+
declare function MarkElement(props: MarkElementProps): React.JSX.Element;
|
|
52
52
|
declare namespace MarkElement {
|
|
53
53
|
var propTypes: any;
|
|
54
54
|
}
|
|
@@ -48,7 +48,7 @@ export type MarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighli
|
|
|
48
48
|
*
|
|
49
49
|
* - [MarkElement API](https://mui.com/x/api/charts/mark-element/)
|
|
50
50
|
*/
|
|
51
|
-
declare function MarkElement(props: MarkElementProps):
|
|
51
|
+
declare function MarkElement(props: MarkElementProps): React.JSX.Element;
|
|
52
52
|
declare namespace MarkElement {
|
|
53
53
|
var propTypes: any;
|
|
54
54
|
}
|
package/LineChart/MarkPlot.d.mts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
3
|
+
import type { LineItemClickIdentifier } from "../models/seriesType/line.mjs";
|
|
3
4
|
import type { MarkElementProps } from "./MarkElement.mjs";
|
|
4
5
|
import type { MarkPropsOverrides } from "../models/chartsSlotsComponentsProps.mjs";
|
|
5
6
|
export interface MarkPlotSlots {
|
|
6
7
|
mark?: React.JSXElementConstructor<MarkElementProps & MarkPropsOverrides>;
|
|
7
8
|
}
|
|
8
9
|
export interface MarkPlotSlotProps {
|
|
9
|
-
mark?: Partial<MarkElementProps> & MarkPropsOverrides
|
|
10
|
+
mark?: WithDataAttributes<Partial<MarkElementProps> & MarkPropsOverrides>;
|
|
10
11
|
}
|
|
11
12
|
export interface MarkPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<MarkElementProps, 'skipAnimation'> {
|
|
12
13
|
/**
|
|
@@ -22,9 +23,9 @@ export interface MarkPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
22
23
|
/**
|
|
23
24
|
* Callback fired when a line mark item is clicked.
|
|
24
25
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
25
|
-
* @param {
|
|
26
|
+
* @param {LineItemClickIdentifier} lineItemIdentifier The line mark item identifier.
|
|
26
27
|
*/
|
|
27
|
-
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier:
|
|
28
|
+
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier: LineItemClickIdentifier) => void;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* Demos:
|
|
@@ -36,7 +37,7 @@ export interface MarkPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
36
37
|
*
|
|
37
38
|
* - [MarkPlot API](https://mui.com/x/api/charts/mark-plot/)
|
|
38
39
|
*/
|
|
39
|
-
declare function MarkPlot(props: MarkPlotProps):
|
|
40
|
+
declare function MarkPlot(props: MarkPlotProps): React.JSX.Element;
|
|
40
41
|
declare namespace MarkPlot {
|
|
41
42
|
var propTypes: any;
|
|
42
43
|
}
|
package/LineChart/MarkPlot.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
3
|
+
import type { LineItemClickIdentifier } from "../models/seriesType/line.js";
|
|
3
4
|
import type { MarkElementProps } from "./MarkElement.js";
|
|
4
5
|
import type { MarkPropsOverrides } from "../models/chartsSlotsComponentsProps.js";
|
|
5
6
|
export interface MarkPlotSlots {
|
|
6
7
|
mark?: React.JSXElementConstructor<MarkElementProps & MarkPropsOverrides>;
|
|
7
8
|
}
|
|
8
9
|
export interface MarkPlotSlotProps {
|
|
9
|
-
mark?: Partial<MarkElementProps> & MarkPropsOverrides
|
|
10
|
+
mark?: WithDataAttributes<Partial<MarkElementProps> & MarkPropsOverrides>;
|
|
10
11
|
}
|
|
11
12
|
export interface MarkPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<MarkElementProps, 'skipAnimation'> {
|
|
12
13
|
/**
|
|
@@ -22,9 +23,9 @@ export interface MarkPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
22
23
|
/**
|
|
23
24
|
* Callback fired when a line mark item is clicked.
|
|
24
25
|
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
25
|
-
* @param {
|
|
26
|
+
* @param {LineItemClickIdentifier} lineItemIdentifier The line mark item identifier.
|
|
26
27
|
*/
|
|
27
|
-
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier:
|
|
28
|
+
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, lineItemIdentifier: LineItemClickIdentifier) => void;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* Demos:
|
|
@@ -36,7 +37,7 @@ export interface MarkPlotProps extends React.SVGAttributes<SVGSVGElement>, Pick<
|
|
|
36
37
|
*
|
|
37
38
|
* - [MarkPlot API](https://mui.com/x/api/charts/mark-plot/)
|
|
38
39
|
*/
|
|
39
|
-
declare function MarkPlot(props: MarkPlotProps):
|
|
40
|
+
declare function MarkPlot(props: MarkPlotProps): React.JSX.Element;
|
|
40
41
|
declare namespace MarkPlot {
|
|
41
42
|
var propTypes: any;
|
|
42
43
|
}
|