@mui/x-charts 8.0.0-alpha.1 → 8.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/BarChart.js +0 -4
- package/BarChart/BarLabel/BarLabel.d.ts +298 -298
- package/CHANGELOG.md +330 -7
- package/ChartContainer/ChartContainer.d.ts +24 -0
- package/ChartContainer/ChartContainer.js +26 -10
- package/ChartContainer/useChartContainerProps.d.ts +0 -1
- package/ChartContainer/useChartContainerProps.js +3 -4
- package/ChartsAxis/axisClasses.js +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +3 -3
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +3 -3
- package/ChartsLegend/chartsLegendClasses.js +2 -1
- package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
- package/ChartsSurface/ChartsSurface.d.ts +14 -0
- package/ChartsSurface/ChartsSurface.js +38 -6
- package/ChartsTooltip/ChartsTooltip.js +2 -20
- package/ChartsTooltip/ChartsTooltipContainer.js +5 -23
- package/ChartsTooltip/ChartsTooltipTable.js +2 -2
- package/ChartsTooltip/useAxisTooltip.js +3 -3
- package/ChartsTooltip/useItemTooltip.d.ts +2 -3
- package/ChartsTooltip/useItemTooltip.js +3 -3
- package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +3 -3
- package/ChartsXAxis/ChartsXAxis.js +3 -17
- package/ChartsYAxis/ChartsYAxis.js +2 -17
- package/Gauge/Gauge.d.ts +1 -1
- package/Gauge/GaugeContainer.d.ts +2 -2
- package/Gauge/GaugeContainer.js +14 -47
- package/LineChart/CircleMarkElement.js +3 -3
- package/LineChart/LineChart.js +0 -4
- package/LineChart/LineHighlightPlot.js +3 -3
- package/LineChart/MarkElement.js +3 -3
- package/PieChart/PieArc.js +11 -5
- package/PieChart/PieArcPlot.js +9 -13
- package/PieChart/PieChart.js +0 -4
- package/ScatterChart/Scatter.js +3 -3
- package/ScatterChart/ScatterChart.js +0 -4
- package/SparkLineChart/SparkLineChart.js +0 -4
- package/context/CartesianProvider/defaultizeAxis.d.ts +9 -11
- package/context/ChartDataProvider/ChartDataProvider.d.ts +27 -0
- package/context/ChartDataProvider/ChartDataProvider.js +38 -18
- package/context/ChartDataProvider/useChartDataProviderProps.d.ts +18 -22
- package/context/ChartDataProvider/useDefaultizeAxis.d.ts +9 -11
- package/context/ChartProvider/ChartContext.d.ts +6 -0
- package/context/ChartProvider/ChartContext.js +8 -0
- package/context/ChartProvider/ChartProvider.d.ts +4 -0
- package/context/ChartProvider/ChartProvider.js +19 -0
- package/context/ChartProvider/ChartProvider.types.d.ts +24 -0
- package/context/ChartProvider/index.d.ts +3 -0
- package/context/ChartProvider/index.js +3 -0
- package/context/ChartProvider/useChartContext.d.ts +3 -0
- package/context/ChartProvider/useChartContext.js +11 -0
- package/context/DrawingAreaProvider/DrawingAreaContext.d.ts +1 -6
- package/context/DrawingAreaProvider/DrawingAreaContext.js +0 -1
- package/context/InteractionSelectors.d.ts +72 -49
- package/context/SizeProvider/Size.types.d.ts +2 -2
- package/context/SizeProvider/SizeContext.js +3 -1
- package/context/SizeProvider/useChartContainerDimensions.d.ts +1 -1
- package/context/SizeProvider/useChartContainerDimensions.js +5 -1
- package/hooks/useAxisEvents.js +1 -1
- package/hooks/useChartId.js +5 -6
- package/hooks/useInteractionItemProps.js +4 -2
- package/hooks/useSvgRef.d.ts +1 -1
- package/hooks/useSvgRef.js +4 -8
- package/index.js +1 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +2 -5
- package/internals/defaultizeColor.d.ts +1 -1
- package/internals/index.d.ts +1 -3
- package/internals/index.js +1 -3
- package/internals/plugins/allPlugins.d.ts +1 -0
- package/internals/plugins/allPlugins.js +3 -0
- package/internals/plugins/corePlugins/corePlugins.d.ts +10 -0
- package/internals/plugins/corePlugins/corePlugins.js +7 -0
- package/internals/plugins/corePlugins/index.d.ts +2 -0
- package/internals/plugins/corePlugins/index.js +1 -0
- package/internals/plugins/corePlugins/useChartId/index.d.ts +2 -0
- package/internals/plugins/corePlugins/useChartId/index.js +1 -0
- package/internals/plugins/corePlugins/useChartId/useChartId.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartId/useChartId.js +32 -0
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +36 -0
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +9 -0
- package/internals/plugins/corePlugins/useChartId/useChartId.types.d.ts +20 -0
- package/internals/plugins/corePlugins/useChartId/useChartId.utils.d.ts +1 -0
- package/internals/plugins/corePlugins/useChartId/useChartId.utils.js +5 -0
- package/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartInteraction/index.js +2 -0
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +73 -0
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +376 -0
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +10 -0
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.d.ts +57 -0
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.js +1 -0
- package/internals/plugins/models/chart.d.ts +14 -0
- package/internals/plugins/models/chart.js +1 -0
- package/internals/plugins/models/helpers.d.ts +7 -0
- package/internals/plugins/models/helpers.js +1 -0
- package/internals/plugins/models/index.d.ts +3 -35
- package/internals/plugins/models/index.js +3 -1
- package/internals/plugins/models/plugin.d.ts +75 -0
- package/internals/plugins/models/plugin.js +1 -0
- package/internals/plugins/utils/ChartStore.d.ts +9 -8
- package/internals/plugins/utils/ChartStore.js +0 -2
- package/internals/plugins/utils/selectors.d.ts +2 -2
- package/internals/store/useCharts.d.ts +14 -0
- package/internals/store/useCharts.js +72 -0
- package/internals/store/useCharts.types.d.ts +5 -0
- package/internals/store/useCharts.types.js +1 -0
- package/internals/store/useSelector.d.ts +4 -0
- package/internals/store/useStore.d.ts +3 -0
- package/{modern/internals → internals/store}/useStore.js +6 -6
- package/models/axis.d.ts +1 -13
- package/modern/BarChart/BarChart.js +0 -4
- package/modern/ChartContainer/ChartContainer.js +26 -10
- package/modern/ChartContainer/useChartContainerProps.js +3 -4
- package/modern/ChartsAxis/axisClasses.js +2 -1
- package/modern/ChartsAxisHighlight/ChartsXAxisHighlight.js +3 -3
- package/modern/ChartsAxisHighlight/ChartsYAxisHighlight.js +3 -3
- package/modern/ChartsLegend/chartsLegendClasses.js +2 -1
- package/modern/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
- package/modern/ChartsSurface/ChartsSurface.js +38 -6
- package/modern/ChartsTooltip/ChartsTooltip.js +2 -20
- package/modern/ChartsTooltip/ChartsTooltipContainer.js +5 -23
- package/modern/ChartsTooltip/ChartsTooltipTable.js +2 -2
- package/modern/ChartsTooltip/useAxisTooltip.js +3 -3
- package/modern/ChartsTooltip/useItemTooltip.js +3 -3
- package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +3 -3
- package/modern/ChartsXAxis/ChartsXAxis.js +3 -17
- package/modern/ChartsYAxis/ChartsYAxis.js +2 -17
- package/modern/Gauge/GaugeContainer.js +14 -47
- package/modern/LineChart/CircleMarkElement.js +3 -3
- package/modern/LineChart/LineChart.js +0 -4
- package/modern/LineChart/LineHighlightPlot.js +3 -3
- package/modern/LineChart/MarkElement.js +3 -3
- package/modern/PieChart/PieArc.js +11 -5
- package/modern/PieChart/PieArcPlot.js +9 -13
- package/modern/PieChart/PieChart.js +0 -4
- package/modern/ScatterChart/Scatter.js +3 -3
- package/modern/ScatterChart/ScatterChart.js +0 -4
- package/modern/SparkLineChart/SparkLineChart.js +0 -4
- package/modern/context/ChartDataProvider/ChartDataProvider.js +38 -18
- package/modern/context/ChartProvider/ChartContext.js +8 -0
- package/modern/context/ChartProvider/ChartProvider.js +19 -0
- package/modern/context/ChartProvider/ChartProvider.types.js +1 -0
- package/modern/context/ChartProvider/index.js +3 -0
- package/modern/context/ChartProvider/useChartContext.js +11 -0
- package/modern/context/DrawingAreaProvider/DrawingAreaContext.js +0 -1
- package/modern/context/SizeProvider/SizeContext.js +3 -1
- package/modern/context/SizeProvider/useChartContainerDimensions.js +5 -1
- package/modern/hooks/useAxisEvents.js +1 -1
- package/modern/hooks/useChartId.js +5 -6
- package/modern/hooks/useInteractionItemProps.js +4 -2
- package/modern/hooks/useSvgRef.js +4 -8
- package/modern/index.js +1 -1
- package/modern/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +2 -5
- package/modern/internals/index.js +1 -3
- package/modern/internals/plugins/allPlugins.js +3 -0
- package/modern/internals/plugins/corePlugins/corePlugins.js +7 -0
- package/modern/internals/plugins/corePlugins/index.js +1 -0
- package/modern/internals/plugins/corePlugins/useChartId/index.js +1 -0
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.js +32 -0
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +9 -0
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.types.js +1 -0
- package/modern/internals/plugins/corePlugins/useChartId/useChartId.utils.js +5 -0
- package/modern/internals/plugins/featurePlugins/useChartInteraction/index.js +2 -0
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +73 -0
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +10 -0
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.js +1 -0
- package/modern/internals/plugins/models/chart.js +1 -0
- package/modern/internals/plugins/models/helpers.js +1 -0
- package/modern/internals/plugins/models/index.js +3 -1
- package/modern/internals/plugins/models/plugin.js +1 -0
- package/modern/internals/plugins/utils/ChartStore.js +0 -2
- package/modern/internals/store/useCharts.js +72 -0
- package/modern/internals/store/useCharts.types.js +1 -0
- package/{internals → modern/internals/store}/useStore.js +6 -6
- package/node/BarChart/BarChart.js +0 -4
- package/node/ChartContainer/ChartContainer.js +26 -10
- package/node/ChartContainer/useChartContainerProps.js +3 -4
- package/node/ChartsAxis/axisClasses.js +5 -3
- package/node/ChartsAxisHighlight/ChartsXAxisHighlight.js +4 -4
- package/node/ChartsAxisHighlight/ChartsYAxisHighlight.js +4 -4
- package/node/ChartsLegend/chartsLegendClasses.js +5 -3
- package/node/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
- package/node/ChartsSurface/ChartsSurface.js +37 -5
- package/node/ChartsTooltip/ChartsTooltip.js +2 -20
- package/node/ChartsTooltip/ChartsTooltipContainer.js +6 -24
- package/node/ChartsTooltip/ChartsTooltipTable.js +3 -3
- package/node/ChartsTooltip/useAxisTooltip.js +4 -4
- package/node/ChartsTooltip/useItemTooltip.js +4 -4
- package/node/ChartsVoronoiHandler/ChartsVoronoiHandler.js +3 -3
- package/node/ChartsXAxis/ChartsXAxis.js +3 -17
- package/node/ChartsYAxis/ChartsYAxis.js +2 -17
- package/node/Gauge/GaugeContainer.js +13 -46
- package/node/LineChart/CircleMarkElement.js +4 -4
- package/node/LineChart/LineChart.js +0 -4
- package/node/LineChart/LineHighlightPlot.js +4 -4
- package/node/LineChart/MarkElement.js +4 -4
- package/node/PieChart/PieArc.js +11 -5
- package/node/PieChart/PieArcPlot.js +9 -13
- package/node/PieChart/PieChart.js +0 -4
- package/node/ScatterChart/Scatter.js +4 -4
- package/node/ScatterChart/ScatterChart.js +0 -4
- package/node/SparkLineChart/SparkLineChart.js +0 -4
- package/node/context/ChartDataProvider/ChartDataProvider.js +38 -18
- package/node/context/ChartProvider/ChartContext.js +15 -0
- package/node/context/ChartProvider/ChartProvider.js +24 -0
- package/node/context/ChartProvider/index.js +38 -0
- package/node/context/ChartProvider/useChartContext.js +18 -0
- package/node/context/DrawingAreaProvider/DrawingAreaContext.js +0 -1
- package/node/context/SizeProvider/SizeContext.js +3 -1
- package/node/context/SizeProvider/useChartContainerDimensions.js +5 -1
- package/node/hooks/useAxisEvents.js +1 -1
- package/node/hooks/useChartId.js +5 -7
- package/node/hooks/useInteractionItemProps.js +4 -2
- package/node/hooks/useSvgRef.js +4 -9
- package/node/index.js +1 -1
- package/node/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +1 -4
- package/node/internals/index.js +4 -28
- package/node/internals/plugins/allPlugins.js +10 -0
- package/node/internals/plugins/corePlugins/corePlugins.js +12 -0
- package/node/internals/plugins/corePlugins/index.js +12 -0
- package/node/internals/plugins/corePlugins/useChartId/index.js +12 -0
- package/node/internals/plugins/corePlugins/useChartId/useChartId.js +41 -0
- package/node/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +15 -0
- package/node/internals/plugins/corePlugins/useChartId/useChartId.types.js +5 -0
- package/node/internals/plugins/corePlugins/useChartId/useChartId.utils.js +12 -0
- package/node/internals/plugins/featurePlugins/useChartInteraction/index.js +27 -0
- package/node/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +81 -0
- package/node/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +16 -0
- package/node/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.js +5 -0
- package/node/internals/plugins/models/chart.js +5 -0
- package/node/internals/plugins/models/helpers.js +5 -0
- package/node/internals/plugins/models/index.js +33 -0
- package/node/internals/plugins/models/plugin.js +5 -0
- package/node/internals/plugins/utils/ChartStore.js +0 -2
- package/node/internals/store/useCharts.js +80 -0
- package/node/internals/store/useCharts.types.js +5 -0
- package/node/internals/{useStore.js → store/useStore.js} +6 -7
- package/package.json +4 -4
- package/ChartContainer/ResizableContainer.d.ts +0 -22
- package/ChartContainer/ResizableContainer.js +0 -60
- package/context/InteractionProvider.d.ts +0 -7
- package/context/InteractionProvider.js +0 -22
- package/context/SvgRefProvider/SvgRef.types.d.ts +0 -8
- package/context/SvgRefProvider/SvgRefContext.d.ts +0 -4
- package/context/SvgRefProvider/SvgRefContext.js +0 -17
- package/context/SvgRefProvider/SvgRefProvider.d.ts +0 -3
- package/context/SvgRefProvider/SvgRefProvider.js +0 -24
- package/context/SvgRefProvider/index.d.ts +0 -4
- package/context/SvgRefProvider/index.js +0 -4
- package/context/SvgRefProvider/useSurfaceRef.d.ts +0 -2
- package/context/SvgRefProvider/useSurfaceRef.js +0 -14
- package/internals/plugins/utils/ChartsStore.d.ts +0 -12
- package/internals/plugins/utils/ChartsStore.js +0 -26
- package/internals/useCharts.d.ts +0 -6
- package/internals/useCharts.js +0 -29
- package/internals/useSelector.d.ts +0 -4
- package/internals/useStore.d.ts +0 -2
- package/modern/ChartContainer/ResizableContainer.js +0 -60
- package/modern/context/InteractionProvider.js +0 -22
- package/modern/context/SvgRefProvider/SvgRefContext.js +0 -17
- package/modern/context/SvgRefProvider/SvgRefProvider.js +0 -24
- package/modern/context/SvgRefProvider/index.js +0 -4
- package/modern/context/SvgRefProvider/useSurfaceRef.js +0 -14
- package/modern/internals/plugins/utils/ChartsStore.js +0 -26
- package/modern/internals/useCharts.js +0 -29
- package/node/ChartContainer/ResizableContainer.js +0 -68
- package/node/context/InteractionProvider.js +0 -28
- package/node/context/SvgRefProvider/SvgRefContext.js +0 -23
- package/node/context/SvgRefProvider/SvgRefProvider.js +0 -31
- package/node/context/SvgRefProvider/index.js +0 -49
- package/node/context/SvgRefProvider/useSurfaceRef.js +0 -20
- package/node/internals/plugins/utils/ChartsStore.js +0 -33
- package/node/internals/useCharts.js +0 -36
- /package/context/{SvgRefProvider/SvgRef.types.js → ChartProvider/ChartProvider.types.js} +0 -0
- /package/{modern/context/SvgRefProvider/SvgRef.types.js → internals/plugins/corePlugins/useChartId/useChartId.types.js} +0 -0
- /package/internals/{useSelector.js → store/useSelector.js} +0 -0
- /package/modern/internals/{useSelector.js → store/useSelector.js} +0 -0
- /package/node/context/{SvgRefProvider/SvgRef.types.js → ChartProvider/ChartProvider.types.js} +0 -0
- /package/node/internals/{useSelector.js → store/useSelector.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.3",
|
|
4
4
|
"description": "The community edition of the Charts components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"prop-types": "^15.8.1",
|
|
38
38
|
"reselect": "^5.1.1",
|
|
39
|
-
"use-sync-external-store": "^1.
|
|
40
|
-
"@mui/x-charts-vendor": "8.0.0-alpha.
|
|
41
|
-
"@mui/x-internals": "8.0.0-alpha.
|
|
39
|
+
"use-sync-external-store": "^1.2.2",
|
|
40
|
+
"@mui/x-charts-vendor": "8.0.0-alpha.3",
|
|
41
|
+
"@mui/x-internals": "8.0.0-alpha.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@emotion/react": "^11.9.0",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { SizeContextState } from '../context/SizeProvider';
|
|
3
|
-
/**
|
|
4
|
-
* Wrapping div that take the shape of its parent.
|
|
5
|
-
*
|
|
6
|
-
* @ignore - do not document.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ResizableContainerRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
9
|
-
ownerState: Partial<Pick<SizeContextState, "width" | "height">>;
|
|
10
|
-
}, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement>>, {}>;
|
|
11
|
-
/**
|
|
12
|
-
* Wrapping div that take the shape of its parent.
|
|
13
|
-
*
|
|
14
|
-
* @ignore - do not document.
|
|
15
|
-
*/
|
|
16
|
-
declare function ResizableContainer(props: {
|
|
17
|
-
children: React.ReactNode;
|
|
18
|
-
}): React.JSX.Element;
|
|
19
|
-
declare namespace ResizableContainer {
|
|
20
|
-
var propTypes: any;
|
|
21
|
-
}
|
|
22
|
-
export { ResizableContainer };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import { styled } from '@mui/material/styles';
|
|
5
|
-
import { useSize } from "../context/SizeProvider/index.js";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
/**
|
|
8
|
-
* Wrapping div that take the shape of its parent.
|
|
9
|
-
*
|
|
10
|
-
* @ignore - do not document.
|
|
11
|
-
*/
|
|
12
|
-
export const ResizableContainerRoot = styled('div', {
|
|
13
|
-
name: 'MuiResponsiveChart',
|
|
14
|
-
slot: 'Container'
|
|
15
|
-
})(({
|
|
16
|
-
ownerState
|
|
17
|
-
}) => ({
|
|
18
|
-
width: ownerState.width ?? '100%',
|
|
19
|
-
height: ownerState.height ?? '100%',
|
|
20
|
-
display: 'flex',
|
|
21
|
-
position: 'relative',
|
|
22
|
-
flexGrow: 1,
|
|
23
|
-
flexDirection: 'column',
|
|
24
|
-
alignItems: 'center',
|
|
25
|
-
justifyContent: 'center',
|
|
26
|
-
overflow: 'hidden',
|
|
27
|
-
'&>svg': {
|
|
28
|
-
width: '100%',
|
|
29
|
-
height: '100%'
|
|
30
|
-
}
|
|
31
|
-
}));
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Wrapping div that take the shape of its parent.
|
|
35
|
-
*
|
|
36
|
-
* @ignore - do not document.
|
|
37
|
-
*/
|
|
38
|
-
function ResizableContainer(props) {
|
|
39
|
-
const {
|
|
40
|
-
inHeight,
|
|
41
|
-
inWidth,
|
|
42
|
-
containerRef
|
|
43
|
-
} = useSize();
|
|
44
|
-
return /*#__PURE__*/_jsx(ResizableContainerRoot, _extends({}, props, {
|
|
45
|
-
ownerState: {
|
|
46
|
-
width: inWidth,
|
|
47
|
-
height: inHeight
|
|
48
|
-
},
|
|
49
|
-
ref: containerRef,
|
|
50
|
-
children: props.children
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
process.env.NODE_ENV !== "production" ? ResizableContainer.propTypes = {
|
|
54
|
-
// ----------------------------- Warning --------------------------------
|
|
55
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
57
|
-
// ----------------------------------------------------------------------
|
|
58
|
-
children: PropTypes.node
|
|
59
|
-
} : void 0;
|
|
60
|
-
export { ResizableContainer };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ChartStore } from '../internals/plugins/utils/ChartStore';
|
|
3
|
-
export declare const ChartsContext: React.Context<{
|
|
4
|
-
store: ChartStore;
|
|
5
|
-
} | null>;
|
|
6
|
-
declare function InteractionProvider(props: React.PropsWithChildren): React.JSX.Element;
|
|
7
|
-
export { InteractionProvider };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { useCharts } from "../internals/useCharts.js";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export const ChartsContext = /*#__PURE__*/React.createContext(null);
|
|
7
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
8
|
-
ChartsContext.displayName = 'ChartsContext';
|
|
9
|
-
}
|
|
10
|
-
function InteractionProvider(props) {
|
|
11
|
-
const {
|
|
12
|
-
children
|
|
13
|
-
} = props;
|
|
14
|
-
const {
|
|
15
|
-
contextValue
|
|
16
|
-
} = useCharts();
|
|
17
|
-
return /*#__PURE__*/_jsx(ChartsContext.Provider, {
|
|
18
|
-
value: contextValue,
|
|
19
|
-
children: children
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export { InteractionProvider };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
export const SvgRefContext = /*#__PURE__*/React.createContext({
|
|
5
|
-
isInitialized: false,
|
|
6
|
-
data: {
|
|
7
|
-
svgRef: {
|
|
8
|
-
current: null
|
|
9
|
-
},
|
|
10
|
-
surfaceRef: {
|
|
11
|
-
current: null
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16
|
-
SvgRefContext.displayName = 'SvgRefContext';
|
|
17
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import useForkRef from '@mui/utils/useForkRef';
|
|
5
|
-
import { SvgRefContext } from "./SvgRefContext.js";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export function SvgRefProvider(props) {
|
|
8
|
-
const {
|
|
9
|
-
children
|
|
10
|
-
} = props;
|
|
11
|
-
const svgRef = React.useRef(null);
|
|
12
|
-
const surfaceRef = useForkRef(svgRef);
|
|
13
|
-
const refValue = React.useMemo(() => ({
|
|
14
|
-
isInitialized: true,
|
|
15
|
-
data: {
|
|
16
|
-
svgRef,
|
|
17
|
-
surfaceRef
|
|
18
|
-
}
|
|
19
|
-
}), [svgRef, surfaceRef]);
|
|
20
|
-
return /*#__PURE__*/_jsx(SvgRefContext.Provider, {
|
|
21
|
-
value: refValue,
|
|
22
|
-
children: children
|
|
23
|
-
});
|
|
24
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { SvgRefContext } from "./SvgRefContext.js";
|
|
5
|
-
export function useSurfaceRef() {
|
|
6
|
-
const {
|
|
7
|
-
isInitialized,
|
|
8
|
-
data
|
|
9
|
-
} = React.useContext(SvgRefContext);
|
|
10
|
-
if (!isInitialized) {
|
|
11
|
-
throw new Error(['MUI X: Could not find the svg ref context.', 'It looks like you rendered your component outside of a ChartsContainer parent component.'].join('\n'));
|
|
12
|
-
}
|
|
13
|
-
return data.surfaceRef;
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ChartState } from '../models';
|
|
2
|
-
type Listener<T> = (value: T) => void;
|
|
3
|
-
export type StoreUpdater = (prevState: ChartState) => ChartState;
|
|
4
|
-
export declare class ChartsStore {
|
|
5
|
-
value: ChartState;
|
|
6
|
-
private listeners;
|
|
7
|
-
constructor(value: ChartState);
|
|
8
|
-
subscribe: (fn: Listener<ChartState>) => () => void;
|
|
9
|
-
getSnapshot: () => ChartState;
|
|
10
|
-
update: (updater: StoreUpdater) => void;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// For now this is fixed. Will need to support generic if we add plugins
|
|
2
|
-
|
|
3
|
-
export class ChartsStore {
|
|
4
|
-
constructor(value) {
|
|
5
|
-
this.value = void 0;
|
|
6
|
-
this.listeners = void 0;
|
|
7
|
-
this.subscribe = fn => {
|
|
8
|
-
this.listeners.add(fn);
|
|
9
|
-
return () => {
|
|
10
|
-
this.listeners.delete(fn);
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
this.getSnapshot = () => {
|
|
14
|
-
return this.value;
|
|
15
|
-
};
|
|
16
|
-
this.update = updater => {
|
|
17
|
-
const newState = updater(this.value);
|
|
18
|
-
if (newState !== this.value) {
|
|
19
|
-
this.value = newState;
|
|
20
|
-
this.listeners.forEach(l => l(newState));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
this.value = value;
|
|
24
|
-
this.listeners = new Set();
|
|
25
|
-
}
|
|
26
|
-
}
|
package/internals/useCharts.d.ts
DELETED
package/internals/useCharts.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ChartStore } from "./plugins/utils/ChartStore.js";
|
|
3
|
-
let globalId = 0;
|
|
4
|
-
export function useCharts() {
|
|
5
|
-
const storeRef = React.useRef(null);
|
|
6
|
-
if (storeRef.current == null) {
|
|
7
|
-
// eslint-disable-next-line react-compiler/react-compiler
|
|
8
|
-
globalId += 1;
|
|
9
|
-
const initialState = {
|
|
10
|
-
interaction: {
|
|
11
|
-
item: null,
|
|
12
|
-
axis: {
|
|
13
|
-
x: null,
|
|
14
|
-
y: null
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
cacheKey: {
|
|
18
|
-
id: globalId
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
storeRef.current = new ChartStore(initialState);
|
|
22
|
-
}
|
|
23
|
-
const contextValue = React.useMemo(() => ({
|
|
24
|
-
store: storeRef.current
|
|
25
|
-
}), []);
|
|
26
|
-
return {
|
|
27
|
-
contextValue
|
|
28
|
-
};
|
|
29
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ChartState } from './plugins/models';
|
|
2
|
-
import { ChartsSelector } from './plugins/utils/selectors';
|
|
3
|
-
import { ChartStore } from './plugins/utils/ChartStore';
|
|
4
|
-
export declare const useSelector: <TArgs, TValue>(store: ChartStore, selector: ChartsSelector<ChartState, TArgs, TValue>, args?: TArgs, equals?: (a: TValue, b: TValue) => boolean) => TValue;
|
package/internals/useStore.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import { styled } from '@mui/material/styles';
|
|
5
|
-
import { useSize } from "../context/SizeProvider/index.js";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
/**
|
|
8
|
-
* Wrapping div that take the shape of its parent.
|
|
9
|
-
*
|
|
10
|
-
* @ignore - do not document.
|
|
11
|
-
*/
|
|
12
|
-
export const ResizableContainerRoot = styled('div', {
|
|
13
|
-
name: 'MuiResponsiveChart',
|
|
14
|
-
slot: 'Container'
|
|
15
|
-
})(({
|
|
16
|
-
ownerState
|
|
17
|
-
}) => ({
|
|
18
|
-
width: ownerState.width ?? '100%',
|
|
19
|
-
height: ownerState.height ?? '100%',
|
|
20
|
-
display: 'flex',
|
|
21
|
-
position: 'relative',
|
|
22
|
-
flexGrow: 1,
|
|
23
|
-
flexDirection: 'column',
|
|
24
|
-
alignItems: 'center',
|
|
25
|
-
justifyContent: 'center',
|
|
26
|
-
overflow: 'hidden',
|
|
27
|
-
'&>svg': {
|
|
28
|
-
width: '100%',
|
|
29
|
-
height: '100%'
|
|
30
|
-
}
|
|
31
|
-
}));
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Wrapping div that take the shape of its parent.
|
|
35
|
-
*
|
|
36
|
-
* @ignore - do not document.
|
|
37
|
-
*/
|
|
38
|
-
function ResizableContainer(props) {
|
|
39
|
-
const {
|
|
40
|
-
inHeight,
|
|
41
|
-
inWidth,
|
|
42
|
-
containerRef
|
|
43
|
-
} = useSize();
|
|
44
|
-
return /*#__PURE__*/_jsx(ResizableContainerRoot, _extends({}, props, {
|
|
45
|
-
ownerState: {
|
|
46
|
-
width: inWidth,
|
|
47
|
-
height: inHeight
|
|
48
|
-
},
|
|
49
|
-
ref: containerRef,
|
|
50
|
-
children: props.children
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
process.env.NODE_ENV !== "production" ? ResizableContainer.propTypes = {
|
|
54
|
-
// ----------------------------- Warning --------------------------------
|
|
55
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
57
|
-
// ----------------------------------------------------------------------
|
|
58
|
-
children: PropTypes.node
|
|
59
|
-
} : void 0;
|
|
60
|
-
export { ResizableContainer };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { useCharts } from "../internals/useCharts.js";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export const ChartsContext = /*#__PURE__*/React.createContext(null);
|
|
7
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
8
|
-
ChartsContext.displayName = 'ChartsContext';
|
|
9
|
-
}
|
|
10
|
-
function InteractionProvider(props) {
|
|
11
|
-
const {
|
|
12
|
-
children
|
|
13
|
-
} = props;
|
|
14
|
-
const {
|
|
15
|
-
contextValue
|
|
16
|
-
} = useCharts();
|
|
17
|
-
return /*#__PURE__*/_jsx(ChartsContext.Provider, {
|
|
18
|
-
value: contextValue,
|
|
19
|
-
children: children
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export { InteractionProvider };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
export const SvgRefContext = /*#__PURE__*/React.createContext({
|
|
5
|
-
isInitialized: false,
|
|
6
|
-
data: {
|
|
7
|
-
svgRef: {
|
|
8
|
-
current: null
|
|
9
|
-
},
|
|
10
|
-
surfaceRef: {
|
|
11
|
-
current: null
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16
|
-
SvgRefContext.displayName = 'SvgRefContext';
|
|
17
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import useForkRef from '@mui/utils/useForkRef';
|
|
5
|
-
import { SvgRefContext } from "./SvgRefContext.js";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export function SvgRefProvider(props) {
|
|
8
|
-
const {
|
|
9
|
-
children
|
|
10
|
-
} = props;
|
|
11
|
-
const svgRef = React.useRef(null);
|
|
12
|
-
const surfaceRef = useForkRef(svgRef);
|
|
13
|
-
const refValue = React.useMemo(() => ({
|
|
14
|
-
isInitialized: true,
|
|
15
|
-
data: {
|
|
16
|
-
svgRef,
|
|
17
|
-
surfaceRef
|
|
18
|
-
}
|
|
19
|
-
}), [svgRef, surfaceRef]);
|
|
20
|
-
return /*#__PURE__*/_jsx(SvgRefContext.Provider, {
|
|
21
|
-
value: refValue,
|
|
22
|
-
children: children
|
|
23
|
-
});
|
|
24
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { SvgRefContext } from "./SvgRefContext.js";
|
|
5
|
-
export function useSurfaceRef() {
|
|
6
|
-
const {
|
|
7
|
-
isInitialized,
|
|
8
|
-
data
|
|
9
|
-
} = React.useContext(SvgRefContext);
|
|
10
|
-
if (!isInitialized) {
|
|
11
|
-
throw new Error(['MUI X: Could not find the svg ref context.', 'It looks like you rendered your component outside of a ChartsContainer parent component.'].join('\n'));
|
|
12
|
-
}
|
|
13
|
-
return data.surfaceRef;
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// For now this is fixed. Will need to support generic if we add plugins
|
|
2
|
-
|
|
3
|
-
export class ChartsStore {
|
|
4
|
-
constructor(value) {
|
|
5
|
-
this.value = void 0;
|
|
6
|
-
this.listeners = void 0;
|
|
7
|
-
this.subscribe = fn => {
|
|
8
|
-
this.listeners.add(fn);
|
|
9
|
-
return () => {
|
|
10
|
-
this.listeners.delete(fn);
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
this.getSnapshot = () => {
|
|
14
|
-
return this.value;
|
|
15
|
-
};
|
|
16
|
-
this.update = updater => {
|
|
17
|
-
const newState = updater(this.value);
|
|
18
|
-
if (newState !== this.value) {
|
|
19
|
-
this.value = newState;
|
|
20
|
-
this.listeners.forEach(l => l(newState));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
this.value = value;
|
|
24
|
-
this.listeners = new Set();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ChartStore } from "./plugins/utils/ChartStore.js";
|
|
3
|
-
let globalId = 0;
|
|
4
|
-
export function useCharts() {
|
|
5
|
-
const storeRef = React.useRef(null);
|
|
6
|
-
if (storeRef.current == null) {
|
|
7
|
-
// eslint-disable-next-line react-compiler/react-compiler
|
|
8
|
-
globalId += 1;
|
|
9
|
-
const initialState = {
|
|
10
|
-
interaction: {
|
|
11
|
-
item: null,
|
|
12
|
-
axis: {
|
|
13
|
-
x: null,
|
|
14
|
-
y: null
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
cacheKey: {
|
|
18
|
-
id: globalId
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
storeRef.current = new ChartStore(initialState);
|
|
22
|
-
}
|
|
23
|
-
const contextValue = React.useMemo(() => ({
|
|
24
|
-
store: storeRef.current
|
|
25
|
-
}), []);
|
|
26
|
-
return {
|
|
27
|
-
contextValue
|
|
28
|
-
};
|
|
29
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.ResizableContainer = ResizableContainer;
|
|
9
|
-
exports.ResizableContainerRoot = void 0;
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
var _styles = require("@mui/material/styles");
|
|
14
|
-
var _SizeProvider = require("../context/SizeProvider");
|
|
15
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
/**
|
|
17
|
-
* Wrapping div that take the shape of its parent.
|
|
18
|
-
*
|
|
19
|
-
* @ignore - do not document.
|
|
20
|
-
*/
|
|
21
|
-
const ResizableContainerRoot = exports.ResizableContainerRoot = (0, _styles.styled)('div', {
|
|
22
|
-
name: 'MuiResponsiveChart',
|
|
23
|
-
slot: 'Container'
|
|
24
|
-
})(({
|
|
25
|
-
ownerState
|
|
26
|
-
}) => ({
|
|
27
|
-
width: ownerState.width ?? '100%',
|
|
28
|
-
height: ownerState.height ?? '100%',
|
|
29
|
-
display: 'flex',
|
|
30
|
-
position: 'relative',
|
|
31
|
-
flexGrow: 1,
|
|
32
|
-
flexDirection: 'column',
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
justifyContent: 'center',
|
|
35
|
-
overflow: 'hidden',
|
|
36
|
-
'&>svg': {
|
|
37
|
-
width: '100%',
|
|
38
|
-
height: '100%'
|
|
39
|
-
}
|
|
40
|
-
}));
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Wrapping div that take the shape of its parent.
|
|
44
|
-
*
|
|
45
|
-
* @ignore - do not document.
|
|
46
|
-
*/
|
|
47
|
-
function ResizableContainer(props) {
|
|
48
|
-
const {
|
|
49
|
-
inHeight,
|
|
50
|
-
inWidth,
|
|
51
|
-
containerRef
|
|
52
|
-
} = (0, _SizeProvider.useSize)();
|
|
53
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ResizableContainerRoot, (0, _extends2.default)({}, props, {
|
|
54
|
-
ownerState: {
|
|
55
|
-
width: inWidth,
|
|
56
|
-
height: inHeight
|
|
57
|
-
},
|
|
58
|
-
ref: containerRef,
|
|
59
|
-
children: props.children
|
|
60
|
-
}));
|
|
61
|
-
}
|
|
62
|
-
process.env.NODE_ENV !== "production" ? ResizableContainer.propTypes = {
|
|
63
|
-
// ----------------------------- Warning --------------------------------
|
|
64
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
65
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
66
|
-
// ----------------------------------------------------------------------
|
|
67
|
-
children: _propTypes.default.node
|
|
68
|
-
} : void 0;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.ChartsContext = void 0;
|
|
9
|
-
exports.InteractionProvider = InteractionProvider;
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _useCharts = require("../internals/useCharts");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
const ChartsContext = exports.ChartsContext = /*#__PURE__*/React.createContext(null);
|
|
14
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
15
|
-
ChartsContext.displayName = 'ChartsContext';
|
|
16
|
-
}
|
|
17
|
-
function InteractionProvider(props) {
|
|
18
|
-
const {
|
|
19
|
-
children
|
|
20
|
-
} = props;
|
|
21
|
-
const {
|
|
22
|
-
contextValue
|
|
23
|
-
} = (0, _useCharts.useCharts)();
|
|
24
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ChartsContext.Provider, {
|
|
25
|
-
value: contextValue,
|
|
26
|
-
children: children
|
|
27
|
-
});
|
|
28
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.SvgRefContext = void 0;
|
|
9
|
-
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
const SvgRefContext = exports.SvgRefContext = /*#__PURE__*/React.createContext({
|
|
11
|
-
isInitialized: false,
|
|
12
|
-
data: {
|
|
13
|
-
svgRef: {
|
|
14
|
-
current: null
|
|
15
|
-
},
|
|
16
|
-
surfaceRef: {
|
|
17
|
-
current: null
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
22
|
-
SvgRefContext.displayName = 'SvgRefContext';
|
|
23
|
-
}
|