@mui/x-charts 9.3.0 → 9.5.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/BarElement.d.mts +3 -2
- package/BarChart/BarElement.d.ts +3 -2
- package/BarChart/BarLabel/BarLabelItem.d.mts +3 -2
- package/BarChart/BarLabel/BarLabelItem.d.ts +3 -2
- package/BarChart/seriesConfig/bar/extremums.js +7 -2
- package/BarChart/seriesConfig/bar/extremums.mjs +7 -2
- package/CHANGELOG.md +296 -0
- package/ChartsContainer/ChartsContainer.js +21 -0
- package/ChartsContainer/ChartsContainer.mjs +21 -0
- package/ChartsLabel/ChartsLabelMark.js +1 -21
- package/ChartsLabel/ChartsLabelMark.mjs +0 -20
- package/ChartsLegend/chartsLegend.types.d.mts +3 -2
- package/ChartsLegend/chartsLegend.types.d.ts +3 -2
- package/ChartsLegend/piecewiseColorLegendClasses.js +8 -2
- package/ChartsLegend/piecewiseColorLegendClasses.mjs +8 -2
- package/ChartsOverlay/ChartsOverlay.d.mts +5 -4
- package/ChartsOverlay/ChartsOverlay.d.ts +5 -4
- 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 +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +1 -1
- 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/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/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/ChartsXReferenceLine.js +6 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.mjs +6 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.js +5 -0
- package/ChartsReferenceLine/ChartsYReferenceLine.mjs +5 -0
- 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/ChartsTooltip/ChartTooltip.types.d.mts +3 -2
- package/ChartsTooltip/ChartTooltip.types.d.ts +3 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +11 -4
- package/ChartsTooltip/ChartsTooltipContainer.mjs +11 -4
- package/ChartsTooltip/useAxesTooltip.js +2 -2
- package/ChartsTooltip/useAxesTooltip.mjs +2 -2
- package/ChartsTooltip/useItemTooltip.js +2 -2
- package/ChartsTooltip/useItemTooltip.mjs +2 -2
- package/ChartsXAxis/useAxisTicksProps.d.mts +84 -3
- package/ChartsXAxis/useAxisTicksProps.d.ts +84 -3
- package/ChartsYAxis/useAxisTicksProps.d.mts +84 -3
- package/ChartsYAxis/useAxisTicksProps.d.ts +84 -3
- package/LineChart/AreaElement.d.mts +3 -2
- package/LineChart/AreaElement.d.ts +3 -2
- package/LineChart/AreaElement.js +1 -1
- package/LineChart/AreaElement.mjs +1 -1
- package/LineChart/CircleMarkElement.js +1 -1
- package/LineChart/CircleMarkElement.mjs +1 -1
- package/LineChart/LineElement.d.mts +3 -2
- package/LineChart/LineElement.d.ts +3 -2
- package/LineChart/LineElement.js +1 -1
- package/LineChart/LineElement.mjs +1 -1
- package/LineChart/LineHighlightPlot.d.mts +3 -2
- package/LineChart/LineHighlightPlot.d.ts +3 -2
- package/LineChart/LineHighlightPlot.js +65 -45
- package/LineChart/LineHighlightPlot.mjs +65 -45
- package/LineChart/MarkElement.js +1 -1
- package/LineChart/MarkElement.mjs +1 -1
- package/LineChart/MarkPlot.d.mts +3 -2
- package/LineChart/MarkPlot.d.ts +3 -2
- package/LineChart/seriesConfig/curveEvaluation.js +28 -14
- package/LineChart/seriesConfig/curveEvaluation.mjs +27 -14
- package/LineChart/seriesConfig/extremums.js +5 -1
- package/LineChart/seriesConfig/extremums.mjs +5 -1
- package/LineChart/useMarkPlotData.js +3 -1
- package/LineChart/useMarkPlotData.mjs +3 -1
- package/PieChart/PieArcLabelPlot.d.mts +3 -2
- package/PieChart/PieArcLabelPlot.d.ts +3 -2
- package/PieChart/PieArcPlot.d.mts +3 -2
- package/PieChart/PieArcPlot.d.ts +3 -2
- package/RadarChart/RadarAxis/RadarAxis.utils.d.mts +2 -2
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +2 -2
- package/ScatterChart/BatchScatter.d.mts +2 -8
- package/ScatterChart/BatchScatter.d.ts +2 -8
- package/ScatterChart/BatchScatter.js +17 -12
- package/ScatterChart/BatchScatter.mjs +17 -12
- package/ScatterChart/FocusedScatterMark.js +2 -2
- package/ScatterChart/FocusedScatterMark.mjs +2 -2
- package/ScatterChart/HighlightedScatterMark.js +3 -3
- package/ScatterChart/HighlightedScatterMark.mjs +3 -3
- package/ScatterChart/Scatter.d.mts +5 -0
- package/ScatterChart/Scatter.d.ts +5 -0
- package/ScatterChart/Scatter.js +7 -2
- package/ScatterChart/Scatter.mjs +7 -2
- package/ScatterChart/ScatterChart.d.mts +2 -1
- package/ScatterChart/ScatterChart.d.ts +2 -1
- package/ScatterChart/ScatterChart.js +28 -3
- package/ScatterChart/ScatterChart.mjs +28 -3
- 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.types.d.mts +3 -2
- package/ScatterChart/ScatterMarker.types.d.ts +3 -2
- package/ScatterChart/ScatterPlot.d.mts +7 -4
- package/ScatterChart/ScatterPlot.d.ts +7 -4
- package/ScatterChart/ScatterPlot.js +31 -4
- package/ScatterChart/ScatterPlot.mjs +31 -4
- 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/extremums.js +6 -0
- package/ScatterChart/seriesConfig/extremums.mjs +6 -0
- package/ScatterChart/seriesConfig/getColor.js +1 -1
- package/ScatterChart/seriesConfig/getColor.mjs +1 -1
- package/ScatterChart/seriesConfig/getMarkerSize.d.mts +18 -0
- package/ScatterChart/seriesConfig/getMarkerSize.d.ts +18 -0
- package/ScatterChart/seriesConfig/getMarkerSize.js +43 -0
- package/ScatterChart/seriesConfig/getMarkerSize.mjs +37 -0
- package/ScatterChart/seriesConfig/seriesProcessor.js +23 -8
- package/ScatterChart/seriesConfig/seriesProcessor.mjs +23 -8
- package/ScatterChart/useScatterItemPosition.d.mts +4 -0
- package/ScatterChart/useScatterItemPosition.d.ts +4 -0
- package/ScatterChart/useScatterItemPosition.js +9 -0
- package/ScatterChart/useScatterItemPosition.mjs +8 -0
- package/SparkLineChart/SparkLineChart.js +2 -1
- package/SparkLineChart/SparkLineChart.mjs +2 -1
- package/Toolbar/Toolbar.types.d.mts +3 -2
- package/Toolbar/Toolbar.types.d.ts +3 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/animation/animation.d.mts +1 -2
- package/internals/animation/animation.d.ts +1 -2
- package/internals/commonNextFocusItem.d.mts +10 -2
- package/internals/commonNextFocusItem.d.ts +10 -2
- package/internals/commonNextFocusItem.js +12 -4
- package/internals/commonNextFocusItem.mjs +12 -4
- package/internals/createCommonKeyboardFocusHandler.d.mts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.ts +1 -1
- package/internals/createCommonKeyboardFocusHandler.js +3 -3
- package/internals/createCommonKeyboardFocusHandler.mjs +3 -3
- package/internals/getSeriesColorFn.d.mts +5 -5
- package/internals/getSeriesColorFn.d.ts +5 -5
- package/internals/incompleteDatasetKeysError.d.mts +1 -0
- package/internals/incompleteDatasetKeysError.d.ts +1 -0
- package/internals/incompleteDatasetKeysError.js +11 -0
- package/internals/incompleteDatasetKeysError.mjs +4 -0
- package/internals/index.d.mts +3 -0
- package/internals/index.d.ts +3 -0
- package/internals/index.js +36 -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/featurePlugins/useChartCartesianAxis/createZoomLookup.js +3 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.mjs +4 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.mts +10 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +10 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +18 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.mjs +16 -0
- 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.d.mts +11 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +11 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +24 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +24 -5
- package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.js +46 -2
- package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.mjs +47 -2
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +46 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +46 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +2 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +2 -1
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +3 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.mjs +3 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.d.mts +4 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.d.ts +4 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.js +3 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.mjs +1 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +5 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +7 -5
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +17 -3
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.mjs +17 -3
- 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/scales/scaleBand.js +70 -43
- package/internals/scales/scaleBand.mjs +71 -44
- package/internals/sizeScale.d.mts +6 -0
- package/internals/sizeScale.d.ts +6 -0
- package/internals/sizeScale.js +46 -0
- package/internals/sizeScale.mjs +38 -0
- package/models/axis.d.mts +18 -12
- package/models/axis.d.ts +18 -12
- package/models/chartsSlotsComponentsProps.d.mts +25 -0
- package/models/chartsSlotsComponentsProps.d.ts +25 -0
- package/models/chartsSlotsComponentsProps.js +5 -0
- package/models/chartsSlotsComponentsProps.mjs +1 -0
- package/models/index.d.mts +1 -0
- package/models/index.d.ts +1 -0
- package/models/index.js +11 -0
- package/models/index.mjs +1 -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 +6 -3
- package/models/seriesType/line.d.ts +6 -3
- 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 +35 -3
- package/models/seriesType/scatter.d.ts +35 -3
- package/models/sizeMapping.d.mts +64 -0
- package/models/sizeMapping.d.ts +64 -0
- package/models/sizeMapping.js +5 -0
- package/models/sizeMapping.mjs +1 -0
- package/models/slots/chartsBaseSlots.d.mts +6 -5
- package/models/slots/chartsBaseSlots.d.ts +6 -5
- package/models/z-axis.d.mts +10 -1
- package/models/z-axis.d.ts +10 -1
- package/package.json +5 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
3
3
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
4
|
+
import type { LoadingOverlayPropsOverrides, NoDataOverlayPropsOverrides } from "../models/chartsSlotsComponentsProps.mjs";
|
|
4
5
|
export declare function useNoData(): boolean;
|
|
5
6
|
export type CommonOverlayProps = React.SVGAttributes<SVGTextElement> & {
|
|
6
7
|
sx?: SxProps<Theme>;
|
|
@@ -10,16 +11,16 @@ export interface ChartsOverlaySlots {
|
|
|
10
11
|
* Overlay component rendered when the chart is in a loading state.
|
|
11
12
|
* @default ChartsLoadingOverlay
|
|
12
13
|
*/
|
|
13
|
-
loadingOverlay?: React.ElementType<CommonOverlayProps>;
|
|
14
|
+
loadingOverlay?: React.ElementType<CommonOverlayProps & LoadingOverlayPropsOverrides>;
|
|
14
15
|
/**
|
|
15
16
|
* Overlay component rendered when the chart has no data to display.
|
|
16
17
|
* @default ChartsNoDataOverlay
|
|
17
18
|
*/
|
|
18
|
-
noDataOverlay?: React.ElementType<CommonOverlayProps>;
|
|
19
|
+
noDataOverlay?: React.ElementType<CommonOverlayProps & NoDataOverlayPropsOverrides>;
|
|
19
20
|
}
|
|
20
21
|
export interface ChartsOverlaySlotProps {
|
|
21
|
-
loadingOverlay?: SlotComponentPropsFromProps<CommonOverlayProps,
|
|
22
|
-
noDataOverlay?: SlotComponentPropsFromProps<CommonOverlayProps,
|
|
22
|
+
loadingOverlay?: SlotComponentPropsFromProps<CommonOverlayProps, LoadingOverlayPropsOverrides, {}>;
|
|
23
|
+
noDataOverlay?: SlotComponentPropsFromProps<CommonOverlayProps, NoDataOverlayPropsOverrides, {}>;
|
|
23
24
|
}
|
|
24
25
|
export interface ChartsOverlayProps {
|
|
25
26
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
3
3
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
4
|
+
import type { LoadingOverlayPropsOverrides, NoDataOverlayPropsOverrides } from "../models/chartsSlotsComponentsProps.js";
|
|
4
5
|
export declare function useNoData(): boolean;
|
|
5
6
|
export type CommonOverlayProps = React.SVGAttributes<SVGTextElement> & {
|
|
6
7
|
sx?: SxProps<Theme>;
|
|
@@ -10,16 +11,16 @@ export interface ChartsOverlaySlots {
|
|
|
10
11
|
* Overlay component rendered when the chart is in a loading state.
|
|
11
12
|
* @default ChartsLoadingOverlay
|
|
12
13
|
*/
|
|
13
|
-
loadingOverlay?: React.ElementType<CommonOverlayProps>;
|
|
14
|
+
loadingOverlay?: React.ElementType<CommonOverlayProps & LoadingOverlayPropsOverrides>;
|
|
14
15
|
/**
|
|
15
16
|
* Overlay component rendered when the chart has no data to display.
|
|
16
17
|
* @default ChartsNoDataOverlay
|
|
17
18
|
*/
|
|
18
|
-
noDataOverlay?: React.ElementType<CommonOverlayProps>;
|
|
19
|
+
noDataOverlay?: React.ElementType<CommonOverlayProps & NoDataOverlayPropsOverrides>;
|
|
19
20
|
}
|
|
20
21
|
export interface ChartsOverlaySlotProps {
|
|
21
|
-
loadingOverlay?: SlotComponentPropsFromProps<CommonOverlayProps,
|
|
22
|
-
noDataOverlay?: SlotComponentPropsFromProps<CommonOverlayProps,
|
|
22
|
+
loadingOverlay?: SlotComponentPropsFromProps<CommonOverlayProps, LoadingOverlayPropsOverrides, {}>;
|
|
23
|
+
noDataOverlay?: SlotComponentPropsFromProps<CommonOverlayProps, NoDataOverlayPropsOverrides, {}>;
|
|
23
24
|
}
|
|
24
25
|
export interface ChartsOverlayProps {
|
|
25
26
|
/**
|
|
@@ -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"));
|
|
@@ -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";
|
|
@@ -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,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadiusAxis } from "./ChartsRadiusAxis.mjs";
|
|
2
|
+
export { ChartsRadiusAxis } from "./ChartsRadiusAxis.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radius axis is now stable, import `ChartsRadiusAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadiusAxis: typeof ChartsRadiusAxis;
|
|
2
7
|
export { chartsRadialAxisClasses } from "./chartsRadiusAxisClasses.mjs";
|
|
3
8
|
export type { ChartsRadialAxisClasses, ChartsRadialAxisClassKey } from "./chartsRadiusAxisClasses.mjs";
|
|
4
9
|
export { type ChartsRadiusAxisProps } from "../models/axis.mjs";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadiusAxis } from "./ChartsRadiusAxis.js";
|
|
2
|
+
export { ChartsRadiusAxis } from "./ChartsRadiusAxis.js";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radius axis is now stable, import `ChartsRadiusAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRadiusAxis: typeof ChartsRadiusAxis;
|
|
2
7
|
export { chartsRadialAxisClasses } from "./chartsRadiusAxisClasses.js";
|
|
3
8
|
export type { ChartsRadialAxisClasses, ChartsRadialAxisClassKey } from "./chartsRadiusAxisClasses.js";
|
|
4
9
|
export { type ChartsRadiusAxisProps } from "../models/axis.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, "ChartsRadiusAxis", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
9
|
return _ChartsRadiusAxis.ChartsRadiusAxis;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
exports.Unstable_ChartsRadiusAxis = void 0;
|
|
12
13
|
Object.defineProperty(exports, "chartsRadialAxisClasses", {
|
|
13
14
|
enumerable: true,
|
|
14
15
|
get: function () {
|
|
@@ -16,4 +17,11 @@ Object.defineProperty(exports, "chartsRadialAxisClasses", {
|
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
var _ChartsRadiusAxis = require("./ChartsRadiusAxis");
|
|
19
|
-
var _chartsRadiusAxisClasses = require("./chartsRadiusAxisClasses");
|
|
20
|
+
var _chartsRadiusAxisClasses = require("./chartsRadiusAxisClasses");
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated radius axis is now stable, import `ChartsRadiusAxis` instead
|
|
23
|
+
*/
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
|
+
const Unstable_ChartsRadiusAxis = exports.Unstable_ChartsRadiusAxis = _ChartsRadiusAxis.ChartsRadiusAxis;
|
|
26
|
+
|
|
27
|
+
// Re-export types
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRadiusAxis } from "./ChartsRadiusAxis.mjs";
|
|
2
|
+
export { ChartsRadiusAxis } from "./ChartsRadiusAxis.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated radius axis is now stable, import `ChartsRadiusAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const Unstable_ChartsRadiusAxis = ChartsRadiusAxis;
|
|
2
8
|
export { chartsRadialAxisClasses } from "./chartsRadiusAxisClasses.mjs";
|
|
3
9
|
|
|
4
10
|
// Re-export types
|
|
@@ -76,7 +76,9 @@ function ChartsXReferenceLine(props) {
|
|
|
76
76
|
} = props;
|
|
77
77
|
const {
|
|
78
78
|
top,
|
|
79
|
-
height
|
|
79
|
+
height,
|
|
80
|
+
left,
|
|
81
|
+
width
|
|
80
82
|
} = (0, _hooks.useDrawingArea)();
|
|
81
83
|
const xAxisScale = (0, _hooks.useXScale)(axisId);
|
|
82
84
|
const xPosition = xAxisScale(x);
|
|
@@ -86,6 +88,9 @@ function ChartsXReferenceLine(props) {
|
|
|
86
88
|
}
|
|
87
89
|
return null;
|
|
88
90
|
}
|
|
91
|
+
if (xPosition < left || xPosition > left + width) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
89
94
|
const d = `M ${xPosition} ${top} l 0 ${height}`;
|
|
90
95
|
const classes = getXReferenceLineClasses(inClasses);
|
|
91
96
|
const textParams = (0, _extends2.default)({
|
|
@@ -69,7 +69,9 @@ function ChartsXReferenceLine(props) {
|
|
|
69
69
|
} = props;
|
|
70
70
|
const {
|
|
71
71
|
top,
|
|
72
|
-
height
|
|
72
|
+
height,
|
|
73
|
+
left,
|
|
74
|
+
width
|
|
73
75
|
} = useDrawingArea();
|
|
74
76
|
const xAxisScale = useXScale(axisId);
|
|
75
77
|
const xPosition = xAxisScale(x);
|
|
@@ -79,6 +81,9 @@ function ChartsXReferenceLine(props) {
|
|
|
79
81
|
}
|
|
80
82
|
return null;
|
|
81
83
|
}
|
|
84
|
+
if (xPosition < left || xPosition > left + width) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
82
87
|
const d = `M ${xPosition} ${top} l 0 ${height}`;
|
|
83
88
|
const classes = getXReferenceLineClasses(inClasses);
|
|
84
89
|
const textParams = _extends({
|
|
@@ -75,6 +75,8 @@ function ChartsYReferenceLine(props) {
|
|
|
75
75
|
axisId
|
|
76
76
|
} = props;
|
|
77
77
|
const {
|
|
78
|
+
top,
|
|
79
|
+
height,
|
|
78
80
|
left,
|
|
79
81
|
width
|
|
80
82
|
} = (0, _hooks.useDrawingArea)();
|
|
@@ -86,6 +88,9 @@ function ChartsYReferenceLine(props) {
|
|
|
86
88
|
}
|
|
87
89
|
return null;
|
|
88
90
|
}
|
|
91
|
+
if (yPosition < top || yPosition > top + height) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
89
94
|
const d = `M ${left} ${yPosition} l ${width} 0`;
|
|
90
95
|
const classes = getYReferenceLineClasses(inClasses);
|
|
91
96
|
const textParams = (0, _extends2.default)({
|
|
@@ -68,6 +68,8 @@ function ChartsYReferenceLine(props) {
|
|
|
68
68
|
axisId
|
|
69
69
|
} = props;
|
|
70
70
|
const {
|
|
71
|
+
top,
|
|
72
|
+
height,
|
|
71
73
|
left,
|
|
72
74
|
width
|
|
73
75
|
} = useDrawingArea();
|
|
@@ -79,6 +81,9 @@ function ChartsYReferenceLine(props) {
|
|
|
79
81
|
}
|
|
80
82
|
return null;
|
|
81
83
|
}
|
|
84
|
+
if (yPosition < top || yPosition > top + height) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
82
87
|
const d = `M ${left} ${yPosition} l ${width} 0`;
|
|
83
88
|
const classes = getYReferenceLineClasses(inClasses);
|
|
84
89
|
const textParams = _extends({
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
|
|
2
|
+
export { ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated rotation axis is now stable, import `ChartsRotationAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRotationAxis: typeof ChartsRotationAxis;
|
|
2
7
|
export { type ChartsRadialAxisClasses, type ChartsRadialAxisClassKey, chartsRadialAxisClasses } from "./chartsRotationAxisClasses.mjs";
|
|
3
8
|
export { type ChartsRotationAxisProps } from "../models/axis.mjs";
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRotationAxis } from "./ChartsRotationAxis.js";
|
|
2
|
+
export { ChartsRotationAxis } from "./ChartsRotationAxis.js";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated rotation axis is now stable, import `ChartsRotationAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const Unstable_ChartsRotationAxis: typeof ChartsRotationAxis;
|
|
2
7
|
export { type ChartsRadialAxisClasses, type ChartsRadialAxisClassKey, chartsRadialAxisClasses } from "./chartsRotationAxisClasses.js";
|
|
3
8
|
export { type ChartsRotationAxisProps } from "../models/axis.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, "ChartsRotationAxis", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
9
|
return _ChartsRotationAxis.ChartsRotationAxis;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
exports.Unstable_ChartsRotationAxis = void 0;
|
|
12
13
|
Object.defineProperty(exports, "chartsRadialAxisClasses", {
|
|
13
14
|
enumerable: true,
|
|
14
15
|
get: function () {
|
|
@@ -16,4 +17,11 @@ Object.defineProperty(exports, "chartsRadialAxisClasses", {
|
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
var _ChartsRotationAxis = require("./ChartsRotationAxis");
|
|
19
|
-
var _chartsRotationAxisClasses = require("./chartsRotationAxisClasses");
|
|
20
|
+
var _chartsRotationAxisClasses = require("./chartsRotationAxisClasses");
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated rotation axis is now stable, import `ChartsRotationAxis` instead
|
|
23
|
+
*/
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
|
+
const Unstable_ChartsRotationAxis = exports.Unstable_ChartsRotationAxis = _ChartsRotationAxis.ChartsRotationAxis;
|
|
26
|
+
|
|
27
|
+
// Re-export types
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
|
|
2
|
+
export { ChartsRotationAxis } from "./ChartsRotationAxis.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated rotation axis is now stable, import `ChartsRotationAxis` instead
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const Unstable_ChartsRotationAxis = ChartsRotationAxis;
|
|
2
8
|
export { chartsRadialAxisClasses } from "./chartsRotationAxisClasses.mjs";
|
|
3
9
|
|
|
4
10
|
// Re-export types
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { type ChartsTooltipProps } from "./ChartsTooltip.mjs";
|
|
2
2
|
import { type TriggerOptions } from "./utils.mjs";
|
|
3
|
+
import type { TooltipPropsOverrides } from "../models/chartsSlotsComponentsProps.mjs";
|
|
3
4
|
export interface ChartsTooltipSlots<T extends TriggerOptions = TriggerOptions> {
|
|
4
5
|
/**
|
|
5
6
|
* Custom component for the tooltip popper.
|
|
6
7
|
* @default ChartsTooltipRoot
|
|
7
8
|
*/
|
|
8
|
-
tooltip?: React.ElementType<ChartsTooltipProps<T
|
|
9
|
+
tooltip?: React.ElementType<ChartsTooltipProps<T> & TooltipPropsOverrides>;
|
|
9
10
|
}
|
|
10
11
|
export interface ChartsTooltipSlotProps<T extends TriggerOptions = TriggerOptions> {
|
|
11
12
|
/**
|
|
12
13
|
* Custom component for the tooltip popper.
|
|
13
14
|
* @default ChartsTooltipRoot
|
|
14
15
|
*/
|
|
15
|
-
tooltip?: Partial<ChartsTooltipProps<T
|
|
16
|
+
tooltip?: Partial<ChartsTooltipProps<T>> & TooltipPropsOverrides;
|
|
16
17
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { type ChartsTooltipProps } from "./ChartsTooltip.js";
|
|
2
2
|
import { type TriggerOptions } from "./utils.js";
|
|
3
|
+
import type { TooltipPropsOverrides } from "../models/chartsSlotsComponentsProps.js";
|
|
3
4
|
export interface ChartsTooltipSlots<T extends TriggerOptions = TriggerOptions> {
|
|
4
5
|
/**
|
|
5
6
|
* Custom component for the tooltip popper.
|
|
6
7
|
* @default ChartsTooltipRoot
|
|
7
8
|
*/
|
|
8
|
-
tooltip?: React.ElementType<ChartsTooltipProps<T
|
|
9
|
+
tooltip?: React.ElementType<ChartsTooltipProps<T> & TooltipPropsOverrides>;
|
|
9
10
|
}
|
|
10
11
|
export interface ChartsTooltipSlotProps<T extends TriggerOptions = TriggerOptions> {
|
|
11
12
|
/**
|
|
12
13
|
* Custom component for the tooltip popper.
|
|
13
14
|
* @default ChartsTooltipRoot
|
|
14
15
|
*/
|
|
15
|
-
tooltip?: Partial<ChartsTooltipProps<T
|
|
16
|
+
tooltip?: Partial<ChartsTooltipProps<T>> & TooltipPropsOverrides;
|
|
16
17
|
}
|
|
@@ -16,6 +16,7 @@ var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
|
16
16
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
17
|
var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
|
|
18
18
|
var _useLazyRef = _interopRequireDefault(require("@mui/utils/useLazyRef"));
|
|
19
|
+
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
19
20
|
var _styles = require("@mui/material/styles");
|
|
20
21
|
var _Popper = _interopRequireDefault(require("@mui/material/Popper"));
|
|
21
22
|
var _NoSsr = _interopRequireDefault(require("@mui/material/NoSsr"));
|
|
@@ -109,7 +110,7 @@ function ChartsTooltipContainer(inProps) {
|
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
const chartsLayerContainerRef = (0, _hooks.useChartsLayerContainerRef)();
|
|
112
|
-
const
|
|
113
|
+
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
113
114
|
const classes = (0, _chartsTooltipClasses.useUtilityClasses)(propClasses);
|
|
114
115
|
const pointerType = store.use(_useChartInteraction.selectorChartsPointerType);
|
|
115
116
|
const isFineMainPointer = (0, _utils.useIsFineMainPointer)();
|
|
@@ -154,6 +155,12 @@ function ChartsTooltipContainer(inProps) {
|
|
|
154
155
|
pointerUpdate.clear();
|
|
155
156
|
};
|
|
156
157
|
}, [chartsLayerContainerRef, positionRef, isTooltipNodeAnchored]);
|
|
158
|
+
(0, _useEnhancedEffect.default)(() => {
|
|
159
|
+
if (!isTooltipNodeAnchored) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
popperRef.current?.update();
|
|
163
|
+
}, [isTooltipNodeAnchored, itemPosition?.x, itemPosition?.y]);
|
|
157
164
|
const pointerAnchorEl = React.useMemo(() => ({
|
|
158
165
|
getBoundingClientRect: () => ({
|
|
159
166
|
x: positionRef.current.x,
|
|
@@ -198,7 +205,7 @@ function ChartsTooltipContainer(inProps) {
|
|
|
198
205
|
}
|
|
199
206
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
200
207
|
children: [chartsLayerContainerRef.current && /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
201
|
-
ref:
|
|
208
|
+
ref: setAnchorEl,
|
|
202
209
|
style: {
|
|
203
210
|
position: 'absolute',
|
|
204
211
|
display: 'hidden',
|
|
@@ -219,9 +226,9 @@ function ChartsTooltipContainer(inProps) {
|
|
|
219
226
|
open: isOpen,
|
|
220
227
|
placement: other.placement ?? position ?? (!isTooltipNodeAnchored && isMouse ? 'right-start' : 'top'),
|
|
221
228
|
popperRef: popperRef,
|
|
222
|
-
anchorEl: itemPosition ?
|
|
229
|
+
anchorEl: itemPosition ? anchorEl : pointerAnchorEl,
|
|
223
230
|
modifiers: modifiers,
|
|
224
|
-
container: chartsLayerContainerRef.current,
|
|
231
|
+
container: other.container ?? chartsLayerContainerRef.current,
|
|
225
232
|
popperOptions: (0, _extends2.default)({}, other.popperOptions, {
|
|
226
233
|
strategy: 'fixed'
|
|
227
234
|
})
|
|
@@ -9,6 +9,7 @@ import * as ReactDOM from 'react-dom';
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import HTMLElementType from '@mui/utils/HTMLElementType';
|
|
11
11
|
import useLazyRef from '@mui/utils/useLazyRef';
|
|
12
|
+
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
12
13
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
13
14
|
import Popper from '@mui/material/Popper';
|
|
14
15
|
import NoSsr from '@mui/material/NoSsr';
|
|
@@ -102,7 +103,7 @@ function ChartsTooltipContainer(inProps) {
|
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
const chartsLayerContainerRef = useChartsLayerContainerRef();
|
|
105
|
-
const
|
|
106
|
+
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
106
107
|
const classes = useUtilityClasses(propClasses);
|
|
107
108
|
const pointerType = store.use(selectorChartsPointerType);
|
|
108
109
|
const isFineMainPointer = useIsFineMainPointer();
|
|
@@ -147,6 +148,12 @@ function ChartsTooltipContainer(inProps) {
|
|
|
147
148
|
pointerUpdate.clear();
|
|
148
149
|
};
|
|
149
150
|
}, [chartsLayerContainerRef, positionRef, isTooltipNodeAnchored]);
|
|
151
|
+
useEnhancedEffect(() => {
|
|
152
|
+
if (!isTooltipNodeAnchored) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
popperRef.current?.update();
|
|
156
|
+
}, [isTooltipNodeAnchored, itemPosition?.x, itemPosition?.y]);
|
|
150
157
|
const pointerAnchorEl = React.useMemo(() => ({
|
|
151
158
|
getBoundingClientRect: () => ({
|
|
152
159
|
x: positionRef.current.x,
|
|
@@ -191,7 +198,7 @@ function ChartsTooltipContainer(inProps) {
|
|
|
191
198
|
}
|
|
192
199
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
193
200
|
children: [chartsLayerContainerRef.current && /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/_jsx("div", {
|
|
194
|
-
ref:
|
|
201
|
+
ref: setAnchorEl,
|
|
195
202
|
style: {
|
|
196
203
|
position: 'absolute',
|
|
197
204
|
display: 'hidden',
|
|
@@ -212,9 +219,9 @@ function ChartsTooltipContainer(inProps) {
|
|
|
212
219
|
open: isOpen,
|
|
213
220
|
placement: other.placement ?? position ?? (!isTooltipNodeAnchored && isMouse ? 'right-start' : 'top'),
|
|
214
221
|
popperRef: popperRef,
|
|
215
|
-
anchorEl: itemPosition ?
|
|
222
|
+
anchorEl: itemPosition ? anchorEl : pointerAnchorEl,
|
|
216
223
|
modifiers: modifiers,
|
|
217
|
-
container: chartsLayerContainerRef.current,
|
|
224
|
+
container: other.container ?? chartsLayerContainerRef.current,
|
|
218
225
|
popperOptions: _extends({}, other.popperOptions, {
|
|
219
226
|
strategy: 'fixed'
|
|
220
227
|
})
|