@mui/x-charts 9.4.0 → 9.6.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/BarChart.js +1 -1
- package/BarChart/BarChart.mjs +1 -1
- package/BarChart/BarElement.js +2 -1
- package/BarChart/BarElement.mjs +2 -1
- package/BarChart/BarLabel/BarLabel.js +1 -1
- package/BarChart/BarLabel/BarLabel.mjs +1 -1
- package/BarChart/BarPlot.js +1 -1
- package/BarChart/BarPlot.mjs +1 -1
- package/CHANGELOG.md +251 -0
- package/ChartsAxis/ChartsAxis.js +1 -1
- package/ChartsAxis/ChartsAxis.mjs +1 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.mjs +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.js +2 -2
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +2 -2
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +5 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +5 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +14 -2
- package/ChartsClipPath/ChartsClipPath.js +1 -1
- package/ChartsClipPath/ChartsClipPath.mjs +1 -1
- package/ChartsContainer/ChartsContainer.js +5 -3
- package/ChartsContainer/ChartsContainer.mjs +5 -3
- package/ChartsDataProvider/ChartsDataProvider.js +5 -1
- package/ChartsDataProvider/ChartsDataProvider.mjs +5 -1
- package/ChartsGrid/ChartsGrid.js +5 -1
- package/ChartsGrid/ChartsGrid.mjs +5 -1
- package/ChartsLayerContainer/ChartsLayerContainer.js +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.js +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.js +2 -2
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.mjs +2 -2
- package/ChartsRadialAxisHighlight/index.d.mts +6 -1
- package/ChartsRadialAxisHighlight/index.d.ts +6 -1
- package/ChartsRadialAxisHighlight/index.js +9 -2
- package/ChartsRadialAxisHighlight/index.mjs +8 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.js +10 -2
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +10 -2
- package/ChartsRadialDataProvider/index.d.mts +5 -0
- package/ChartsRadialDataProvider/index.d.ts +5 -0
- package/ChartsRadialDataProvider/index.js +12 -1
- package/ChartsRadialDataProvider/index.mjs +7 -0
- package/ChartsRadialGrid/ChartsRadialGrid.js +5 -1
- package/ChartsRadialGrid/ChartsRadialGrid.mjs +5 -1
- package/ChartsRadialGrid/index.d.mts +6 -1
- package/ChartsRadialGrid/index.d.ts +6 -1
- package/ChartsRadialGrid/index.js +8 -2
- package/ChartsRadialGrid/index.mjs +8 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +8 -2
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +8 -2
- package/ChartsRadiusAxis/ChartsRadiusAxis.js +143 -3
- package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +144 -5
- package/ChartsRadiusAxis/index.d.mts +6 -1
- package/ChartsRadiusAxis/index.d.ts +6 -1
- package/ChartsRadiusAxis/index.js +10 -2
- package/ChartsRadiusAxis/index.mjs +7 -1
- package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.mjs +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +8 -2
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +8 -2
- package/ChartsRotationAxis/ChartsRotationAxis.js +140 -3
- package/ChartsRotationAxis/ChartsRotationAxis.mjs +141 -5
- package/ChartsRotationAxis/index.d.mts +6 -1
- package/ChartsRotationAxis/index.d.ts +6 -1
- package/ChartsRotationAxis/index.js +10 -2
- package/ChartsRotationAxis/index.mjs +7 -1
- package/ChartsSurface/ChartsSurface.js +1 -1
- package/ChartsSurface/ChartsSurface.mjs +1 -1
- package/ChartsSvgLayer/ChartsSvgLayer.js +1 -1
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +1 -1
- package/ChartsText/ChartsText.js +2 -2
- package/ChartsText/ChartsText.mjs +2 -2
- package/ChartsTooltip/ChartsAxisTooltipContent.js +22 -3
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +22 -3
- package/ChartsTooltip/ChartsItemTooltipContent.js +52 -1
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +52 -1
- package/ChartsTooltip/ChartsTooltip.js +13 -33
- package/ChartsTooltip/ChartsTooltip.mjs +13 -33
- package/ChartsTooltip/ChartsTooltipContainer.js +17 -30
- package/ChartsTooltip/ChartsTooltipContainer.mjs +17 -30
- package/ChartsWrapper/ChartsWrapper.js +1 -1
- package/ChartsWrapper/ChartsWrapper.mjs +1 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.js +1 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
- package/ChartsXAxis/ChartsXAxis.js +11 -2
- package/ChartsXAxis/ChartsXAxis.mjs +11 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.js +1 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
- package/ChartsYAxis/ChartsYAxis.js +11 -2
- package/ChartsYAxis/ChartsYAxis.mjs +11 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +1 -1
- package/Gauge/Gauge.js +1 -1
- package/Gauge/Gauge.mjs +1 -1
- package/Gauge/GaugeContainer.js +1 -1
- package/Gauge/GaugeContainer.mjs +1 -1
- package/Gauge/GaugeValueArc.js +2 -2
- package/Gauge/GaugeValueArc.mjs +2 -2
- package/Gauge/GaugeValueText.js +1 -1
- package/Gauge/GaugeValueText.mjs +1 -1
- package/LineChart/AnimatedArea.js +3 -3
- package/LineChart/AnimatedArea.mjs +3 -3
- package/LineChart/AnimatedLine.js +1 -1
- package/LineChart/AnimatedLine.mjs +1 -1
- package/LineChart/AreaElement.js +2 -2
- package/LineChart/AreaElement.mjs +2 -2
- package/LineChart/AreaPlot.js +1 -1
- package/LineChart/AreaPlot.mjs +1 -1
- package/LineChart/CircleMarkElement.js +1 -1
- package/LineChart/CircleMarkElement.mjs +1 -1
- package/LineChart/LineChart.js +1 -1
- package/LineChart/LineChart.mjs +1 -1
- package/LineChart/LineElement.js +5 -3
- package/LineChart/LineElement.mjs +5 -3
- package/LineChart/LineHighlightElement.js +1 -2
- package/LineChart/LineHighlightElement.mjs +1 -2
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LineHighlightPlot.mjs +1 -1
- package/LineChart/LinePlot.js +1 -1
- package/LineChart/LinePlot.mjs +1 -1
- package/LineChart/MarkElement.js +4 -3
- package/LineChart/MarkElement.mjs +4 -3
- package/LineChart/MarkPlot.js +2 -1
- package/LineChart/MarkPlot.mjs +2 -1
- package/PieChart/FocusedPieArc.d.mts +5 -1
- package/PieChart/FocusedPieArc.d.ts +5 -1
- package/PieChart/FocusedPieArc.js +22 -1
- package/PieChart/FocusedPieArc.mjs +24 -2
- package/PieChart/PieArc.js +1 -1
- package/PieChart/PieArc.mjs +1 -1
- package/PieChart/PieArcLabel.js +1 -1
- package/PieChart/PieArcLabel.mjs +1 -1
- package/PieChart/PieArcLabelPlot.js +7 -6
- package/PieChart/PieArcLabelPlot.mjs +7 -6
- package/PieChart/PieArcPlot.js +7 -6
- package/PieChart/PieArcPlot.mjs +7 -6
- package/PieChart/PieChart.js +1 -1
- package/PieChart/PieChart.mjs +1 -1
- package/PieChart/PiePlot.js +2 -1
- package/PieChart/PiePlot.mjs +2 -1
- package/RadarChart/RadarAxis/RadarAxis.js +5 -1
- package/RadarChart/RadarAxis/RadarAxis.mjs +5 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +6 -2
- package/RadarChart/RadarChart.js +1 -1
- package/RadarChart/RadarChart.mjs +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +1 -5
- package/RadarChart/RadarGrid/RadarGrid.mjs +1 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +5 -1
- package/ScatterChart/Scatter.js +1 -1
- package/ScatterChart/Scatter.mjs +1 -1
- package/ScatterChart/ScatterChart.js +12 -6
- package/ScatterChart/ScatterChart.mjs +12 -6
- package/ScatterChart/ScatterChart.plugins.d.mts +2 -1
- package/ScatterChart/ScatterChart.plugins.d.ts +2 -1
- package/ScatterChart/ScatterChart.plugins.js +2 -1
- package/ScatterChart/ScatterChart.plugins.mjs +2 -1
- package/ScatterChart/ScatterMarker.js +2 -2
- package/ScatterChart/ScatterMarker.mjs +2 -2
- package/ScatterChart/ScatterPlot.d.mts +12 -3
- package/ScatterChart/ScatterPlot.d.ts +12 -3
- package/ScatterChart/ScatterPlot.js +30 -5
- package/ScatterChart/ScatterPlot.mjs +30 -5
- package/ScatterChart/async/ScatterAsync.d.mts +9 -0
- package/ScatterChart/async/ScatterAsync.d.ts +9 -0
- package/ScatterChart/async/ScatterAsync.js +71 -0
- package/ScatterChart/async/ScatterAsync.mjs +67 -0
- package/ScatterChart/async/ScatterAsyncBatch.d.mts +24 -0
- package/ScatterChart/async/ScatterAsyncBatch.d.ts +24 -0
- package/ScatterChart/async/ScatterAsyncBatch.js +112 -0
- package/ScatterChart/async/ScatterAsyncBatch.mjs +106 -0
- package/ScatterChart/async/scatterRenderData.selectors.d.mts +38 -0
- package/ScatterChart/async/scatterRenderData.selectors.d.ts +38 -0
- package/ScatterChart/async/scatterRenderData.selectors.js +93 -0
- package/ScatterChart/async/scatterRenderData.selectors.mjs +87 -0
- package/ScatterChart/seriesConfig/getColor.js +6 -15
- package/ScatterChart/seriesConfig/getColor.mjs +6 -15
- package/SparkLineChart/SparkLineChart.js +3 -2
- package/SparkLineChart/SparkLineChart.mjs +3 -2
- package/Toolbar/Toolbar.js +1 -1
- package/Toolbar/Toolbar.mjs +1 -1
- package/Toolbar/ToolbarButton.js +1 -1
- package/Toolbar/ToolbarButton.mjs +1 -1
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/colorScale.d.mts +2 -2
- package/internals/colorScale.d.ts +2 -2
- package/internals/colorScale.js +2 -2
- package/internals/colorScale.mjs +2 -2
- package/internals/getSeriesColorFn.d.mts +5 -5
- package/internals/getSeriesColorFn.d.ts +5 -5
- package/internals/index.d.mts +3 -0
- package/internals/index.d.ts +3 -0
- package/internals/index.js +20 -0
- package/internals/index.mjs +3 -0
- package/internals/plugins/allPlugins.d.mts +4 -3
- package/internals/plugins/allPlugins.d.ts +4 -3
- package/internals/plugins/allPlugins.js +2 -1
- package/internals/plugins/allPlugins.mjs +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +12 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +12 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +10 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +10 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +15 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +15 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +16 -30
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +17 -31
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.mts +8 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +8 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +7 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +7 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +0 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +0 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +1 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.js +27 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.mjs +27 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +1 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +6 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +6 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +6 -2
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +6 -2
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +49 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +49 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +124 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +117 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +64 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +64 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.js +5 -0
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.mjs +1 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.mts +3 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.d.ts +3 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.js +27 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/index.mjs +2 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.mts +13 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.d.ts +13 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.js +136 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +128 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +42 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +42 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.js +166 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +159 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.mts +34 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.d.ts +34 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.js +5 -0
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.types.mjs +1 -0
- package/internals/resolveColorProcessor.js +4 -7
- package/internals/resolveColorProcessor.mjs +4 -7
- package/internals/scales/scaleBand.js +70 -43
- package/internals/scales/scaleBand.mjs +71 -44
- package/models/axis.d.mts +20 -4
- package/models/axis.d.ts +20 -4
- package/models/colorMapping.d.mts +8 -0
- package/models/colorMapping.d.ts +8 -0
- package/models/seriesType/bar.d.mts +1 -1
- package/models/seriesType/bar.d.ts +1 -1
- package/models/seriesType/common.d.mts +4 -4
- package/models/seriesType/common.d.ts +4 -4
- package/models/seriesType/config.d.mts +3 -3
- package/models/seriesType/config.d.ts +3 -3
- package/models/seriesType/line.d.mts +1 -1
- package/models/seriesType/line.d.ts +1 -1
- package/models/seriesType/pie.d.mts +1 -1
- package/models/seriesType/pie.d.ts +1 -1
- package/models/seriesType/radar.d.mts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/models/seriesType/scatter.d.mts +1 -1
- package/models/seriesType/scatter.d.ts +1 -1
- package/package.json +8 -5
- package/hooks/useIsHydrated.d.mts +0 -4
- package/hooks/useIsHydrated.d.ts +0 -4
- package/hooks/useIsHydrated.js +0 -19
- package/hooks/useIsHydrated.mjs +0 -14
package/LineChart/AreaElement.js
CHANGED
|
@@ -42,7 +42,7 @@ function AreaElement(props) {
|
|
|
42
42
|
} = props,
|
|
43
43
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
44
44
|
const store = (0, _useStore.useStore)();
|
|
45
|
-
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState)
|
|
45
|
+
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
46
46
|
const identifier = React.useMemo(() => ({
|
|
47
47
|
type: 'line',
|
|
48
48
|
seriesId
|
|
@@ -77,7 +77,7 @@ function AreaElement(props) {
|
|
|
77
77
|
});
|
|
78
78
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Area, (0, _extends2.default)({}, other, areaProps));
|
|
79
79
|
}
|
|
80
|
-
process.env.NODE_ENV !== "production" ? AreaElement.propTypes = {
|
|
80
|
+
process.env.NODE_ENV !== "production" ? AreaElement.propTypes /* remove-proptypes */ = {
|
|
81
81
|
// ----------------------------- Warning --------------------------------
|
|
82
82
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
83
83
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -35,7 +35,7 @@ function AreaElement(props) {
|
|
|
35
35
|
} = props,
|
|
36
36
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
37
37
|
const store = useStore();
|
|
38
|
-
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState)
|
|
38
|
+
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
39
39
|
const identifier = React.useMemo(() => ({
|
|
40
40
|
type: 'line',
|
|
41
41
|
seriesId
|
|
@@ -70,7 +70,7 @@ function AreaElement(props) {
|
|
|
70
70
|
});
|
|
71
71
|
return /*#__PURE__*/_jsx(Area, _extends({}, other, areaProps));
|
|
72
72
|
}
|
|
73
|
-
process.env.NODE_ENV !== "production" ? AreaElement.propTypes = {
|
|
73
|
+
process.env.NODE_ENV !== "production" ? AreaElement.propTypes /* remove-proptypes */ = {
|
|
74
74
|
// ----------------------------- Warning --------------------------------
|
|
75
75
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
76
76
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/LineChart/AreaPlot.js
CHANGED
|
@@ -90,7 +90,7 @@ function AreaPlot(props) {
|
|
|
90
90
|
}, seriesId))
|
|
91
91
|
}));
|
|
92
92
|
}
|
|
93
|
-
process.env.NODE_ENV !== "production" ? AreaPlot.propTypes = {
|
|
93
|
+
process.env.NODE_ENV !== "production" ? AreaPlot.propTypes /* remove-proptypes */ = {
|
|
94
94
|
// ----------------------------- Warning --------------------------------
|
|
95
95
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
96
96
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/LineChart/AreaPlot.mjs
CHANGED
|
@@ -83,7 +83,7 @@ function AreaPlot(props) {
|
|
|
83
83
|
}, seriesId))
|
|
84
84
|
}));
|
|
85
85
|
}
|
|
86
|
-
process.env.NODE_ENV !== "production" ? AreaPlot.propTypes = {
|
|
86
|
+
process.env.NODE_ENV !== "production" ? AreaPlot.propTypes /* remove-proptypes */ = {
|
|
87
87
|
// ----------------------------- Warning --------------------------------
|
|
88
88
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
89
89
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -61,7 +61,7 @@ function CircleMarkElement(props) {
|
|
|
61
61
|
} = props,
|
|
62
62
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
63
63
|
const store = (0, _useStore.useStore)();
|
|
64
|
-
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState)
|
|
64
|
+
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
65
65
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
66
66
|
type: 'line',
|
|
67
67
|
seriesId,
|
|
@@ -54,7 +54,7 @@ function CircleMarkElement(props) {
|
|
|
54
54
|
} = props,
|
|
55
55
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
56
56
|
const store = useStore();
|
|
57
|
-
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState)
|
|
57
|
+
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
58
58
|
const interactionProps = useInteractionItemProps({
|
|
59
59
|
type: 'line',
|
|
60
60
|
seriesId,
|
package/LineChart/LineChart.js
CHANGED
|
@@ -81,7 +81,7 @@ const LineChart = exports.LineChart = /*#__PURE__*/React.forwardRef(function Lin
|
|
|
81
81
|
}));
|
|
82
82
|
});
|
|
83
83
|
if (process.env.NODE_ENV !== "production") LineChart.displayName = "LineChart";
|
|
84
|
-
process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
84
|
+
process.env.NODE_ENV !== "production" ? LineChart.propTypes /* remove-proptypes */ = {
|
|
85
85
|
// ----------------------------- Warning --------------------------------
|
|
86
86
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
87
87
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/LineChart/LineChart.mjs
CHANGED
|
@@ -74,7 +74,7 @@ const LineChart = /*#__PURE__*/React.forwardRef(function LineChart(inProps, ref)
|
|
|
74
74
|
}));
|
|
75
75
|
});
|
|
76
76
|
if (process.env.NODE_ENV !== "production") LineChart.displayName = "LineChart";
|
|
77
|
-
process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
77
|
+
process.env.NODE_ENV !== "production" ? LineChart.propTypes /* remove-proptypes */ = {
|
|
78
78
|
// ----------------------------- Warning --------------------------------
|
|
79
79
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
80
80
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/LineChart/LineElement.js
CHANGED
|
@@ -43,7 +43,7 @@ function LineElement(props) {
|
|
|
43
43
|
} = props,
|
|
44
44
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
45
45
|
const store = (0, _useStore.useStore)();
|
|
46
|
-
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState)
|
|
46
|
+
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
47
47
|
const identifier = React.useMemo(() => ({
|
|
48
48
|
type: 'line',
|
|
49
49
|
seriesId
|
|
@@ -79,7 +79,7 @@ function LineElement(props) {
|
|
|
79
79
|
});
|
|
80
80
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, (0, _extends2.default)({}, other, lineProps));
|
|
81
81
|
}
|
|
82
|
-
process.env.NODE_ENV !== "production" ? LineElement.propTypes = {
|
|
82
|
+
process.env.NODE_ENV !== "production" ? LineElement.propTypes /* remove-proptypes */ = {
|
|
83
83
|
// ----------------------------- Warning --------------------------------
|
|
84
84
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
85
85
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -88,7 +88,9 @@ process.env.NODE_ENV !== "production" ? LineElement.propTypes = {
|
|
|
88
88
|
color: _propTypes.default.string.isRequired,
|
|
89
89
|
d: _propTypes.default.string.isRequired,
|
|
90
90
|
gradientId: _propTypes.default.string,
|
|
91
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* If `true`, the line is hidden.
|
|
93
|
+
*/
|
|
92
94
|
hidden: _propTypes.default.bool,
|
|
93
95
|
seriesId: _propTypes.default.string.isRequired,
|
|
94
96
|
/**
|
|
@@ -36,7 +36,7 @@ function LineElement(props) {
|
|
|
36
36
|
} = props,
|
|
37
37
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
38
38
|
const store = useStore();
|
|
39
|
-
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState)
|
|
39
|
+
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
40
40
|
const identifier = React.useMemo(() => ({
|
|
41
41
|
type: 'line',
|
|
42
42
|
seriesId
|
|
@@ -72,7 +72,7 @@ function LineElement(props) {
|
|
|
72
72
|
});
|
|
73
73
|
return /*#__PURE__*/_jsx(Line, _extends({}, other, lineProps));
|
|
74
74
|
}
|
|
75
|
-
process.env.NODE_ENV !== "production" ? LineElement.propTypes = {
|
|
75
|
+
process.env.NODE_ENV !== "production" ? LineElement.propTypes /* remove-proptypes */ = {
|
|
76
76
|
// ----------------------------- Warning --------------------------------
|
|
77
77
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
78
78
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -81,7 +81,9 @@ process.env.NODE_ENV !== "production" ? LineElement.propTypes = {
|
|
|
81
81
|
color: PropTypes.string.isRequired,
|
|
82
82
|
d: PropTypes.string.isRequired,
|
|
83
83
|
gradientId: PropTypes.string,
|
|
84
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* If `true`, the line is hidden.
|
|
86
|
+
*/
|
|
85
87
|
hidden: PropTypes.bool,
|
|
86
88
|
seriesId: PropTypes.string.isRequired,
|
|
87
89
|
/**
|
|
@@ -58,12 +58,11 @@ function LineHighlightElement(props) {
|
|
|
58
58
|
fill: color
|
|
59
59
|
}, transformOrigin, additionalProps, other));
|
|
60
60
|
}
|
|
61
|
-
process.env.NODE_ENV !== "production" ? LineHighlightElement.propTypes = {
|
|
61
|
+
process.env.NODE_ENV !== "production" ? LineHighlightElement.propTypes /* remove-proptypes */ = {
|
|
62
62
|
// ----------------------------- Warning --------------------------------
|
|
63
63
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
64
64
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
65
65
|
// ----------------------------------------------------------------------
|
|
66
|
-
classes: _propTypes.default.object,
|
|
67
66
|
seriesId: _propTypes.default.string.isRequired,
|
|
68
67
|
shape: _propTypes.default.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']).isRequired
|
|
69
68
|
} : void 0;
|
|
@@ -51,12 +51,11 @@ function LineHighlightElement(props) {
|
|
|
51
51
|
fill: color
|
|
52
52
|
}, transformOrigin, additionalProps, other));
|
|
53
53
|
}
|
|
54
|
-
process.env.NODE_ENV !== "production" ? LineHighlightElement.propTypes = {
|
|
54
|
+
process.env.NODE_ENV !== "production" ? LineHighlightElement.propTypes /* remove-proptypes */ = {
|
|
55
55
|
// ----------------------------- Warning --------------------------------
|
|
56
56
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
57
57
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
58
58
|
// ----------------------------------------------------------------------
|
|
59
|
-
classes: PropTypes.object,
|
|
60
59
|
seriesId: PropTypes.string.isRequired,
|
|
61
60
|
shape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']).isRequired
|
|
62
61
|
} : void 0;
|
|
@@ -133,7 +133,7 @@ function getStartEndMarkIndex(data, type) {
|
|
|
133
133
|
const index = data.findLastIndex(value => value != null);
|
|
134
134
|
return index < 0 ? undefined : index;
|
|
135
135
|
}
|
|
136
|
-
process.env.NODE_ENV !== "production" ? LineHighlightPlot.propTypes = {
|
|
136
|
+
process.env.NODE_ENV !== "production" ? LineHighlightPlot.propTypes /* remove-proptypes */ = {
|
|
137
137
|
// ----------------------------- Warning --------------------------------
|
|
138
138
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
139
139
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -126,7 +126,7 @@ function getStartEndMarkIndex(data, type) {
|
|
|
126
126
|
const index = data.findLastIndex(value => value != null);
|
|
127
127
|
return index < 0 ? undefined : index;
|
|
128
128
|
}
|
|
129
|
-
process.env.NODE_ENV !== "production" ? LineHighlightPlot.propTypes = {
|
|
129
|
+
process.env.NODE_ENV !== "production" ? LineHighlightPlot.propTypes /* remove-proptypes */ = {
|
|
130
130
|
// ----------------------------- Warning --------------------------------
|
|
131
131
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
132
132
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/LineChart/LinePlot.js
CHANGED
|
@@ -92,7 +92,7 @@ function LinePlot(props) {
|
|
|
92
92
|
})
|
|
93
93
|
}));
|
|
94
94
|
}
|
|
95
|
-
process.env.NODE_ENV !== "production" ? LinePlot.propTypes = {
|
|
95
|
+
process.env.NODE_ENV !== "production" ? LinePlot.propTypes /* remove-proptypes */ = {
|
|
96
96
|
// ----------------------------- Warning --------------------------------
|
|
97
97
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
98
98
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/LineChart/LinePlot.mjs
CHANGED
|
@@ -85,7 +85,7 @@ function LinePlot(props) {
|
|
|
85
85
|
})
|
|
86
86
|
}));
|
|
87
87
|
}
|
|
88
|
-
process.env.NODE_ENV !== "production" ? LinePlot.propTypes = {
|
|
88
|
+
process.env.NODE_ENV !== "production" ? LinePlot.propTypes /* remove-proptypes */ = {
|
|
89
89
|
// ----------------------------- Warning --------------------------------
|
|
90
90
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
91
91
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/LineChart/MarkElement.js
CHANGED
|
@@ -62,7 +62,7 @@ function MarkElement(props) {
|
|
|
62
62
|
} = props,
|
|
63
63
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
64
64
|
const store = (0, _useStore.useStore)();
|
|
65
|
-
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState)
|
|
65
|
+
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
66
66
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
67
67
|
type: 'line',
|
|
68
68
|
seriesId,
|
|
@@ -100,7 +100,7 @@ function MarkElement(props) {
|
|
|
100
100
|
stroke: color
|
|
101
101
|
}));
|
|
102
102
|
}
|
|
103
|
-
process.env.NODE_ENV !== "production" ? MarkElement.propTypes = {
|
|
103
|
+
process.env.NODE_ENV !== "production" ? MarkElement.propTypes /* remove-proptypes */ = {
|
|
104
104
|
// ----------------------------- Warning --------------------------------
|
|
105
105
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
106
106
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -115,7 +115,6 @@ process.env.NODE_ENV !== "production" ? MarkElement.propTypes = {
|
|
|
115
115
|
* @default false
|
|
116
116
|
*/
|
|
117
117
|
hidden: _propTypes.default.bool,
|
|
118
|
-
seriesId: _propTypes.default.string.isRequired,
|
|
119
118
|
/**
|
|
120
119
|
* If `true`, the marker is faded.
|
|
121
120
|
* @default false
|
|
@@ -126,12 +125,14 @@ process.env.NODE_ENV !== "production" ? MarkElement.propTypes = {
|
|
|
126
125
|
* @default false
|
|
127
126
|
*/
|
|
128
127
|
isHighlighted: _propTypes.default.bool,
|
|
128
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
129
129
|
/**
|
|
130
130
|
* The shape of the marker.
|
|
131
131
|
*/
|
|
132
132
|
shape: _propTypes.default.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']).isRequired,
|
|
133
133
|
/**
|
|
134
134
|
* If `true`, animations are skipped.
|
|
135
|
+
* @default false
|
|
135
136
|
*/
|
|
136
137
|
skipAnimation: _propTypes.default.bool
|
|
137
138
|
} : void 0;
|
|
@@ -55,7 +55,7 @@ function MarkElement(props) {
|
|
|
55
55
|
} = props,
|
|
56
56
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
57
57
|
const store = useStore();
|
|
58
|
-
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState)
|
|
58
|
+
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState, 'enablePositionBasedPointerInteraction');
|
|
59
59
|
const interactionProps = useInteractionItemProps({
|
|
60
60
|
type: 'line',
|
|
61
61
|
seriesId,
|
|
@@ -93,7 +93,7 @@ function MarkElement(props) {
|
|
|
93
93
|
stroke: color
|
|
94
94
|
}));
|
|
95
95
|
}
|
|
96
|
-
process.env.NODE_ENV !== "production" ? MarkElement.propTypes = {
|
|
96
|
+
process.env.NODE_ENV !== "production" ? MarkElement.propTypes /* remove-proptypes */ = {
|
|
97
97
|
// ----------------------------- Warning --------------------------------
|
|
98
98
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
99
99
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -108,7 +108,6 @@ process.env.NODE_ENV !== "production" ? MarkElement.propTypes = {
|
|
|
108
108
|
* @default false
|
|
109
109
|
*/
|
|
110
110
|
hidden: PropTypes.bool,
|
|
111
|
-
seriesId: PropTypes.string.isRequired,
|
|
112
111
|
/**
|
|
113
112
|
* If `true`, the marker is faded.
|
|
114
113
|
* @default false
|
|
@@ -119,12 +118,14 @@ process.env.NODE_ENV !== "production" ? MarkElement.propTypes = {
|
|
|
119
118
|
* @default false
|
|
120
119
|
*/
|
|
121
120
|
isHighlighted: PropTypes.bool,
|
|
121
|
+
seriesId: PropTypes.string.isRequired,
|
|
122
122
|
/**
|
|
123
123
|
* The shape of the marker.
|
|
124
124
|
*/
|
|
125
125
|
shape: PropTypes.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']).isRequired,
|
|
126
126
|
/**
|
|
127
127
|
* If `true`, animations are skipped.
|
|
128
|
+
* @default false
|
|
128
129
|
*/
|
|
129
130
|
skipAnimation: PropTypes.bool
|
|
130
131
|
} : void 0;
|
package/LineChart/MarkPlot.js
CHANGED
|
@@ -127,7 +127,7 @@ function MarkPlot(props) {
|
|
|
127
127
|
})
|
|
128
128
|
}));
|
|
129
129
|
}
|
|
130
|
-
process.env.NODE_ENV !== "production" ? MarkPlot.propTypes = {
|
|
130
|
+
process.env.NODE_ENV !== "production" ? MarkPlot.propTypes /* remove-proptypes */ = {
|
|
131
131
|
// ----------------------------- Warning --------------------------------
|
|
132
132
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
133
133
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -140,6 +140,7 @@ process.env.NODE_ENV !== "production" ? MarkPlot.propTypes = {
|
|
|
140
140
|
onItemClick: _propTypes.default.func,
|
|
141
141
|
/**
|
|
142
142
|
* If `true`, animations are skipped.
|
|
143
|
+
* @default false
|
|
143
144
|
*/
|
|
144
145
|
skipAnimation: _propTypes.default.bool,
|
|
145
146
|
/**
|
package/LineChart/MarkPlot.mjs
CHANGED
|
@@ -120,7 +120,7 @@ function MarkPlot(props) {
|
|
|
120
120
|
})
|
|
121
121
|
}));
|
|
122
122
|
}
|
|
123
|
-
process.env.NODE_ENV !== "production" ? MarkPlot.propTypes = {
|
|
123
|
+
process.env.NODE_ENV !== "production" ? MarkPlot.propTypes /* remove-proptypes */ = {
|
|
124
124
|
// ----------------------------- Warning --------------------------------
|
|
125
125
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
126
126
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -133,6 +133,7 @@ process.env.NODE_ENV !== "production" ? MarkPlot.propTypes = {
|
|
|
133
133
|
onItemClick: PropTypes.func,
|
|
134
134
|
/**
|
|
135
135
|
* If `true`, animations are skipped.
|
|
136
|
+
* @default false
|
|
136
137
|
*/
|
|
137
138
|
skipAnimation: PropTypes.bool,
|
|
138
139
|
/**
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { type PieArcProps } from "./PieArc.mjs";
|
|
2
|
-
|
|
2
|
+
declare function FocusedPieArc(props: Partial<Omit<PieArcProps, 'startAngle' | 'endAngle' | 'seriesId' | 'dataIndex' | 'isFaded' | 'isHighlighted' | 'isFocused'>>): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
declare namespace FocusedPieArc {
|
|
4
|
+
var propTypes: any;
|
|
5
|
+
}
|
|
6
|
+
export { FocusedPieArc };
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { type PieArcProps } from "./PieArc.js";
|
|
2
|
-
|
|
2
|
+
declare function FocusedPieArc(props: Partial<Omit<PieArcProps, 'startAngle' | 'endAngle' | 'seriesId' | 'dataIndex' | 'isFaded' | 'isHighlighted' | 'isFocused'>>): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
declare namespace FocusedPieArc {
|
|
4
|
+
var propTypes: any;
|
|
5
|
+
}
|
|
6
|
+
export { FocusedPieArc };
|
|
@@ -9,6 +9,7 @@ exports.FocusedPieArc = FocusedPieArc;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var _styles = require("@mui/material/styles");
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
13
|
var _useFocusedItem = require("../hooks/useFocusedItem");
|
|
13
14
|
var _usePieSeries = require("../hooks/usePieSeries");
|
|
14
15
|
var _PieArc = require("./PieArc");
|
|
@@ -60,4 +61,24 @@ function FocusedPieArc(props) {
|
|
|
60
61
|
isFocused: false,
|
|
61
62
|
strokeWidth: 3
|
|
62
63
|
}, arcSizes, props));
|
|
63
|
-
}
|
|
64
|
+
}
|
|
65
|
+
process.env.NODE_ENV !== "production" ? FocusedPieArc.propTypes /* remove-proptypes */ = {
|
|
66
|
+
// ----------------------------- Warning --------------------------------
|
|
67
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
68
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
69
|
+
// ----------------------------------------------------------------------
|
|
70
|
+
classes: _propTypes.default.object,
|
|
71
|
+
cornerRadius: _propTypes.default.number,
|
|
72
|
+
innerRadius: _propTypes.default.number,
|
|
73
|
+
outerRadius: _propTypes.default.number,
|
|
74
|
+
paddingAngle: _propTypes.default.number,
|
|
75
|
+
/**
|
|
76
|
+
* If `true`, the animation is disabled.
|
|
77
|
+
*/
|
|
78
|
+
skipAnimation: _propTypes.default.bool,
|
|
79
|
+
/**
|
|
80
|
+
* If `true`, the default event handlers are disabled.
|
|
81
|
+
* Those are used, for example, to display a tooltip or highlight the arc on hover.
|
|
82
|
+
*/
|
|
83
|
+
skipInteraction: _propTypes.default.bool
|
|
84
|
+
} : void 0;
|
|
@@ -4,6 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["arcLabelRadius"];
|
|
6
6
|
import { useTheme } from '@mui/material/styles';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
7
8
|
import { useFocusedItem } from "../hooks/useFocusedItem.mjs";
|
|
8
9
|
import { usePieSeriesContext, usePieSeriesLayout } from "../hooks/usePieSeries.mjs";
|
|
9
10
|
import { PieArc } from "./PieArc.mjs";
|
|
@@ -11,7 +12,7 @@ import { useUtilityClasses } from "./pieClasses.mjs";
|
|
|
11
12
|
import { useItemHighlightState } from "../hooks/useItemHighlightState.mjs";
|
|
12
13
|
import { getModifiedArcProperties } from "./dataTransform/getModifiedArcProperties.mjs";
|
|
13
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
|
|
15
|
+
function FocusedPieArc(props) {
|
|
15
16
|
const theme = useTheme();
|
|
16
17
|
const focusedItem = useFocusedItem();
|
|
17
18
|
const pieSeriesLayout = usePieSeriesLayout();
|
|
@@ -54,4 +55,25 @@ export function FocusedPieArc(props) {
|
|
|
54
55
|
isFocused: false,
|
|
55
56
|
strokeWidth: 3
|
|
56
57
|
}, arcSizes, props));
|
|
57
|
-
}
|
|
58
|
+
}
|
|
59
|
+
process.env.NODE_ENV !== "production" ? FocusedPieArc.propTypes /* remove-proptypes */ = {
|
|
60
|
+
// ----------------------------- Warning --------------------------------
|
|
61
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
62
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
63
|
+
// ----------------------------------------------------------------------
|
|
64
|
+
classes: PropTypes.object,
|
|
65
|
+
cornerRadius: PropTypes.number,
|
|
66
|
+
innerRadius: PropTypes.number,
|
|
67
|
+
outerRadius: PropTypes.number,
|
|
68
|
+
paddingAngle: PropTypes.number,
|
|
69
|
+
/**
|
|
70
|
+
* If `true`, the animation is disabled.
|
|
71
|
+
*/
|
|
72
|
+
skipAnimation: PropTypes.bool,
|
|
73
|
+
/**
|
|
74
|
+
* If `true`, the default event handlers are disabled.
|
|
75
|
+
* Those are used, for example, to display a tooltip or highlight the arc on hover.
|
|
76
|
+
*/
|
|
77
|
+
skipInteraction: PropTypes.bool
|
|
78
|
+
} : void 0;
|
|
79
|
+
export { FocusedPieArc };
|
package/PieChart/PieArc.js
CHANGED
|
@@ -92,7 +92,7 @@ const PieArc = exports.PieArc = /*#__PURE__*/React.forwardRef(function PieArc(pr
|
|
|
92
92
|
}, other, interactionProps, animatedProps));
|
|
93
93
|
});
|
|
94
94
|
if (process.env.NODE_ENV !== "production") PieArc.displayName = "PieArc";
|
|
95
|
-
process.env.NODE_ENV !== "production" ? PieArc.propTypes = {
|
|
95
|
+
process.env.NODE_ENV !== "production" ? PieArc.propTypes /* remove-proptypes */ = {
|
|
96
96
|
// ----------------------------- Warning --------------------------------
|
|
97
97
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
98
98
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/PieChart/PieArc.mjs
CHANGED
|
@@ -85,7 +85,7 @@ const PieArc = /*#__PURE__*/React.forwardRef(function PieArc(props, ref) {
|
|
|
85
85
|
}, other, interactionProps, animatedProps));
|
|
86
86
|
});
|
|
87
87
|
if (process.env.NODE_ENV !== "production") PieArc.displayName = "PieArc";
|
|
88
|
-
process.env.NODE_ENV !== "production" ? PieArc.propTypes = {
|
|
88
|
+
process.env.NODE_ENV !== "production" ? PieArc.propTypes /* remove-proptypes */ = {
|
|
89
89
|
// ----------------------------- Warning --------------------------------
|
|
90
90
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
91
91
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/PieChart/PieArcLabel.js
CHANGED
|
@@ -89,7 +89,7 @@ const PieArcLabel = exports.PieArcLabel = /*#__PURE__*/React.forwardRef(function
|
|
|
89
89
|
}));
|
|
90
90
|
});
|
|
91
91
|
if (process.env.NODE_ENV !== "production") PieArcLabel.displayName = "PieArcLabel";
|
|
92
|
-
process.env.NODE_ENV !== "production" ? PieArcLabel.propTypes = {
|
|
92
|
+
process.env.NODE_ENV !== "production" ? PieArcLabel.propTypes /* remove-proptypes */ = {
|
|
93
93
|
// ----------------------------- Warning --------------------------------
|
|
94
94
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
95
95
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/PieChart/PieArcLabel.mjs
CHANGED
|
@@ -82,7 +82,7 @@ const PieArcLabel = /*#__PURE__*/React.forwardRef(function PieArcLabel(props, re
|
|
|
82
82
|
}));
|
|
83
83
|
});
|
|
84
84
|
if (process.env.NODE_ENV !== "production") PieArcLabel.displayName = "PieArcLabel";
|
|
85
|
-
process.env.NODE_ENV !== "production" ? PieArcLabel.propTypes = {
|
|
85
|
+
process.env.NODE_ENV !== "production" ? PieArcLabel.propTypes /* remove-proptypes */ = {
|
|
86
86
|
// ----------------------------- Warning --------------------------------
|
|
87
87
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
88
88
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -95,7 +95,7 @@ function PieArcLabelPlot(props) {
|
|
|
95
95
|
}, slotProps?.pieArcLabel), item.id ?? item.dataIndex))
|
|
96
96
|
}));
|
|
97
97
|
}
|
|
98
|
-
process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes = {
|
|
98
|
+
process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes /* remove-proptypes */ = {
|
|
99
99
|
// ----------------------------- Warning --------------------------------
|
|
100
100
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
101
101
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -123,10 +123,11 @@ process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes = {
|
|
|
123
123
|
color: _propTypes.default.string.isRequired,
|
|
124
124
|
endAngle: _propTypes.default.number.isRequired,
|
|
125
125
|
formattedValue: _propTypes.default.string.isRequired,
|
|
126
|
+
hidden: _propTypes.default.bool.isRequired,
|
|
126
127
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
127
128
|
index: _propTypes.default.number.isRequired,
|
|
128
129
|
label: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
|
|
129
|
-
labelMarkType: _propTypes.default.oneOfType([_propTypes.default.oneOf(['circle', 'line', 'square']), _propTypes.default.func]),
|
|
130
|
+
labelMarkType: _propTypes.default.oneOfType([_propTypes.default.oneOf(['circle', 'line', 'line+mark', 'square']), _propTypes.default.func]),
|
|
130
131
|
padAngle: _propTypes.default.number.isRequired,
|
|
131
132
|
startAngle: _propTypes.default.number.isRequired,
|
|
132
133
|
value: _propTypes.default.number.isRequired
|
|
@@ -156,10 +157,6 @@ process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes = {
|
|
|
156
157
|
outerRadius: _propTypes.default.number,
|
|
157
158
|
paddingAngle: _propTypes.default.number
|
|
158
159
|
}),
|
|
159
|
-
/**
|
|
160
|
-
* The id of this series.
|
|
161
|
-
*/
|
|
162
|
-
seriesId: _propTypes.default.string.isRequired,
|
|
163
160
|
/**
|
|
164
161
|
* The radius between circle center and the beginning of the arc.
|
|
165
162
|
* @default 0
|
|
@@ -174,6 +171,10 @@ process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes = {
|
|
|
174
171
|
* @default 0
|
|
175
172
|
*/
|
|
176
173
|
paddingAngle: _propTypes.default.number,
|
|
174
|
+
/**
|
|
175
|
+
* The id of this series.
|
|
176
|
+
*/
|
|
177
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
177
178
|
/**
|
|
178
179
|
* If `true`, animations are skipped.
|
|
179
180
|
* @default false
|
|
@@ -88,7 +88,7 @@ function PieArcLabelPlot(props) {
|
|
|
88
88
|
}, slotProps?.pieArcLabel), item.id ?? item.dataIndex))
|
|
89
89
|
}));
|
|
90
90
|
}
|
|
91
|
-
process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes = {
|
|
91
|
+
process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes /* remove-proptypes */ = {
|
|
92
92
|
// ----------------------------- Warning --------------------------------
|
|
93
93
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
94
94
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -116,10 +116,11 @@ process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes = {
|
|
|
116
116
|
color: PropTypes.string.isRequired,
|
|
117
117
|
endAngle: PropTypes.number.isRequired,
|
|
118
118
|
formattedValue: PropTypes.string.isRequired,
|
|
119
|
+
hidden: PropTypes.bool.isRequired,
|
|
119
120
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
120
121
|
index: PropTypes.number.isRequired,
|
|
121
122
|
label: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
122
|
-
labelMarkType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'square']), PropTypes.func]),
|
|
123
|
+
labelMarkType: PropTypes.oneOfType([PropTypes.oneOf(['circle', 'line', 'line+mark', 'square']), PropTypes.func]),
|
|
123
124
|
padAngle: PropTypes.number.isRequired,
|
|
124
125
|
startAngle: PropTypes.number.isRequired,
|
|
125
126
|
value: PropTypes.number.isRequired
|
|
@@ -149,10 +150,6 @@ process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes = {
|
|
|
149
150
|
outerRadius: PropTypes.number,
|
|
150
151
|
paddingAngle: PropTypes.number
|
|
151
152
|
}),
|
|
152
|
-
/**
|
|
153
|
-
* The id of this series.
|
|
154
|
-
*/
|
|
155
|
-
seriesId: PropTypes.string.isRequired,
|
|
156
153
|
/**
|
|
157
154
|
* The radius between circle center and the beginning of the arc.
|
|
158
155
|
* @default 0
|
|
@@ -167,6 +164,10 @@ process.env.NODE_ENV !== "production" ? PieArcLabelPlot.propTypes = {
|
|
|
167
164
|
* @default 0
|
|
168
165
|
*/
|
|
169
166
|
paddingAngle: PropTypes.number,
|
|
167
|
+
/**
|
|
168
|
+
* The id of this series.
|
|
169
|
+
*/
|
|
170
|
+
seriesId: PropTypes.string.isRequired,
|
|
170
171
|
/**
|
|
171
172
|
* If `true`, animations are skipped.
|
|
172
173
|
* @default false
|
package/PieChart/PieArcPlot.js
CHANGED
|
@@ -77,7 +77,7 @@ function PieArcPlot(props) {
|
|
|
77
77
|
}, slotProps?.pieArc), item.dataIndex))
|
|
78
78
|
}));
|
|
79
79
|
}
|
|
80
|
-
process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes = {
|
|
80
|
+
process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes /* remove-proptypes */ = {
|
|
81
81
|
// ----------------------------- Warning --------------------------------
|
|
82
82
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
83
83
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -96,10 +96,11 @@ process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes = {
|
|
|
96
96
|
color: _propTypes.default.string.isRequired,
|
|
97
97
|
endAngle: _propTypes.default.number.isRequired,
|
|
98
98
|
formattedValue: _propTypes.default.string.isRequired,
|
|
99
|
+
hidden: _propTypes.default.bool.isRequired,
|
|
99
100
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
100
101
|
index: _propTypes.default.number.isRequired,
|
|
101
102
|
label: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
|
|
102
|
-
labelMarkType: _propTypes.default.oneOfType([_propTypes.default.oneOf(['circle', 'line', 'square']), _propTypes.default.func]),
|
|
103
|
+
labelMarkType: _propTypes.default.oneOfType([_propTypes.default.oneOf(['circle', 'line', 'line+mark', 'square']), _propTypes.default.func]),
|
|
103
104
|
padAngle: _propTypes.default.number.isRequired,
|
|
104
105
|
startAngle: _propTypes.default.number.isRequired,
|
|
105
106
|
value: _propTypes.default.number.isRequired
|
|
@@ -129,10 +130,6 @@ process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes = {
|
|
|
129
130
|
outerRadius: _propTypes.default.number,
|
|
130
131
|
paddingAngle: _propTypes.default.number
|
|
131
132
|
}),
|
|
132
|
-
/**
|
|
133
|
-
* The id of this series.
|
|
134
|
-
*/
|
|
135
|
-
seriesId: _propTypes.default.string.isRequired,
|
|
136
133
|
/**
|
|
137
134
|
* The radius between circle center and the beginning of the arc.
|
|
138
135
|
* @default 0
|
|
@@ -154,6 +151,10 @@ process.env.NODE_ENV !== "production" ? PieArcPlot.propTypes = {
|
|
|
154
151
|
* @default 0
|
|
155
152
|
*/
|
|
156
153
|
paddingAngle: _propTypes.default.number,
|
|
154
|
+
/**
|
|
155
|
+
* The id of this series.
|
|
156
|
+
*/
|
|
157
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
157
158
|
/**
|
|
158
159
|
* If `true`, animations are skipped.
|
|
159
160
|
* @default false
|