@mui/x-charts-premium 9.0.4 → 9.1.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/BarChartPremium/BarChartPremium.js +2 -1183
- package/BarChartPremium/BarChartPremium.mjs +2 -1183
- package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.js +2 -0
- package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.mjs +2 -0
- package/CHANGELOG.md +133 -0
- package/CandlestickChart/CandlestickChart.d.mts +2 -2
- package/CandlestickChart/CandlestickChart.d.ts +2 -2
- package/CandlestickChart/CandlestickChart.js +2 -1183
- package/CandlestickChart/CandlestickChart.mjs +2 -1183
- package/CandlestickChart/CandlestickWebGLProgram.d.mts +6 -11
- package/CandlestickChart/CandlestickWebGLProgram.d.ts +6 -11
- package/CandlestickChart/CandlestickWebGLProgram.js +136 -121
- package/CandlestickChart/CandlestickWebGLProgram.mjs +137 -122
- package/CandlestickChart/useCandlestickPlotData.d.mts +2 -2
- package/CandlestickChart/useCandlestickPlotData.d.ts +2 -2
- package/CandlestickChart/useCandlestickPlotData.js +121 -61
- package/CandlestickChart/useCandlestickPlotData.mjs +122 -61
- package/ChartsAxisHighlightValue/index.d.mts +1 -0
- package/ChartsAxisHighlightValue/index.d.ts +1 -0
- package/ChartsAxisHighlightValue/index.js +16 -0
- package/ChartsAxisHighlightValue/index.mjs +2 -0
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
- package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +2 -2
- package/ChartsRadialAxisHighlight/index.d.mts +1 -0
- package/ChartsRadialAxisHighlight/index.d.ts +1 -0
- package/ChartsRadialAxisHighlight/index.js +16 -0
- package/ChartsRadialAxisHighlight/index.mjs +2 -0
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +2 -2
- package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +2 -2
- package/HeatmapPremium/HeatmapPremium.js +2 -155
- package/HeatmapPremium/HeatmapPremium.mjs +2 -155
- package/HeatmapPremium/webgl/HeatmapWebGLPlot.js +19 -112
- package/HeatmapPremium/webgl/HeatmapWebGLPlot.mjs +19 -111
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.d.mts +24 -0
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.d.ts +24 -0
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.js +132 -0
- package/HeatmapPremium/webgl/HeatmapWebGLProgram.mjs +125 -0
- package/HeatmapPremium/webgl/useHeatmapPlotData.d.mts +3 -3
- package/HeatmapPremium/webgl/useHeatmapPlotData.d.ts +3 -3
- package/HeatmapPremium/webgl/useHeatmapPlotData.js +78 -26
- package/HeatmapPremium/webgl/useHeatmapPlotData.mjs +80 -26
- package/LICENSE +3 -1
- package/RadialBarChart/RadialBarChart.d.mts +60 -0
- package/RadialBarChart/RadialBarChart.d.ts +60 -0
- package/RadialBarChart/RadialBarChart.js +298 -0
- package/RadialBarChart/RadialBarChart.mjs +292 -0
- package/RadialBarChart/RadialBarChart.plugins.d.mts +4 -0
- package/RadialBarChart/RadialBarChart.plugins.d.ts +4 -0
- package/RadialBarChart/RadialBarChart.plugins.js +9 -0
- package/RadialBarChart/RadialBarChart.plugins.mjs +3 -0
- package/RadialBarChart/RadialBarElement.d.mts +16 -0
- package/RadialBarChart/RadialBarElement.d.ts +16 -0
- package/RadialBarChart/RadialBarElement.js +54 -0
- package/RadialBarChart/RadialBarElement.mjs +48 -0
- package/RadialBarChart/RadialBarPlot.d.mts +21 -0
- package/RadialBarChart/RadialBarPlot.d.ts +21 -0
- package/RadialBarChart/RadialBarPlot.js +85 -0
- package/RadialBarChart/RadialBarPlot.mjs +79 -0
- package/RadialBarChart/index.d.mts +3 -0
- package/RadialBarChart/index.d.ts +3 -0
- package/RadialBarChart/index.js +39 -0
- package/RadialBarChart/index.mjs +3 -0
- package/RadialBarChart/radialBarClasses.d.mts +15 -0
- package/RadialBarChart/radialBarClasses.d.ts +15 -0
- package/RadialBarChart/radialBarClasses.js +26 -0
- package/RadialBarChart/radialBarClasses.mjs +18 -0
- package/RadialBarChart/seriesConfig/seriesProcessor.js +4 -0
- package/RadialBarChart/seriesConfig/seriesProcessor.mjs +4 -0
- package/RadialBarChart/useRadialBarChartProps.d.mts +28 -0
- package/RadialBarChart/useRadialBarChartProps.d.ts +28 -0
- package/RadialBarChart/useRadialBarChartProps.js +100 -0
- package/RadialBarChart/useRadialBarChartProps.mjs +93 -0
- package/RadialBarChart/useRadialBarPlotData.d.mts +23 -0
- package/RadialBarChart/useRadialBarPlotData.d.ts +23 -0
- package/RadialBarChart/useRadialBarPlotData.js +94 -0
- package/RadialBarChart/useRadialBarPlotData.mjs +87 -0
- package/RadialLineChart/RadialArea.js +13 -1
- package/RadialLineChart/RadialArea.mjs +13 -1
- package/RadialLineChart/RadialLine.js +13 -1
- package/RadialLineChart/RadialLine.mjs +13 -1
- package/RadialLineChart/RadialLineChart.d.mts +11 -3
- package/RadialLineChart/RadialLineChart.d.ts +11 -3
- package/RadialLineChart/RadialLineChart.js +24 -673
- package/RadialLineChart/RadialLineChart.mjs +24 -673
- package/RadialLineChart/RadialLineHighlightElement.d.mts +15 -0
- package/RadialLineChart/RadialLineHighlightElement.d.ts +15 -0
- package/RadialLineChart/RadialLineHighlightElement.js +46 -0
- package/RadialLineChart/RadialLineHighlightElement.mjs +39 -0
- package/RadialLineChart/RadialLineHighlightPlot.d.mts +23 -0
- package/RadialLineChart/RadialLineHighlightPlot.d.ts +23 -0
- package/RadialLineChart/RadialLineHighlightPlot.js +92 -0
- package/RadialLineChart/RadialLineHighlightPlot.mjs +86 -0
- package/RadialLineChart/RadialMarkPlot.js +17 -2
- package/RadialLineChart/RadialMarkPlot.mjs +17 -2
- package/RadialLineChart/index.d.mts +3 -1
- package/RadialLineChart/index.d.ts +3 -1
- package/RadialLineChart/index.js +22 -0
- package/RadialLineChart/index.mjs +3 -1
- package/RadialLineChart/radialLineClasses.d.mts +3 -1
- package/RadialLineChart/radialLineClasses.d.ts +3 -1
- package/RadialLineChart/radialLineClasses.js +2 -1
- package/RadialLineChart/radialLineClasses.mjs +2 -1
- package/RadialLineChart/seriesConfig/getItemAtPosition.d.mts +6 -0
- package/RadialLineChart/seriesConfig/getItemAtPosition.d.ts +6 -0
- package/RadialLineChart/seriesConfig/getItemAtPosition.js +353 -0
- package/RadialLineChart/seriesConfig/getItemAtPosition.mjs +348 -0
- package/RadialLineChart/seriesConfig/getSeriesWithDefaultValues.js +2 -1
- package/RadialLineChart/seriesConfig/getSeriesWithDefaultValues.mjs +2 -1
- package/RadialLineChart/seriesConfig/index.js +2 -1
- package/RadialLineChart/seriesConfig/index.mjs +2 -1
- package/RadialLineChart/seriesConfig/seriesProcessor.js +4 -0
- package/RadialLineChart/seriesConfig/seriesProcessor.mjs +4 -0
- package/RadialLineChart/useRadialLineChartProps.d.mts +2 -0
- package/RadialLineChart/useRadialLineChartProps.d.ts +2 -0
- package/RadialLineChart/useRadialLineChartProps.js +16 -8
- package/RadialLineChart/useRadialLineChartProps.mjs +16 -8
- package/RadialLineChart/useRadialLinePlotData.js +2 -1
- package/RadialLineChart/useRadialLinePlotData.mjs +3 -2
- package/ScatterChartPremium/ScatterChartPremium.d.mts +25 -0
- package/ScatterChartPremium/ScatterChartPremium.d.ts +25 -0
- package/ScatterChartPremium/ScatterChartPremium.js +507 -0
- package/ScatterChartPremium/ScatterChartPremium.mjs +501 -0
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.mts +3 -0
- package/ScatterChartPremium/ScatterChartPremium.plugins.d.ts +3 -0
- package/ScatterChartPremium/ScatterChartPremium.plugins.js +8 -0
- package/ScatterChartPremium/ScatterChartPremium.plugins.mjs +2 -0
- package/ScatterChartPremium/ScatterPlotPremium.d.mts +14 -0
- package/ScatterChartPremium/ScatterPlotPremium.d.ts +14 -0
- package/ScatterChartPremium/ScatterPlotPremium.js +28 -0
- package/ScatterChartPremium/ScatterPlotPremium.mjs +21 -0
- package/ScatterChartPremium/index.d.mts +3 -0
- package/ScatterChartPremium/index.d.ts +3 -0
- package/ScatterChartPremium/index.js +26 -0
- package/ScatterChartPremium/index.mjs +3 -0
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.d.mts +4 -0
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.d.ts +4 -0
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.js +70 -0
- package/ScatterChartPremium/webgl/ScatterWebGLPlot.mjs +65 -0
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.mts +18 -0
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.d.ts +18 -0
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.js +129 -0
- package/ScatterChartPremium/webgl/ScatterWebGLProgram.mjs +122 -0
- package/ScatterChartPremium/webgl/shaders.d.mts +2 -0
- package/ScatterChartPremium/webgl/shaders.d.ts +2 -0
- package/ScatterChartPremium/webgl/shaders.js +57 -0
- package/ScatterChartPremium/webgl/shaders.mjs +51 -0
- package/ScatterChartPremium/webgl/useScatterWebGLPlotData.d.mts +7 -0
- package/ScatterChartPremium/webgl/useScatterWebGLPlotData.d.ts +7 -0
- package/ScatterChartPremium/webgl/useScatterWebGLPlotData.js +140 -0
- package/ScatterChartPremium/webgl/useScatterWebGLPlotData.mjs +134 -0
- package/index.d.mts +3 -1
- package/index.d.ts +3 -1
- package/index.js +25 -1
- package/index.mjs +4 -2
- package/internals/index.d.mts +1 -0
- package/internals/index.d.ts +1 -0
- package/internals/index.js +13 -0
- package/internals/index.mjs +1 -0
- package/models/seriesType/radialLine.d.mts +7 -1
- package/models/seriesType/radialLine.d.ts +7 -1
- package/package.json +184 -114
- package/plugins/selectors/useChartCandlestickPosition.selectors.d.mts +1 -1
- package/plugins/selectors/useChartCandlestickPosition.selectors.d.ts +1 -1
- package/utils/webgl/parseColor.d.mts +2 -1
- package/utils/webgl/parseColor.d.ts +2 -1
- package/utils/webgl/parseColor.js +8 -7
- package/utils/webgl/parseColor.mjs +8 -7
- package/utils/webgl/utils.d.mts +13 -0
- package/utils/webgl/utils.d.ts +13 -0
- package/utils/webgl/utils.js +29 -0
- package/utils/webgl/utils.mjs +27 -0
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef", "showToolbar", "renderer"],
|
|
6
|
+
_excluded2 = ["className"];
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import { useThemeProps } from '@mui/material/styles';
|
|
10
|
+
import { HighlightedScatterMark } from '@mui/x-charts/ScatterChart';
|
|
11
|
+
import { ChartsGrid } from '@mui/x-charts/ChartsGrid';
|
|
12
|
+
import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
|
|
13
|
+
import { ChartsAxis } from '@mui/x-charts/ChartsAxis';
|
|
14
|
+
import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
|
|
15
|
+
import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
|
|
16
|
+
import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
17
|
+
import { ChartsWrapper } from '@mui/x-charts/ChartsWrapper';
|
|
18
|
+
import { ChartsBrushOverlay } from '@mui/x-charts/ChartsBrushOverlay';
|
|
19
|
+
import { ChartsLayerContainer } from '@mui/x-charts/ChartsLayerContainer';
|
|
20
|
+
import { ChartsSvgLayer } from '@mui/x-charts/ChartsSvgLayer';
|
|
21
|
+
import { useScatterChartProps } from '@mui/x-charts/internals';
|
|
22
|
+
import { ChartsZoomSlider } from '@mui/x-charts-pro/ChartsZoomSlider';
|
|
23
|
+
import { ChartsDataProviderPremium } from "../ChartsDataProviderPremium/index.mjs";
|
|
24
|
+
import { useChartsContainerPremiumProps } from "../ChartsContainerPremium/useChartsContainerPremiumProps.mjs";
|
|
25
|
+
import { ChartsToolbarPro } from "../ChartsToolbarPro/index.mjs";
|
|
26
|
+
import { ScatterPlotPremium } from "./ScatterPlotPremium.mjs";
|
|
27
|
+
import { SCATTER_CHART_PREMIUM_PLUGINS } from "./ScatterChartPremium.plugins.mjs";
|
|
28
|
+
import { ChartsWebGLLayer } from "../ChartsWebGLLayer/index.mjs";
|
|
29
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
|
+
const ScatterChartPremium = /*#__PURE__*/React.forwardRef(function ScatterChartPremium(inProps, ref) {
|
|
31
|
+
const props = useThemeProps({
|
|
32
|
+
props: inProps,
|
|
33
|
+
name: 'MuiScatterChartPremium'
|
|
34
|
+
});
|
|
35
|
+
const {
|
|
36
|
+
initialZoom,
|
|
37
|
+
zoomData,
|
|
38
|
+
onZoomChange,
|
|
39
|
+
apiRef,
|
|
40
|
+
showToolbar,
|
|
41
|
+
renderer = 'svg-single'
|
|
42
|
+
} = props,
|
|
43
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
44
|
+
const {
|
|
45
|
+
chartsWrapperProps,
|
|
46
|
+
chartsContainerProps,
|
|
47
|
+
chartsAxisProps,
|
|
48
|
+
gridProps,
|
|
49
|
+
scatterPlotProps,
|
|
50
|
+
overlayProps,
|
|
51
|
+
legendProps,
|
|
52
|
+
axisHighlightProps,
|
|
53
|
+
children
|
|
54
|
+
} = useScatterChartProps(_extends({}, other, {
|
|
55
|
+
renderer: renderer === 'webgl' ? 'svg-single' : renderer,
|
|
56
|
+
// webgl has no per-circle DOM hit target, so disableHitArea is meaningless.
|
|
57
|
+
// Force it off so voronoi click handling is enabled.
|
|
58
|
+
disableHitArea: renderer === 'webgl' ? false : other.disableHitArea
|
|
59
|
+
}));
|
|
60
|
+
const {
|
|
61
|
+
chartsDataProviderPremiumProps,
|
|
62
|
+
chartsSurfaceProps
|
|
63
|
+
} = useChartsContainerPremiumProps(_extends({}, chartsContainerProps, {
|
|
64
|
+
initialZoom,
|
|
65
|
+
zoomData,
|
|
66
|
+
onZoomChange,
|
|
67
|
+
apiRef,
|
|
68
|
+
plugins: SCATTER_CHART_PREMIUM_PLUGINS
|
|
69
|
+
}));
|
|
70
|
+
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
71
|
+
const Toolbar = props.slots?.toolbar ?? ChartsToolbarPro;
|
|
72
|
+
const {
|
|
73
|
+
className: chartsLayerContainerClassName
|
|
74
|
+
} = chartsSurfaceProps,
|
|
75
|
+
chartsSvgLayerProps = _objectWithoutPropertiesLoose(chartsSurfaceProps, _excluded2);
|
|
76
|
+
return /*#__PURE__*/_jsx(ChartsDataProviderPremium, _extends({}, chartsDataProviderPremiumProps, {
|
|
77
|
+
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
78
|
+
ref: ref,
|
|
79
|
+
children: [showToolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsLayerContainer, {
|
|
80
|
+
className: chartsLayerContainerClassName,
|
|
81
|
+
children: [/*#__PURE__*/_jsx(ChartsSvgLayer, {
|
|
82
|
+
children: /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps))
|
|
83
|
+
}), renderer === 'webgl' && /*#__PURE__*/_jsx(ChartsWebGLLayer, {
|
|
84
|
+
children: /*#__PURE__*/_jsx(ScatterPlotPremium, _extends({}, scatterPlotProps, {
|
|
85
|
+
renderer: renderer
|
|
86
|
+
}))
|
|
87
|
+
}), /*#__PURE__*/_jsxs(ChartsSvgLayer, _extends({}, chartsSvgLayerProps, {
|
|
88
|
+
children: [/*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsZoomSlider, {}), renderer !== 'webgl' && /*#__PURE__*/_jsx("g", {
|
|
89
|
+
"data-drawing-container": true,
|
|
90
|
+
children: /*#__PURE__*/_jsx(ScatterPlotPremium, _extends({}, scatterPlotProps, {
|
|
91
|
+
renderer: renderer
|
|
92
|
+
}))
|
|
93
|
+
}), renderer === 'webgl' && /*#__PURE__*/_jsx("g", {
|
|
94
|
+
"data-drawing-container": true,
|
|
95
|
+
children: /*#__PURE__*/_jsx(HighlightedScatterMark, {})
|
|
96
|
+
}), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), /*#__PURE__*/_jsx(ChartsBrushOverlay, {}), children]
|
|
97
|
+
}))]
|
|
98
|
+
}), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({
|
|
99
|
+
trigger: "item"
|
|
100
|
+
}, props.slotProps?.tooltip))]
|
|
101
|
+
}))
|
|
102
|
+
}));
|
|
103
|
+
});
|
|
104
|
+
if (process.env.NODE_ENV !== "production") ScatterChartPremium.displayName = "ScatterChartPremium";
|
|
105
|
+
process.env.NODE_ENV !== "production" ? ScatterChartPremium.propTypes = {
|
|
106
|
+
// ----------------------------- Warning --------------------------------
|
|
107
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
108
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
109
|
+
// ----------------------------------------------------------------------
|
|
110
|
+
apiRef: PropTypes.shape({
|
|
111
|
+
current: PropTypes.shape({
|
|
112
|
+
exportAsImage: PropTypes.func.isRequired,
|
|
113
|
+
exportAsPrint: PropTypes.func.isRequired,
|
|
114
|
+
setAxisZoomData: PropTypes.func.isRequired,
|
|
115
|
+
setZoomData: PropTypes.func.isRequired
|
|
116
|
+
})
|
|
117
|
+
}),
|
|
118
|
+
/**
|
|
119
|
+
* A gap added between axes when multiple axes are rendered on the same side of the chart.
|
|
120
|
+
* @default 0
|
|
121
|
+
*/
|
|
122
|
+
axesGap: PropTypes.number,
|
|
123
|
+
/**
|
|
124
|
+
* The configuration of axes highlight.
|
|
125
|
+
* @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
|
|
126
|
+
* @default { x: 'none', y: 'none' }
|
|
127
|
+
*/
|
|
128
|
+
axisHighlight: PropTypes.shape({
|
|
129
|
+
x: PropTypes.oneOf(['band', 'line', 'none']),
|
|
130
|
+
y: PropTypes.oneOf(['band', 'line', 'none'])
|
|
131
|
+
}),
|
|
132
|
+
/**
|
|
133
|
+
* Configuration for the brush interaction.
|
|
134
|
+
*/
|
|
135
|
+
brushConfig: PropTypes.shape({
|
|
136
|
+
enabled: PropTypes.bool,
|
|
137
|
+
preventHighlight: PropTypes.bool,
|
|
138
|
+
preventTooltip: PropTypes.bool
|
|
139
|
+
}),
|
|
140
|
+
children: PropTypes.node,
|
|
141
|
+
className: PropTypes.string,
|
|
142
|
+
/**
|
|
143
|
+
* Color palette used to colorize multiple series.
|
|
144
|
+
* @default rainbowSurgePalette
|
|
145
|
+
*/
|
|
146
|
+
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
147
|
+
/**
|
|
148
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
149
|
+
*/
|
|
150
|
+
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
151
|
+
/**
|
|
152
|
+
* The description of the chart.
|
|
153
|
+
* Used to provide an accessible description for the chart.
|
|
154
|
+
*/
|
|
155
|
+
desc: PropTypes.string,
|
|
156
|
+
/**
|
|
157
|
+
* If `true`, the charts will not listen to the mouse move event.
|
|
158
|
+
* It might break interactive features, but will improve performance.
|
|
159
|
+
* @default false
|
|
160
|
+
*/
|
|
161
|
+
disableAxisListener: PropTypes.bool,
|
|
162
|
+
/**
|
|
163
|
+
* If true, the closest point interaction is disabled and falls back to hover events.
|
|
164
|
+
* @default false
|
|
165
|
+
* @deprecated Use `disableHitArea` instead.
|
|
166
|
+
*/
|
|
167
|
+
disableClosestPoint: PropTypes.bool,
|
|
168
|
+
/**
|
|
169
|
+
* If true, the hit area interaction is disabled and falls back to hover events.
|
|
170
|
+
* @default false
|
|
171
|
+
*/
|
|
172
|
+
disableHitArea: PropTypes.bool,
|
|
173
|
+
/**
|
|
174
|
+
* If `true`, disables keyboard navigation for the chart.
|
|
175
|
+
*/
|
|
176
|
+
disableKeyboardNavigation: PropTypes.bool,
|
|
177
|
+
/**
|
|
178
|
+
* If true, the interaction will not use the Voronoi cell and fall back to hover events.
|
|
179
|
+
* @default false
|
|
180
|
+
* @deprecated Use `disableHitArea` instead.
|
|
181
|
+
*/
|
|
182
|
+
disableVoronoi: PropTypes.bool,
|
|
183
|
+
/**
|
|
184
|
+
* Options to enable features planned for the next major.
|
|
185
|
+
*/
|
|
186
|
+
experimentalFeatures: PropTypes.object,
|
|
187
|
+
/**
|
|
188
|
+
* Option to display a cartesian grid in the background.
|
|
189
|
+
*/
|
|
190
|
+
grid: PropTypes.shape({
|
|
191
|
+
horizontal: PropTypes.bool,
|
|
192
|
+
vertical: PropTypes.bool
|
|
193
|
+
}),
|
|
194
|
+
/**
|
|
195
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
196
|
+
*/
|
|
197
|
+
height: PropTypes.number,
|
|
198
|
+
/**
|
|
199
|
+
* List of hidden series and/or items.
|
|
200
|
+
*
|
|
201
|
+
* Different chart types use different keys.
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```ts
|
|
205
|
+
* [
|
|
206
|
+
* {
|
|
207
|
+
* type: 'pie',
|
|
208
|
+
* seriesId: 'series-1',
|
|
209
|
+
* dataIndex: 3,
|
|
210
|
+
* },
|
|
211
|
+
* {
|
|
212
|
+
* type: 'line',
|
|
213
|
+
* seriesId: 'series-2',
|
|
214
|
+
* }
|
|
215
|
+
* ]
|
|
216
|
+
* ```
|
|
217
|
+
*/
|
|
218
|
+
hiddenItems: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
|
|
219
|
+
dataIndex: PropTypes.number,
|
|
220
|
+
seriesId: PropTypes.string.isRequired,
|
|
221
|
+
type: PropTypes.oneOf(['scatter'])
|
|
222
|
+
}), PropTypes.shape({
|
|
223
|
+
dataIndex: PropTypes.number,
|
|
224
|
+
seriesId: PropTypes.string.isRequired,
|
|
225
|
+
type: PropTypes.oneOf(['scatter']).isRequired
|
|
226
|
+
})]).isRequired),
|
|
227
|
+
/**
|
|
228
|
+
* If `true`, the legend is not rendered.
|
|
229
|
+
*/
|
|
230
|
+
hideLegend: PropTypes.bool,
|
|
231
|
+
/**
|
|
232
|
+
* The highlighted item.
|
|
233
|
+
* Used when the highlight is controlled.
|
|
234
|
+
*/
|
|
235
|
+
highlightedItem: PropTypes.oneOfType([PropTypes.shape({
|
|
236
|
+
dataIndex: PropTypes.number,
|
|
237
|
+
seriesId: PropTypes.string.isRequired,
|
|
238
|
+
type: PropTypes.oneOf(['scatter']).isRequired
|
|
239
|
+
}), PropTypes.shape({
|
|
240
|
+
dataIndex: PropTypes.number,
|
|
241
|
+
seriesId: PropTypes.string.isRequired
|
|
242
|
+
})]),
|
|
243
|
+
/**
|
|
244
|
+
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
245
|
+
* If set to `'item'`, the radius is the `markerSize`.
|
|
246
|
+
* If `undefined`, the radius is assumed to be infinite.
|
|
247
|
+
*/
|
|
248
|
+
hitAreaRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
249
|
+
/**
|
|
250
|
+
* This prop is used to help implement the accessibility logic.
|
|
251
|
+
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
252
|
+
*/
|
|
253
|
+
id: PropTypes.string,
|
|
254
|
+
/**
|
|
255
|
+
* List of initially hidden series and/or items.
|
|
256
|
+
* Used for uncontrolled state.
|
|
257
|
+
*
|
|
258
|
+
* Different chart types use different keys.
|
|
259
|
+
*
|
|
260
|
+
* @example
|
|
261
|
+
* ```ts
|
|
262
|
+
* [
|
|
263
|
+
* {
|
|
264
|
+
* type: 'pie',
|
|
265
|
+
* seriesId: 'series-1',
|
|
266
|
+
* dataIndex: 3,
|
|
267
|
+
* },
|
|
268
|
+
* {
|
|
269
|
+
* type: 'line',
|
|
270
|
+
* seriesId: 'series-2',
|
|
271
|
+
* }
|
|
272
|
+
* ]
|
|
273
|
+
* ```
|
|
274
|
+
*/
|
|
275
|
+
initialHiddenItems: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
|
|
276
|
+
dataIndex: PropTypes.number,
|
|
277
|
+
seriesId: PropTypes.string.isRequired,
|
|
278
|
+
type: PropTypes.oneOf(['scatter'])
|
|
279
|
+
}), PropTypes.shape({
|
|
280
|
+
dataIndex: PropTypes.number,
|
|
281
|
+
seriesId: PropTypes.string.isRequired,
|
|
282
|
+
type: PropTypes.oneOf(['scatter']).isRequired
|
|
283
|
+
})]).isRequired),
|
|
284
|
+
/**
|
|
285
|
+
* The list of zoom data related to each axis.
|
|
286
|
+
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
287
|
+
*/
|
|
288
|
+
initialZoom: PropTypes.arrayOf(PropTypes.shape({
|
|
289
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
290
|
+
end: PropTypes.number.isRequired,
|
|
291
|
+
start: PropTypes.number.isRequired
|
|
292
|
+
})),
|
|
293
|
+
/**
|
|
294
|
+
* If `true`, a loading overlay is displayed.
|
|
295
|
+
* @default false
|
|
296
|
+
*/
|
|
297
|
+
loading: PropTypes.bool,
|
|
298
|
+
/**
|
|
299
|
+
* Localized text for chart components.
|
|
300
|
+
*/
|
|
301
|
+
localeText: PropTypes.object,
|
|
302
|
+
/**
|
|
303
|
+
* The margin between the SVG and the drawing area.
|
|
304
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
305
|
+
*
|
|
306
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
307
|
+
*/
|
|
308
|
+
margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
309
|
+
bottom: PropTypes.number,
|
|
310
|
+
left: PropTypes.number,
|
|
311
|
+
right: PropTypes.number,
|
|
312
|
+
top: PropTypes.number
|
|
313
|
+
})]),
|
|
314
|
+
/**
|
|
315
|
+
* The function called for onClick events.
|
|
316
|
+
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
317
|
+
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
318
|
+
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
319
|
+
*/
|
|
320
|
+
onAxisClick: PropTypes.func,
|
|
321
|
+
/**
|
|
322
|
+
* Callback fired when any hidden identifiers change.
|
|
323
|
+
* @param {VisibilityIdentifierWithType[]} hiddenItems The new list of hidden identifiers.
|
|
324
|
+
*/
|
|
325
|
+
onHiddenItemsChange: PropTypes.func,
|
|
326
|
+
/**
|
|
327
|
+
* The callback fired when the highlighted item changes.
|
|
328
|
+
*
|
|
329
|
+
* @param {HighlightItemIdentifierWithType<SeriesType> | null} highlightedItem The newly highlighted item.
|
|
330
|
+
*/
|
|
331
|
+
onHighlightChange: PropTypes.func,
|
|
332
|
+
/**
|
|
333
|
+
* Callback fired when clicking on a scatter item.
|
|
334
|
+
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element if using hit area interaction. Or the Mouse event from the scatter element, when `disableHitArea=true`.
|
|
335
|
+
* @param {ScatterItemIdentifier} scatterItemIdentifier The scatter item identifier.
|
|
336
|
+
*/
|
|
337
|
+
onItemClick: PropTypes.func,
|
|
338
|
+
/**
|
|
339
|
+
* The function called when the pointer position corresponds to a new axis data item.
|
|
340
|
+
* This update can either be caused by a pointer movement, or an axis update.
|
|
341
|
+
* In case of multiple axes, the function is called if at least one axis is updated.
|
|
342
|
+
* The argument contains the identifier for all axes with a `data` property.
|
|
343
|
+
* @param {AxisItemIdentifier[]} axisItems The array of axes item identifiers.
|
|
344
|
+
*/
|
|
345
|
+
onTooltipAxisChange: PropTypes.func,
|
|
346
|
+
/**
|
|
347
|
+
* The callback fired when the tooltip item changes.
|
|
348
|
+
*
|
|
349
|
+
* @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
|
|
350
|
+
*/
|
|
351
|
+
onTooltipItemChange: PropTypes.func,
|
|
352
|
+
/**
|
|
353
|
+
* Callback fired when the zoom has changed.
|
|
354
|
+
*
|
|
355
|
+
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
356
|
+
*/
|
|
357
|
+
onZoomChange: PropTypes.func,
|
|
358
|
+
/**
|
|
359
|
+
* The renderer to use for drawing the scatter points.
|
|
360
|
+
* - `svg-single`: Renders each point as its own SVG element (full interactivity).
|
|
361
|
+
* - `svg-batch`: Renders points in a batched SVG path (faster, reduced interactivity).
|
|
362
|
+
* - `webgl`: Renders points into a WebGL canvas (fastest, no per-item SVG interactivity).
|
|
363
|
+
* @default 'svg-single'
|
|
364
|
+
*/
|
|
365
|
+
renderer: PropTypes.oneOf(['svg-batch', 'svg-single', 'webgl']),
|
|
366
|
+
/**
|
|
367
|
+
* The series to display in the scatter chart.
|
|
368
|
+
* An array of [[ScatterSeries]] objects.
|
|
369
|
+
*/
|
|
370
|
+
series: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
371
|
+
/**
|
|
372
|
+
* If true, shows the default chart toolbar.
|
|
373
|
+
* @default false
|
|
374
|
+
*/
|
|
375
|
+
showToolbar: PropTypes.bool,
|
|
376
|
+
/**
|
|
377
|
+
* If `true`, animations are skipped.
|
|
378
|
+
* If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
|
|
379
|
+
*/
|
|
380
|
+
skipAnimation: PropTypes.bool,
|
|
381
|
+
slotProps: PropTypes.object,
|
|
382
|
+
slots: PropTypes.object,
|
|
383
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
384
|
+
theme: PropTypes.oneOf(['dark', 'light']),
|
|
385
|
+
/**
|
|
386
|
+
* The title of the chart.
|
|
387
|
+
* Used to provide an accessible label for the chart.
|
|
388
|
+
*/
|
|
389
|
+
title: PropTypes.string,
|
|
390
|
+
/**
|
|
391
|
+
* The controlled axis tooltip.
|
|
392
|
+
* Identified by the axis id, and data index.
|
|
393
|
+
*/
|
|
394
|
+
tooltipAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
395
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
396
|
+
dataIndex: PropTypes.number.isRequired
|
|
397
|
+
})),
|
|
398
|
+
/**
|
|
399
|
+
* The tooltip item.
|
|
400
|
+
* Used when the tooltip is controlled.
|
|
401
|
+
*/
|
|
402
|
+
tooltipItem: PropTypes.oneOfType([PropTypes.shape({
|
|
403
|
+
dataIndex: PropTypes.number.isRequired,
|
|
404
|
+
seriesId: PropTypes.string.isRequired,
|
|
405
|
+
type: PropTypes.oneOf(['scatter']).isRequired
|
|
406
|
+
}), PropTypes.shape({
|
|
407
|
+
dataIndex: PropTypes.number.isRequired,
|
|
408
|
+
seriesId: PropTypes.string.isRequired
|
|
409
|
+
})]),
|
|
410
|
+
/**
|
|
411
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
412
|
+
*/
|
|
413
|
+
width: PropTypes.number,
|
|
414
|
+
/**
|
|
415
|
+
* The configuration of the x-axes.
|
|
416
|
+
* If not provided, a default axis config is used.
|
|
417
|
+
* An array of [[AxisConfig]] objects.
|
|
418
|
+
*/
|
|
419
|
+
xAxis: PropTypes.arrayOf(PropTypes.object),
|
|
420
|
+
/**
|
|
421
|
+
* The configuration of the y-axes.
|
|
422
|
+
* If not provided, a default axis config is used.
|
|
423
|
+
* An array of [[AxisConfig]] objects.
|
|
424
|
+
*/
|
|
425
|
+
yAxis: PropTypes.arrayOf(PropTypes.object),
|
|
426
|
+
/**
|
|
427
|
+
* The configuration of the z-axes.
|
|
428
|
+
*/
|
|
429
|
+
zAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
430
|
+
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
431
|
+
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
432
|
+
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
433
|
+
unknownColor: PropTypes.string,
|
|
434
|
+
values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number, PropTypes.string]).isRequired)
|
|
435
|
+
}), PropTypes.shape({
|
|
436
|
+
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
437
|
+
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
438
|
+
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
439
|
+
type: PropTypes.oneOf(['continuous']).isRequired
|
|
440
|
+
}), PropTypes.shape({
|
|
441
|
+
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
442
|
+
thresholds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]).isRequired).isRequired,
|
|
443
|
+
type: PropTypes.oneOf(['piecewise']).isRequired
|
|
444
|
+
})]),
|
|
445
|
+
data: PropTypes.array,
|
|
446
|
+
dataKey: PropTypes.string,
|
|
447
|
+
id: PropTypes.string,
|
|
448
|
+
max: PropTypes.number,
|
|
449
|
+
min: PropTypes.number,
|
|
450
|
+
valueGetter: PropTypes.func
|
|
451
|
+
})),
|
|
452
|
+
/**
|
|
453
|
+
* The list of zoom data related to each axis.
|
|
454
|
+
*/
|
|
455
|
+
zoomData: PropTypes.arrayOf(PropTypes.shape({
|
|
456
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
457
|
+
end: PropTypes.number.isRequired,
|
|
458
|
+
start: PropTypes.number.isRequired
|
|
459
|
+
})),
|
|
460
|
+
/**
|
|
461
|
+
* Configuration for zoom interactions.
|
|
462
|
+
*/
|
|
463
|
+
zoomInteractionConfig: PropTypes.shape({
|
|
464
|
+
pan: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['drag', 'pressAndDrag', 'wheel']), PropTypes.shape({
|
|
465
|
+
pointerMode: PropTypes.oneOf(['mouse', 'touch']),
|
|
466
|
+
requiredKeys: PropTypes.arrayOf(PropTypes.string),
|
|
467
|
+
type: PropTypes.oneOf(['drag']).isRequired
|
|
468
|
+
}), PropTypes.shape({
|
|
469
|
+
pointerMode: PropTypes.oneOf(['mouse', 'touch']),
|
|
470
|
+
requiredKeys: PropTypes.arrayOf(PropTypes.string),
|
|
471
|
+
type: PropTypes.oneOf(['pressAndDrag']).isRequired
|
|
472
|
+
}), PropTypes.shape({
|
|
473
|
+
allowedDirection: PropTypes.oneOf(['x', 'xy', 'y']),
|
|
474
|
+
pointerMode: PropTypes.any,
|
|
475
|
+
requiredKeys: PropTypes.arrayOf(PropTypes.string),
|
|
476
|
+
type: PropTypes.oneOf(['wheel']).isRequired
|
|
477
|
+
})]).isRequired),
|
|
478
|
+
zoom: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['brush', 'doubleTapReset', 'pinch', 'tapAndDrag', 'wheel']), PropTypes.shape({
|
|
479
|
+
pointerMode: PropTypes.any,
|
|
480
|
+
requiredKeys: PropTypes.arrayOf(PropTypes.string),
|
|
481
|
+
type: PropTypes.oneOf(['wheel']).isRequired
|
|
482
|
+
}), PropTypes.shape({
|
|
483
|
+
pointerMode: PropTypes.any,
|
|
484
|
+
requiredKeys: PropTypes.array,
|
|
485
|
+
type: PropTypes.oneOf(['pinch']).isRequired
|
|
486
|
+
}), PropTypes.shape({
|
|
487
|
+
pointerMode: PropTypes.oneOf(['mouse', 'touch']),
|
|
488
|
+
requiredKeys: PropTypes.arrayOf(PropTypes.string),
|
|
489
|
+
type: PropTypes.oneOf(['tapAndDrag']).isRequired
|
|
490
|
+
}), PropTypes.shape({
|
|
491
|
+
pointerMode: PropTypes.oneOf(['mouse', 'touch']),
|
|
492
|
+
requiredKeys: PropTypes.arrayOf(PropTypes.string),
|
|
493
|
+
type: PropTypes.oneOf(['doubleTapReset']).isRequired
|
|
494
|
+
}), PropTypes.shape({
|
|
495
|
+
pointerMode: PropTypes.oneOf(['mouse', 'touch']),
|
|
496
|
+
requiredKeys: PropTypes.arrayOf(PropTypes.string),
|
|
497
|
+
type: PropTypes.oneOf(['brush']).isRequired
|
|
498
|
+
})]).isRequired)
|
|
499
|
+
})
|
|
500
|
+
} : void 0;
|
|
501
|
+
export { ScatterChartPremium };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type ScatterChartProPluginSignatures } from '@mui/x-charts-pro/ScatterChartPro';
|
|
2
|
+
export type ScatterChartPremiumPluginSignatures = ScatterChartProPluginSignatures;
|
|
3
|
+
export declare const SCATTER_CHART_PREMIUM_PLUGINS: readonly [import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartZAxisSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts/internals").UseChartBrushSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartTooltipSignature<"scatter">>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartInteractionSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartCartesianAxisSignature<"scatter">>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartHighlightSignature<"scatter">>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartVisibilityManagerSignature<"scatter">>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartClosestPointSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts/internals").UseChartKeyboardNavigationSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts-pro/plugins").UseChartProZoomSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts-pro/plugins").UseChartProExportSignature>];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type ScatterChartProPluginSignatures } from '@mui/x-charts-pro/ScatterChartPro';
|
|
2
|
+
export type ScatterChartPremiumPluginSignatures = ScatterChartProPluginSignatures;
|
|
3
|
+
export declare const SCATTER_CHART_PREMIUM_PLUGINS: readonly [import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartZAxisSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts/internals").UseChartBrushSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartTooltipSignature<"scatter">>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartInteractionSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartCartesianAxisSignature<"scatter">>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartHighlightSignature<"scatter">>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartVisibilityManagerSignature<"scatter">>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts").UseChartClosestPointSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts/internals").UseChartKeyboardNavigationSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts-pro/plugins").UseChartProZoomSignature>, import("@mui/x-charts/internals").ChartPlugin<import("@mui/x-charts-pro/plugins").UseChartProExportSignature>];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SCATTER_CHART_PREMIUM_PLUGINS = void 0;
|
|
7
|
+
var _ScatterChartPro = require("@mui/x-charts-pro/ScatterChartPro");
|
|
8
|
+
const SCATTER_CHART_PREMIUM_PLUGINS = exports.SCATTER_CHART_PREMIUM_PLUGINS = _ScatterChartPro.SCATTER_CHART_PRO_PLUGINS;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ScatterPlotProps } from '@mui/x-charts/ScatterChart';
|
|
2
|
+
export interface ScatterPlotPremiumProps extends Omit<ScatterPlotProps, 'renderer'> {
|
|
3
|
+
/**
|
|
4
|
+
* The type of renderer to use for the scatter plot.
|
|
5
|
+
* - `svg-single`: Renders every scatter item in its own `<circle />` element.
|
|
6
|
+
* - `svg-batch`: Renders all scatter items in a single batched SVG path.
|
|
7
|
+
* - `webgl`: Renders scatter items using WebGL for better performance, at the cost of some limitations.
|
|
8
|
+
*/
|
|
9
|
+
renderer: 'svg-single' | 'svg-batch' | 'webgl';
|
|
10
|
+
}
|
|
11
|
+
export declare function ScatterPlotPremium({
|
|
12
|
+
renderer,
|
|
13
|
+
...props
|
|
14
|
+
}: ScatterPlotPremiumProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ScatterPlotProps } from '@mui/x-charts/ScatterChart';
|
|
2
|
+
export interface ScatterPlotPremiumProps extends Omit<ScatterPlotProps, 'renderer'> {
|
|
3
|
+
/**
|
|
4
|
+
* The type of renderer to use for the scatter plot.
|
|
5
|
+
* - `svg-single`: Renders every scatter item in its own `<circle />` element.
|
|
6
|
+
* - `svg-batch`: Renders all scatter items in a single batched SVG path.
|
|
7
|
+
* - `webgl`: Renders scatter items using WebGL for better performance, at the cost of some limitations.
|
|
8
|
+
*/
|
|
9
|
+
renderer: 'svg-single' | 'svg-batch' | 'webgl';
|
|
10
|
+
}
|
|
11
|
+
export declare function ScatterPlotPremium({
|
|
12
|
+
renderer,
|
|
13
|
+
...props
|
|
14
|
+
}: ScatterPlotPremiumProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.ScatterPlotPremium = ScatterPlotPremium;
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _ScatterChart = require("@mui/x-charts/ScatterChart");
|
|
14
|
+
var _ScatterWebGLPlot = require("./webgl/ScatterWebGLPlot");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
const _excluded = ["renderer"];
|
|
17
|
+
function ScatterPlotPremium(_ref) {
|
|
18
|
+
let {
|
|
19
|
+
renderer
|
|
20
|
+
} = _ref,
|
|
21
|
+
props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
22
|
+
if (renderer === 'webgl') {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScatterWebGLPlot.ScatterWebGLPlot, {});
|
|
24
|
+
}
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScatterChart.ScatterPlot, (0, _extends2.default)({
|
|
26
|
+
renderer: renderer
|
|
27
|
+
}, props));
|
|
28
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["renderer"];
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ScatterPlot } from '@mui/x-charts/ScatterChart';
|
|
8
|
+
import { ScatterWebGLPlot } from "./webgl/ScatterWebGLPlot.mjs";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export function ScatterPlotPremium(_ref) {
|
|
11
|
+
let {
|
|
12
|
+
renderer
|
|
13
|
+
} = _ref,
|
|
14
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
15
|
+
if (renderer === 'webgl') {
|
|
16
|
+
return /*#__PURE__*/_jsx(ScatterWebGLPlot, {});
|
|
17
|
+
}
|
|
18
|
+
return /*#__PURE__*/_jsx(ScatterPlot, _extends({
|
|
19
|
+
renderer: renderer
|
|
20
|
+
}, props));
|
|
21
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ScatterChartPremium, type ScatterChartPremiumProps, type ScatterChartPremiumSlots, type ScatterChartPremiumSlotProps } from "./ScatterChartPremium.mjs";
|
|
2
|
+
export { SCATTER_CHART_PREMIUM_PLUGINS, type ScatterChartPremiumPluginSignatures } from "./ScatterChartPremium.plugins.mjs";
|
|
3
|
+
export { ScatterPlotPremium, type ScatterPlotPremiumProps } from "./ScatterPlotPremium.mjs";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ScatterChartPremium, type ScatterChartPremiumProps, type ScatterChartPremiumSlots, type ScatterChartPremiumSlotProps } from "./ScatterChartPremium.js";
|
|
2
|
+
export { SCATTER_CHART_PREMIUM_PLUGINS, type ScatterChartPremiumPluginSignatures } from "./ScatterChartPremium.plugins.js";
|
|
3
|
+
export { ScatterPlotPremium, type ScatterPlotPremiumProps } from "./ScatterPlotPremium.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SCATTER_CHART_PREMIUM_PLUGINS", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ScatterChartPremium2.SCATTER_CHART_PREMIUM_PLUGINS;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ScatterChartPremium", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _ScatterChartPremium.ScatterChartPremium;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "ScatterPlotPremium", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _ScatterPlotPremium.ScatterPlotPremium;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _ScatterChartPremium = require("./ScatterChartPremium");
|
|
25
|
+
var _ScatterChartPremium2 = require("./ScatterChartPremium.plugins");
|
|
26
|
+
var _ScatterPlotPremium = require("./ScatterPlotPremium");
|