@mui/x-charts 9.0.0-alpha.2 → 9.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/AnimatedBarElement.d.mts +1 -1
- package/BarChart/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarChart.js +5 -2
- package/BarChart/BarChart.mjs +5 -2
- package/BarChart/BarElement.d.mts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarElement.js +8 -7
- package/BarChart/BarElement.mjs +8 -7
- package/BarChart/BarLabel/BarLabel.js +4 -0
- package/BarChart/BarLabel/BarLabel.mjs +4 -0
- package/BarChart/BarLabel/BarLabel.types.d.mts +2 -2
- package/BarChart/BarLabel/BarLabel.types.d.ts +2 -2
- package/BarChart/BarLabel/BarLabelItem.js +8 -7
- package/BarChart/BarLabel/BarLabelItem.mjs +8 -7
- package/BarChart/BarLabel/barLabelClasses.d.mts +15 -0
- package/BarChart/BarLabel/barLabelClasses.d.ts +15 -0
- package/BarChart/BarLabel/barLabelClasses.js +19 -0
- package/BarChart/BarLabel/barLabelClasses.mjs +20 -0
- package/BarChart/BarPlot.js +1 -2
- package/BarChart/BarPlot.mjs +2 -3
- package/BarChart/barClasses.d.mts +21 -1
- package/BarChart/barClasses.d.ts +21 -1
- package/BarChart/barClasses.js +9 -3
- package/BarChart/barClasses.mjs +9 -3
- package/BarChart/barElementClasses.d.mts +17 -10
- package/BarChart/barElementClasses.d.ts +17 -10
- package/BarChart/barElementClasses.js +19 -0
- package/BarChart/barElementClasses.mjs +20 -0
- package/BarChart/index.d.mts +1 -1
- package/BarChart/index.d.ts +1 -1
- package/BarChart/index.js +1 -8
- package/BarChart/index.mjs +1 -1
- package/CHANGELOG.md +123 -1
- package/ChartContainer/ChartContainer.d.mts +1 -1
- package/ChartContainer/ChartContainer.d.ts +1 -1
- package/ChartContainer/useChartContainerProps.d.mts +2 -2
- package/ChartContainer/useChartContainerProps.d.ts +2 -2
- package/ChartDataProvider/ChartDataProvider.d.mts +1 -1
- package/ChartDataProvider/ChartDataProvider.d.ts +1 -1
- package/ChartDataProvider/useChartDataProviderProps.d.mts +2 -2
- package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/ChartsContainer/ChartsContainer.d.mts +1 -1
- package/ChartsContainer/ChartsContainer.d.ts +1 -1
- package/ChartsContainer/ChartsContainer.js +5 -2
- package/ChartsContainer/ChartsContainer.mjs +5 -2
- package/ChartsContainer/useChartsContainerProps.d.mts +3 -3
- package/ChartsContainer/useChartsContainerProps.d.ts +3 -3
- package/ChartsContainer/useChartsContainerProps.js +3 -3
- package/ChartsContainer/useChartsContainerProps.mjs +3 -3
- package/ChartsDataProvider/ChartsDataProvider.d.mts +2 -2
- package/ChartsDataProvider/ChartsDataProvider.d.ts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +2 -2
- package/ChartsLabel/ChartsLabelMark.d.mts +8 -1
- package/ChartsLabel/ChartsLabelMark.d.ts +8 -1
- package/ChartsLabel/ChartsLabelMark.js +29 -3
- package/ChartsLabel/ChartsLabelMark.mjs +29 -3
- package/ChartsLabel/labelMarkClasses.d.mts +2 -0
- package/ChartsLabel/labelMarkClasses.d.ts +2 -0
- package/ChartsLabel/labelMarkClasses.js +1 -1
- package/ChartsLabel/labelMarkClasses.mjs +1 -1
- package/ChartsLegend/ChartsLegend.js +4 -2
- package/ChartsLegend/ChartsLegend.mjs +4 -2
- package/ChartsLegend/legendContext.types.d.mts +1 -0
- package/ChartsLegend/legendContext.types.d.ts +1 -0
- package/ChartsTooltip/ChartsAxisTooltipContent.js +3 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +3 -1
- package/ChartsTooltip/ChartsItemTooltipContent.js +6 -2
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +6 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +7 -5
- package/ChartsTooltip/ChartsTooltipContainer.mjs +6 -4
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/useAxesTooltip.d.mts +1 -0
- package/ChartsTooltip/useAxesTooltip.d.ts +1 -0
- package/ChartsTooltip/useAxesTooltip.js +6 -4
- package/ChartsTooltip/useAxesTooltip.mjs +6 -4
- package/ChartsTooltip/useItemTooltip.d.mts +5 -3
- package/ChartsTooltip/useItemTooltip.d.ts +5 -3
- package/ChartsXAxis/useAxisTicksProps.d.mts +286 -286
- package/ChartsXAxis/useAxisTicksProps.d.ts +286 -286
- package/ChartsYAxis/useAxisTicksProps.d.mts +286 -286
- package/ChartsYAxis/useAxisTicksProps.d.ts +286 -286
- package/LineChart/AreaElement.d.mts +12 -0
- package/LineChart/AreaElement.d.ts +12 -0
- package/LineChart/AreaElement.js +28 -9
- package/LineChart/AreaElement.mjs +30 -9
- package/LineChart/AreaPlot.js +10 -4
- package/LineChart/AreaPlot.mjs +11 -5
- package/LineChart/CircleMarkElement.js +9 -2
- package/LineChart/CircleMarkElement.mjs +10 -3
- package/LineChart/LineChart.js +5 -2
- package/LineChart/LineChart.mjs +5 -2
- package/LineChart/LineElement.d.mts +12 -0
- package/LineChart/LineElement.d.ts +12 -0
- package/LineChart/LineElement.js +28 -9
- package/LineChart/LineElement.mjs +30 -9
- package/LineChart/LineHighlightElement.d.mts +12 -0
- package/LineChart/LineHighlightElement.d.ts +12 -0
- package/LineChart/LineHighlightElement.js +22 -3
- package/LineChart/LineHighlightElement.mjs +24 -3
- package/LineChart/LinePlot.js +11 -5
- package/LineChart/LinePlot.mjs +12 -6
- package/LineChart/MarkElement.js +9 -2
- package/LineChart/MarkElement.mjs +10 -3
- package/LineChart/MarkPlot.js +19 -9
- package/LineChart/MarkPlot.mjs +20 -10
- package/LineChart/index.d.mts +3 -1
- package/LineChart/index.d.ts +3 -1
- package/LineChart/index.js +10 -2
- package/LineChart/index.mjs +2 -1
- package/LineChart/lineClasses.d.mts +34 -0
- package/LineChart/lineClasses.d.ts +34 -0
- package/LineChart/lineClasses.js +32 -0
- package/LineChart/lineClasses.mjs +23 -0
- package/LineChart/markElementClasses.d.mts +17 -8
- package/LineChart/markElementClasses.d.ts +17 -8
- package/LineChart/markElementClasses.js +19 -0
- package/LineChart/markElementClasses.mjs +20 -0
- package/LineChart/seriesConfig/legend.js +1 -0
- package/LineChart/seriesConfig/legend.mjs +1 -0
- package/LineChart/seriesConfig/seriesProcessor.js +1 -1
- package/LineChart/seriesConfig/seriesProcessor.mjs +1 -1
- package/LineChart/seriesConfig/tooltip.js +2 -1
- package/LineChart/seriesConfig/tooltip.mjs +2 -1
- package/PieChart/FocusedPieArc.js +8 -6
- package/PieChart/FocusedPieArc.mjs +8 -6
- package/PieChart/PieArc.d.mts +14 -11
- package/PieChart/PieArc.d.ts +14 -11
- package/PieChart/PieArc.js +22 -4
- package/PieChart/PieArc.mjs +24 -4
- package/PieChart/PieArcLabel.d.mts +16 -2
- package/PieChart/PieArcLabel.d.ts +16 -2
- package/PieChart/PieArcLabel.js +26 -5
- package/PieChart/PieArcLabel.mjs +28 -5
- package/PieChart/PieArcLabelPlot.js +6 -1
- package/PieChart/PieArcLabelPlot.mjs +6 -1
- package/PieChart/PieArcPlot.js +6 -1
- package/PieChart/PieArcPlot.mjs +6 -1
- package/PieChart/PieChart.js +5 -2
- package/PieChart/PieChart.mjs +5 -2
- package/PieChart/PiePlot.d.mts +1 -0
- package/PieChart/PiePlot.d.ts +1 -0
- package/PieChart/PiePlot.js +4 -1
- package/PieChart/PiePlot.mjs +4 -1
- package/PieChart/dataTransform/useTransformData.js +6 -8
- package/PieChart/dataTransform/useTransformData.mjs +6 -8
- package/PieChart/pieClasses.d.mts +22 -1
- package/PieChart/pieClasses.d.ts +22 -1
- package/PieChart/pieClasses.js +10 -3
- package/PieChart/pieClasses.mjs +10 -3
- package/RadarChart/RadarChart.js +5 -2
- package/RadarChart/RadarChart.mjs +5 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +3 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +3 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +7 -14
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +7 -14
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +7 -14
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +7 -14
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +4 -9
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -9
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +8 -16
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +8 -16
- package/RadarChart/seriesConfig/tooltip.js +13 -8
- package/RadarChart/seriesConfig/tooltip.mjs +13 -8
- package/RadarChart/useRadarChartProps.js +3 -3
- package/RadarChart/useRadarChartProps.mjs +3 -3
- package/ScatterChart/BatchScatter.d.mts +2 -1
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/BatchScatter.js +5 -3
- package/ScatterChart/BatchScatter.mjs +4 -3
- package/ScatterChart/FocusedScatterMark.d.mts +4 -1
- package/ScatterChart/FocusedScatterMark.d.ts +4 -1
- package/ScatterChart/FocusedScatterMark.js +12 -2
- package/ScatterChart/FocusedScatterMark.mjs +11 -1
- package/ScatterChart/Scatter.d.mts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/Scatter.js +11 -9
- package/ScatterChart/Scatter.mjs +11 -9
- package/ScatterChart/ScatterChart.js +5 -2
- package/ScatterChart/ScatterChart.mjs +5 -2
- package/ScatterChart/ScatterPlot.d.mts +2 -1
- package/ScatterChart/ScatterPlot.d.ts +2 -1
- package/ScatterChart/ScatterPlot.js +16 -2
- package/ScatterChart/ScatterPlot.mjs +16 -2
- package/ScatterChart/index.d.mts +2 -2
- package/ScatterChart/index.d.ts +2 -2
- package/ScatterChart/scatterClasses.d.mts +14 -2
- package/ScatterChart/scatterClasses.d.ts +14 -2
- package/ScatterChart/scatterClasses.js +9 -3
- package/ScatterChart/scatterClasses.mjs +9 -3
- package/SparkLineChart/SparkLineChart.js +5 -2
- package/SparkLineChart/SparkLineChart.mjs +5 -2
- package/context/ChartApi.d.mts +1 -1
- package/context/ChartApi.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.types.d.mts +2 -2
- package/context/ChartProvider/ChartProvider.types.d.ts +2 -2
- package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
- package/context/ChartsProvider/ChartsProvider.types.d.mts +3 -3
- package/context/ChartsProvider/ChartsProvider.types.d.ts +3 -3
- package/hooks/index.d.mts +2 -2
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +8 -8
- package/hooks/index.mjs +2 -2
- package/hooks/useInteractionItemProps.d.mts +1 -2
- package/hooks/useInteractionItemProps.d.ts +1 -2
- package/hooks/{useItemHighlighted.d.mts → useItemHighlightState.d.mts} +5 -13
- package/hooks/{useItemHighlighted.d.ts → useItemHighlightState.d.ts} +5 -13
- package/hooks/{useItemHighlighted.js → useItemHighlightState.js} +5 -10
- package/hooks/useItemHighlightState.mjs +17 -0
- package/hooks/useItemHighlightStateGetter.d.mts +9 -0
- package/hooks/useItemHighlightStateGetter.d.ts +9 -0
- package/hooks/useItemHighlightStateGetter.js +21 -0
- package/hooks/useItemHighlightStateGetter.mjs +16 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/commonNextFocusItem.d.mts +5 -5
- package/internals/commonNextFocusItem.d.ts +5 -5
- package/internals/createCommonKeyboardFocusHandler.d.mts +2 -2
- package/internals/createCommonKeyboardFocusHandler.d.ts +2 -2
- package/internals/identifierCleaner.d.mts +8 -4
- package/internals/identifierCleaner.d.ts +8 -4
- package/internals/identifierCleaner.js +5 -1
- package/internals/identifierCleaner.mjs +5 -1
- package/internals/identifierSerializer.d.mts +10 -2
- package/internals/identifierSerializer.d.ts +10 -2
- package/internals/identifierSerializer.js +8 -0
- package/internals/identifierSerializer.mjs +8 -0
- package/internals/plugins/allPlugins.d.mts +2 -2
- package/internals/plugins/allPlugins.d.ts +2 -2
- package/internals/plugins/corePlugins/corePlugins.d.mts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.mts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +28 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +28 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +21 -11
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +21 -11
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.mts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.mts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +0 -5
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.mjs +0 -4
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +27 -64
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +24 -60
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +8 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +8 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +6 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +6 -4
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.mts +10 -10
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.mts +16 -16
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.ts +16 -16
- package/internals/plugins/models/chart.d.mts +1 -1
- package/internals/plugins/models/chart.d.ts +1 -1
- package/models/seriesType/config.d.mts +18 -6
- package/models/seriesType/config.d.ts +18 -6
- package/models/seriesType/index.d.mts +8 -8
- package/models/seriesType/index.d.ts +8 -8
- package/models/seriesType/line.d.mts +2 -1
- package/models/seriesType/line.d.ts +2 -1
- package/models/seriesType/radar.d.mts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/package.json +3 -3
- package/themeAugmentation/components.d.mts +26 -1
- package/themeAugmentation/components.d.ts +26 -1
- package/themeAugmentation/overrides.d.mts +15 -1
- package/themeAugmentation/overrides.d.ts +15 -1
- package/hooks/useItemHighlighted.mjs +0 -22
- package/hooks/useItemHighlightedGetter.d.mts +0 -53
- package/hooks/useItemHighlightedGetter.d.ts +0 -53
- package/hooks/useItemHighlightedGetter.js +0 -26
- package/hooks/useItemHighlightedGetter.mjs +0 -21
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
3
3
|
import { type ChartsLabelMarkClasses } from "./labelMarkClasses.mjs";
|
|
4
|
+
import type { MarkShape } from "../models/seriesType/line.mjs";
|
|
4
5
|
export interface ChartsLabelCustomMarkProps {
|
|
5
6
|
className?: string;
|
|
6
7
|
/** Color of the series this mark refers to. */
|
|
7
8
|
color?: string;
|
|
8
9
|
}
|
|
9
|
-
export type ChartsLabelMarkType = 'square' | 'circle' | 'line' | React.ComponentType<ChartsLabelCustomMarkProps>;
|
|
10
|
+
export type ChartsLabelMarkType = 'square' | 'circle' | 'line' | 'line+mark' | React.ComponentType<ChartsLabelCustomMarkProps>;
|
|
10
11
|
export interface ChartsLabelMarkProps {
|
|
11
12
|
/**
|
|
12
13
|
* The type of the mark.
|
|
13
14
|
* @default 'square'
|
|
14
15
|
*/
|
|
15
16
|
type?: ChartsLabelMarkType;
|
|
17
|
+
/**
|
|
18
|
+
* The mark will be rendered as a combination of a line and the specified mark type.
|
|
19
|
+
* The line will be rendered first, followed by the mark.
|
|
20
|
+
* Only used if `type='line+mark'`.
|
|
21
|
+
*/
|
|
22
|
+
markShape?: MarkShape;
|
|
16
23
|
/**
|
|
17
24
|
* The color of the mark.
|
|
18
25
|
*/
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
3
3
|
import { type ChartsLabelMarkClasses } from "./labelMarkClasses.js";
|
|
4
|
+
import type { MarkShape } from "../models/seriesType/line.js";
|
|
4
5
|
export interface ChartsLabelCustomMarkProps {
|
|
5
6
|
className?: string;
|
|
6
7
|
/** Color of the series this mark refers to. */
|
|
7
8
|
color?: string;
|
|
8
9
|
}
|
|
9
|
-
export type ChartsLabelMarkType = 'square' | 'circle' | 'line' | React.ComponentType<ChartsLabelCustomMarkProps>;
|
|
10
|
+
export type ChartsLabelMarkType = 'square' | 'circle' | 'line' | 'line+mark' | React.ComponentType<ChartsLabelCustomMarkProps>;
|
|
10
11
|
export interface ChartsLabelMarkProps {
|
|
11
12
|
/**
|
|
12
13
|
* The type of the mark.
|
|
13
14
|
* @default 'square'
|
|
14
15
|
*/
|
|
15
16
|
type?: ChartsLabelMarkType;
|
|
17
|
+
/**
|
|
18
|
+
* The mark will be rendered as a combination of a line and the specified mark type.
|
|
19
|
+
* The line will be rendered first, followed by the mark.
|
|
20
|
+
* Only used if `type='line+mark'`.
|
|
21
|
+
*/
|
|
22
|
+
markShape?: MarkShape;
|
|
16
23
|
/**
|
|
17
24
|
* The color of the mark.
|
|
18
25
|
*/
|
|
@@ -11,12 +11,14 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
|
-
var _styles = require("@mui/material/styles");
|
|
15
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
|
+
var _styles = require("@mui/material/styles");
|
|
16
|
+
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
16
17
|
var _labelMarkClasses = require("./labelMarkClasses");
|
|
17
18
|
var _consumeThemeProps = require("../internals/consumeThemeProps");
|
|
19
|
+
var _getSymbol = require("../internals/getSymbol");
|
|
18
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
const _excluded = ["type", "color", "className", "classes"];
|
|
21
|
+
const _excluded = ["type", "markShape", "color", "className", "classes"];
|
|
20
22
|
const Root = (0, _styles.styled)('div', {
|
|
21
23
|
name: 'MuiChartsLabelMark',
|
|
22
24
|
slot: 'Root'
|
|
@@ -34,6 +36,11 @@ const Root = (0, _styles.styled)('div', {
|
|
|
34
36
|
height: 8,
|
|
35
37
|
alignItems: 'center'
|
|
36
38
|
},
|
|
39
|
+
[`&.${_labelMarkClasses.labelMarkClasses.lineAndMark}`]: {
|
|
40
|
+
width: 16,
|
|
41
|
+
height: 16,
|
|
42
|
+
alignItems: 'center'
|
|
43
|
+
},
|
|
37
44
|
[`&.${_labelMarkClasses.labelMarkClasses.square}`]: {
|
|
38
45
|
height: 13,
|
|
39
46
|
width: 13,
|
|
@@ -62,12 +69,14 @@ const ChartsLabelMark = exports.ChartsLabelMark = (0, _consumeThemeProps.consume
|
|
|
62
69
|
}, function ChartsLabelMark(props, ref) {
|
|
63
70
|
const {
|
|
64
71
|
type,
|
|
72
|
+
markShape,
|
|
65
73
|
color,
|
|
66
74
|
className,
|
|
67
75
|
classes
|
|
68
76
|
} = props,
|
|
69
77
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
70
78
|
const Component = type;
|
|
79
|
+
const theme = (0, _styles.useTheme)();
|
|
71
80
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Root, (0, _extends2.default)({
|
|
72
81
|
className: (0, _clsx.default)(classes?.root, className),
|
|
73
82
|
ownerState: props,
|
|
@@ -98,7 +107,24 @@ const ChartsLabelMark = exports.ChartsLabelMark = (0, _consumeThemeProps.consume
|
|
|
98
107
|
strokeLinecap: "round",
|
|
99
108
|
vectorEffect: "non-scaling-stroke"
|
|
100
109
|
})
|
|
101
|
-
}), type
|
|
110
|
+
}), type === 'line+mark' && /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
|
|
111
|
+
viewBox: "0 0 16 16",
|
|
112
|
+
preserveAspectRatio: "none",
|
|
113
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
114
|
+
className: classes?.fill,
|
|
115
|
+
d: "M 1 8 L 15 8",
|
|
116
|
+
stroke: color,
|
|
117
|
+
strokeWidth: 2,
|
|
118
|
+
strokeLinecap: "round",
|
|
119
|
+
vectorEffect: "non-scaling-stroke"
|
|
120
|
+
}), markShape && /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
121
|
+
d: (0, _d3Shape.symbol)(_d3Shape.symbolsFill[(0, _getSymbol.getSymbol)(markShape)], 32)(),
|
|
122
|
+
transform: "translate(8, 8) ",
|
|
123
|
+
stroke: color,
|
|
124
|
+
strokeWidth: 2,
|
|
125
|
+
fill: (theme.vars || theme).palette.background.paper
|
|
126
|
+
})]
|
|
127
|
+
}), type !== 'line' && type !== 'circle' && type !== 'line+mark' && /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
102
128
|
viewBox: "0 0 13 13",
|
|
103
129
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
104
130
|
className: classes?.fill,
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["type", "color", "className", "classes"];
|
|
5
|
+
const _excluded = ["type", "markShape", "color", "className", "classes"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import { styled } from '@mui/material/styles';
|
|
9
8
|
import clsx from 'clsx';
|
|
9
|
+
import { styled, useTheme } from '@mui/material/styles';
|
|
10
|
+
import { symbol as d3Symbol, symbolsFill as d3SymbolsFill } from '@mui/x-charts-vendor/d3-shape';
|
|
10
11
|
import { labelMarkClasses, useUtilityClasses } from "./labelMarkClasses.mjs";
|
|
11
12
|
import { consumeThemeProps } from "../internals/consumeThemeProps.mjs";
|
|
13
|
+
import { getSymbol } from "../internals/getSymbol.mjs";
|
|
12
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
15
|
const Root = styled('div', {
|
|
14
16
|
name: 'MuiChartsLabelMark',
|
|
@@ -27,6 +29,11 @@ const Root = styled('div', {
|
|
|
27
29
|
height: 8,
|
|
28
30
|
alignItems: 'center'
|
|
29
31
|
},
|
|
32
|
+
[`&.${labelMarkClasses.lineAndMark}`]: {
|
|
33
|
+
width: 16,
|
|
34
|
+
height: 16,
|
|
35
|
+
alignItems: 'center'
|
|
36
|
+
},
|
|
30
37
|
[`&.${labelMarkClasses.square}`]: {
|
|
31
38
|
height: 13,
|
|
32
39
|
width: 13,
|
|
@@ -55,12 +62,14 @@ const ChartsLabelMark = consumeThemeProps('MuiChartsLabelMark', {
|
|
|
55
62
|
}, function ChartsLabelMark(props, ref) {
|
|
56
63
|
const {
|
|
57
64
|
type,
|
|
65
|
+
markShape,
|
|
58
66
|
color,
|
|
59
67
|
className,
|
|
60
68
|
classes
|
|
61
69
|
} = props,
|
|
62
70
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
63
71
|
const Component = type;
|
|
72
|
+
const theme = useTheme();
|
|
64
73
|
return /*#__PURE__*/_jsx(Root, _extends({
|
|
65
74
|
className: clsx(classes?.root, className),
|
|
66
75
|
ownerState: props,
|
|
@@ -91,7 +100,24 @@ const ChartsLabelMark = consumeThemeProps('MuiChartsLabelMark', {
|
|
|
91
100
|
strokeLinecap: "round",
|
|
92
101
|
vectorEffect: "non-scaling-stroke"
|
|
93
102
|
})
|
|
94
|
-
}), type
|
|
103
|
+
}), type === 'line+mark' && /*#__PURE__*/_jsxs("svg", {
|
|
104
|
+
viewBox: "0 0 16 16",
|
|
105
|
+
preserveAspectRatio: "none",
|
|
106
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
107
|
+
className: classes?.fill,
|
|
108
|
+
d: "M 1 8 L 15 8",
|
|
109
|
+
stroke: color,
|
|
110
|
+
strokeWidth: 2,
|
|
111
|
+
strokeLinecap: "round",
|
|
112
|
+
vectorEffect: "non-scaling-stroke"
|
|
113
|
+
}), markShape && /*#__PURE__*/_jsx("path", {
|
|
114
|
+
d: d3Symbol(d3SymbolsFill[getSymbol(markShape)], 32)(),
|
|
115
|
+
transform: "translate(8, 8) ",
|
|
116
|
+
stroke: color,
|
|
117
|
+
strokeWidth: 2,
|
|
118
|
+
fill: (theme.vars || theme).palette.background.paper
|
|
119
|
+
})]
|
|
120
|
+
}), type !== 'line' && type !== 'circle' && type !== 'line+mark' && /*#__PURE__*/_jsx("svg", {
|
|
95
121
|
viewBox: "0 0 13 13",
|
|
96
122
|
children: /*#__PURE__*/_jsx("rect", {
|
|
97
123
|
className: classes?.fill,
|
|
@@ -4,6 +4,8 @@ export interface ChartsLabelMarkClasses {
|
|
|
4
4
|
root: string;
|
|
5
5
|
/** Styles applied to the mark type "line". */
|
|
6
6
|
line: string;
|
|
7
|
+
/** Styles applied to the mark type "line+mark". */
|
|
8
|
+
lineAndMark: string;
|
|
7
9
|
/** Styles applied to the mark type "square". */
|
|
8
10
|
square: string;
|
|
9
11
|
/** Styles applied to the mark type "circle". */
|
|
@@ -4,6 +4,8 @@ export interface ChartsLabelMarkClasses {
|
|
|
4
4
|
root: string;
|
|
5
5
|
/** Styles applied to the mark type "line". */
|
|
6
6
|
line: string;
|
|
7
|
+
/** Styles applied to the mark type "line+mark". */
|
|
8
|
+
lineAndMark: string;
|
|
7
9
|
/** Styles applied to the mark type "square". */
|
|
8
10
|
square: string;
|
|
9
11
|
/** Styles applied to the mark type "circle". */
|
|
@@ -12,7 +12,7 @@ var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generat
|
|
|
12
12
|
function getLabelMarkUtilityClass(slot) {
|
|
13
13
|
return (0, _generateUtilityClass.default)('MuiChartsLabelMark', slot);
|
|
14
14
|
}
|
|
15
|
-
const labelMarkClasses = exports.labelMarkClasses = (0, _generateUtilityClasses.default)('MuiChartsLabelMark', ['root', 'line', 'square', 'circle', 'fill']);
|
|
15
|
+
const labelMarkClasses = exports.labelMarkClasses = (0, _generateUtilityClasses.default)('MuiChartsLabelMark', ['root', 'line', 'lineAndMark', 'square', 'circle', 'fill']);
|
|
16
16
|
const useUtilityClasses = props => {
|
|
17
17
|
const {
|
|
18
18
|
type
|
|
@@ -4,7 +4,7 @@ import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
|
4
4
|
export function getLabelMarkUtilityClass(slot) {
|
|
5
5
|
return generateUtilityClass('MuiChartsLabelMark', slot);
|
|
6
6
|
}
|
|
7
|
-
export const labelMarkClasses = generateUtilityClasses('MuiChartsLabelMark', ['root', 'line', 'square', 'circle', 'fill']);
|
|
7
|
+
export const labelMarkClasses = generateUtilityClasses('MuiChartsLabelMark', ['root', 'line', 'lineAndMark', 'square', 'circle', 'fill']);
|
|
8
8
|
export const useUtilityClasses = props => {
|
|
9
9
|
const {
|
|
10
10
|
type
|
|
@@ -129,7 +129,8 @@ const ChartsLegend = exports.ChartsLegend = (0, _consumeSlots.consumeSlots)('Mui
|
|
|
129
129
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabelMark.ChartsLabelMark, {
|
|
130
130
|
className: classes?.mark,
|
|
131
131
|
color: item.color,
|
|
132
|
-
type: item.markType
|
|
132
|
+
type: item.markType,
|
|
133
|
+
markShape: item.markShape
|
|
133
134
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabel.ChartsLabel, {
|
|
134
135
|
className: classes?.label,
|
|
135
136
|
children: item.label
|
|
@@ -139,7 +140,8 @@ const ChartsLegend = exports.ChartsLegend = (0, _consumeSlots.consumeSlots)('Mui
|
|
|
139
140
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabelMark.ChartsLabelMark, {
|
|
140
141
|
className: classes?.mark,
|
|
141
142
|
color: item.color,
|
|
142
|
-
type: item.markType
|
|
143
|
+
type: item.markType,
|
|
144
|
+
markShape: item.markShape
|
|
143
145
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabel.ChartsLabel, {
|
|
144
146
|
className: classes?.label,
|
|
145
147
|
children: item.label
|
|
@@ -122,7 +122,8 @@ const ChartsLegend = consumeSlots('MuiChartsLegend', 'legend', {
|
|
|
122
122
|
children: [/*#__PURE__*/_jsx(ChartsLabelMark, {
|
|
123
123
|
className: classes?.mark,
|
|
124
124
|
color: item.color,
|
|
125
|
-
type: item.markType
|
|
125
|
+
type: item.markType,
|
|
126
|
+
markShape: item.markShape
|
|
126
127
|
}), /*#__PURE__*/_jsx(ChartsLabel, {
|
|
127
128
|
className: classes?.label,
|
|
128
129
|
children: item.label
|
|
@@ -132,7 +133,8 @@ const ChartsLegend = consumeSlots('MuiChartsLegend', 'legend', {
|
|
|
132
133
|
children: [/*#__PURE__*/_jsx(ChartsLabelMark, {
|
|
133
134
|
className: classes?.mark,
|
|
134
135
|
color: item.color,
|
|
135
|
-
type: item.markType
|
|
136
|
+
type: item.markType,
|
|
137
|
+
markShape: item.markShape
|
|
136
138
|
}), /*#__PURE__*/_jsx(ChartsLabel, {
|
|
137
139
|
className: classes?.label,
|
|
138
140
|
children: item.label
|
|
@@ -29,6 +29,7 @@ export interface SeriesLegendItemParams extends Partial<Omit<SeriesLegendItemCon
|
|
|
29
29
|
*/
|
|
30
30
|
type: ChartSeriesType;
|
|
31
31
|
markType: ChartsLabelMarkProps['type'];
|
|
32
|
+
markShape?: ChartsLabelMarkProps['markShape'];
|
|
32
33
|
}
|
|
33
34
|
export interface SeriesLegendItemContext extends LegendItemContextBase {
|
|
34
35
|
/**
|
|
@@ -29,6 +29,7 @@ export interface SeriesLegendItemParams extends Partial<Omit<SeriesLegendItemCon
|
|
|
29
29
|
*/
|
|
30
30
|
type: ChartSeriesType;
|
|
31
31
|
markType: ChartsLabelMarkProps['type'];
|
|
32
|
+
markShape?: ChartsLabelMarkProps['markShape'];
|
|
32
33
|
}
|
|
33
34
|
export interface SeriesLegendItemContext extends LegendItemContextBase {
|
|
34
35
|
/**
|
|
@@ -55,7 +55,8 @@ function ChartsAxisTooltipContent(props) {
|
|
|
55
55
|
color,
|
|
56
56
|
formattedValue,
|
|
57
57
|
formattedLabel,
|
|
58
|
-
markType
|
|
58
|
+
markType,
|
|
59
|
+
markShape
|
|
59
60
|
}) => {
|
|
60
61
|
if (formattedValue == null) {
|
|
61
62
|
return null;
|
|
@@ -69,6 +70,7 @@ function ChartsAxisTooltipContent(props) {
|
|
|
69
70
|
className: classes.markContainer,
|
|
70
71
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabelMark.ChartsLabelMark, {
|
|
71
72
|
type: markType,
|
|
73
|
+
markShape: markShape,
|
|
72
74
|
color: color,
|
|
73
75
|
className: classes.mark
|
|
74
76
|
})
|
|
@@ -49,7 +49,8 @@ function ChartsAxisTooltipContent(props) {
|
|
|
49
49
|
color,
|
|
50
50
|
formattedValue,
|
|
51
51
|
formattedLabel,
|
|
52
|
-
markType
|
|
52
|
+
markType,
|
|
53
|
+
markShape
|
|
53
54
|
}) => {
|
|
54
55
|
if (formattedValue == null) {
|
|
55
56
|
return null;
|
|
@@ -63,6 +64,7 @@ function ChartsAxisTooltipContent(props) {
|
|
|
63
64
|
className: classes.markContainer,
|
|
64
65
|
children: /*#__PURE__*/_jsx(ChartsLabelMark, {
|
|
65
66
|
type: markType,
|
|
67
|
+
markShape: markShape,
|
|
66
68
|
color: color,
|
|
67
69
|
className: classes.mark
|
|
68
70
|
})
|
|
@@ -28,7 +28,8 @@ function ChartsItemTooltipContent(props) {
|
|
|
28
28
|
const {
|
|
29
29
|
label: seriesLabel,
|
|
30
30
|
color,
|
|
31
|
-
markType
|
|
31
|
+
markType,
|
|
32
|
+
markShape
|
|
32
33
|
} = tooltipData;
|
|
33
34
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltipTable.ChartsTooltipPaper, {
|
|
34
35
|
sx: sx,
|
|
@@ -41,6 +42,7 @@ function ChartsItemTooltipContent(props) {
|
|
|
41
42
|
className: classes.markContainer,
|
|
42
43
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabelMark.ChartsLabelMark, {
|
|
43
44
|
type: markType,
|
|
45
|
+
markShape: markShape,
|
|
44
46
|
color: color,
|
|
45
47
|
className: classes.mark
|
|
46
48
|
})
|
|
@@ -69,7 +71,8 @@ function ChartsItemTooltipContent(props) {
|
|
|
69
71
|
color,
|
|
70
72
|
label,
|
|
71
73
|
formattedValue,
|
|
72
|
-
markType
|
|
74
|
+
markType,
|
|
75
|
+
markShape
|
|
73
76
|
} = tooltipData;
|
|
74
77
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltipTable.ChartsTooltipPaper, {
|
|
75
78
|
sx: sx,
|
|
@@ -86,6 +89,7 @@ function ChartsItemTooltipContent(props) {
|
|
|
86
89
|
className: classes.markContainer,
|
|
87
90
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabelMark.ChartsLabelMark, {
|
|
88
91
|
type: markType,
|
|
92
|
+
markShape: markShape,
|
|
89
93
|
color: color,
|
|
90
94
|
className: classes.mark
|
|
91
95
|
})
|
|
@@ -22,7 +22,8 @@ function ChartsItemTooltipContent(props) {
|
|
|
22
22
|
const {
|
|
23
23
|
label: seriesLabel,
|
|
24
24
|
color,
|
|
25
|
-
markType
|
|
25
|
+
markType,
|
|
26
|
+
markShape
|
|
26
27
|
} = tooltipData;
|
|
27
28
|
return /*#__PURE__*/_jsx(ChartsTooltipPaper, {
|
|
28
29
|
sx: sx,
|
|
@@ -35,6 +36,7 @@ function ChartsItemTooltipContent(props) {
|
|
|
35
36
|
className: classes.markContainer,
|
|
36
37
|
children: /*#__PURE__*/_jsx(ChartsLabelMark, {
|
|
37
38
|
type: markType,
|
|
39
|
+
markShape: markShape,
|
|
38
40
|
color: color,
|
|
39
41
|
className: classes.mark
|
|
40
42
|
})
|
|
@@ -63,7 +65,8 @@ function ChartsItemTooltipContent(props) {
|
|
|
63
65
|
color,
|
|
64
66
|
label,
|
|
65
67
|
formattedValue,
|
|
66
|
-
markType
|
|
68
|
+
markType,
|
|
69
|
+
markShape
|
|
67
70
|
} = tooltipData;
|
|
68
71
|
return /*#__PURE__*/_jsx(ChartsTooltipPaper, {
|
|
69
72
|
sx: sx,
|
|
@@ -80,6 +83,7 @@ function ChartsItemTooltipContent(props) {
|
|
|
80
83
|
className: classes.markContainer,
|
|
81
84
|
children: /*#__PURE__*/_jsx(ChartsLabelMark, {
|
|
82
85
|
type: markType,
|
|
86
|
+
markShape: markShape,
|
|
83
87
|
color: color,
|
|
84
88
|
className: classes.mark
|
|
85
89
|
})
|
|
@@ -10,7 +10,8 @@ exports.ChartsTooltipContainer = ChartsTooltipContainer;
|
|
|
10
10
|
var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
13
|
-
var
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
+
var React = _react;
|
|
14
15
|
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
15
16
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
17
|
var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
|
|
@@ -211,15 +212,16 @@ function ChartsTooltipContainer(inProps) {
|
|
|
211
212
|
height: 1
|
|
212
213
|
}
|
|
213
214
|
}), chartsLayerContainerRef.current), /*#__PURE__*/(0, _jsxRuntime.jsx)(_NoSsr.default, {
|
|
214
|
-
children: isOpen && /*#__PURE__*/(0,
|
|
215
|
+
children: isOpen && /*#__PURE__*/(0, _react.createElement)(ChartsTooltipRoot, (0, _extends2.default)({}, other, {
|
|
216
|
+
// The key is here to make sure the tooltip uses the new anchor immediately.
|
|
217
|
+
key: itemPosition ? 'charts-anchored' : 'charts-pointer',
|
|
215
218
|
className: classes?.root,
|
|
216
219
|
open: isOpen,
|
|
217
220
|
placement: other.placement ?? position ?? (!isTooltipNodeAnchored && isMouse ? 'right-start' : 'top'),
|
|
218
221
|
popperRef: popperRef,
|
|
219
222
|
anchorEl: itemPosition ? anchorRef.current : pointerAnchorEl,
|
|
220
|
-
modifiers: modifiers
|
|
221
|
-
|
|
222
|
-
}))
|
|
223
|
+
modifiers: modifiers
|
|
224
|
+
}), children)
|
|
223
225
|
})]
|
|
224
226
|
});
|
|
225
227
|
}
|
|
@@ -25,6 +25,7 @@ import { useAxisSystem } from "../hooks/useAxisSystem.mjs";
|
|
|
25
25
|
import { useChartsLayerContainerRef } from "../hooks/index.mjs";
|
|
26
26
|
import { selectorBrushShouldPreventTooltip } from "../internals/plugins/featurePlugins/useChartBrush/index.mjs";
|
|
27
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
+
import { createElement as _createElement } from "react";
|
|
28
29
|
const selectorReturnFalse = () => false;
|
|
29
30
|
const selectorReturnNull = () => null;
|
|
30
31
|
function getIsOpenSelector(trigger, axisSystem, shouldPreventBecauseOfBrush) {
|
|
@@ -204,15 +205,16 @@ function ChartsTooltipContainer(inProps) {
|
|
|
204
205
|
height: 1
|
|
205
206
|
}
|
|
206
207
|
}), chartsLayerContainerRef.current), /*#__PURE__*/_jsx(NoSsr, {
|
|
207
|
-
children: isOpen && /*#__PURE__*/
|
|
208
|
+
children: isOpen && /*#__PURE__*/_createElement(ChartsTooltipRoot, _extends({}, other, {
|
|
209
|
+
// The key is here to make sure the tooltip uses the new anchor immediately.
|
|
210
|
+
key: itemPosition ? 'charts-anchored' : 'charts-pointer',
|
|
208
211
|
className: classes?.root,
|
|
209
212
|
open: isOpen,
|
|
210
213
|
placement: other.placement ?? position ?? (!isTooltipNodeAnchored && isMouse ? 'right-start' : 'top'),
|
|
211
214
|
popperRef: popperRef,
|
|
212
215
|
anchorEl: itemPosition ? anchorRef.current : pointerAnchorEl,
|
|
213
|
-
modifiers: modifiers
|
|
214
|
-
|
|
215
|
-
}))
|
|
216
|
+
modifiers: modifiers
|
|
217
|
+
}), children)
|
|
216
218
|
})]
|
|
217
219
|
});
|
|
218
220
|
}
|
|
@@ -13,6 +13,6 @@ export declare const ChartsTooltipRow: import("@emotion/styled").StyledComponent
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
export declare const ChartsTooltipCell: import("@emotion/styled").StyledComponent<Pick<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "p" | "style" | "typography" | "zIndex" | "classes" | "border" | "boxShadow" | "fontWeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "
|
|
16
|
+
export declare const ChartsTooltipCell: import("@emotion/styled").StyledComponent<Pick<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "color" | "p" | "style" | "typography" | "zIndex" | "classes" | "border" | "boxShadow" | "fontWeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "className" | "children" | "sx" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping">, "id" | "color" | "p" | "slot" | "style" | "title" | "ref" | "typography" | "zIndex" | "classes" | "border" | "boxShadow" | "fontWeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "sx" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
17
17
|
component?: React.ElementType;
|
|
18
18
|
}, {}, {}>;
|
|
@@ -13,6 +13,6 @@ export declare const ChartsTooltipRow: import("@emotion/styled").StyledComponent
|
|
|
13
13
|
/**
|
|
14
14
|
* @ignore - internal component.
|
|
15
15
|
*/
|
|
16
|
-
export declare const ChartsTooltipCell: import("@emotion/styled").StyledComponent<Pick<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "p" | "style" | "typography" | "zIndex" | "classes" | "border" | "boxShadow" | "fontWeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "
|
|
16
|
+
export declare const ChartsTooltipCell: import("@emotion/styled").StyledComponent<Pick<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "color" | "p" | "style" | "typography" | "zIndex" | "classes" | "border" | "boxShadow" | "fontWeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "className" | "children" | "sx" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping">, "id" | "color" | "p" | "slot" | "style" | "title" | "ref" | "typography" | "zIndex" | "classes" | "border" | "boxShadow" | "fontWeight" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "sx" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
17
17
|
component?: React.ElementType;
|
|
18
18
|
}, {}, {}>;
|
|
@@ -25,6 +25,7 @@ interface SeriesItem<T extends CartesianChartSeriesType | PolarChartSeriesType>
|
|
|
25
25
|
formattedValue: string;
|
|
26
26
|
formattedLabel: string | null;
|
|
27
27
|
markType: ChartsLabelMarkProps['type'];
|
|
28
|
+
markShape: ChartsLabelMarkProps['markShape'];
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* Returns the axes to display in the tooltip and the series item related to them.
|
|
@@ -25,6 +25,7 @@ interface SeriesItem<T extends CartesianChartSeriesType | PolarChartSeriesType>
|
|
|
25
25
|
formattedValue: string;
|
|
26
26
|
formattedLabel: string | null;
|
|
27
27
|
markType: ChartsLabelMarkProps['type'];
|
|
28
|
+
markShape: ChartsLabelMarkProps['markShape'];
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* Returns the axes to display in the tooltip and the series item related to them.
|