@mui/x-charts-pro 9.0.1 → 9.0.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/BarChartPro/BarChartPro.js +20 -1
- package/BarChartPro/BarChartPro.mjs +20 -1
- package/CHANGELOG.md +257 -0
- package/ChartsDataProviderPro/ChartsDataProviderPro.js +2 -2
- package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +2 -2
- package/ChartsRadialDataProvider/index.d.mts +1 -0
- package/ChartsRadialDataProvider/index.d.ts +1 -0
- package/ChartsRadialDataProvider/index.js +16 -0
- package/ChartsRadialDataProvider/index.mjs +2 -0
- package/ChartsRadialGrid/index.d.mts +1 -0
- package/ChartsRadialGrid/index.d.ts +1 -0
- package/ChartsRadialGrid/index.js +16 -0
- package/ChartsRadialGrid/index.mjs +2 -0
- package/ChartsRadiusAxis/index.d.mts +1 -0
- package/ChartsRadiusAxis/index.d.ts +1 -0
- package/ChartsRadiusAxis/index.js +16 -0
- package/ChartsRadiusAxis/index.mjs +2 -0
- package/ChartsRotationAxis/index.d.mts +1 -0
- package/ChartsRotationAxis/index.d.ts +1 -0
- package/ChartsRotationAxis/index.js +16 -0
- package/ChartsRotationAxis/index.mjs +2 -0
- package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.js +1 -0
- package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.mjs +1 -0
- package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.js +1 -0
- package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.mjs +1 -0
- package/ChartsToolbarPro/ChartsToolbarPro.d.mts +30 -0
- package/ChartsToolbarPro/ChartsToolbarPro.d.ts +30 -0
- package/ChartsToolbarPro/ChartsToolbarPro.js +66 -17
- package/ChartsToolbarPro/ChartsToolbarPro.mjs +66 -17
- package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.d.mts +41 -0
- package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.d.ts +41 -0
- package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.js +156 -0
- package/ChartsToolbarPro/ChartsToolbarRangeButtonTrigger.mjs +150 -0
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +1 -1
- package/ChartsToolbarPro/index.d.mts +1 -0
- package/ChartsToolbarPro/index.d.ts +1 -0
- package/ChartsToolbarPro/index.js +11 -0
- package/ChartsToolbarPro/index.mjs +1 -0
- package/ChartsToolbarPro/rangeButtonValueToZoom.d.mts +66 -0
- package/ChartsToolbarPro/rangeButtonValueToZoom.d.ts +66 -0
- package/ChartsToolbarPro/rangeButtonValueToZoom.js +217 -0
- package/ChartsToolbarPro/rangeButtonValueToZoom.mjs +212 -0
- package/Heatmap/Heatmap.js +4 -1
- package/Heatmap/Heatmap.mjs +4 -1
- package/LineChartPro/LineChartPro.js +20 -1
- package/LineChartPro/LineChartPro.mjs +20 -1
- package/ScatterChartPro/ScatterChartPro.js +20 -1
- package/ScatterChartPro/ScatterChartPro.mjs +20 -1
- package/index.d.mts +4 -0
- package/index.d.ts +4 -0
- package/index.js +45 -1
- package/index.mjs +5 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.mjs +3 -3
- package/internals/plugins/useChartProZoom/useChartProZoom.js +13 -4
- package/internals/plugins/useChartProZoom/useChartProZoom.mjs +13 -4
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.mts +3 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +3 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -3
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.mjs +3 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.mts +10 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +10 -0
- package/models/seriesType/heatmap.d.mts +9 -1
- package/models/seriesType/heatmap.d.ts +9 -1
- package/package.json +62 -6
|
@@ -475,6 +475,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
475
475
|
tickSize: _propTypes.default.number,
|
|
476
476
|
tickSpacing: _propTypes.default.number,
|
|
477
477
|
valueFormatter: _propTypes.default.func,
|
|
478
|
+
valueGetter: _propTypes.default.func,
|
|
478
479
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
479
480
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
480
481
|
maxEnd: _propTypes.default.number,
|
|
@@ -549,6 +550,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
549
550
|
tickSize: _propTypes.default.number,
|
|
550
551
|
tickSpacing: _propTypes.default.number,
|
|
551
552
|
valueFormatter: _propTypes.default.func,
|
|
553
|
+
valueGetter: _propTypes.default.func,
|
|
552
554
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
553
555
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
554
556
|
maxEnd: _propTypes.default.number,
|
|
@@ -610,6 +612,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
610
612
|
tickSize: _propTypes.default.number,
|
|
611
613
|
tickSpacing: _propTypes.default.number,
|
|
612
614
|
valueFormatter: _propTypes.default.func,
|
|
615
|
+
valueGetter: _propTypes.default.func,
|
|
613
616
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
614
617
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
615
618
|
maxEnd: _propTypes.default.number,
|
|
@@ -672,6 +675,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
672
675
|
tickSize: _propTypes.default.number,
|
|
673
676
|
tickSpacing: _propTypes.default.number,
|
|
674
677
|
valueFormatter: _propTypes.default.func,
|
|
678
|
+
valueGetter: _propTypes.default.func,
|
|
675
679
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
676
680
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
677
681
|
maxEnd: _propTypes.default.number,
|
|
@@ -733,6 +737,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
733
737
|
tickSize: _propTypes.default.number,
|
|
734
738
|
tickSpacing: _propTypes.default.number,
|
|
735
739
|
valueFormatter: _propTypes.default.func,
|
|
740
|
+
valueGetter: _propTypes.default.func,
|
|
736
741
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
737
742
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
738
743
|
maxEnd: _propTypes.default.number,
|
|
@@ -794,6 +799,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
794
799
|
tickSize: _propTypes.default.number,
|
|
795
800
|
tickSpacing: _propTypes.default.number,
|
|
796
801
|
valueFormatter: _propTypes.default.func,
|
|
802
|
+
valueGetter: _propTypes.default.func,
|
|
797
803
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
798
804
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
799
805
|
maxEnd: _propTypes.default.number,
|
|
@@ -859,6 +865,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
859
865
|
tickSize: _propTypes.default.number,
|
|
860
866
|
tickSpacing: _propTypes.default.number,
|
|
861
867
|
valueFormatter: _propTypes.default.func,
|
|
868
|
+
valueGetter: _propTypes.default.func,
|
|
862
869
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
863
870
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
864
871
|
maxEnd: _propTypes.default.number,
|
|
@@ -924,6 +931,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
924
931
|
tickSize: _propTypes.default.number,
|
|
925
932
|
tickSpacing: _propTypes.default.number,
|
|
926
933
|
valueFormatter: _propTypes.default.func,
|
|
934
|
+
valueGetter: _propTypes.default.func,
|
|
927
935
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
928
936
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
929
937
|
maxEnd: _propTypes.default.number,
|
|
@@ -985,6 +993,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
985
993
|
tickSize: _propTypes.default.number,
|
|
986
994
|
tickSpacing: _propTypes.default.number,
|
|
987
995
|
valueFormatter: _propTypes.default.func,
|
|
996
|
+
valueGetter: _propTypes.default.func,
|
|
988
997
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
989
998
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
990
999
|
maxEnd: _propTypes.default.number,
|
|
@@ -1065,6 +1074,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1065
1074
|
tickSize: _propTypes.default.number,
|
|
1066
1075
|
tickSpacing: _propTypes.default.number,
|
|
1067
1076
|
valueFormatter: _propTypes.default.func,
|
|
1077
|
+
valueGetter: _propTypes.default.func,
|
|
1068
1078
|
width: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
|
1069
1079
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1070
1080
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
@@ -1138,6 +1148,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1138
1148
|
tickSize: _propTypes.default.number,
|
|
1139
1149
|
tickSpacing: _propTypes.default.number,
|
|
1140
1150
|
valueFormatter: _propTypes.default.func,
|
|
1151
|
+
valueGetter: _propTypes.default.func,
|
|
1141
1152
|
width: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
|
1142
1153
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1143
1154
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
@@ -1198,6 +1209,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1198
1209
|
tickSize: _propTypes.default.number,
|
|
1199
1210
|
tickSpacing: _propTypes.default.number,
|
|
1200
1211
|
valueFormatter: _propTypes.default.func,
|
|
1212
|
+
valueGetter: _propTypes.default.func,
|
|
1201
1213
|
width: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
|
1202
1214
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1203
1215
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
@@ -1259,6 +1271,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1259
1271
|
tickSize: _propTypes.default.number,
|
|
1260
1272
|
tickSpacing: _propTypes.default.number,
|
|
1261
1273
|
valueFormatter: _propTypes.default.func,
|
|
1274
|
+
valueGetter: _propTypes.default.func,
|
|
1262
1275
|
width: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
|
1263
1276
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1264
1277
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
@@ -1319,6 +1332,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1319
1332
|
tickSize: _propTypes.default.number,
|
|
1320
1333
|
tickSpacing: _propTypes.default.number,
|
|
1321
1334
|
valueFormatter: _propTypes.default.func,
|
|
1335
|
+
valueGetter: _propTypes.default.func,
|
|
1322
1336
|
width: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
|
1323
1337
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1324
1338
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
@@ -1379,6 +1393,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1379
1393
|
tickSize: _propTypes.default.number,
|
|
1380
1394
|
tickSpacing: _propTypes.default.number,
|
|
1381
1395
|
valueFormatter: _propTypes.default.func,
|
|
1396
|
+
valueGetter: _propTypes.default.func,
|
|
1382
1397
|
width: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
|
1383
1398
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1384
1399
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
@@ -1443,6 +1458,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1443
1458
|
tickSize: _propTypes.default.number,
|
|
1444
1459
|
tickSpacing: _propTypes.default.number,
|
|
1445
1460
|
valueFormatter: _propTypes.default.func,
|
|
1461
|
+
valueGetter: _propTypes.default.func,
|
|
1446
1462
|
width: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
|
1447
1463
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1448
1464
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
@@ -1507,6 +1523,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1507
1523
|
tickSize: _propTypes.default.number,
|
|
1508
1524
|
tickSpacing: _propTypes.default.number,
|
|
1509
1525
|
valueFormatter: _propTypes.default.func,
|
|
1526
|
+
valueGetter: _propTypes.default.func,
|
|
1510
1527
|
width: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
|
1511
1528
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1512
1529
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
@@ -1567,6 +1584,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1567
1584
|
tickSize: _propTypes.default.number,
|
|
1568
1585
|
tickSpacing: _propTypes.default.number,
|
|
1569
1586
|
valueFormatter: _propTypes.default.func,
|
|
1587
|
+
valueGetter: _propTypes.default.func,
|
|
1570
1588
|
width: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
|
|
1571
1589
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1572
1590
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
@@ -1607,7 +1625,8 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1607
1625
|
dataKey: _propTypes.default.string,
|
|
1608
1626
|
id: _propTypes.default.string,
|
|
1609
1627
|
max: _propTypes.default.number,
|
|
1610
|
-
min: _propTypes.default.number
|
|
1628
|
+
min: _propTypes.default.number,
|
|
1629
|
+
valueGetter: _propTypes.default.func
|
|
1611
1630
|
})),
|
|
1612
1631
|
/**
|
|
1613
1632
|
* The list of zoom data related to each axis.
|
|
@@ -468,6 +468,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
468
468
|
tickSize: PropTypes.number,
|
|
469
469
|
tickSpacing: PropTypes.number,
|
|
470
470
|
valueFormatter: PropTypes.func,
|
|
471
|
+
valueGetter: PropTypes.func,
|
|
471
472
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
472
473
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
473
474
|
maxEnd: PropTypes.number,
|
|
@@ -542,6 +543,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
542
543
|
tickSize: PropTypes.number,
|
|
543
544
|
tickSpacing: PropTypes.number,
|
|
544
545
|
valueFormatter: PropTypes.func,
|
|
546
|
+
valueGetter: PropTypes.func,
|
|
545
547
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
546
548
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
547
549
|
maxEnd: PropTypes.number,
|
|
@@ -603,6 +605,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
603
605
|
tickSize: PropTypes.number,
|
|
604
606
|
tickSpacing: PropTypes.number,
|
|
605
607
|
valueFormatter: PropTypes.func,
|
|
608
|
+
valueGetter: PropTypes.func,
|
|
606
609
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
607
610
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
608
611
|
maxEnd: PropTypes.number,
|
|
@@ -665,6 +668,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
665
668
|
tickSize: PropTypes.number,
|
|
666
669
|
tickSpacing: PropTypes.number,
|
|
667
670
|
valueFormatter: PropTypes.func,
|
|
671
|
+
valueGetter: PropTypes.func,
|
|
668
672
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
669
673
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
670
674
|
maxEnd: PropTypes.number,
|
|
@@ -726,6 +730,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
726
730
|
tickSize: PropTypes.number,
|
|
727
731
|
tickSpacing: PropTypes.number,
|
|
728
732
|
valueFormatter: PropTypes.func,
|
|
733
|
+
valueGetter: PropTypes.func,
|
|
729
734
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
730
735
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
731
736
|
maxEnd: PropTypes.number,
|
|
@@ -787,6 +792,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
787
792
|
tickSize: PropTypes.number,
|
|
788
793
|
tickSpacing: PropTypes.number,
|
|
789
794
|
valueFormatter: PropTypes.func,
|
|
795
|
+
valueGetter: PropTypes.func,
|
|
790
796
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
791
797
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
792
798
|
maxEnd: PropTypes.number,
|
|
@@ -852,6 +858,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
852
858
|
tickSize: PropTypes.number,
|
|
853
859
|
tickSpacing: PropTypes.number,
|
|
854
860
|
valueFormatter: PropTypes.func,
|
|
861
|
+
valueGetter: PropTypes.func,
|
|
855
862
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
856
863
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
857
864
|
maxEnd: PropTypes.number,
|
|
@@ -917,6 +924,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
917
924
|
tickSize: PropTypes.number,
|
|
918
925
|
tickSpacing: PropTypes.number,
|
|
919
926
|
valueFormatter: PropTypes.func,
|
|
927
|
+
valueGetter: PropTypes.func,
|
|
920
928
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
921
929
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
922
930
|
maxEnd: PropTypes.number,
|
|
@@ -978,6 +986,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
978
986
|
tickSize: PropTypes.number,
|
|
979
987
|
tickSpacing: PropTypes.number,
|
|
980
988
|
valueFormatter: PropTypes.func,
|
|
989
|
+
valueGetter: PropTypes.func,
|
|
981
990
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
982
991
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
983
992
|
maxEnd: PropTypes.number,
|
|
@@ -1058,6 +1067,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1058
1067
|
tickSize: PropTypes.number,
|
|
1059
1068
|
tickSpacing: PropTypes.number,
|
|
1060
1069
|
valueFormatter: PropTypes.func,
|
|
1070
|
+
valueGetter: PropTypes.func,
|
|
1061
1071
|
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
1062
1072
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
1063
1073
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
@@ -1131,6 +1141,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1131
1141
|
tickSize: PropTypes.number,
|
|
1132
1142
|
tickSpacing: PropTypes.number,
|
|
1133
1143
|
valueFormatter: PropTypes.func,
|
|
1144
|
+
valueGetter: PropTypes.func,
|
|
1134
1145
|
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
1135
1146
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
1136
1147
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
@@ -1191,6 +1202,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1191
1202
|
tickSize: PropTypes.number,
|
|
1192
1203
|
tickSpacing: PropTypes.number,
|
|
1193
1204
|
valueFormatter: PropTypes.func,
|
|
1205
|
+
valueGetter: PropTypes.func,
|
|
1194
1206
|
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
1195
1207
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
1196
1208
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
@@ -1252,6 +1264,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1252
1264
|
tickSize: PropTypes.number,
|
|
1253
1265
|
tickSpacing: PropTypes.number,
|
|
1254
1266
|
valueFormatter: PropTypes.func,
|
|
1267
|
+
valueGetter: PropTypes.func,
|
|
1255
1268
|
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
1256
1269
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
1257
1270
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
@@ -1312,6 +1325,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1312
1325
|
tickSize: PropTypes.number,
|
|
1313
1326
|
tickSpacing: PropTypes.number,
|
|
1314
1327
|
valueFormatter: PropTypes.func,
|
|
1328
|
+
valueGetter: PropTypes.func,
|
|
1315
1329
|
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
1316
1330
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
1317
1331
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
@@ -1372,6 +1386,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1372
1386
|
tickSize: PropTypes.number,
|
|
1373
1387
|
tickSpacing: PropTypes.number,
|
|
1374
1388
|
valueFormatter: PropTypes.func,
|
|
1389
|
+
valueGetter: PropTypes.func,
|
|
1375
1390
|
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
1376
1391
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
1377
1392
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
@@ -1436,6 +1451,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1436
1451
|
tickSize: PropTypes.number,
|
|
1437
1452
|
tickSpacing: PropTypes.number,
|
|
1438
1453
|
valueFormatter: PropTypes.func,
|
|
1454
|
+
valueGetter: PropTypes.func,
|
|
1439
1455
|
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
1440
1456
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
1441
1457
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
@@ -1500,6 +1516,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1500
1516
|
tickSize: PropTypes.number,
|
|
1501
1517
|
tickSpacing: PropTypes.number,
|
|
1502
1518
|
valueFormatter: PropTypes.func,
|
|
1519
|
+
valueGetter: PropTypes.func,
|
|
1503
1520
|
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
1504
1521
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
1505
1522
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
@@ -1560,6 +1577,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1560
1577
|
tickSize: PropTypes.number,
|
|
1561
1578
|
tickSpacing: PropTypes.number,
|
|
1562
1579
|
valueFormatter: PropTypes.func,
|
|
1580
|
+
valueGetter: PropTypes.func,
|
|
1563
1581
|
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
1564
1582
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
1565
1583
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
@@ -1600,7 +1618,8 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
1600
1618
|
dataKey: PropTypes.string,
|
|
1601
1619
|
id: PropTypes.string,
|
|
1602
1620
|
max: PropTypes.number,
|
|
1603
|
-
min: PropTypes.number
|
|
1621
|
+
min: PropTypes.number,
|
|
1622
|
+
valueGetter: PropTypes.func
|
|
1604
1623
|
})),
|
|
1605
1624
|
/**
|
|
1606
1625
|
* The list of zoom data related to each axis.
|
package/index.d.mts
CHANGED
|
@@ -23,6 +23,10 @@ export * from '@mui/x-charts/ChartsLabel';
|
|
|
23
23
|
export * from '@mui/x-charts/ChartsOverlay';
|
|
24
24
|
export * from '@mui/x-charts/ChartsWrapper';
|
|
25
25
|
export * from '@mui/x-charts/ChartsBrushOverlay';
|
|
26
|
+
export * from '@mui/x-charts/ChartsRadialDataProvider';
|
|
27
|
+
export * from '@mui/x-charts/ChartsRadialGrid';
|
|
28
|
+
export * from '@mui/x-charts/ChartsRadiusAxis';
|
|
29
|
+
export { type ChartsRotationAxisProps, Unstable_ChartsRotationAxis } from '@mui/x-charts/ChartsRotationAxis';
|
|
26
30
|
export * from "./constants/index.mjs";
|
|
27
31
|
export * from "./hooks/index.mjs";
|
|
28
32
|
export * from "./context/index.mjs";
|
package/index.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export * from '@mui/x-charts/ChartsLabel';
|
|
|
23
23
|
export * from '@mui/x-charts/ChartsOverlay';
|
|
24
24
|
export * from '@mui/x-charts/ChartsWrapper';
|
|
25
25
|
export * from '@mui/x-charts/ChartsBrushOverlay';
|
|
26
|
+
export * from '@mui/x-charts/ChartsRadialDataProvider';
|
|
27
|
+
export * from '@mui/x-charts/ChartsRadialGrid';
|
|
28
|
+
export * from '@mui/x-charts/ChartsRadiusAxis';
|
|
29
|
+
export { type ChartsRotationAxisProps, Unstable_ChartsRotationAxis } from '@mui/x-charts/ChartsRotationAxis';
|
|
26
30
|
export * from "./constants/index.js";
|
|
27
31
|
export * from "./hooks/index.js";
|
|
28
32
|
export * from "./context/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts-pro v9.0.
|
|
2
|
+
* @mui/x-charts-pro v9.0.3
|
|
3
3
|
*
|
|
4
4
|
* @license SEE LICENSE IN LICENSE
|
|
5
5
|
* This source code is licensed under the SEE LICENSE IN LICENSE license found in the
|
|
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
11
11
|
value: true
|
|
12
12
|
});
|
|
13
13
|
var _exportNames = {
|
|
14
|
+
Unstable_ChartsRotationAxis: true,
|
|
14
15
|
ChartsContainerPro: true
|
|
15
16
|
};
|
|
16
17
|
Object.defineProperty(exports, "ChartsContainerPro", {
|
|
@@ -19,6 +20,12 @@ Object.defineProperty(exports, "ChartsContainerPro", {
|
|
|
19
20
|
return _ChartsContainerPro.ChartsContainerPro;
|
|
20
21
|
}
|
|
21
22
|
});
|
|
23
|
+
Object.defineProperty(exports, "Unstable_ChartsRotationAxis", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () {
|
|
26
|
+
return _ChartsRotationAxis.Unstable_ChartsRotationAxis;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
22
29
|
require("./typeOverloads/modules");
|
|
23
30
|
var _ChartsClipPath = require("@mui/x-charts/ChartsClipPath");
|
|
24
31
|
Object.keys(_ChartsClipPath).forEach(function (key) {
|
|
@@ -308,6 +315,43 @@ Object.keys(_ChartsBrushOverlay).forEach(function (key) {
|
|
|
308
315
|
}
|
|
309
316
|
});
|
|
310
317
|
});
|
|
318
|
+
var _ChartsRadialDataProvider = require("@mui/x-charts/ChartsRadialDataProvider");
|
|
319
|
+
Object.keys(_ChartsRadialDataProvider).forEach(function (key) {
|
|
320
|
+
if (key === "default" || key === "__esModule") return;
|
|
321
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
322
|
+
if (key in exports && exports[key] === _ChartsRadialDataProvider[key]) return;
|
|
323
|
+
Object.defineProperty(exports, key, {
|
|
324
|
+
enumerable: true,
|
|
325
|
+
get: function () {
|
|
326
|
+
return _ChartsRadialDataProvider[key];
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
var _ChartsRadialGrid = require("@mui/x-charts/ChartsRadialGrid");
|
|
331
|
+
Object.keys(_ChartsRadialGrid).forEach(function (key) {
|
|
332
|
+
if (key === "default" || key === "__esModule") return;
|
|
333
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
334
|
+
if (key in exports && exports[key] === _ChartsRadialGrid[key]) return;
|
|
335
|
+
Object.defineProperty(exports, key, {
|
|
336
|
+
enumerable: true,
|
|
337
|
+
get: function () {
|
|
338
|
+
return _ChartsRadialGrid[key];
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
});
|
|
342
|
+
var _ChartsRadiusAxis = require("@mui/x-charts/ChartsRadiusAxis");
|
|
343
|
+
Object.keys(_ChartsRadiusAxis).forEach(function (key) {
|
|
344
|
+
if (key === "default" || key === "__esModule") return;
|
|
345
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
346
|
+
if (key in exports && exports[key] === _ChartsRadiusAxis[key]) return;
|
|
347
|
+
Object.defineProperty(exports, key, {
|
|
348
|
+
enumerable: true,
|
|
349
|
+
get: function () {
|
|
350
|
+
return _ChartsRadiusAxis[key];
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
});
|
|
354
|
+
var _ChartsRotationAxis = require("@mui/x-charts/ChartsRotationAxis");
|
|
311
355
|
var _constants = require("./constants");
|
|
312
356
|
Object.keys(_constants).forEach(function (key) {
|
|
313
357
|
if (key === "default" || key === "__esModule") return;
|
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts-pro v9.0.
|
|
2
|
+
* @mui/x-charts-pro v9.0.3
|
|
3
3
|
*
|
|
4
4
|
* @license SEE LICENSE IN LICENSE
|
|
5
5
|
* This source code is licensed under the SEE LICENSE IN LICENSE license found in the
|
|
@@ -32,6 +32,10 @@ export * from '@mui/x-charts/ChartsLabel';
|
|
|
32
32
|
export * from '@mui/x-charts/ChartsOverlay';
|
|
33
33
|
export * from '@mui/x-charts/ChartsWrapper';
|
|
34
34
|
export * from '@mui/x-charts/ChartsBrushOverlay';
|
|
35
|
+
export * from '@mui/x-charts/ChartsRadialDataProvider';
|
|
36
|
+
export * from '@mui/x-charts/ChartsRadialGrid';
|
|
37
|
+
export * from '@mui/x-charts/ChartsRadiusAxis';
|
|
38
|
+
export { Unstable_ChartsRotationAxis } from '@mui/x-charts/ChartsRotationAxis';
|
|
35
39
|
|
|
36
40
|
// Pro utilities
|
|
37
41
|
export * from "./constants/index.mjs";
|
|
@@ -29,11 +29,11 @@ const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) => {
|
|
|
29
29
|
let minSpillover = 0;
|
|
30
30
|
let maxSpillover = 0;
|
|
31
31
|
if (newMinRange < MIN_RANGE) {
|
|
32
|
-
minSpillover =
|
|
32
|
+
minSpillover = MIN_RANGE - newMinRange;
|
|
33
33
|
newMinRange = MIN_RANGE;
|
|
34
34
|
}
|
|
35
35
|
if (newMaxRange > MAX_RANGE) {
|
|
36
|
-
maxSpillover =
|
|
36
|
+
maxSpillover = newMaxRange - MAX_RANGE;
|
|
37
37
|
newMaxRange = MAX_RANGE;
|
|
38
38
|
}
|
|
39
39
|
if (minSpillover > 0 && maxSpillover > 0) {
|
|
@@ -42,7 +42,7 @@ const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) => {
|
|
|
42
42
|
newMaxRange += minSpillover;
|
|
43
43
|
newMinRange -= maxSpillover;
|
|
44
44
|
newMinRange = Math.min(MAX_RANGE - MIN_ALLOWED_SPAN, Math.max(MIN_RANGE, newMinRange));
|
|
45
|
-
newMaxRange = Math.max(MIN_ALLOWED_SPAN, Math.min(MAX_RANGE, newMaxRange));
|
|
45
|
+
newMaxRange = Math.max(MIN_RANGE + MIN_ALLOWED_SPAN, Math.min(MAX_RANGE, newMaxRange));
|
|
46
46
|
return [newMinRange, newMaxRange];
|
|
47
47
|
};
|
|
48
48
|
|
|
@@ -17,11 +17,11 @@ export const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) =
|
|
|
17
17
|
let minSpillover = 0;
|
|
18
18
|
let maxSpillover = 0;
|
|
19
19
|
if (newMinRange < MIN_RANGE) {
|
|
20
|
-
minSpillover =
|
|
20
|
+
minSpillover = MIN_RANGE - newMinRange;
|
|
21
21
|
newMinRange = MIN_RANGE;
|
|
22
22
|
}
|
|
23
23
|
if (newMaxRange > MAX_RANGE) {
|
|
24
|
-
maxSpillover =
|
|
24
|
+
maxSpillover = newMaxRange - MAX_RANGE;
|
|
25
25
|
newMaxRange = MAX_RANGE;
|
|
26
26
|
}
|
|
27
27
|
if (minSpillover > 0 && maxSpillover > 0) {
|
|
@@ -30,7 +30,7 @@ export const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) =
|
|
|
30
30
|
newMaxRange += minSpillover;
|
|
31
31
|
newMinRange -= maxSpillover;
|
|
32
32
|
newMinRange = Math.min(MAX_RANGE - MIN_ALLOWED_SPAN, Math.max(MIN_RANGE, newMinRange));
|
|
33
|
-
newMaxRange = Math.max(MIN_ALLOWED_SPAN, Math.min(MAX_RANGE, newMaxRange));
|
|
33
|
+
newMaxRange = Math.max(MIN_RANGE + MIN_ALLOWED_SPAN, Math.min(MAX_RANGE, newMaxRange));
|
|
34
34
|
return [newMinRange, newMaxRange];
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -70,12 +70,14 @@ const useChartProZoom = pluginData => {
|
|
|
70
70
|
onZoomChange(newZoomData);
|
|
71
71
|
if (store.state.zoom.isControlled) {
|
|
72
72
|
store.set('zoom', (0, _extends2.default)({}, store.state.zoom, {
|
|
73
|
-
isInteracting: true
|
|
73
|
+
isInteracting: true,
|
|
74
|
+
activeRangeButtonKey: null
|
|
74
75
|
}));
|
|
75
76
|
} else {
|
|
76
77
|
store.set('zoom', (0, _extends2.default)({}, store.state.zoom, {
|
|
77
78
|
isInteracting: true,
|
|
78
|
-
zoomData: newZoomData
|
|
79
|
+
zoomData: newZoomData,
|
|
80
|
+
activeRangeButtonKey: null
|
|
79
81
|
}));
|
|
80
82
|
removeIsInteracting();
|
|
81
83
|
}
|
|
@@ -139,6 +141,11 @@ const useChartProZoom = pluginData => {
|
|
|
139
141
|
}, [setZoomDataCallback, store]);
|
|
140
142
|
const zoomIn = React.useCallback(() => zoom(0.1), [zoom]);
|
|
141
143
|
const zoomOut = React.useCallback(() => zoom(-0.1), [zoom]);
|
|
144
|
+
const setActiveRangeButtonKey = React.useCallback(key => {
|
|
145
|
+
store.set('zoom', (0, _extends2.default)({}, store.state.zoom, {
|
|
146
|
+
activeRangeButtonKey: key
|
|
147
|
+
}));
|
|
148
|
+
}, [store]);
|
|
142
149
|
return {
|
|
143
150
|
publicAPI: {
|
|
144
151
|
setZoomData: setZoomDataCallback,
|
|
@@ -151,7 +158,8 @@ const useChartProZoom = pluginData => {
|
|
|
151
158
|
setAxisZoomData,
|
|
152
159
|
moveZoomRange,
|
|
153
160
|
zoomIn,
|
|
154
|
-
zoomOut
|
|
161
|
+
zoomOut,
|
|
162
|
+
setActiveRangeButtonKey
|
|
155
163
|
}
|
|
156
164
|
};
|
|
157
165
|
};
|
|
@@ -178,7 +186,8 @@ useChartProZoom.getInitialState = params => {
|
|
|
178
186
|
zoomData: (0, _initializeZoomData.initializeZoomData)(optionsLookup, userZoomData),
|
|
179
187
|
isInteracting: false,
|
|
180
188
|
isControlled: zoomData !== undefined,
|
|
181
|
-
zoomInteractionConfig: (0, _initializeZoomInteractionConfig.initializeZoomInteractionConfig)(params.zoomInteractionConfig, optionsLookup)
|
|
189
|
+
zoomInteractionConfig: (0, _initializeZoomInteractionConfig.initializeZoomInteractionConfig)(params.zoomInteractionConfig, optionsLookup),
|
|
190
|
+
activeRangeButtonKey: null
|
|
182
191
|
}
|
|
183
192
|
};
|
|
184
193
|
};
|
|
@@ -63,12 +63,14 @@ export const useChartProZoom = pluginData => {
|
|
|
63
63
|
onZoomChange(newZoomData);
|
|
64
64
|
if (store.state.zoom.isControlled) {
|
|
65
65
|
store.set('zoom', _extends({}, store.state.zoom, {
|
|
66
|
-
isInteracting: true
|
|
66
|
+
isInteracting: true,
|
|
67
|
+
activeRangeButtonKey: null
|
|
67
68
|
}));
|
|
68
69
|
} else {
|
|
69
70
|
store.set('zoom', _extends({}, store.state.zoom, {
|
|
70
71
|
isInteracting: true,
|
|
71
|
-
zoomData: newZoomData
|
|
72
|
+
zoomData: newZoomData,
|
|
73
|
+
activeRangeButtonKey: null
|
|
72
74
|
}));
|
|
73
75
|
removeIsInteracting();
|
|
74
76
|
}
|
|
@@ -132,6 +134,11 @@ export const useChartProZoom = pluginData => {
|
|
|
132
134
|
}, [setZoomDataCallback, store]);
|
|
133
135
|
const zoomIn = React.useCallback(() => zoom(0.1), [zoom]);
|
|
134
136
|
const zoomOut = React.useCallback(() => zoom(-0.1), [zoom]);
|
|
137
|
+
const setActiveRangeButtonKey = React.useCallback(key => {
|
|
138
|
+
store.set('zoom', _extends({}, store.state.zoom, {
|
|
139
|
+
activeRangeButtonKey: key
|
|
140
|
+
}));
|
|
141
|
+
}, [store]);
|
|
135
142
|
return {
|
|
136
143
|
publicAPI: {
|
|
137
144
|
setZoomData: setZoomDataCallback,
|
|
@@ -144,7 +151,8 @@ export const useChartProZoom = pluginData => {
|
|
|
144
151
|
setAxisZoomData,
|
|
145
152
|
moveZoomRange,
|
|
146
153
|
zoomIn,
|
|
147
|
-
zoomOut
|
|
154
|
+
zoomOut,
|
|
155
|
+
setActiveRangeButtonKey
|
|
148
156
|
}
|
|
149
157
|
};
|
|
150
158
|
};
|
|
@@ -170,7 +178,8 @@ useChartProZoom.getInitialState = params => {
|
|
|
170
178
|
zoomData: initializeZoomData(optionsLookup, userZoomData),
|
|
171
179
|
isInteracting: false,
|
|
172
180
|
isControlled: zoomData !== undefined,
|
|
173
|
-
zoomInteractionConfig: initializeZoomInteractionConfig(params.zoomInteractionConfig, optionsLookup)
|
|
181
|
+
zoomInteractionConfig: initializeZoomInteractionConfig(params.zoomInteractionConfig, optionsLookup),
|
|
182
|
+
activeRangeButtonKey: null
|
|
174
183
|
}
|
|
175
184
|
};
|
|
176
185
|
};
|
|
@@ -13,6 +13,9 @@ export declare const selectorChartAxisZoomData: (args_0: import("@mui/x-charts/i
|
|
|
13
13
|
export declare const selectorChartCanZoomOut: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.mjs").UseChartProZoomState & Partial<{}> & {
|
|
14
14
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
15
15
|
}) => boolean;
|
|
16
|
+
export declare const selectorChartActiveRangeButtonKey: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.mjs").UseChartProZoomState & Partial<{}> & {
|
|
17
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
18
|
+
}) => string | null;
|
|
16
19
|
export declare const selectorChartCanZoomIn: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.mjs").UseChartProZoomState & Partial<{}> & {
|
|
17
20
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
18
21
|
}) => boolean;
|
|
@@ -13,6 +13,9 @@ export declare const selectorChartAxisZoomData: (args_0: import("@mui/x-charts/i
|
|
|
13
13
|
export declare const selectorChartCanZoomOut: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.js").UseChartProZoomState & Partial<{}> & {
|
|
14
14
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
15
15
|
}) => boolean;
|
|
16
|
+
export declare const selectorChartActiveRangeButtonKey: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.js").UseChartProZoomState & Partial<{}> & {
|
|
17
|
+
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
18
|
+
}) => string | null;
|
|
16
19
|
export declare const selectorChartCanZoomIn: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.js").UseChartProZoomState & Partial<{}> & {
|
|
17
20
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
18
21
|
}) => boolean;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.selectorChartZoomState = exports.selectorChartZoomIsInteracting = exports.selectorChartZoomIsEnabled = exports.selectorChartCanZoomOut = exports.selectorChartCanZoomIn = exports.selectorChartAxisZoomData = void 0;
|
|
6
|
+
exports.selectorChartZoomState = exports.selectorChartZoomIsInteracting = exports.selectorChartZoomIsEnabled = exports.selectorChartCanZoomOut = exports.selectorChartCanZoomIn = exports.selectorChartAxisZoomData = exports.selectorChartActiveRangeButtonKey = void 0;
|
|
7
7
|
var _store = require("@mui/x-internals/store");
|
|
8
8
|
var _internals = require("@mui/x-charts/internals");
|
|
9
9
|
const selectorChartZoomState = state => state.zoom;
|
|
@@ -12,14 +12,15 @@ const selectorChartZoomIsInteracting = exports.selectorChartZoomIsInteracting =
|
|
|
12
12
|
const selectorChartZoomIsEnabled = exports.selectorChartZoomIsEnabled = (0, _store.createSelector)(_internals.selectorChartZoomOptionsLookup, optionsLookup => Object.keys(optionsLookup).length > 0);
|
|
13
13
|
const selectorChartAxisZoomData = exports.selectorChartAxisZoomData = (0, _store.createSelector)(_internals.selectorChartZoomMap, (zoomMap, axisId) => zoomMap?.get(axisId));
|
|
14
14
|
const selectorChartCanZoomOut = exports.selectorChartCanZoomOut = (0, _store.createSelector)(selectorChartZoomState, _internals.selectorChartZoomOptionsLookup, (zoomState, zoomOptions) => {
|
|
15
|
-
return zoomState.zoomData.every(zoomData => {
|
|
15
|
+
return !zoomState.zoomData.every(zoomData => {
|
|
16
16
|
const span = zoomData.end - zoomData.start;
|
|
17
17
|
const options = zoomOptions[zoomData.axisId];
|
|
18
18
|
return zoomData.start === options.minStart && zoomData.end === options.maxEnd || span === options.maxSpan;
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
+
const selectorChartActiveRangeButtonKey = exports.selectorChartActiveRangeButtonKey = (0, _store.createSelector)(selectorChartZoomState, zoom => zoom.activeRangeButtonKey);
|
|
21
22
|
const selectorChartCanZoomIn = exports.selectorChartCanZoomIn = (0, _store.createSelector)(selectorChartZoomState, _internals.selectorChartZoomOptionsLookup, (zoomState, zoomOptions) => {
|
|
22
|
-
return zoomState.zoomData.every(zoomData => {
|
|
23
|
+
return !zoomState.zoomData.every(zoomData => {
|
|
23
24
|
const span = zoomData.end - zoomData.start;
|
|
24
25
|
const options = zoomOptions[zoomData.axisId];
|
|
25
26
|
return span === options.minSpan;
|
|
@@ -5,14 +5,15 @@ export const selectorChartZoomIsInteracting = createSelector(selectorChartZoomSt
|
|
|
5
5
|
export const selectorChartZoomIsEnabled = createSelector(selectorChartZoomOptionsLookup, optionsLookup => Object.keys(optionsLookup).length > 0);
|
|
6
6
|
export const selectorChartAxisZoomData = createSelector(selectorChartZoomMap, (zoomMap, axisId) => zoomMap?.get(axisId));
|
|
7
7
|
export const selectorChartCanZoomOut = createSelector(selectorChartZoomState, selectorChartZoomOptionsLookup, (zoomState, zoomOptions) => {
|
|
8
|
-
return zoomState.zoomData.every(zoomData => {
|
|
8
|
+
return !zoomState.zoomData.every(zoomData => {
|
|
9
9
|
const span = zoomData.end - zoomData.start;
|
|
10
10
|
const options = zoomOptions[zoomData.axisId];
|
|
11
11
|
return zoomData.start === options.minStart && zoomData.end === options.maxEnd || span === options.maxSpan;
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
|
+
export const selectorChartActiveRangeButtonKey = createSelector(selectorChartZoomState, zoom => zoom.activeRangeButtonKey);
|
|
14
15
|
export const selectorChartCanZoomIn = createSelector(selectorChartZoomState, selectorChartZoomOptionsLookup, (zoomState, zoomOptions) => {
|
|
15
|
-
return zoomState.zoomData.every(zoomData => {
|
|
16
|
+
return !zoomState.zoomData.every(zoomData => {
|
|
16
17
|
const span = zoomData.end - zoomData.start;
|
|
17
18
|
const options = zoomOptions[zoomData.axisId];
|
|
18
19
|
return span === options.minSpan;
|