@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
|
@@ -71,7 +71,7 @@ function ChartsGrid(inProps) {
|
|
|
71
71
|
})]
|
|
72
72
|
}));
|
|
73
73
|
}
|
|
74
|
-
process.env.NODE_ENV !== "production" ? ChartsGrid.propTypes = {
|
|
74
|
+
process.env.NODE_ENV !== "production" ? ChartsGrid.propTypes /* remove-proptypes */ = {
|
|
75
75
|
// ----------------------------- Warning --------------------------------
|
|
76
76
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
77
77
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -80,6 +80,10 @@ process.env.NODE_ENV !== "production" ? ChartsGrid.propTypes = {
|
|
|
80
80
|
* Override or extend the styles applied to the component.
|
|
81
81
|
*/
|
|
82
82
|
classes: PropTypes.object,
|
|
83
|
+
/**
|
|
84
|
+
* A CSS class name applied to the root element.
|
|
85
|
+
*/
|
|
86
|
+
className: PropTypes.string,
|
|
83
87
|
/**
|
|
84
88
|
* Displays horizontal grid.
|
|
85
89
|
*/
|
|
@@ -120,7 +120,7 @@ const ChartsLayerContainer = exports.ChartsLayerContainer = /*#__PURE__*/React.f
|
|
|
120
120
|
);
|
|
121
121
|
});
|
|
122
122
|
if (process.env.NODE_ENV !== "production") ChartsLayerContainer.displayName = "ChartsLayerContainer";
|
|
123
|
-
process.env.NODE_ENV !== "production" ? ChartsLayerContainer.propTypes = {
|
|
123
|
+
process.env.NODE_ENV !== "production" ? ChartsLayerContainer.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" |
|
|
@@ -114,7 +114,7 @@ const ChartsLayerContainer = /*#__PURE__*/React.forwardRef(function ChartsLayerC
|
|
|
114
114
|
);
|
|
115
115
|
});
|
|
116
116
|
if (process.env.NODE_ENV !== "production") ChartsLayerContainer.displayName = "ChartsLayerContainer";
|
|
117
|
-
process.env.NODE_ENV !== "production" ? ChartsLayerContainer.propTypes = {
|
|
117
|
+
process.env.NODE_ENV !== "production" ? ChartsLayerContainer.propTypes /* remove-proptypes */ = {
|
|
118
118
|
// ----------------------------- Warning --------------------------------
|
|
119
119
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
120
120
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -58,7 +58,7 @@ function ChartsLocalizationProvider(inProps) {
|
|
|
58
58
|
children: children
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
process.env.NODE_ENV !== "production" ? ChartsLocalizationProvider.propTypes = {
|
|
61
|
+
process.env.NODE_ENV !== "production" ? ChartsLocalizationProvider.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" |
|
|
@@ -50,7 +50,7 @@ function ChartsLocalizationProvider(inProps) {
|
|
|
50
50
|
children: children
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
process.env.NODE_ENV !== "production" ? ChartsLocalizationProvider.propTypes = {
|
|
53
|
+
process.env.NODE_ENV !== "production" ? ChartsLocalizationProvider.propTypes /* remove-proptypes */ = {
|
|
54
54
|
// ----------------------------- Warning --------------------------------
|
|
55
55
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
56
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -46,11 +46,11 @@ function ChartsRadialAxisHighlight(props) {
|
|
|
46
46
|
})]
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
process.env.NODE_ENV !== "production" ? ChartsRadialAxisHighlight.propTypes = {
|
|
49
|
+
process.env.NODE_ENV !== "production" ? ChartsRadialAxisHighlight.propTypes /* remove-proptypes */ = {
|
|
50
50
|
// ----------------------------- Warning --------------------------------
|
|
51
51
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
52
52
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
53
53
|
// ----------------------------------------------------------------------
|
|
54
|
-
radius: _propTypes.default.oneOf(['line', 'none']),
|
|
54
|
+
radius: _propTypes.default.oneOf(['band', 'line', 'none']),
|
|
55
55
|
rotation: _propTypes.default.oneOf(['band', 'line', 'none'])
|
|
56
56
|
} : void 0;
|
|
@@ -39,12 +39,12 @@ function ChartsRadialAxisHighlight(props) {
|
|
|
39
39
|
})]
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
process.env.NODE_ENV !== "production" ? ChartsRadialAxisHighlight.propTypes = {
|
|
42
|
+
process.env.NODE_ENV !== "production" ? ChartsRadialAxisHighlight.propTypes /* remove-proptypes */ = {
|
|
43
43
|
// ----------------------------- Warning --------------------------------
|
|
44
44
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
45
45
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
46
46
|
// ----------------------------------------------------------------------
|
|
47
|
-
radius: PropTypes.oneOf(['line', 'none']),
|
|
47
|
+
radius: PropTypes.oneOf(['band', 'line', 'none']),
|
|
48
48
|
rotation: PropTypes.oneOf(['band', 'line', 'none'])
|
|
49
49
|
} : void 0;
|
|
50
50
|
export { ChartsRadialAxisHighlight };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.mjs";
|
|
2
|
+
export { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radial axis highlight is now stable, import `ChartsRadialAxisHighlight` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadialAxisHighlight: typeof ChartsRadialAxisHighlight;
|
|
2
7
|
export { chartsRadialAxisHighlightClasses } from "./chartsRadialAxisHighlightClasses.mjs";
|
|
3
8
|
export type { ChartsRadialAxisHighlightClasses, ChartsRadialAxisHighlightClassKey } from "./chartsRadialAxisHighlightClasses.mjs";
|
|
4
9
|
export * from "./ChartsRadialAxisHighlight.types.mjs";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.js";
|
|
2
|
+
export { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.js";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radial axis highlight is now stable, import `ChartsRadialAxisHighlight` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadialAxisHighlight: typeof ChartsRadialAxisHighlight;
|
|
2
7
|
export { chartsRadialAxisHighlightClasses } from "./chartsRadialAxisHighlightClasses.js";
|
|
3
8
|
export type { ChartsRadialAxisHighlightClasses, ChartsRadialAxisHighlightClassKey } from "./chartsRadialAxisHighlightClasses.js";
|
|
4
9
|
export * from "./ChartsRadialAxisHighlight.types.js";
|
|
@@ -5,14 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
Unstable_ChartsRadialAxisHighlight: true,
|
|
8
|
+
ChartsRadialAxisHighlight: true,
|
|
8
9
|
chartsRadialAxisHighlightClasses: true
|
|
9
10
|
};
|
|
10
|
-
Object.defineProperty(exports, "
|
|
11
|
+
Object.defineProperty(exports, "ChartsRadialAxisHighlight", {
|
|
11
12
|
enumerable: true,
|
|
12
13
|
get: function () {
|
|
13
14
|
return _ChartsRadialAxisHighlight.ChartsRadialAxisHighlight;
|
|
14
15
|
}
|
|
15
16
|
});
|
|
17
|
+
exports.Unstable_ChartsRadialAxisHighlight = void 0;
|
|
16
18
|
Object.defineProperty(exports, "chartsRadialAxisHighlightClasses", {
|
|
17
19
|
enumerable: true,
|
|
18
20
|
get: function () {
|
|
@@ -44,4 +46,9 @@ Object.keys(_ChartsRadialAxisHighlightPath).forEach(function (key) {
|
|
|
44
46
|
return _ChartsRadialAxisHighlightPath[key];
|
|
45
47
|
}
|
|
46
48
|
});
|
|
47
|
-
});
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated radial axis highlight is now stable, import `ChartsRadialAxisHighlight` instead
|
|
52
|
+
*/
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
54
|
+
const Unstable_ChartsRadialAxisHighlight = exports.Unstable_ChartsRadialAxisHighlight = _ChartsRadialAxisHighlight.ChartsRadialAxisHighlight;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.mjs";
|
|
2
|
+
export { ChartsRadialAxisHighlight } from "./ChartsRadialAxisHighlight.mjs";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated radial axis highlight is now stable, import `ChartsRadialAxisHighlight` instead
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const Unstable_ChartsRadialAxisHighlight = ChartsRadialAxisHighlight;
|
|
2
9
|
export { chartsRadialAxisHighlightClasses } from "./chartsRadialAxisHighlightClasses.mjs";
|
|
3
10
|
export * from "./ChartsRadialAxisHighlight.types.mjs";
|
|
4
11
|
export * from "./ChartsRadialAxisHighlightPath.mjs";
|
|
@@ -35,4 +35,4 @@ declare function ChartsRadialDataProvider<SeriesType extends PolarChartSeriesTyp
|
|
|
35
35
|
declare namespace ChartsRadialDataProvider {
|
|
36
36
|
var propTypes: any;
|
|
37
37
|
}
|
|
38
|
-
export { ChartsRadialDataProvider
|
|
38
|
+
export { ChartsRadialDataProvider };
|
|
@@ -35,4 +35,4 @@ declare function ChartsRadialDataProvider<SeriesType extends PolarChartSeriesTyp
|
|
|
35
35
|
declare namespace ChartsRadialDataProvider {
|
|
36
36
|
var propTypes: any;
|
|
37
37
|
}
|
|
38
|
-
export { ChartsRadialDataProvider
|
|
38
|
+
export { ChartsRadialDataProvider };
|
|
@@ -6,7 +6,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.
|
|
9
|
+
exports.ChartsRadialDataProvider = ChartsRadialDataProvider;
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -50,7 +50,7 @@ function ChartsRadialDataProvider(props) {
|
|
|
50
50
|
})
|
|
51
51
|
}));
|
|
52
52
|
}
|
|
53
|
-
process.env.NODE_ENV !== "production" ? ChartsRadialDataProvider.propTypes = {
|
|
53
|
+
process.env.NODE_ENV !== "production" ? ChartsRadialDataProvider.propTypes /* remove-proptypes */ = {
|
|
54
54
|
// ----------------------------- Warning --------------------------------
|
|
55
55
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
56
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -63,6 +63,14 @@ process.env.NODE_ENV !== "production" ? ChartsRadialDataProvider.propTypes = {
|
|
|
63
63
|
* @default rainbowSurgePalette
|
|
64
64
|
*/
|
|
65
65
|
colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
|
|
66
|
+
/**
|
|
67
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
68
|
+
*/
|
|
69
|
+
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
70
|
+
/**
|
|
71
|
+
* Options to enable features planned for the next major.
|
|
72
|
+
*/
|
|
73
|
+
experimentalFeatures: _propTypes.default.any,
|
|
66
74
|
/**
|
|
67
75
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
68
76
|
*/
|
|
@@ -43,7 +43,7 @@ function ChartsRadialDataProvider(props) {
|
|
|
43
43
|
})
|
|
44
44
|
}));
|
|
45
45
|
}
|
|
46
|
-
process.env.NODE_ENV !== "production" ? ChartsRadialDataProvider.propTypes = {
|
|
46
|
+
process.env.NODE_ENV !== "production" ? ChartsRadialDataProvider.propTypes /* remove-proptypes */ = {
|
|
47
47
|
// ----------------------------- Warning --------------------------------
|
|
48
48
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
49
49
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -56,6 +56,14 @@ process.env.NODE_ENV !== "production" ? ChartsRadialDataProvider.propTypes = {
|
|
|
56
56
|
* @default rainbowSurgePalette
|
|
57
57
|
*/
|
|
58
58
|
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
59
|
+
/**
|
|
60
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
61
|
+
*/
|
|
62
|
+
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
63
|
+
/**
|
|
64
|
+
* Options to enable features planned for the next major.
|
|
65
|
+
*/
|
|
66
|
+
experimentalFeatures: PropTypes.any,
|
|
59
67
|
/**
|
|
60
68
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
61
69
|
*/
|
|
@@ -106,4 +114,4 @@ process.env.NODE_ENV !== "production" ? ChartsRadialDataProvider.propTypes = {
|
|
|
106
114
|
*/
|
|
107
115
|
width: PropTypes.number
|
|
108
116
|
} : void 0;
|
|
109
|
-
export { ChartsRadialDataProvider
|
|
117
|
+
export { ChartsRadialDataProvider };
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import { ChartsRadialDataProvider } from "./ChartsRadialDataProvider.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated The radial data provider is now stable, import `ChartsRadialDataProvider` instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const Unstable_ChartsRadialDataProvider: typeof ChartsRadialDataProvider;
|
|
1
6
|
export * from "./ChartsRadialDataProvider.mjs";
|
|
2
7
|
export * from "./ChartsRadialDataProvider.plugins.mjs";
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import { ChartsRadialDataProvider } from "./ChartsRadialDataProvider.js";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated The radial data provider is now stable, import `ChartsRadialDataProvider` instead
|
|
4
|
+
*/
|
|
5
|
+
export declare const Unstable_ChartsRadialDataProvider: typeof ChartsRadialDataProvider;
|
|
1
6
|
export * from "./ChartsRadialDataProvider.js";
|
|
2
7
|
export * from "./ChartsRadialDataProvider.plugins.js";
|
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
Unstable_ChartsRadialDataProvider: true
|
|
8
|
+
};
|
|
9
|
+
exports.Unstable_ChartsRadialDataProvider = void 0;
|
|
6
10
|
var _ChartsRadialDataProvider = require("./ChartsRadialDataProvider");
|
|
7
11
|
Object.keys(_ChartsRadialDataProvider).forEach(function (key) {
|
|
8
12
|
if (key === "default" || key === "__esModule") return;
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
9
14
|
if (key in exports && exports[key] === _ChartsRadialDataProvider[key]) return;
|
|
10
15
|
Object.defineProperty(exports, key, {
|
|
11
16
|
enumerable: true,
|
|
@@ -17,6 +22,7 @@ Object.keys(_ChartsRadialDataProvider).forEach(function (key) {
|
|
|
17
22
|
var _ChartsRadialDataProvider2 = require("./ChartsRadialDataProvider.plugins");
|
|
18
23
|
Object.keys(_ChartsRadialDataProvider2).forEach(function (key) {
|
|
19
24
|
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
20
26
|
if (key in exports && exports[key] === _ChartsRadialDataProvider2[key]) return;
|
|
21
27
|
Object.defineProperty(exports, key, {
|
|
22
28
|
enumerable: true,
|
|
@@ -24,4 +30,9 @@ Object.keys(_ChartsRadialDataProvider2).forEach(function (key) {
|
|
|
24
30
|
return _ChartsRadialDataProvider2[key];
|
|
25
31
|
}
|
|
26
32
|
});
|
|
27
|
-
});
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated The radial data provider is now stable, import `ChartsRadialDataProvider` instead
|
|
36
|
+
*/
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
38
|
+
const Unstable_ChartsRadialDataProvider = exports.Unstable_ChartsRadialDataProvider = _ChartsRadialDataProvider.ChartsRadialDataProvider;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import { ChartsRadialDataProvider } from "./ChartsRadialDataProvider.mjs";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated The radial data provider is now stable, import `ChartsRadialDataProvider` instead
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const Unstable_ChartsRadialDataProvider = ChartsRadialDataProvider;
|
|
1
8
|
export * from "./ChartsRadialDataProvider.mjs";
|
|
2
9
|
export * from "./ChartsRadialDataProvider.plugins.mjs";
|
|
@@ -81,7 +81,7 @@ function ChartsRadialGrid(inProps) {
|
|
|
81
81
|
})]
|
|
82
82
|
}));
|
|
83
83
|
}
|
|
84
|
-
process.env.NODE_ENV !== "production" ? ChartsRadialGrid.propTypes = {
|
|
84
|
+
process.env.NODE_ENV !== "production" ? ChartsRadialGrid.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" |
|
|
@@ -90,6 +90,10 @@ process.env.NODE_ENV !== "production" ? ChartsRadialGrid.propTypes = {
|
|
|
90
90
|
* Override or extend the styles applied to the component.
|
|
91
91
|
*/
|
|
92
92
|
classes: _propTypes.default.object,
|
|
93
|
+
/**
|
|
94
|
+
* A CSS class name applied to the root element.
|
|
95
|
+
*/
|
|
96
|
+
className: _propTypes.default.string,
|
|
93
97
|
/**
|
|
94
98
|
* Displays radius (concentric) grid.
|
|
95
99
|
*/
|
|
@@ -75,7 +75,7 @@ function ChartsRadialGrid(inProps) {
|
|
|
75
75
|
})]
|
|
76
76
|
}));
|
|
77
77
|
}
|
|
78
|
-
process.env.NODE_ENV !== "production" ? ChartsRadialGrid.propTypes = {
|
|
78
|
+
process.env.NODE_ENV !== "production" ? ChartsRadialGrid.propTypes /* remove-proptypes */ = {
|
|
79
79
|
// ----------------------------- Warning --------------------------------
|
|
80
80
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
81
81
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -84,6 +84,10 @@ process.env.NODE_ENV !== "production" ? ChartsRadialGrid.propTypes = {
|
|
|
84
84
|
* Override or extend the styles applied to the component.
|
|
85
85
|
*/
|
|
86
86
|
classes: PropTypes.object,
|
|
87
|
+
/**
|
|
88
|
+
* A CSS class name applied to the root element.
|
|
89
|
+
*/
|
|
90
|
+
className: PropTypes.string,
|
|
87
91
|
/**
|
|
88
92
|
* Displays radius (concentric) grid.
|
|
89
93
|
*/
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialGrid } from "./ChartsRadialGrid.mjs";
|
|
2
|
+
export { type ChartsRadialGridProps, ChartsRadialGrid } from "./ChartsRadialGrid.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radial grid is now stable, import `ChartsRadialGrid` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadialGrid: typeof ChartsRadialGrid;
|
|
2
7
|
export { chartsRadialGridClasses } from "./chartsRadialGridClasses.mjs";
|
|
3
8
|
export type { ChartsRadialGridClasses, ChartsRadialGridClassKey } from "./chartsRadialGridClasses.mjs";
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialGrid } from "./ChartsRadialGrid.js";
|
|
2
|
+
export { type ChartsRadialGridProps, ChartsRadialGrid } from "./ChartsRadialGrid.js";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radial grid is now stable, import `ChartsRadialGrid` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadialGrid: typeof ChartsRadialGrid;
|
|
2
7
|
export { chartsRadialGridClasses } from "./chartsRadialGridClasses.js";
|
|
3
8
|
export type { ChartsRadialGridClasses, ChartsRadialGridClassKey } from "./chartsRadialGridClasses.js";
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "ChartsRadialGrid", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
9
|
return _ChartsRadialGrid.ChartsRadialGrid;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
exports.Unstable_ChartsRadialGrid = void 0;
|
|
12
13
|
Object.defineProperty(exports, "chartsRadialGridClasses", {
|
|
13
14
|
enumerable: true,
|
|
14
15
|
get: function () {
|
|
@@ -16,4 +17,9 @@ Object.defineProperty(exports, "chartsRadialGridClasses", {
|
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
var _ChartsRadialGrid = require("./ChartsRadialGrid");
|
|
19
|
-
var _chartsRadialGridClasses = require("./chartsRadialGridClasses");
|
|
20
|
+
var _chartsRadialGridClasses = require("./chartsRadialGridClasses");
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated radial grid is now stable, import `ChartsRadialGrid` instead
|
|
23
|
+
*/
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
|
+
const Unstable_ChartsRadialGrid = exports.Unstable_ChartsRadialGrid = _ChartsRadialGrid.ChartsRadialGrid;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadialGrid } from "./ChartsRadialGrid.mjs";
|
|
2
|
+
export { ChartsRadialGrid } from "./ChartsRadialGrid.mjs";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated radial grid is now stable, import `ChartsRadialGrid` instead
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const Unstable_ChartsRadialGrid = ChartsRadialGrid;
|
|
2
9
|
export { chartsRadialGridClasses } from "./chartsRadialGridClasses.mjs";
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import type { ChartsRadiusAxisProps } from "../models/axis.mjs";
|
|
2
|
-
export
|
|
1
|
+
import type { ChartsRadiusAxisProps, ChartsAxisSlots, ChartsAxisSlotProps } from "../models/axis.mjs";
|
|
2
|
+
export interface ChartsRadiusAxisSlots extends ChartsAxisSlots {}
|
|
3
|
+
export interface ChartsRadiusAxisSlotProps extends ChartsAxisSlotProps {}
|
|
4
|
+
declare function ChartsRadiusAxis(props: ChartsRadiusAxisProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
declare namespace ChartsRadiusAxis {
|
|
6
|
+
var propTypes: any;
|
|
7
|
+
}
|
|
8
|
+
export { ChartsRadiusAxis };
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import type { ChartsRadiusAxisProps } from "../models/axis.js";
|
|
2
|
-
export
|
|
1
|
+
import type { ChartsRadiusAxisProps, ChartsAxisSlots, ChartsAxisSlotProps } from "../models/axis.js";
|
|
2
|
+
export interface ChartsRadiusAxisSlots extends ChartsAxisSlots {}
|
|
3
|
+
export interface ChartsRadiusAxisSlotProps extends ChartsAxisSlotProps {}
|
|
4
|
+
declare function ChartsRadiusAxis(props: ChartsRadiusAxisProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
declare namespace ChartsRadiusAxis {
|
|
6
|
+
var propTypes: any;
|
|
7
|
+
}
|
|
8
|
+
export { ChartsRadiusAxis };
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.ChartsRadiusAxis = ChartsRadiusAxis;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
12
|
var _styles = require("@mui/material/styles");
|
|
12
13
|
var _useTicks = require("../hooks/useTicks");
|
|
13
14
|
var _useAxis = require("../hooks/useAxis");
|
|
@@ -17,7 +18,8 @@ var _chartsRadiusAxisClasses = require("./chartsRadiusAxisClasses");
|
|
|
17
18
|
var _createGetLabelTextAnchors = require("./createGetLabelTextAnchors");
|
|
18
19
|
var _getLabelTransform = require("./getLabelTransform");
|
|
19
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
/* Gap between a tick and its label. */
|
|
21
|
+
/* Gap between a tick and its label. */
|
|
22
|
+
const TICK_LABEL_GAP = 3;
|
|
21
23
|
const getLabelTextAnchors = (0, _createGetLabelTextAnchors.createGetLabelTextAnchors)(_getLabelTransform.getLabelTransform);
|
|
22
24
|
|
|
23
25
|
/**
|
|
@@ -45,6 +47,7 @@ function ChartsRadiusAxis(props) {
|
|
|
45
47
|
position = 'start',
|
|
46
48
|
disableLine,
|
|
47
49
|
disableTicks,
|
|
50
|
+
disableTickLabel,
|
|
48
51
|
tickLabelPosition: tickLabelPositionProp = 'auto',
|
|
49
52
|
tickPosition = position === 'start' ? 'before' : 'after',
|
|
50
53
|
tickSize = 6,
|
|
@@ -135,7 +138,7 @@ function ChartsRadiusAxis(props) {
|
|
|
135
138
|
y2: tickY + tickDy,
|
|
136
139
|
stroke: stroke,
|
|
137
140
|
className: classes.tick
|
|
138
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("text", (0, _extends2.default)({
|
|
141
|
+
}), !disableTickLabel && /*#__PURE__*/(0, _jsxRuntime.jsx)("text", (0, _extends2.default)({
|
|
139
142
|
x: labelX,
|
|
140
143
|
y: labelY,
|
|
141
144
|
fill: stroke,
|
|
@@ -148,4 +151,141 @@ function ChartsRadiusAxis(props) {
|
|
|
148
151
|
}, index);
|
|
149
152
|
})]
|
|
150
153
|
});
|
|
151
|
-
}
|
|
154
|
+
}
|
|
155
|
+
process.env.NODE_ENV !== "production" ? ChartsRadiusAxis.propTypes /* remove-proptypes */ = {
|
|
156
|
+
// ----------------------------- Warning --------------------------------
|
|
157
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
158
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
159
|
+
// ----------------------------------------------------------------------
|
|
160
|
+
axis: _propTypes.default.oneOf(['radius']),
|
|
161
|
+
/**
|
|
162
|
+
* The id of the axis to render.
|
|
163
|
+
* If undefined, it will be the first defined axis.
|
|
164
|
+
*/
|
|
165
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
166
|
+
/**
|
|
167
|
+
* Override or extend the styles applied to the component.
|
|
168
|
+
*/
|
|
169
|
+
classes: _propTypes.default.object,
|
|
170
|
+
/**
|
|
171
|
+
* A CSS class name applied to the root element.
|
|
172
|
+
*/
|
|
173
|
+
className: _propTypes.default.string,
|
|
174
|
+
/**
|
|
175
|
+
* If true, the axis line is disabled.
|
|
176
|
+
* @default false
|
|
177
|
+
*/
|
|
178
|
+
disableLine: _propTypes.default.bool,
|
|
179
|
+
/**
|
|
180
|
+
* If true, the tick labels are not rendered.
|
|
181
|
+
* @default false
|
|
182
|
+
*/
|
|
183
|
+
disableTickLabel: _propTypes.default.bool,
|
|
184
|
+
/**
|
|
185
|
+
* If true, the ticks are disabled.
|
|
186
|
+
* @default false
|
|
187
|
+
*/
|
|
188
|
+
disableTicks: _propTypes.default.bool,
|
|
189
|
+
/**
|
|
190
|
+
* The label of the axis.
|
|
191
|
+
*/
|
|
192
|
+
label: _propTypes.default.string,
|
|
193
|
+
/**
|
|
194
|
+
* The style applied to the axis label.
|
|
195
|
+
*/
|
|
196
|
+
labelStyle: _propTypes.default.object,
|
|
197
|
+
/**
|
|
198
|
+
* The maximal radius.
|
|
199
|
+
* Can be a number (in pixels), a pixel string (for example `'80px'`), or a percentage string
|
|
200
|
+
* (for example `'80%'`) relative to the available radius (half the smallest side of the drawing area).
|
|
201
|
+
* @default '100%'
|
|
202
|
+
*/
|
|
203
|
+
maxRadius: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
204
|
+
/**
|
|
205
|
+
* The minimal radius.
|
|
206
|
+
* Can be a number (in pixels), a pixel string (for example `'20px'`), or a percentage string
|
|
207
|
+
* (for example `'20%'`) relative to the available radius (half the smallest side of the drawing area).
|
|
208
|
+
* @default 0
|
|
209
|
+
*/
|
|
210
|
+
minRadius: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
211
|
+
/**
|
|
212
|
+
* The position of the axis in polar coordinates.
|
|
213
|
+
* It can be 'start', 'end', or a specific angle in degrees.
|
|
214
|
+
* @default 'start'
|
|
215
|
+
*/
|
|
216
|
+
position: _propTypes.default.oneOfType([_propTypes.default.oneOf(['end', 'none', 'start']), _propTypes.default.number]),
|
|
217
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
218
|
+
/**
|
|
219
|
+
* Defines which ticks are displayed.
|
|
220
|
+
* Its value can be:
|
|
221
|
+
* - 'auto' In such case the ticks are computed based on axis scale and other parameters.
|
|
222
|
+
* - a filtering function of the form `(value, index) => boolean` which is available only if the axis has "point" scale.
|
|
223
|
+
* - an array containing the values where ticks should be displayed.
|
|
224
|
+
* @see See {@link https://mui.com/x/react-charts/axis/#fixed-tick-positions}
|
|
225
|
+
* @default 'auto'
|
|
226
|
+
*/
|
|
227
|
+
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
228
|
+
/**
|
|
229
|
+
* Defines which ticks get its label displayed. Its value can be:
|
|
230
|
+
* - 'auto' In such case, labels are displayed if they do not overlap with the previous one.
|
|
231
|
+
* - a filtering function of the form (value, index) => boolean. Warning: the index is tick index, not data ones.
|
|
232
|
+
* @default 'auto'
|
|
233
|
+
*/
|
|
234
|
+
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
235
|
+
/**
|
|
236
|
+
* The placement of ticks label. Can be the middle of the band, or the tick position.
|
|
237
|
+
* Only used if scale is 'band'.
|
|
238
|
+
* @default 'middle'
|
|
239
|
+
*/
|
|
240
|
+
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
241
|
+
/**
|
|
242
|
+
* Set the position of the tick labels relative to the axis line.
|
|
243
|
+
* The before/after is defined based on clockwise direction.
|
|
244
|
+
* Using `'auto'` sets it to `'before'` if position is `'start'` and `'after'` otherwise.
|
|
245
|
+
* @default 'auto'
|
|
246
|
+
*/
|
|
247
|
+
tickLabelPosition: _propTypes.default.oneOf(['after', 'auto', 'before', 'center']),
|
|
248
|
+
/**
|
|
249
|
+
* The style applied to ticks text.
|
|
250
|
+
*/
|
|
251
|
+
tickLabelStyle: _propTypes.default.object,
|
|
252
|
+
/**
|
|
253
|
+
* Maximal step between two ticks.
|
|
254
|
+
* When using time data, the value is assumed to be in ms.
|
|
255
|
+
* Not supported by categorical axis (band, points).
|
|
256
|
+
*/
|
|
257
|
+
tickMaxStep: _propTypes.default.number,
|
|
258
|
+
/**
|
|
259
|
+
* Minimal step between two ticks.
|
|
260
|
+
* When using time data, the value is assumed to be in ms.
|
|
261
|
+
* Not supported by categorical axis (band, points).
|
|
262
|
+
*/
|
|
263
|
+
tickMinStep: _propTypes.default.number,
|
|
264
|
+
/**
|
|
265
|
+
* The number of ticks. This number is not guaranteed.
|
|
266
|
+
* Not supported by categorical axis (band, points).
|
|
267
|
+
*/
|
|
268
|
+
tickNumber: _propTypes.default.number,
|
|
269
|
+
/**
|
|
270
|
+
* The placement of ticks in regard to the band interval.
|
|
271
|
+
* Only used if scale is 'band'.
|
|
272
|
+
* @default 'extremities'
|
|
273
|
+
*/
|
|
274
|
+
tickPlacement: _propTypes.default.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
275
|
+
/**
|
|
276
|
+
* Set the position of the tick relative to the axis line.
|
|
277
|
+
* The before/after is defined based on clockwise direction.
|
|
278
|
+
* @default position === 'start' ? 'before' : 'after'
|
|
279
|
+
*/
|
|
280
|
+
tickPosition: _propTypes.default.oneOf(['after', 'before']),
|
|
281
|
+
/**
|
|
282
|
+
* The size of the ticks.
|
|
283
|
+
* @default 6
|
|
284
|
+
*/
|
|
285
|
+
tickSize: _propTypes.default.number,
|
|
286
|
+
/**
|
|
287
|
+
* The minimum space between ticks when using an ordinal scale. It defines the minimum distance in pixels between two ticks.
|
|
288
|
+
* @default 0
|
|
289
|
+
*/
|
|
290
|
+
tickSpacing: _propTypes.default.number
|
|
291
|
+
} : void 0;
|