@mui/x-charts-pro 8.0.0-alpha.11 → 8.0.0-alpha.13
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.d.ts +3 -4
- package/BarChartPro/BarChartPro.js +245 -244
- package/BarChartPro/BarChartPro.plugins.d.ts +3 -9
- package/BarChartPro/BarChartPro.plugins.js +9 -3
- package/BarChartPro/index.d.ts +1 -1
- package/BarChartPro/index.js +16 -1
- package/CHANGELOG.md +460 -1
- package/ChartContainerPro/ChartContainerPro.d.ts +5 -5
- package/ChartContainerPro/ChartContainerPro.js +179 -173
- package/ChartContainerPro/index.d.ts +2 -1
- package/ChartContainerPro/index.js +17 -1
- package/ChartContainerPro/useChartContainerProProps.d.ts +3 -3
- package/ChartContainerPro/useChartContainerProProps.js +20 -11
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +4 -4
- package/ChartDataProviderPro/ChartDataProviderPro.js +37 -30
- package/ChartDataProviderPro/index.d.ts +2 -1
- package/ChartDataProviderPro/index.js +17 -1
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +4 -4
- package/ChartDataProviderPro/useChartDataProviderProProps.js +10 -4
- package/Heatmap/Heatmap.d.ts +45 -44
- package/Heatmap/Heatmap.js +232 -241
- package/Heatmap/Heatmap.plugins.d.ts +2 -7
- package/Heatmap/Heatmap.plugins.js +8 -2
- package/Heatmap/HeatmapItem.d.ts +33 -33
- package/Heatmap/HeatmapItem.js +39 -32
- package/Heatmap/HeatmapPlot.d.ts +4 -5
- package/Heatmap/HeatmapPlot.js +22 -16
- package/Heatmap/HeatmapTooltip.d.ts +3 -4
- package/Heatmap/HeatmapTooltip.js +97 -89
- package/Heatmap/heatmapClasses.d.ts +7 -7
- package/Heatmap/heatmapClasses.js +15 -7
- package/Heatmap/index.d.ts +4 -4
- package/Heatmap/index.js +47 -4
- package/Heatmap/{extremums.d.ts → seriesConfig/extremums.d.ts} +1 -1
- package/Heatmap/{getColor.d.ts → seriesConfig/getColor.d.ts} +1 -1
- package/Heatmap/seriesConfig/index.d.ts +2 -0
- package/{node/Heatmap/plugin.js → Heatmap/seriesConfig/index.js} +4 -4
- package/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{node/Heatmap/formatter.js → Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/Heatmap/{tooltip.d.ts → seriesConfig/tooltip.d.ts} +1 -1
- package/LineChartPro/LineChartPro.d.ts +3 -4
- package/LineChartPro/LineChartPro.js +257 -256
- package/LineChartPro/LineChartPro.plugins.d.ts +3 -9
- package/LineChartPro/LineChartPro.plugins.js +9 -3
- package/LineChartPro/index.d.ts +1 -1
- package/LineChartPro/index.js +16 -1
- package/ScatterChartPro/ScatterChartPro.d.ts +4 -4
- package/ScatterChartPro/ScatterChartPro.js +234 -235
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -10
- package/ScatterChartPro/ScatterChartPro.plugins.js +9 -3
- package/ScatterChartPro/index.d.ts +1 -1
- package/ScatterChartPro/index.js +16 -1
- package/esm/BarChartPro/BarChartPro.d.ts +17 -0
- package/esm/BarChartPro/BarChartPro.js +450 -0
- package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/esm/BarChartPro/BarChartPro.plugins.js +3 -0
- package/esm/BarChartPro/index.d.ts +1 -0
- package/esm/BarChartPro/index.js +1 -0
- package/esm/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- package/esm/ChartContainerPro/ChartContainerPro.js +290 -0
- package/esm/ChartContainerPro/index.d.ts +2 -0
- package/esm/ChartContainerPro/index.js +2 -0
- package/esm/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
- package/esm/ChartContainerPro/useChartContainerProProps.js +35 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/{node → esm}/ChartDataProviderPro/ChartDataProviderPro.js +31 -36
- package/esm/ChartDataProviderPro/index.d.ts +2 -0
- package/esm/ChartDataProviderPro/index.js +2 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
- package/esm/Heatmap/Heatmap.d.ts +57 -0
- package/esm/Heatmap/Heatmap.js +387 -0
- package/esm/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/esm/Heatmap/Heatmap.plugins.js +2 -0
- package/esm/Heatmap/HeatmapItem.d.ts +49 -0
- package/esm/Heatmap/HeatmapItem.js +106 -0
- package/esm/Heatmap/HeatmapPlot.d.ts +8 -0
- package/{node → esm}/Heatmap/HeatmapPlot.js +16 -22
- package/esm/Heatmap/HeatmapTooltip.d.ts +8 -0
- package/esm/Heatmap/HeatmapTooltip.js +276 -0
- package/esm/Heatmap/heatmapClasses.d.ts +11 -0
- package/esm/Heatmap/heatmapClasses.js +14 -0
- package/esm/Heatmap/index.d.ts +4 -0
- package/esm/Heatmap/index.js +4 -0
- package/esm/Heatmap/seriesConfig/extremums.d.ts +2 -0
- package/esm/Heatmap/seriesConfig/getColor.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/index.d.ts +2 -0
- package/{Heatmap/plugin.js → esm/Heatmap/seriesConfig/index.js} +3 -3
- package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{Heatmap/formatter.js → esm/Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/esm/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/esm/LineChartPro/LineChartPro.d.ts +16 -0
- package/esm/LineChartPro/LineChartPro.js +501 -0
- package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/esm/LineChartPro/LineChartPro.plugins.js +3 -0
- package/esm/LineChartPro/index.d.ts +1 -0
- package/esm/LineChartPro/index.js +1 -0
- package/esm/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/esm/ScatterChartPro/ScatterChartPro.js +395 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
- package/esm/ScatterChartPro/index.d.ts +1 -0
- package/esm/ScatterChartPro/index.js +1 -0
- package/esm/hooks/index.d.ts +2 -0
- package/esm/hooks/index.js +2 -0
- package/esm/hooks/useHeatmapSeries.d.ts +33 -0
- package/esm/hooks/useHeatmapSeries.js +42 -0
- package/esm/hooks/zoom/index.d.ts +1 -0
- package/esm/hooks/zoom/index.js +1 -0
- package/esm/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
- package/esm/hooks/zoom/useIsZoomInteracting.js +14 -0
- package/esm/index.d.ts +32 -0
- package/esm/index.js +43 -0
- package/esm/internals/plugins/allPlugins.d.ts +5 -0
- package/esm/internals/plugins/allPlugins.js +5 -0
- package/esm/internals/plugins/useChartProZoom/index.d.ts +3 -0
- package/esm/internals/plugins/useChartProZoom/index.js +3 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
- package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.js +94 -54
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
- package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.utils.js +8 -22
- package/esm/internals/utils/releaseInfo.d.ts +1 -0
- package/esm/internals/utils/releaseInfo.js +13 -0
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.js +2 -0
- package/esm/models/seriesType/heatmap.d.ts +28 -0
- package/esm/models/seriesType/index.d.ts +1 -0
- package/esm/models/seriesType/index.js +1 -0
- package/esm/package.json +1 -0
- package/esm/themeAugmentation/components.d.ts +23 -0
- package/esm/themeAugmentation/index.d.ts +4 -0
- package/esm/themeAugmentation/index.js +0 -0
- package/esm/themeAugmentation/overrides.d.ts +11 -0
- package/esm/themeAugmentation/props.d.ts +20 -0
- package/esm/typeOverloads/index.d.ts +1 -0
- package/esm/typeOverloads/index.js +1 -0
- package/esm/typeOverloads/modules.d.ts +22 -0
- package/esm/typeOverloads/modules.js +1 -0
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +27 -2
- package/hooks/useHeatmapSeries.d.ts +33 -0
- package/hooks/useHeatmapSeries.js +48 -0
- package/hooks/zoom/index.d.ts +1 -1
- package/hooks/zoom/index.js +16 -1
- package/hooks/zoom/useIsZoomInteracting.d.ts +1 -1
- package/hooks/zoom/useIsZoomInteracting.js +10 -5
- package/index.d.ts +8 -7
- package/index.js +347 -36
- package/internals/plugins/allPlugins.d.ts +3 -9
- package/internals/plugins/allPlugins.js +9 -3
- package/internals/plugins/useChartProZoom/index.d.ts +3 -3
- package/internals/plugins/useChartProZoom/index.js +38 -3
- package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.js +101 -47
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +154 -328
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -10
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +42 -39
- package/internals/plugins/useChartProZoom/useChartProZoom.types.js +5 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +13 -13
- package/internals/plugins/useChartProZoom/useChartProZoom.utils.js +22 -8
- package/internals/utils/releaseInfo.d.ts +1 -1
- package/internals/utils/releaseInfo.js +13 -5
- package/models/index.d.ts +1 -1
- package/models/index.js +16 -2
- package/models/seriesType/heatmap.d.ts +18 -19
- package/models/seriesType/heatmap.js +5 -1
- package/models/seriesType/index.d.ts +1 -1
- package/models/seriesType/index.js +16 -1
- package/modern/BarChartPro/BarChartPro.d.ts +17 -0
- package/modern/BarChartPro/BarChartPro.js +25 -30
- package/modern/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/modern/BarChartPro/index.d.ts +1 -0
- package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- package/modern/ChartContainerPro/ChartContainerPro.js +1 -1
- package/modern/ChartContainerPro/index.d.ts +2 -0
- package/modern/ChartContainerPro/index.js +1 -0
- package/modern/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
- package/modern/ChartContainerPro/useChartContainerProProps.js +3 -1
- package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/modern/ChartDataProviderPro/ChartDataProviderPro.js +3 -2
- package/modern/ChartDataProviderPro/index.d.ts +2 -0
- package/modern/ChartDataProviderPro/index.js +1 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/modern/Heatmap/Heatmap.d.ts +57 -0
- package/modern/Heatmap/Heatmap.js +39 -54
- package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/modern/Heatmap/HeatmapItem.d.ts +49 -0
- package/modern/Heatmap/HeatmapPlot.d.ts +8 -0
- package/modern/Heatmap/HeatmapPlot.js +2 -2
- package/modern/Heatmap/HeatmapTooltip.d.ts +8 -0
- package/modern/Heatmap/HeatmapTooltip.js +6 -4
- package/modern/Heatmap/heatmapClasses.d.ts +11 -0
- package/modern/Heatmap/index.d.ts +4 -0
- package/modern/Heatmap/seriesConfig/extremums.d.ts +2 -0
- package/modern/Heatmap/seriesConfig/getColor.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/index.d.ts +2 -0
- package/modern/Heatmap/{plugin.js → seriesConfig/index.js} +3 -3
- package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/modern/Heatmap/{formatter.js → seriesConfig/seriesProcessor.js} +2 -2
- package/modern/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/modern/LineChartPro/LineChartPro.d.ts +16 -0
- package/modern/LineChartPro/LineChartPro.js +25 -30
- package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/modern/LineChartPro/index.d.ts +1 -0
- package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/modern/ScatterChartPro/ScatterChartPro.js +26 -33
- package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/modern/ScatterChartPro/ScatterChartPro.plugins.js +2 -2
- package/modern/ScatterChartPro/index.d.ts +1 -0
- package/modern/hooks/index.d.ts +2 -0
- package/modern/hooks/index.js +1 -1
- package/modern/hooks/useHeatmapSeries.d.ts +33 -0
- package/modern/hooks/useHeatmapSeries.js +42 -0
- package/modern/hooks/zoom/index.d.ts +1 -0
- package/modern/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
- package/modern/index.d.ts +32 -0
- package/modern/index.js +2 -2
- package/modern/internals/plugins/allPlugins.d.ts +5 -0
- package/modern/internals/plugins/useChartProZoom/index.d.ts +3 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +65 -18
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -7
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
- package/modern/internals/utils/releaseInfo.d.ts +1 -0
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/models/index.d.ts +2 -0
- package/modern/models/seriesType/heatmap.d.ts +28 -0
- package/modern/models/seriesType/index.d.ts +1 -0
- package/modern/package.json +1 -0
- package/modern/themeAugmentation/components.d.ts +23 -0
- package/modern/themeAugmentation/index.d.ts +4 -0
- package/modern/themeAugmentation/overrides.d.ts +11 -0
- package/modern/themeAugmentation/props.d.ts +20 -0
- package/modern/typeOverloads/index.d.ts +1 -0
- package/modern/typeOverloads/modules.d.ts +22 -0
- package/package.json +41 -11
- package/themeAugmentation/components.d.ts +1 -3
- package/themeAugmentation/index.d.ts +1 -1
- package/themeAugmentation/index.js +1 -0
- package/themeAugmentation/overrides.d.ts +2 -4
- package/themeAugmentation/props.d.ts +5 -7
- package/tsconfig.build.tsbuildinfo +1 -0
- package/typeOverloads/index.d.ts +1 -1
- package/typeOverloads/index.js +6 -1
- package/typeOverloads/modules.d.ts +20 -23
- package/typeOverloads/modules.js +5 -1
- package/BarChartPro/package.json +0 -6
- package/ChartContainerPro/package.json +0 -6
- package/ChartDataProviderPro/package.json +0 -6
- package/Heatmap/formatter.d.ts +0 -3
- package/Heatmap/package.json +0 -6
- package/Heatmap/plugin.d.ts +0 -2
- package/LineChartPro/package.json +0 -6
- package/ScatterChartPro/package.json +0 -6
- package/hooks/package.json +0 -6
- package/hooks/useSeries.d.ts +0 -9
- package/hooks/useSeries.js +0 -16
- package/internals/plugins/useChartProZoom/creatZoomLookup.d.ts +0 -3
- package/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
- package/internals/plugins/useChartProZoom/defaultizeZoom.d.ts +0 -2
- package/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/internals/plugins/useChartProZoom/zoom.types.d.ts +0 -53
- package/models/package.json +0 -6
- package/modern/hooks/useSeries.js +0 -16
- package/modern/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
- package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/node/BarChartPro/BarChartPro.js +0 -461
- package/node/BarChartPro/BarChartPro.plugins.js +0 -9
- package/node/BarChartPro/index.js +0 -16
- package/node/ChartContainerPro/ChartContainerPro.js +0 -296
- package/node/ChartContainerPro/index.js +0 -16
- package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
- package/node/ChartDataProviderPro/index.js +0 -16
- package/node/ChartDataProviderPro/useChartDataProviderProProps.js +0 -21
- package/node/Heatmap/Heatmap.js +0 -408
- package/node/Heatmap/Heatmap.plugins.js +0 -8
- package/node/Heatmap/HeatmapItem.js +0 -113
- package/node/Heatmap/HeatmapTooltip.js +0 -280
- package/node/Heatmap/heatmapClasses.js +0 -22
- package/node/Heatmap/index.js +0 -47
- package/node/LineChartPro/LineChartPro.js +0 -512
- package/node/LineChartPro/LineChartPro.plugins.js +0 -9
- package/node/LineChartPro/index.js +0 -16
- package/node/ScatterChartPro/ScatterChartPro.js +0 -408
- package/node/ScatterChartPro/ScatterChartPro.plugins.js +0 -9
- package/node/ScatterChartPro/index.js +0 -16
- package/node/hooks/index.js +0 -27
- package/node/hooks/useSeries.js +0 -21
- package/node/hooks/zoom/index.js +0 -16
- package/node/hooks/zoom/useIsZoomInteracting.js +0 -19
- package/node/index.js +0 -354
- package/node/internals/plugins/allPlugins.js +0 -11
- package/node/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -19
- package/node/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -33
- package/node/internals/plugins/useChartProZoom/index.js +0 -38
- package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -18
- package/node/internals/plugins/useChartProZoom/useChartProZoom.types.js +0 -5
- package/node/internals/plugins/useChartProZoom/zoom.types.js +0 -5
- package/node/internals/utils/releaseInfo.js +0 -21
- package/node/models/index.js +0 -16
- package/node/models/seriesType/heatmap.js +0 -5
- package/node/models/seriesType/index.js +0 -16
- package/node/themeAugmentation/index.js +0 -1
- package/node/typeOverloads/index.js +0 -6
- package/node/typeOverloads/modules.js +0 -5
- package/themeAugmentation/package.json +0 -6
- package/typeOverloads/package.json +0 -6
- /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/tooltip.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/tooltip.js +0 -0
- /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/internals/plugins/useChartProZoom/useChartProZoom.types.js} +0 -0
- /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/models/seriesType/heatmap.js} +0 -0
- /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
- /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
- /package/modern/Heatmap/{tooltip.js → seriesConfig/tooltip.js} +0 -0
|
@@ -1,16 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
'use client';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.HeatmapTooltip = HeatmapTooltip;
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
|
+
var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
|
|
15
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
|
+
var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
|
|
17
|
+
var _hooks = require("@mui/x-charts/hooks");
|
|
18
|
+
var _internals = require("@mui/x-charts/internals");
|
|
19
|
+
var _useHeatmapSeries = require("../hooks/useHeatmapSeries");
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
21
|
const useUtilityClasses = ownerState => {
|
|
15
22
|
const {
|
|
16
23
|
classes
|
|
@@ -26,16 +33,16 @@ const useUtilityClasses = ownerState => {
|
|
|
26
33
|
labelCell: ['labelCell'],
|
|
27
34
|
valueCell: ['valueCell']
|
|
28
35
|
};
|
|
29
|
-
return
|
|
36
|
+
return (0, _composeClasses.default)(slots, _ChartsTooltip.getChartsTooltipUtilityClass, classes);
|
|
30
37
|
};
|
|
31
38
|
function DefaultHeatmapTooltipContent(props) {
|
|
32
39
|
const {
|
|
33
40
|
classes
|
|
34
41
|
} = props;
|
|
35
|
-
const xAxis = useXAxis();
|
|
36
|
-
const yAxis = useYAxis();
|
|
37
|
-
const heatmapSeries =
|
|
38
|
-
const tooltipData = useItemTooltip();
|
|
42
|
+
const xAxis = (0, _hooks.useXAxis)();
|
|
43
|
+
const yAxis = (0, _hooks.useYAxis)();
|
|
44
|
+
const heatmapSeries = (0, _useHeatmapSeries.useHeatmapSeriesContext)();
|
|
45
|
+
const tooltipData = (0, _ChartsTooltip.useItemTooltip)();
|
|
39
46
|
if (!tooltipData || !heatmapSeries || heatmapSeries.seriesOrder.length === 0) {
|
|
40
47
|
return null;
|
|
41
48
|
}
|
|
@@ -52,45 +59,47 @@ function DefaultHeatmapTooltipContent(props) {
|
|
|
52
59
|
} = tooltipData;
|
|
53
60
|
const [xIndex, yIndex] = value;
|
|
54
61
|
const formattedX = xAxis.valueFormatter?.(xAxis.data[xIndex], {
|
|
55
|
-
location: 'tooltip'
|
|
62
|
+
location: 'tooltip',
|
|
63
|
+
scale: xAxis.scale
|
|
56
64
|
}) ?? xAxis.data[xIndex].toLocaleString();
|
|
57
65
|
const formattedY = yAxis.valueFormatter?.(yAxis.data[yIndex], {
|
|
58
|
-
location: 'tooltip'
|
|
66
|
+
location: 'tooltip',
|
|
67
|
+
scale: yAxis.scale
|
|
59
68
|
}) ?? yAxis.data[yIndex].toLocaleString();
|
|
60
69
|
const formattedValue = series[seriesId].valueFormatter(value, {
|
|
61
70
|
dataIndex: identifier.dataIndex
|
|
62
71
|
});
|
|
63
|
-
const seriesLabel = getLabel(series[seriesId].label, 'tooltip');
|
|
64
|
-
return /*#__PURE__*/
|
|
72
|
+
const seriesLabel = (0, _internals.getLabel)(series[seriesId].label, 'tooltip');
|
|
73
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipPaper, {
|
|
65
74
|
className: classes?.paper,
|
|
66
|
-
children: /*#__PURE__*/
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltip.ChartsTooltipTable, {
|
|
67
76
|
className: classes?.table,
|
|
68
|
-
children: [/*#__PURE__*/
|
|
69
|
-
children: /*#__PURE__*/
|
|
77
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("thead", {
|
|
78
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltip.ChartsTooltipRow, {
|
|
70
79
|
className: classes?.row,
|
|
71
|
-
children: [/*#__PURE__*/
|
|
80
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {
|
|
72
81
|
className: classes?.cell,
|
|
73
82
|
children: formattedX
|
|
74
|
-
}), formattedX && formattedY && /*#__PURE__*/
|
|
83
|
+
}), formattedX && formattedY && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {
|
|
75
84
|
className: classes?.cell,
|
|
76
85
|
children: formattedY
|
|
77
86
|
})]
|
|
78
87
|
})
|
|
79
|
-
}), /*#__PURE__*/
|
|
80
|
-
children: /*#__PURE__*/
|
|
88
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("tbody", {
|
|
89
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltip.ChartsTooltipRow, {
|
|
81
90
|
className: classes?.row,
|
|
82
|
-
children: [/*#__PURE__*/
|
|
83
|
-
className:
|
|
84
|
-
children: /*#__PURE__*/
|
|
91
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {
|
|
92
|
+
className: (0, _clsx.default)(classes?.markCell, classes?.cell),
|
|
93
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.ChartsLabelMark, {
|
|
85
94
|
type: markType,
|
|
86
95
|
color: color,
|
|
87
96
|
className: classes?.mark
|
|
88
97
|
})
|
|
89
|
-
}), /*#__PURE__*/
|
|
90
|
-
className:
|
|
98
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {
|
|
99
|
+
className: (0, _clsx.default)(classes?.labelCell, classes?.cell),
|
|
91
100
|
children: seriesLabel
|
|
92
|
-
}), /*#__PURE__*/
|
|
93
|
-
className:
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {
|
|
102
|
+
className: (0, _clsx.default)(classes?.valueCell, classes?.cell),
|
|
94
103
|
children: formattedValue
|
|
95
104
|
})]
|
|
96
105
|
})
|
|
@@ -106,16 +115,16 @@ process.env.NODE_ENV !== "production" ? DefaultHeatmapTooltipContent.propTypes =
|
|
|
106
115
|
/**
|
|
107
116
|
* Override or extend the styles applied to the component.
|
|
108
117
|
*/
|
|
109
|
-
classes:
|
|
118
|
+
classes: _propTypes.default.object
|
|
110
119
|
} : void 0;
|
|
111
120
|
function HeatmapTooltip(props) {
|
|
112
121
|
const classes = useUtilityClasses({
|
|
113
122
|
classes: props.classes
|
|
114
123
|
});
|
|
115
|
-
return /*#__PURE__*/
|
|
124
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipContainer, (0, _extends2.default)({}, props, {
|
|
116
125
|
classes: classes,
|
|
117
126
|
trigger: "item",
|
|
118
|
-
children: /*#__PURE__*/
|
|
127
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(DefaultHeatmapTooltipContent, {
|
|
119
128
|
classes: classes
|
|
120
129
|
})
|
|
121
130
|
}));
|
|
@@ -131,30 +140,30 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
131
140
|
* It's used to set the position of the popper.
|
|
132
141
|
* The return value will passed as the reference object of the Popper instance.
|
|
133
142
|
*/
|
|
134
|
-
anchorEl:
|
|
143
|
+
anchorEl: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_HTMLElementType.default, _propTypes.default.object, _propTypes.default.func]),
|
|
135
144
|
/**
|
|
136
145
|
* Override or extend the styles applied to the component.
|
|
137
146
|
*/
|
|
138
|
-
classes:
|
|
147
|
+
classes: _propTypes.default.object,
|
|
139
148
|
/**
|
|
140
149
|
* The component used for the root node.
|
|
141
150
|
* Either a string to use a HTML element or a component.
|
|
142
151
|
*/
|
|
143
|
-
component:
|
|
152
|
+
component: _propTypes.default.elementType,
|
|
144
153
|
/**
|
|
145
154
|
* The components used for each slot inside the Popper.
|
|
146
155
|
* Either a string to use a HTML element or a component.
|
|
147
156
|
* @default {}
|
|
148
157
|
*/
|
|
149
|
-
components:
|
|
150
|
-
Root:
|
|
158
|
+
components: _propTypes.default.shape({
|
|
159
|
+
Root: _propTypes.default.elementType
|
|
151
160
|
}),
|
|
152
161
|
/**
|
|
153
162
|
* The props used for each slot inside the Popper.
|
|
154
163
|
* @default {}
|
|
155
164
|
*/
|
|
156
|
-
componentsProps:
|
|
157
|
-
root:
|
|
165
|
+
componentsProps: _propTypes.default.shape({
|
|
166
|
+
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
158
167
|
}),
|
|
159
168
|
/**
|
|
160
169
|
* An HTML element or function that returns one.
|
|
@@ -166,7 +175,7 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
166
175
|
* By default, it uses the body of the top-level document object,
|
|
167
176
|
* so it's simply `document.body` most of the time.
|
|
168
177
|
*/
|
|
169
|
-
container:
|
|
178
|
+
container: _propTypes.default.oneOfType([(props, propName) => {
|
|
170
179
|
if (props[propName] == null) {
|
|
171
180
|
return new Error(`Prop '${propName}' is required but wasn't specified`);
|
|
172
181
|
}
|
|
@@ -174,19 +183,19 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
174
183
|
return new Error(`Expected prop '${propName}' to be of type Element`);
|
|
175
184
|
}
|
|
176
185
|
return null;
|
|
177
|
-
},
|
|
186
|
+
}, _propTypes.default.func]),
|
|
178
187
|
/**
|
|
179
188
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
180
189
|
* @default false
|
|
181
190
|
*/
|
|
182
|
-
disablePortal:
|
|
191
|
+
disablePortal: _propTypes.default.bool,
|
|
183
192
|
/**
|
|
184
193
|
* Always keep the children in the DOM.
|
|
185
194
|
* This prop can be useful in SEO situation or
|
|
186
195
|
* when you want to maximize the responsiveness of the Popper.
|
|
187
196
|
* @default false
|
|
188
197
|
*/
|
|
189
|
-
keepMounted:
|
|
198
|
+
keepMounted: _propTypes.default.bool,
|
|
190
199
|
/**
|
|
191
200
|
* Popper.js is based on a "plugin-like" architecture,
|
|
192
201
|
* most of its features are fully encapsulated "modifiers".
|
|
@@ -196,79 +205,78 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
196
205
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
197
206
|
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
198
207
|
*/
|
|
199
|
-
modifiers:
|
|
200
|
-
data:
|
|
201
|
-
effect:
|
|
202
|
-
enabled:
|
|
203
|
-
fn:
|
|
204
|
-
name:
|
|
205
|
-
options:
|
|
206
|
-
phase:
|
|
207
|
-
requires:
|
|
208
|
-
requiresIfExists:
|
|
208
|
+
modifiers: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
209
|
+
data: _propTypes.default.object,
|
|
210
|
+
effect: _propTypes.default.func,
|
|
211
|
+
enabled: _propTypes.default.bool,
|
|
212
|
+
fn: _propTypes.default.func,
|
|
213
|
+
name: _propTypes.default.any,
|
|
214
|
+
options: _propTypes.default.object,
|
|
215
|
+
phase: _propTypes.default.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),
|
|
216
|
+
requires: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
217
|
+
requiresIfExists: _propTypes.default.arrayOf(_propTypes.default.string)
|
|
209
218
|
})),
|
|
210
219
|
/**
|
|
211
220
|
* If `true`, the component is shown.
|
|
212
221
|
*/
|
|
213
|
-
open:
|
|
222
|
+
open: _propTypes.default.bool,
|
|
214
223
|
/**
|
|
215
224
|
* Popper placement.
|
|
216
225
|
* @default 'bottom'
|
|
217
226
|
*/
|
|
218
|
-
placement:
|
|
227
|
+
placement: _propTypes.default.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
219
228
|
/**
|
|
220
229
|
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
221
230
|
* @default {}
|
|
222
231
|
*/
|
|
223
|
-
popperOptions:
|
|
224
|
-
modifiers:
|
|
225
|
-
onFirstUpdate:
|
|
226
|
-
placement:
|
|
227
|
-
strategy:
|
|
232
|
+
popperOptions: _propTypes.default.shape({
|
|
233
|
+
modifiers: _propTypes.default.array,
|
|
234
|
+
onFirstUpdate: _propTypes.default.func,
|
|
235
|
+
placement: _propTypes.default.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
236
|
+
strategy: _propTypes.default.oneOf(['absolute', 'fixed'])
|
|
228
237
|
}),
|
|
229
238
|
/**
|
|
230
239
|
* A ref that points to the used popper instance.
|
|
231
240
|
*/
|
|
232
|
-
popperRef:
|
|
233
|
-
current:
|
|
234
|
-
destroy:
|
|
235
|
-
forceUpdate:
|
|
236
|
-
setOptions:
|
|
237
|
-
state:
|
|
238
|
-
attributes:
|
|
239
|
-
elements:
|
|
240
|
-
modifiersData:
|
|
241
|
-
options:
|
|
242
|
-
orderedModifiers:
|
|
243
|
-
placement:
|
|
244
|
-
rects:
|
|
245
|
-
reset:
|
|
246
|
-
scrollParents:
|
|
247
|
-
strategy:
|
|
248
|
-
styles:
|
|
241
|
+
popperRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
242
|
+
current: _propTypes.default.shape({
|
|
243
|
+
destroy: _propTypes.default.func.isRequired,
|
|
244
|
+
forceUpdate: _propTypes.default.func.isRequired,
|
|
245
|
+
setOptions: _propTypes.default.func.isRequired,
|
|
246
|
+
state: _propTypes.default.shape({
|
|
247
|
+
attributes: _propTypes.default.object.isRequired,
|
|
248
|
+
elements: _propTypes.default.object.isRequired,
|
|
249
|
+
modifiersData: _propTypes.default.object.isRequired,
|
|
250
|
+
options: _propTypes.default.object.isRequired,
|
|
251
|
+
orderedModifiers: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
252
|
+
placement: _propTypes.default.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']).isRequired,
|
|
253
|
+
rects: _propTypes.default.object.isRequired,
|
|
254
|
+
reset: _propTypes.default.bool.isRequired,
|
|
255
|
+
scrollParents: _propTypes.default.object.isRequired,
|
|
256
|
+
strategy: _propTypes.default.oneOf(['absolute', 'fixed']).isRequired,
|
|
257
|
+
styles: _propTypes.default.object.isRequired
|
|
249
258
|
}).isRequired,
|
|
250
|
-
update:
|
|
259
|
+
update: _propTypes.default.func.isRequired
|
|
251
260
|
})
|
|
252
261
|
})]),
|
|
253
262
|
/**
|
|
254
263
|
* The props used for each slot inside the Popper.
|
|
255
264
|
* @default {}
|
|
256
265
|
*/
|
|
257
|
-
slotProps:
|
|
266
|
+
slotProps: _propTypes.default.object,
|
|
258
267
|
/**
|
|
259
268
|
* The components used for each slot inside the Popper.
|
|
260
269
|
* Either a string to use a HTML element or a component.
|
|
261
270
|
* @default {}
|
|
262
271
|
*/
|
|
263
|
-
slots:
|
|
272
|
+
slots: _propTypes.default.object,
|
|
264
273
|
/**
|
|
265
274
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
266
275
|
*/
|
|
267
|
-
sx:
|
|
276
|
+
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]),
|
|
268
277
|
/**
|
|
269
278
|
* Help supporting a react-transition-group/Transition component.
|
|
270
279
|
* @default false
|
|
271
280
|
*/
|
|
272
|
-
transition:
|
|
273
|
-
} : void 0;
|
|
274
|
-
export { HeatmapTooltip };
|
|
281
|
+
transition: _propTypes.default.bool
|
|
282
|
+
} : void 0;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export interface HeatmapClasses {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
/** Styles applied to the heatmap cells. */
|
|
3
|
+
cell: string;
|
|
4
|
+
/** Styles applied to the cell element if highlighted. */
|
|
5
|
+
highlighted: string;
|
|
6
|
+
/** Styles applied to the cell element if faded. */
|
|
7
|
+
faded: string;
|
|
8
8
|
}
|
|
9
9
|
export type HeatmapClassKey = keyof HeatmapClasses;
|
|
10
10
|
export declare function getHeatmapUtilityClass(slot: string): string;
|
|
11
|
-
export declare const heatmapClasses: HeatmapClasses;
|
|
11
|
+
export declare const heatmapClasses: HeatmapClasses;
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.getHeatmapUtilityClass = getHeatmapUtilityClass;
|
|
8
|
+
exports.heatmapClasses = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
11
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
12
|
+
function getHeatmapUtilityClass(slot) {
|
|
5
13
|
// Those should be common to all charts
|
|
6
14
|
if (['highlighted', 'faded'].includes(slot)) {
|
|
7
|
-
return
|
|
15
|
+
return (0, _generateUtilityClass.default)('Charts', slot);
|
|
8
16
|
}
|
|
9
|
-
return
|
|
17
|
+
return (0, _generateUtilityClass.default)('MuiHeatmap', slot);
|
|
10
18
|
}
|
|
11
|
-
|
|
19
|
+
const heatmapClasses = exports.heatmapClasses = (0, _extends2.default)({}, (0, _generateUtilityClasses.default)('MuiHeatmap', ['cell']), {
|
|
12
20
|
highlighted: 'Charts-highlighted',
|
|
13
21
|
faded: 'Charts-faded'
|
|
14
22
|
});
|
package/Heatmap/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Heatmap } from
|
|
2
|
-
export { HeatmapPlot } from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export { Heatmap } from "./Heatmap.js";
|
|
2
|
+
export { HeatmapPlot } from "./HeatmapPlot.js";
|
|
3
|
+
export * from "./HeatmapTooltip.js";
|
|
4
|
+
export * from "./heatmapClasses.js";
|
package/Heatmap/index.js
CHANGED
|
@@ -1,4 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
Heatmap: true,
|
|
8
|
+
HeatmapPlot: true
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "Heatmap", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _Heatmap.Heatmap;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "HeatmapPlot", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return _HeatmapPlot.HeatmapPlot;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
var _Heatmap = require("./Heatmap");
|
|
23
|
+
var _HeatmapPlot = require("./HeatmapPlot");
|
|
24
|
+
var _HeatmapTooltip = require("./HeatmapTooltip");
|
|
25
|
+
Object.keys(_HeatmapTooltip).forEach(function (key) {
|
|
26
|
+
if (key === "default" || key === "__esModule") return;
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
28
|
+
if (key in exports && exports[key] === _HeatmapTooltip[key]) return;
|
|
29
|
+
Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return _HeatmapTooltip[key];
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
var _heatmapClasses = require("./heatmapClasses");
|
|
37
|
+
Object.keys(_heatmapClasses).forEach(function (key) {
|
|
38
|
+
if (key === "default" || key === "__esModule") return;
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
40
|
+
if (key in exports && exports[key] === _heatmapClasses[key]) return;
|
|
41
|
+
Object.defineProperty(exports, key, {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () {
|
|
44
|
+
return _heatmapClasses[key];
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CartesianExtremumGetter } from '@mui/x-charts/internals';
|
|
2
|
-
export declare const getBaseExtremum: CartesianExtremumGetter<'heatmap'>;
|
|
2
|
+
export declare const getBaseExtremum: CartesianExtremumGetter<'heatmap'>;
|
|
@@ -4,13 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.seriesConfig = void 0;
|
|
8
8
|
var _extremums = require("./extremums");
|
|
9
|
-
var
|
|
9
|
+
var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
|
|
10
10
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
11
11
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
12
|
-
const
|
|
13
|
-
seriesProcessor:
|
|
12
|
+
const seriesConfig = exports.seriesConfig = {
|
|
13
|
+
seriesProcessor: _seriesProcessor.default,
|
|
14
14
|
colorProcessor: _getColor.default,
|
|
15
15
|
legendGetter: () => [],
|
|
16
16
|
tooltipGetter: _tooltip.default,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
const
|
|
9
|
+
const seriesProcessor = params => {
|
|
10
10
|
const {
|
|
11
11
|
series,
|
|
12
12
|
seriesOrder
|
|
@@ -25,4 +25,4 @@ const formatter = params => {
|
|
|
25
25
|
seriesOrder
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
var _default = exports.default =
|
|
28
|
+
var _default = exports.default = seriesProcessor;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { LineChartProps } from '@mui/x-charts/LineChart';
|
|
3
|
-
import { ChartContainerProProps } from
|
|
4
|
-
export interface LineChartProProps extends Omit<LineChartProps, 'apiRef'>, Omit<ChartContainerProProps<'line'>, 'series' | 'plugins' | 'seriesConfig'> {
|
|
5
|
-
}
|
|
3
|
+
import { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
4
|
+
export interface LineChartProProps extends Omit<LineChartProps, 'apiRef'>, Omit<ChartContainerProProps<'line'>, 'series' | 'plugins' | 'seriesConfig'> {}
|
|
6
5
|
/**
|
|
7
6
|
* Demos:
|
|
8
7
|
*
|
|
@@ -14,4 +13,4 @@ export interface LineChartProProps extends Omit<LineChartProps, 'apiRef'>, Omit<
|
|
|
14
13
|
* - [LineChart API](https://mui.com/x/api/charts/line-chart/)
|
|
15
14
|
*/
|
|
16
15
|
declare const LineChartPro: React.ForwardRefExoticComponent<LineChartProProps & React.RefAttributes<SVGSVGElement>>;
|
|
17
|
-
export { LineChartPro };
|
|
16
|
+
export { LineChartPro };
|