@mui/x-charts-pro 7.0.0-alpha.3 → 7.0.0-beta.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/BarChartPro/BarChartPro.js +41 -53
- package/BarChartPro/index.js +1 -1
- package/CHANGELOG.md +98 -1
- package/ChartContainerPro/ChartContainerPro.js +4 -4
- package/ChartContainerPro/index.js +1 -1
- package/Heatmap/DefaultHeatmapTooltip.js +1 -1
- package/Heatmap/Heatmap.js +4 -4
- package/Heatmap/HeatmapItem.js +1 -1
- package/Heatmap/HeatmapPlot.js +2 -2
- package/Heatmap/index.js +4 -4
- package/Heatmap/plugin.js +3 -3
- package/LineChartPro/LineChartPro.js +57 -111
- package/LineChartPro/index.js +1 -1
- package/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +3 -3
- package/ResponsiveChartContainerPro/index.js +1 -1
- package/ScatterChartPro/ScatterChartPro.js +14 -3
- package/ScatterChartPro/index.js +1 -1
- package/context/CartesianProviderPro/CartesianProviderPro.js +2 -2
- package/context/CartesianProviderPro/index.js +1 -1
- package/context/ZoomProvider/ZoomProvider.js +3 -3
- package/context/ZoomProvider/ZoomSetup.js +2 -2
- package/context/ZoomProvider/index.js +3 -3
- package/context/ZoomProvider/useSetupPan.js +1 -1
- package/context/ZoomProvider/useSetupZoom.js +1 -1
- package/context/ZoomProvider/useZoom.js +1 -1
- package/context/index.js +2 -2
- package/hooks/index.js +1 -1
- package/index.js +9 -9
- package/internals/utils/releaseInfo.js +1 -1
- package/models/index.js +1 -1
- package/models/seriesType/index.js +1 -1
- package/modern/BarChartPro/BarChartPro.js +41 -53
- package/modern/BarChartPro/index.js +1 -1
- package/modern/ChartContainerPro/ChartContainerPro.js +4 -4
- package/modern/ChartContainerPro/index.js +1 -1
- package/modern/Heatmap/DefaultHeatmapTooltip.js +1 -1
- package/modern/Heatmap/Heatmap.js +4 -4
- package/modern/Heatmap/HeatmapItem.js +1 -1
- package/modern/Heatmap/HeatmapPlot.js +2 -2
- package/modern/Heatmap/index.js +4 -4
- package/modern/Heatmap/plugin.js +3 -3
- package/modern/LineChartPro/LineChartPro.js +57 -111
- package/modern/LineChartPro/index.js +1 -1
- package/modern/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +3 -3
- package/modern/ResponsiveChartContainerPro/index.js +1 -1
- package/modern/ScatterChartPro/ScatterChartPro.js +14 -3
- package/modern/ScatterChartPro/index.js +1 -1
- package/modern/context/CartesianProviderPro/CartesianProviderPro.js +2 -2
- package/modern/context/CartesianProviderPro/index.js +1 -1
- package/modern/context/ZoomProvider/ZoomProvider.js +3 -3
- package/modern/context/ZoomProvider/ZoomSetup.js +2 -2
- package/modern/context/ZoomProvider/index.js +3 -3
- package/modern/context/ZoomProvider/useSetupPan.js +1 -1
- package/modern/context/ZoomProvider/useSetupZoom.js +1 -1
- package/modern/context/ZoomProvider/useZoom.js +1 -1
- package/modern/context/index.js +2 -2
- package/modern/hooks/index.js +1 -1
- package/modern/index.js +9 -9
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/models/index.js +1 -1
- package/modern/models/seriesType/index.js +1 -1
- package/modern/themeAugmentation/index.js +0 -4
- package/modern/typeOverloads/index.js +1 -1
- package/node/BarChartPro/BarChartPro.js +40 -53
- package/node/ChartContainerPro/ChartContainerPro.js +2 -3
- package/node/ChartContainerPro/useChartContainerProProps.js +1 -1
- package/node/Heatmap/DefaultHeatmapTooltip.js +3 -4
- package/node/Heatmap/Heatmap.js +2 -3
- package/node/Heatmap/HeatmapItem.js +2 -3
- package/node/Heatmap/HeatmapPlot.js +2 -3
- package/node/Heatmap/formatter.js +1 -1
- package/node/Heatmap/heatmapClasses.js +1 -1
- package/node/Heatmap/plugin.js +1 -1
- package/node/LineChartPro/LineChartPro.js +56 -111
- package/node/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +2 -3
- package/node/ResponsiveChartContainerPro/useResponsiveChartContainerProProps.js +1 -1
- package/node/ScatterChartPro/ScatterChartPro.js +14 -4
- package/node/context/CartesianProviderPro/CartesianProviderPro.js +2 -3
- package/node/context/ZoomProvider/ZoomContext.js +1 -2
- package/node/context/ZoomProvider/ZoomProvider.js +2 -3
- package/node/context/ZoomProvider/defaultizeZoom.js +1 -1
- package/node/context/ZoomProvider/useSetupPan.js +2 -3
- package/node/context/ZoomProvider/useSetupZoom.js +1 -2
- package/node/context/ZoomProvider/useZoom.js +1 -2
- package/node/hooks/useSeries.js +1 -2
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/node/themeAugmentation/index.js +1 -49
- package/package.json +6 -5
- package/themeAugmentation/index.d.ts +4 -4
- package/themeAugmentation/index.js +0 -4
- package/typeOverloads/index.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["zoom", "onZoomChange"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
@@ -14,10 +14,34 @@ import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
|
|
|
14
14
|
import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
15
15
|
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
|
|
16
16
|
import { useLineChartProps } from '@mui/x-charts/internals';
|
|
17
|
-
import { ResponsiveChartContainerPro } from
|
|
18
|
-
import { ZoomSetup } from
|
|
19
|
-
import { useZoom } from
|
|
17
|
+
import { ResponsiveChartContainerPro } from "../ResponsiveChartContainerPro/index.js";
|
|
18
|
+
import { ZoomSetup } from "../context/ZoomProvider/ZoomSetup.js";
|
|
19
|
+
import { useZoom } from "../context/ZoomProvider/useZoom.js";
|
|
20
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
function AreaPlotZoom(props) {
|
|
22
|
+
const {
|
|
23
|
+
isInteracting
|
|
24
|
+
} = useZoom();
|
|
25
|
+
return /*#__PURE__*/_jsx(AreaPlot, _extends({}, props, {
|
|
26
|
+
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
function LinePlotZoom(props) {
|
|
30
|
+
const {
|
|
31
|
+
isInteracting
|
|
32
|
+
} = useZoom();
|
|
33
|
+
return /*#__PURE__*/_jsx(LinePlot, _extends({}, props, {
|
|
34
|
+
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
function MarkPlotZoom(props) {
|
|
38
|
+
const {
|
|
39
|
+
isInteracting
|
|
40
|
+
} = useZoom();
|
|
41
|
+
return /*#__PURE__*/_jsx(MarkPlot, _extends({}, props, {
|
|
42
|
+
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
21
45
|
/**
|
|
22
46
|
* Demos:
|
|
23
47
|
*
|
|
@@ -60,7 +84,7 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
|
|
|
60
84
|
}, chartContainerProps, {
|
|
61
85
|
zoom: zoom,
|
|
62
86
|
onZoomChange: onZoomChange,
|
|
63
|
-
children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)),
|
|
87
|
+
children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
64
88
|
children: [/*#__PURE__*/_jsx(AreaPlotZoom, _extends({}, areaPlotProps)), /*#__PURE__*/_jsx(LinePlotZoom, _extends({}, linePlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
65
89
|
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx("g", {
|
|
66
90
|
"data-drawing-container": true,
|
|
@@ -141,6 +165,17 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
141
165
|
classes: PropTypes.object,
|
|
142
166
|
direction: PropTypes.oneOf(['column', 'row']),
|
|
143
167
|
hidden: PropTypes.bool,
|
|
168
|
+
itemGap: PropTypes.number,
|
|
169
|
+
itemMarkHeight: PropTypes.number,
|
|
170
|
+
itemMarkWidth: PropTypes.number,
|
|
171
|
+
labelStyle: PropTypes.object,
|
|
172
|
+
markGap: PropTypes.number,
|
|
173
|
+
padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
174
|
+
bottom: PropTypes.number,
|
|
175
|
+
left: PropTypes.number,
|
|
176
|
+
right: PropTypes.number,
|
|
177
|
+
top: PropTypes.number
|
|
178
|
+
})]),
|
|
144
179
|
position: PropTypes.shape({
|
|
145
180
|
horizontal: PropTypes.oneOf(['left', 'middle', 'right']).isRequired,
|
|
146
181
|
vertical: PropTypes.oneOf(['bottom', 'middle', 'top']).isRequired
|
|
@@ -190,6 +225,12 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
190
225
|
* Callback fired when a mark element is clicked.
|
|
191
226
|
*/
|
|
192
227
|
onMarkClick: PropTypes.func,
|
|
228
|
+
/**
|
|
229
|
+
* Callback fired when the zoom has changed.
|
|
230
|
+
*
|
|
231
|
+
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
232
|
+
*/
|
|
233
|
+
onZoomChange: PropTypes.func,
|
|
193
234
|
/**
|
|
194
235
|
* Indicate which axis to display the right of the charts.
|
|
195
236
|
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
@@ -253,7 +294,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
253
294
|
* An array of [[AxisConfig]] objects.
|
|
254
295
|
*/
|
|
255
296
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
256
|
-
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
257
297
|
classes: PropTypes.object,
|
|
258
298
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
259
299
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -288,6 +328,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
288
328
|
slotProps: PropTypes.object,
|
|
289
329
|
slots: PropTypes.object,
|
|
290
330
|
stroke: PropTypes.string,
|
|
331
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
291
332
|
tickFontSize: PropTypes.number,
|
|
292
333
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
293
334
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -300,6 +341,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
300
341
|
tickSize: PropTypes.number,
|
|
301
342
|
valueFormatter: PropTypes.func,
|
|
302
343
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
344
|
+
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
303
345
|
maxEnd: PropTypes.number,
|
|
304
346
|
maxSpan: PropTypes.number,
|
|
305
347
|
minSpan: PropTypes.number,
|
|
@@ -314,7 +356,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
314
356
|
* An array of [[AxisConfig]] objects.
|
|
315
357
|
*/
|
|
316
358
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
317
|
-
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
318
359
|
classes: PropTypes.object,
|
|
319
360
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
320
361
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -349,6 +390,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
349
390
|
slotProps: PropTypes.object,
|
|
350
391
|
slots: PropTypes.object,
|
|
351
392
|
stroke: PropTypes.string,
|
|
393
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
352
394
|
tickFontSize: PropTypes.number,
|
|
353
395
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
354
396
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -361,6 +403,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
361
403
|
tickSize: PropTypes.number,
|
|
362
404
|
valueFormatter: PropTypes.func,
|
|
363
405
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
406
|
+
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
364
407
|
maxEnd: PropTypes.number,
|
|
365
408
|
maxSpan: PropTypes.number,
|
|
366
409
|
minSpan: PropTypes.number,
|
|
@@ -368,111 +411,14 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
368
411
|
panning: PropTypes.bool,
|
|
369
412
|
step: PropTypes.number
|
|
370
413
|
}), PropTypes.bool])
|
|
371
|
-
}))
|
|
372
|
-
} : void 0;
|
|
373
|
-
function MarkPlotZoom(props) {
|
|
374
|
-
const {
|
|
375
|
-
isInteracting
|
|
376
|
-
} = useZoom();
|
|
377
|
-
return /*#__PURE__*/_jsx(MarkPlot, _extends({}, props, {
|
|
378
|
-
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
379
|
-
}));
|
|
380
|
-
}
|
|
381
|
-
process.env.NODE_ENV !== "production" ? MarkPlotZoom.propTypes = {
|
|
382
|
-
// ----------------------------- Warning --------------------------------
|
|
383
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
384
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
385
|
-
// ----------------------------------------------------------------------
|
|
386
|
-
/**
|
|
387
|
-
* Callback fired when a line mark item is clicked.
|
|
388
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
389
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line mark item identifier.
|
|
390
|
-
*/
|
|
391
|
-
onItemClick: PropTypes.func,
|
|
392
|
-
/**
|
|
393
|
-
* If `true`, animations are skipped.
|
|
394
|
-
* @default false
|
|
395
|
-
*/
|
|
396
|
-
skipAnimation: PropTypes.bool,
|
|
397
|
-
/**
|
|
398
|
-
* The props used for each component slot.
|
|
399
|
-
* @default {}
|
|
400
|
-
*/
|
|
401
|
-
slotProps: PropTypes.object,
|
|
402
|
-
/**
|
|
403
|
-
* Overridable component slots.
|
|
404
|
-
* @default {}
|
|
405
|
-
*/
|
|
406
|
-
slots: PropTypes.object
|
|
407
|
-
} : void 0;
|
|
408
|
-
function LinePlotZoom(props) {
|
|
409
|
-
const {
|
|
410
|
-
isInteracting
|
|
411
|
-
} = useZoom();
|
|
412
|
-
return /*#__PURE__*/_jsx(LinePlot, _extends({}, props, {
|
|
413
|
-
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
414
|
-
}));
|
|
415
|
-
}
|
|
416
|
-
process.env.NODE_ENV !== "production" ? LinePlotZoom.propTypes = {
|
|
417
|
-
// ----------------------------- Warning --------------------------------
|
|
418
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
419
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
420
|
-
// ----------------------------------------------------------------------
|
|
421
|
-
/**
|
|
422
|
-
* Callback fired when a line item is clicked.
|
|
423
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
424
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line item identifier.
|
|
425
|
-
*/
|
|
426
|
-
onItemClick: PropTypes.func,
|
|
427
|
-
/**
|
|
428
|
-
* If `true`, animations are skipped.
|
|
429
|
-
* @default false
|
|
430
|
-
*/
|
|
431
|
-
skipAnimation: PropTypes.bool,
|
|
432
|
-
/**
|
|
433
|
-
* The props used for each component slot.
|
|
434
|
-
* @default {}
|
|
435
|
-
*/
|
|
436
|
-
slotProps: PropTypes.object,
|
|
437
|
-
/**
|
|
438
|
-
* Overridable component slots.
|
|
439
|
-
* @default {}
|
|
440
|
-
*/
|
|
441
|
-
slots: PropTypes.object
|
|
442
|
-
} : void 0;
|
|
443
|
-
function AreaPlotZoom(props) {
|
|
444
|
-
const {
|
|
445
|
-
isInteracting
|
|
446
|
-
} = useZoom();
|
|
447
|
-
return /*#__PURE__*/_jsx(AreaPlot, _extends({}, props, {
|
|
448
|
-
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
449
|
-
}));
|
|
450
|
-
}
|
|
451
|
-
process.env.NODE_ENV !== "production" ? AreaPlotZoom.propTypes = {
|
|
452
|
-
// ----------------------------- Warning --------------------------------
|
|
453
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
454
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
455
|
-
// ----------------------------------------------------------------------
|
|
456
|
-
/**
|
|
457
|
-
* Callback fired when a line area item is clicked.
|
|
458
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
459
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line item identifier.
|
|
460
|
-
*/
|
|
461
|
-
onItemClick: PropTypes.func,
|
|
462
|
-
/**
|
|
463
|
-
* If `true`, animations are skipped.
|
|
464
|
-
* @default false
|
|
465
|
-
*/
|
|
466
|
-
skipAnimation: PropTypes.bool,
|
|
467
|
-
/**
|
|
468
|
-
* The props used for each component slot.
|
|
469
|
-
* @default {}
|
|
470
|
-
*/
|
|
471
|
-
slotProps: PropTypes.object,
|
|
414
|
+
})),
|
|
472
415
|
/**
|
|
473
|
-
*
|
|
474
|
-
* @default {}
|
|
416
|
+
* The list of zoom data related to each axis.
|
|
475
417
|
*/
|
|
476
|
-
|
|
418
|
+
zoom: PropTypes.arrayOf(PropTypes.shape({
|
|
419
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
420
|
+
end: PropTypes.number.isRequired,
|
|
421
|
+
start: PropTypes.number.isRequired
|
|
422
|
+
}))
|
|
477
423
|
} : void 0;
|
|
478
424
|
export { LineChartPro };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./LineChartPro.js";
|
|
@@ -3,9 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Watermark } from '@mui/x-license/Watermark';
|
|
5
5
|
import { ResizableContainer } from '@mui/x-charts/internals';
|
|
6
|
-
import { getReleaseInfo } from
|
|
7
|
-
import { ChartContainerPro } from
|
|
8
|
-
import { useResponsiveChartContainerProProps } from
|
|
6
|
+
import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
|
|
7
|
+
import { ChartContainerPro } from "../ChartContainerPro/index.js";
|
|
8
|
+
import { useResponsiveChartContainerProProps } from "./useResponsiveChartContainerProProps.js";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
const releaseInfo = getReleaseInfo();
|
|
11
11
|
const ResponsiveChartContainerPro = /*#__PURE__*/React.forwardRef(function ResponsiveChartContainerPro(props, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./ResponsiveChartContainerPro.js";
|
|
@@ -14,8 +14,8 @@ import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
|
|
|
14
14
|
import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
|
|
15
15
|
import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
16
16
|
import { useScatterChartProps } from '@mui/x-charts/internals';
|
|
17
|
-
import { ResponsiveChartContainerPro } from
|
|
18
|
-
import { ZoomSetup } from
|
|
17
|
+
import { ResponsiveChartContainerPro } from "../ResponsiveChartContainerPro/index.js";
|
|
18
|
+
import { ZoomSetup } from "../context/ZoomProvider/ZoomSetup.js";
|
|
19
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
20
|
/**
|
|
21
21
|
* Demos:
|
|
@@ -56,7 +56,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
|
|
|
56
56
|
zoom: zoom,
|
|
57
57
|
onZoomChange: onZoomChange,
|
|
58
58
|
children: /*#__PURE__*/_jsxs(ZAxisContextProvider, _extends({}, zAxisProps, {
|
|
59
|
-
children: [!props.disableVoronoi && /*#__PURE__*/_jsx(ChartsVoronoiHandler, _extends({}, voronoiHandlerProps)), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)),
|
|
59
|
+
children: [!props.disableVoronoi && /*#__PURE__*/_jsx(ChartsVoronoiHandler, _extends({}, voronoiHandlerProps)), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsx("g", {
|
|
60
60
|
"data-drawing-container": true,
|
|
61
61
|
children: /*#__PURE__*/_jsx(ScatterPlot, _extends({}, scatterPlotProps))
|
|
62
62
|
}), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), !props.loading && /*#__PURE__*/_jsx(ChartsTooltip, _extends({}, tooltipProps)), /*#__PURE__*/_jsx(ZoomSetup, {}), children]
|
|
@@ -137,6 +137,17 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
137
137
|
classes: PropTypes.object,
|
|
138
138
|
direction: PropTypes.oneOf(['column', 'row']),
|
|
139
139
|
hidden: PropTypes.bool,
|
|
140
|
+
itemGap: PropTypes.number,
|
|
141
|
+
itemMarkHeight: PropTypes.number,
|
|
142
|
+
itemMarkWidth: PropTypes.number,
|
|
143
|
+
labelStyle: PropTypes.object,
|
|
144
|
+
markGap: PropTypes.number,
|
|
145
|
+
padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
146
|
+
bottom: PropTypes.number,
|
|
147
|
+
left: PropTypes.number,
|
|
148
|
+
right: PropTypes.number,
|
|
149
|
+
top: PropTypes.number
|
|
150
|
+
})]),
|
|
140
151
|
position: PropTypes.shape({
|
|
141
152
|
horizontal: PropTypes.oneOf(['left', 'middle', 'right']).isRequired,
|
|
142
153
|
vertical: PropTypes.oneOf(['bottom', 'middle', 'top']).isRequired
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./ScatterChartPro.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useDrawingArea, useSeries, CartesianContext, cartesianProviderUtils, useXExtremumGetter, useYExtremumGetter } from '@mui/x-charts/internals';
|
|
4
|
-
import { useZoom } from
|
|
5
|
-
import { createAxisFilterMapper, createGetAxisFilters } from
|
|
4
|
+
import { useZoom } from "../ZoomProvider/useZoom.js";
|
|
5
|
+
import { createAxisFilterMapper, createGetAxisFilters } from "./createAxisFilterMapper.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const {
|
|
8
8
|
computeValue
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./CartesianProviderPro.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import useControlled from '@mui/utils/useControlled';
|
|
3
|
-
import { ZoomContext } from
|
|
4
|
-
import { defaultizeZoom } from
|
|
5
|
-
import { initializeZoomData } from
|
|
3
|
+
import { ZoomContext } from "./ZoomContext.js";
|
|
4
|
+
import { defaultizeZoom } from "./defaultizeZoom.js";
|
|
5
|
+
import { initializeZoomData } from "./initializeZoomData.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export function ZoomProvider({
|
|
8
8
|
children,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useSetupPan } from
|
|
2
|
-
import { useSetupZoom } from
|
|
1
|
+
import { useSetupPan } from "./useSetupPan.js";
|
|
2
|
+
import { useSetupZoom } from "./useSetupZoom.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Sets up the zoom functionality if using composition or a custom chart.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./ZoomContext.js";
|
|
2
|
+
export * from "./ZoomProvider.js";
|
|
3
|
+
export * from "./Zoom.types.js";
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useDrawingArea, useSvgRef } from '@mui/x-charts/hooks';
|
|
4
4
|
import { getSVGPoint } from '@mui/x-charts/internals';
|
|
5
|
-
import { useZoom } from
|
|
5
|
+
import { useZoom } from "./useZoom.js";
|
|
6
6
|
export const useSetupPan = () => {
|
|
7
7
|
const {
|
|
8
8
|
zoomData,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useDrawingArea, useSvgRef } from '@mui/x-charts/hooks';
|
|
3
3
|
import { getSVGPoint } from '@mui/x-charts/internals';
|
|
4
|
-
import { useZoom } from
|
|
4
|
+
import { useZoom } from "./useZoom.js";
|
|
5
5
|
/**
|
|
6
6
|
* Helper to get the range (in percents of a reference range) corresponding to a given scale.
|
|
7
7
|
* @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
|
package/modern/context/index.js
CHANGED
package/modern/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { useHeatmapSeries as unstable_useHeatmapSeries } from
|
|
1
|
+
export { useHeatmapSeries as unstable_useHeatmapSeries } from "./useSeries.js";
|
package/modern/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts-pro v7.0.0-
|
|
2
|
+
* @mui/x-charts-pro v7.0.0-beta.0
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import "./typeOverloads/modules.js";
|
|
9
9
|
|
|
10
10
|
// exports from MIT package
|
|
11
11
|
export * from '@mui/x-charts/constants';
|
|
@@ -34,12 +34,12 @@ export * from '@mui/x-charts/Gauge';
|
|
|
34
34
|
export * from '@mui/x-charts/ChartsSurface';
|
|
35
35
|
|
|
36
36
|
// Pro components
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
37
|
+
export * from "./Heatmap/index.js";
|
|
38
|
+
export * from "./ResponsiveChartContainerPro/index.js";
|
|
39
|
+
export * from "./ChartContainerPro/index.js";
|
|
40
|
+
export * from "./ScatterChartPro/index.js";
|
|
41
|
+
export * from "./BarChartPro/index.js";
|
|
42
|
+
export * from "./LineChartPro/index.js";
|
|
43
43
|
|
|
44
44
|
// Pro context
|
|
45
|
-
export * from
|
|
45
|
+
export * from "./context/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcyNTQ4MzYwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
package/modern/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./seriesType/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./heatmap.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {} from
|
|
1
|
+
export {} from "./modules.js";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.BarChartPro = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
11
|
var React = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
13
|
var _styles = require("@mui/material/styles");
|
|
@@ -25,8 +26,14 @@ var _ZoomSetup = require("../context/ZoomProvider/ZoomSetup");
|
|
|
25
26
|
var _useZoom = require("../context/ZoomProvider/useZoom");
|
|
26
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
28
|
const _excluded = ["zoom", "onZoomChange"];
|
|
28
|
-
function
|
|
29
|
-
|
|
29
|
+
function BarChartPlotZoom(props) {
|
|
30
|
+
const {
|
|
31
|
+
isInteracting
|
|
32
|
+
} = (0, _useZoom.useZoom)();
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.BarPlot, (0, _extends2.default)({}, props, {
|
|
34
|
+
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
30
37
|
/**
|
|
31
38
|
* Demos:
|
|
32
39
|
*
|
|
@@ -67,7 +74,7 @@ const BarChartPro = exports.BarChartPro = /*#__PURE__*/React.forwardRef(function
|
|
|
67
74
|
}, chartContainerProps, {
|
|
68
75
|
zoom: zoom,
|
|
69
76
|
onZoomChange: onZoomChange,
|
|
70
|
-
children: [props.onAxisClick && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOnAxisClickHandler.ChartsOnAxisClickHandler, (0, _extends2.default)({}, axisClickHandlerProps)),
|
|
77
|
+
children: [props.onAxisClick && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOnAxisClickHandler.ChartsOnAxisClickHandler, (0, _extends2.default)({}, axisClickHandlerProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsGrid.ChartsGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
|
|
71
78
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(BarChartPlotZoom, (0, _extends2.default)({}, barPlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps))]
|
|
72
79
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltip, (0, _extends2.default)({}, tooltipProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ZoomSetup.ZoomSetup, {}), children]
|
|
73
80
|
}));
|
|
@@ -159,6 +166,17 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
159
166
|
classes: _propTypes.default.object,
|
|
160
167
|
direction: _propTypes.default.oneOf(['column', 'row']),
|
|
161
168
|
hidden: _propTypes.default.bool,
|
|
169
|
+
itemGap: _propTypes.default.number,
|
|
170
|
+
itemMarkHeight: _propTypes.default.number,
|
|
171
|
+
itemMarkWidth: _propTypes.default.number,
|
|
172
|
+
labelStyle: _propTypes.default.object,
|
|
173
|
+
markGap: _propTypes.default.number,
|
|
174
|
+
padding: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
|
175
|
+
bottom: _propTypes.default.number,
|
|
176
|
+
left: _propTypes.default.number,
|
|
177
|
+
right: _propTypes.default.number,
|
|
178
|
+
top: _propTypes.default.number
|
|
179
|
+
})]),
|
|
162
180
|
position: _propTypes.default.shape({
|
|
163
181
|
horizontal: _propTypes.default.oneOf(['left', 'middle', 'right']).isRequired,
|
|
164
182
|
vertical: _propTypes.default.oneOf(['bottom', 'middle', 'top']).isRequired
|
|
@@ -202,6 +220,12 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
202
220
|
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
203
221
|
*/
|
|
204
222
|
onItemClick: _propTypes.default.func,
|
|
223
|
+
/**
|
|
224
|
+
* Callback fired when the zoom has changed.
|
|
225
|
+
*
|
|
226
|
+
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
227
|
+
*/
|
|
228
|
+
onZoomChange: _propTypes.default.func,
|
|
205
229
|
/**
|
|
206
230
|
* Indicate which axis to display the right of the charts.
|
|
207
231
|
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
@@ -264,7 +288,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
264
288
|
* An array of [[AxisConfig]] objects.
|
|
265
289
|
*/
|
|
266
290
|
xAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
267
|
-
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
268
291
|
classes: _propTypes.default.object,
|
|
269
292
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
270
293
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
@@ -299,6 +322,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
299
322
|
slotProps: _propTypes.default.object,
|
|
300
323
|
slots: _propTypes.default.object,
|
|
301
324
|
stroke: _propTypes.default.string,
|
|
325
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
302
326
|
tickFontSize: _propTypes.default.number,
|
|
303
327
|
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
304
328
|
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
@@ -311,6 +335,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
311
335
|
tickSize: _propTypes.default.number,
|
|
312
336
|
valueFormatter: _propTypes.default.func,
|
|
313
337
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
338
|
+
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
314
339
|
maxEnd: _propTypes.default.number,
|
|
315
340
|
maxSpan: _propTypes.default.number,
|
|
316
341
|
minSpan: _propTypes.default.number,
|
|
@@ -325,7 +350,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
325
350
|
* An array of [[AxisConfig]] objects.
|
|
326
351
|
*/
|
|
327
352
|
yAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
328
|
-
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
329
353
|
classes: _propTypes.default.object,
|
|
330
354
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
331
355
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
@@ -360,6 +384,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
360
384
|
slotProps: _propTypes.default.object,
|
|
361
385
|
slots: _propTypes.default.object,
|
|
362
386
|
stroke: _propTypes.default.string,
|
|
387
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
363
388
|
tickFontSize: _propTypes.default.number,
|
|
364
389
|
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
365
390
|
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
@@ -372,6 +397,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
372
397
|
tickSize: _propTypes.default.number,
|
|
373
398
|
valueFormatter: _propTypes.default.func,
|
|
374
399
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
400
|
+
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
375
401
|
maxEnd: _propTypes.default.number,
|
|
376
402
|
maxSpan: _propTypes.default.number,
|
|
377
403
|
minSpan: _propTypes.default.number,
|
|
@@ -379,52 +405,13 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
379
405
|
panning: _propTypes.default.bool,
|
|
380
406
|
step: _propTypes.default.number
|
|
381
407
|
}), _propTypes.default.bool])
|
|
382
|
-
}))
|
|
383
|
-
} : void 0;
|
|
384
|
-
function BarChartPlotZoom(props) {
|
|
385
|
-
const {
|
|
386
|
-
isInteracting
|
|
387
|
-
} = (0, _useZoom.useZoom)();
|
|
388
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.BarPlot, (0, _extends2.default)({}, props, {
|
|
389
|
-
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
390
|
-
}));
|
|
391
|
-
}
|
|
392
|
-
process.env.NODE_ENV !== "production" ? BarChartPlotZoom.propTypes = {
|
|
393
|
-
// ----------------------------- Warning --------------------------------
|
|
394
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
395
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
396
|
-
// ----------------------------------------------------------------------
|
|
397
|
-
/**
|
|
398
|
-
* If provided, the function will be used to format the label of the bar.
|
|
399
|
-
* It can be set to 'value' to display the current value.
|
|
400
|
-
* @param {BarItem} item The item to format.
|
|
401
|
-
* @param {BarLabelContext} context data about the bar.
|
|
402
|
-
* @returns {string} The formatted label.
|
|
403
|
-
*/
|
|
404
|
-
barLabel: _propTypes.default.oneOfType([_propTypes.default.oneOf(['value']), _propTypes.default.func]),
|
|
405
|
-
/**
|
|
406
|
-
* Defines the border radius of the bar element.
|
|
407
|
-
*/
|
|
408
|
-
borderRadius: _propTypes.default.number,
|
|
409
|
-
/**
|
|
410
|
-
* Callback fired when a bar item is clicked.
|
|
411
|
-
* @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
|
|
412
|
-
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
413
|
-
*/
|
|
414
|
-
onItemClick: _propTypes.default.func,
|
|
415
|
-
/**
|
|
416
|
-
* If `true`, animations are skipped.
|
|
417
|
-
* @default false
|
|
418
|
-
*/
|
|
419
|
-
skipAnimation: _propTypes.default.bool,
|
|
420
|
-
/**
|
|
421
|
-
* The props used for each component slot.
|
|
422
|
-
* @default {}
|
|
423
|
-
*/
|
|
424
|
-
slotProps: _propTypes.default.object,
|
|
408
|
+
})),
|
|
425
409
|
/**
|
|
426
|
-
*
|
|
427
|
-
* @default {}
|
|
410
|
+
* The list of zoom data related to each axis.
|
|
428
411
|
*/
|
|
429
|
-
|
|
412
|
+
zoom: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
413
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
414
|
+
end: _propTypes.default.number.isRequired,
|
|
415
|
+
start: _propTypes.default.number.isRequired
|
|
416
|
+
}))
|
|
430
417
|
} : void 0;
|