@mui/x-charts-pro 9.0.0-alpha.3 → 9.0.0-alpha.4
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.mts +2 -2
- package/BarChartPro/BarChartPro.d.ts +2 -2
- package/BarChartPro/BarChartPro.js +38 -8
- package/BarChartPro/BarChartPro.mjs +38 -8
- package/CHANGELOG.md +123 -0
- package/ChartsContainerPro/ChartsContainerPro.js +2 -2
- package/ChartsContainerPro/ChartsContainerPro.mjs +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.d.mts +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.d.ts +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.js +3 -3
- package/ChartsContainerPro/useChartsContainerProProps.mjs +3 -3
- package/ChartsDataProviderPro/ChartsDataProviderPro.js +2 -8
- package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +2 -8
- package/ChartsToolbarPro/ChartsToolbarPro.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarPro.mjs +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +2 -2
- package/ChartsToolbarPro/index.d.mts +2 -1
- package/ChartsToolbarPro/index.d.ts +2 -1
- package/ChartsToolbarPro/index.mjs +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.js +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.mjs +2 -2
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.js +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.mjs +2 -2
- package/FunnelChart/FunnelChart.d.mts +2 -2
- package/FunnelChart/FunnelChart.d.ts +2 -2
- package/FunnelChart/FunnelChart.js +18 -6
- package/FunnelChart/FunnelChart.mjs +18 -6
- package/FunnelChart/FunnelPlot.js +8 -3
- package/FunnelChart/FunnelPlot.mjs +8 -3
- package/FunnelChart/FunnelSection.d.mts +3 -3
- package/FunnelChart/FunnelSection.d.ts +3 -3
- package/FunnelChart/FunnelSection.js +5 -5
- package/FunnelChart/FunnelSection.mjs +4 -4
- package/FunnelChart/FunnelSectionLabel.d.mts +9 -3
- package/FunnelChart/FunnelSectionLabel.d.ts +9 -3
- package/FunnelChart/FunnelSectionLabel.js +15 -6
- package/FunnelChart/FunnelSectionLabel.mjs +15 -6
- package/FunnelChart/funnelClasses.d.mts +29 -0
- package/FunnelChart/funnelClasses.d.ts +29 -0
- package/FunnelChart/funnelClasses.js +29 -0
- package/FunnelChart/funnelClasses.mjs +19 -0
- package/FunnelChart/index.d.mts +2 -2
- package/FunnelChart/index.d.ts +2 -2
- package/FunnelChart/index.js +4 -4
- package/FunnelChart/index.mjs +1 -1
- package/FunnelChart/seriesConfig/legend.js +0 -2
- package/FunnelChart/seriesConfig/legend.mjs +0 -2
- package/FunnelChart/useFunnelChartProps.d.mts +2 -2
- package/FunnelChart/useFunnelChartProps.d.ts +2 -2
- package/FunnelChart/useFunnelChartProps.js +2 -2
- package/FunnelChart/useFunnelChartProps.mjs +2 -2
- package/Heatmap/Heatmap.d.mts +2 -11
- package/Heatmap/Heatmap.d.ts +2 -11
- package/Heatmap/Heatmap.js +20 -15
- package/Heatmap/Heatmap.mjs +20 -15
- package/Heatmap/HeatmapCell.d.mts +33 -0
- package/Heatmap/HeatmapCell.d.ts +33 -0
- package/Heatmap/HeatmapCell.js +62 -0
- package/Heatmap/HeatmapCell.mjs +55 -0
- package/Heatmap/HeatmapItem.d.mts +1 -9
- package/Heatmap/HeatmapItem.d.ts +1 -9
- package/Heatmap/HeatmapItem.js +5 -22
- package/Heatmap/HeatmapItem.mjs +5 -22
- package/Heatmap/HeatmapSVGPlot.js +10 -3
- package/Heatmap/HeatmapSVGPlot.mjs +10 -3
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.js +2 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.mjs +1 -1
- package/Heatmap/heatmapClasses.d.mts +6 -1
- package/Heatmap/heatmapClasses.d.ts +6 -1
- package/Heatmap/heatmapClasses.js +18 -3
- package/Heatmap/heatmapClasses.mjs +16 -2
- package/Heatmap/index.d.mts +4 -2
- package/Heatmap/index.d.ts +4 -2
- package/Heatmap/index.js +17 -13
- package/Heatmap/index.mjs +2 -1
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.js +1 -1
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.mjs +1 -1
- package/Heatmap/useHeatmapProps.d.mts +2 -2
- package/Heatmap/useHeatmapProps.d.ts +2 -2
- package/Heatmap/useHeatmapProps.js +2 -4
- package/Heatmap/useHeatmapProps.mjs +2 -4
- package/LineChartPro/LineChartPro.d.mts +2 -2
- package/LineChartPro/LineChartPro.d.ts +2 -2
- package/LineChartPro/LineChartPro.js +35 -11
- package/LineChartPro/LineChartPro.mjs +35 -11
- package/PieChartPro/PieChartPro.d.mts +2 -2
- package/PieChartPro/PieChartPro.d.ts +2 -2
- package/PieChartPro/PieChartPro.js +17 -5
- package/PieChartPro/PieChartPro.mjs +17 -5
- package/RadarChartPro/RadarChartPro.d.mts +1 -1
- package/RadarChartPro/RadarChartPro.d.ts +1 -1
- package/RadarChartPro/RadarChartPro.js +15 -0
- package/RadarChartPro/RadarChartPro.mjs +15 -0
- package/SankeyChart/SankeyChart.d.mts +2 -2
- package/SankeyChart/SankeyChart.d.ts +2 -2
- package/SankeyChart/SankeyChart.js +16 -10
- package/SankeyChart/SankeyChart.mjs +16 -10
- package/SankeyChart/SankeyDataProvider.d.mts +2 -2
- package/SankeyChart/SankeyDataProvider.d.ts +2 -2
- package/SankeyChart/SankeyDataProvider.js +2 -2
- package/SankeyChart/SankeyDataProvider.mjs +2 -2
- package/SankeyChart/SankeyLinkElement.js +3 -0
- package/SankeyChart/SankeyLinkElement.mjs +3 -0
- package/SankeyChart/SankeyLinkLabel.js +3 -0
- package/SankeyChart/SankeyLinkLabel.mjs +3 -0
- package/SankeyChart/SankeyLinkLabelPlot.d.mts +2 -2
- package/SankeyChart/SankeyLinkLabelPlot.d.ts +2 -2
- package/SankeyChart/SankeyLinkLabelPlot.js +1 -1
- package/SankeyChart/SankeyLinkLabelPlot.mjs +1 -1
- package/SankeyChart/SankeyLinkPlot.d.mts +2 -2
- package/SankeyChart/SankeyLinkPlot.d.ts +2 -2
- package/SankeyChart/SankeyLinkPlot.js +1 -1
- package/SankeyChart/SankeyLinkPlot.mjs +1 -1
- package/SankeyChart/SankeyNodeElement.d.mts +1 -1
- package/SankeyChart/SankeyNodeElement.d.ts +1 -1
- package/SankeyChart/SankeyNodeElement.js +16 -15
- package/SankeyChart/SankeyNodeElement.mjs +16 -15
- package/SankeyChart/SankeyNodeLabel.js +3 -0
- package/SankeyChart/SankeyNodeLabel.mjs +3 -0
- package/SankeyChart/SankeyNodeLabelPlot.d.mts +2 -2
- package/SankeyChart/SankeyNodeLabelPlot.d.ts +2 -2
- package/SankeyChart/SankeyNodeLabelPlot.js +1 -1
- package/SankeyChart/SankeyNodeLabelPlot.mjs +1 -1
- package/SankeyChart/SankeyNodePlot.d.mts +2 -2
- package/SankeyChart/SankeyNodePlot.d.ts +2 -2
- package/SankeyChart/SankeyNodePlot.js +1 -1
- package/SankeyChart/SankeyNodePlot.mjs +1 -1
- package/SankeyChart/SankeyPlot.d.mts +2 -2
- package/SankeyChart/SankeyPlot.d.ts +2 -2
- package/SankeyChart/SankeyPlot.js +3 -3
- package/SankeyChart/SankeyPlot.mjs +3 -3
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.js +2 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.mjs +1 -1
- package/SankeyChart/index.d.mts +2 -1
- package/SankeyChart/index.d.ts +2 -1
- package/SankeyChart/index.js +3 -3
- package/SankeyChart/index.mjs +1 -1
- package/SankeyChart/sankeyClasses.d.mts +15 -6
- package/SankeyChart/sankeyClasses.d.ts +15 -6
- package/SankeyChart/sankeyClasses.js +12 -8
- package/SankeyChart/sankeyClasses.mjs +10 -6
- package/SankeyChart/useSankeyChartProps.d.mts +2 -2
- package/SankeyChart/useSankeyChartProps.d.ts +2 -2
- package/SankeyChart/useSankeyChartProps.js +2 -2
- package/SankeyChart/useSankeyChartProps.mjs +2 -2
- package/ScatterChartPro/ScatterChartPro.d.mts +2 -2
- package/ScatterChartPro/ScatterChartPro.d.ts +2 -2
- package/ScatterChartPro/ScatterChartPro.js +57 -15
- package/ScatterChartPro/ScatterChartPro.mjs +57 -15
- package/context/useChartProApiContext.d.mts +1 -1
- package/context/useChartProApiContext.d.ts +1 -1
- package/context/useChartProApiContext.js +1 -1
- package/context/useChartProApiContext.mjs +1 -1
- package/index.d.mts +0 -4
- package/index.d.ts +0 -4
- package/index.js +2 -34
- package/index.mjs +1 -4
- package/internals/index.d.mts +0 -1
- package/internals/index.d.ts +0 -1
- package/internals/index.js +0 -8
- package/internals/index.mjs +0 -1
- package/internals/plugins/useChartProExport/common.js +4 -8
- package/internals/plugins/useChartProExport/common.mjs +4 -8
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.mts +1 -1
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +16 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.mjs +16 -1
- package/package.json +129 -185
- package/themeAugmentation/components.d.mts +19 -1
- package/themeAugmentation/components.d.ts +19 -1
- package/themeAugmentation/overrides.d.mts +5 -2
- package/themeAugmentation/overrides.d.ts +5 -2
- package/themeAugmentation/props.d.mts +8 -0
- package/themeAugmentation/props.d.ts +8 -0
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -2
- package/ChartContainerPro/ChartContainerPro.d.mts +0 -21
- package/ChartContainerPro/ChartContainerPro.d.ts +0 -21
- package/ChartContainerPro/ChartContainerPro.js +0 -24
- package/ChartContainerPro/ChartContainerPro.mjs +0 -20
- package/ChartContainerPro/index.d.mts +0 -9
- package/ChartContainerPro/index.d.ts +0 -9
- package/ChartContainerPro/index.js +0 -17
- package/ChartContainerPro/index.mjs +0 -6
- package/ChartContainerPro/useChartContainerProProps.d.mts +0 -12
- package/ChartContainerPro/useChartContainerProProps.d.ts +0 -12
- package/ChartContainerPro/useChartContainerProProps.js +0 -19
- package/ChartContainerPro/useChartContainerProProps.mjs +0 -14
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -2
- package/ChartDataProviderPro/ChartDataProviderPro.d.mts +0 -20
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +0 -20
- package/ChartDataProviderPro/ChartDataProviderPro.js +0 -30
- package/ChartDataProviderPro/ChartDataProviderPro.mjs +0 -21
- package/ChartDataProviderPro/index.d.mts +0 -2
- package/ChartDataProviderPro/index.d.ts +0 -2
- package/ChartDataProviderPro/index.js +0 -13
- package/ChartDataProviderPro/index.mjs +0 -2
- package/ChartDataProviderPro/useChartDataProviderProProps.d.mts +0 -10
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +0 -10
- package/ChartDataProviderPro/useChartDataProviderProProps.js +0 -12
- package/ChartDataProviderPro/useChartDataProviderProProps.mjs +0 -8
- package/FunnelChart/funnelSectionClasses.d.mts +0 -30
- package/FunnelChart/funnelSectionClasses.d.ts +0 -30
- package/FunnelChart/funnelSectionClasses.js +0 -44
- package/FunnelChart/funnelSectionClasses.mjs +0 -35
- package/Heatmap/internals/HeatmapCell.d.mts +0 -21
- package/Heatmap/internals/HeatmapCell.d.ts +0 -21
- package/Heatmap/internals/HeatmapCell.js +0 -18
- package/Heatmap/internals/HeatmapCell.mjs +0 -12
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts-pro v9.0.0-alpha.
|
|
2
|
+
* @mui/x-charts-pro v9.0.0-alpha.4
|
|
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,15 +11,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
11
11
|
value: true
|
|
12
12
|
});
|
|
13
13
|
var _exportNames = {
|
|
14
|
-
ChartsContainerPro: true
|
|
15
|
-
ChartContainerPro: true
|
|
14
|
+
ChartsContainerPro: true
|
|
16
15
|
};
|
|
17
|
-
Object.defineProperty(exports, "ChartContainerPro", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return _ChartContainerPro.ChartContainerPro;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
16
|
Object.defineProperty(exports, "ChartsContainerPro", {
|
|
24
17
|
enumerable: true,
|
|
25
18
|
get: function () {
|
|
@@ -267,18 +260,6 @@ Object.keys(_ChartsDataProvider).forEach(function (key) {
|
|
|
267
260
|
}
|
|
268
261
|
});
|
|
269
262
|
});
|
|
270
|
-
var _ChartDataProvider = require("@mui/x-charts/ChartDataProvider");
|
|
271
|
-
Object.keys(_ChartDataProvider).forEach(function (key) {
|
|
272
|
-
if (key === "default" || key === "__esModule") return;
|
|
273
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
274
|
-
if (key in exports && exports[key] === _ChartDataProvider[key]) return;
|
|
275
|
-
Object.defineProperty(exports, key, {
|
|
276
|
-
enumerable: true,
|
|
277
|
-
get: function () {
|
|
278
|
-
return _ChartDataProvider[key];
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
});
|
|
282
263
|
var _ChartsLabel = require("@mui/x-charts/ChartsLabel");
|
|
283
264
|
Object.keys(_ChartsLabel).forEach(function (key) {
|
|
284
265
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -400,7 +381,6 @@ Object.keys(_Heatmap).forEach(function (key) {
|
|
|
400
381
|
});
|
|
401
382
|
});
|
|
402
383
|
var _ChartsContainerPro = require("./ChartsContainerPro");
|
|
403
|
-
var _ChartContainerPro = require("./ChartContainerPro");
|
|
404
384
|
var _ChartsDataProviderPro = require("./ChartsDataProviderPro");
|
|
405
385
|
Object.keys(_ChartsDataProviderPro).forEach(function (key) {
|
|
406
386
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -413,18 +393,6 @@ Object.keys(_ChartsDataProviderPro).forEach(function (key) {
|
|
|
413
393
|
}
|
|
414
394
|
});
|
|
415
395
|
});
|
|
416
|
-
var _ChartDataProviderPro = require("./ChartDataProviderPro");
|
|
417
|
-
Object.keys(_ChartDataProviderPro).forEach(function (key) {
|
|
418
|
-
if (key === "default" || key === "__esModule") return;
|
|
419
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
420
|
-
if (key in exports && exports[key] === _ChartDataProviderPro[key]) return;
|
|
421
|
-
Object.defineProperty(exports, key, {
|
|
422
|
-
enumerable: true,
|
|
423
|
-
get: function () {
|
|
424
|
-
return _ChartDataProviderPro[key];
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
});
|
|
428
396
|
var _ScatterChartPro = require("./ScatterChartPro");
|
|
429
397
|
Object.keys(_ScatterChartPro).forEach(function (key) {
|
|
430
398
|
if (key === "default" || key === "__esModule") return;
|
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts-pro v9.0.0-alpha.
|
|
2
|
+
* @mui/x-charts-pro v9.0.0-alpha.4
|
|
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
|
|
@@ -28,7 +28,6 @@ export * from '@mui/x-charts/Gauge';
|
|
|
28
28
|
export * from '@mui/x-charts/RadarChart';
|
|
29
29
|
export * from '@mui/x-charts/ChartsSurface';
|
|
30
30
|
export * from '@mui/x-charts/ChartsDataProvider';
|
|
31
|
-
export * from '@mui/x-charts/ChartDataProvider';
|
|
32
31
|
export * from '@mui/x-charts/ChartsLabel';
|
|
33
32
|
export * from '@mui/x-charts/ChartsOverlay';
|
|
34
33
|
export * from '@mui/x-charts/ChartsWrapper';
|
|
@@ -46,9 +45,7 @@ export * from "./colorPalettes/index.mjs";
|
|
|
46
45
|
// Pro components
|
|
47
46
|
export * from "./Heatmap/index.mjs";
|
|
48
47
|
export { ChartsContainerPro } from "./ChartsContainerPro/index.mjs";
|
|
49
|
-
export { ChartContainerPro } from "./ChartContainerPro/index.mjs";
|
|
50
48
|
export * from "./ChartsDataProviderPro/index.mjs";
|
|
51
|
-
export * from "./ChartDataProviderPro/index.mjs";
|
|
52
49
|
export * from "./ScatterChartPro/index.mjs";
|
|
53
50
|
export * from "./SankeyChart/index.mjs";
|
|
54
51
|
export * from "./BarChartPro/index.mjs";
|
package/internals/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { useChartsContainerProProps } from "../ChartsContainerPro/useChartsContainerProProps.mjs";
|
|
2
2
|
export type { UseChartsContainerProPropsReturnValue } from "../ChartsContainerPro/useChartsContainerProProps.mjs";
|
|
3
|
-
export { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.mjs";
|
|
4
3
|
export type { ChartsSlotsPro, ChartsSlotPropsPro } from "./material/index.mjs";
|
|
5
4
|
export { seriesPreviewPlotMap } from "../ChartsZoomSlider/internals/seriesPreviewPlotMap.mjs";
|
|
6
5
|
export type { PreviewPlotProps } from "../ChartsZoomSlider/internals/previews/PreviewPlot.types.mjs";
|
package/internals/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { useChartsContainerProProps } from "../ChartsContainerPro/useChartsContainerProProps.js";
|
|
2
2
|
export type { UseChartsContainerProPropsReturnValue } from "../ChartsContainerPro/useChartsContainerProProps.js";
|
|
3
|
-
export { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
|
|
4
3
|
export type { ChartsSlotsPro, ChartsSlotPropsPro } from "./material/index.js";
|
|
5
4
|
export { seriesPreviewPlotMap } from "../ChartsZoomSlider/internals/seriesPreviewPlotMap.js";
|
|
6
5
|
export type { PreviewPlotProps } from "../ChartsZoomSlider/internals/previews/PreviewPlot.types.js";
|
package/internals/index.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
useChartsContainerProProps: true,
|
|
8
|
-
useChartContainerProProps: true,
|
|
9
8
|
seriesPreviewPlotMap: true,
|
|
10
9
|
defaultSeriesConfigPro: true,
|
|
11
10
|
useHeatmapProps: true,
|
|
@@ -36,12 +35,6 @@ Object.defineProperty(exports, "seriesPreviewPlotMap", {
|
|
|
36
35
|
return _seriesPreviewPlotMap.seriesPreviewPlotMap;
|
|
37
36
|
}
|
|
38
37
|
});
|
|
39
|
-
Object.defineProperty(exports, "useChartContainerProProps", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () {
|
|
42
|
-
return _useChartContainerProProps.useChartContainerProProps;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
38
|
Object.defineProperty(exports, "useChartsContainerProProps", {
|
|
46
39
|
enumerable: true,
|
|
47
40
|
get: function () {
|
|
@@ -55,7 +48,6 @@ Object.defineProperty(exports, "useHeatmapProps", {
|
|
|
55
48
|
}
|
|
56
49
|
});
|
|
57
50
|
var _useChartsContainerProProps = require("../ChartsContainerPro/useChartsContainerProProps");
|
|
58
|
-
var _useChartContainerProProps = require("../ChartContainerPro/useChartContainerProProps");
|
|
59
51
|
var _seriesPreviewPlotMap = require("../ChartsZoomSlider/internals/seriesPreviewPlotMap");
|
|
60
52
|
var _ChartsDataProviderPro = require("../ChartsDataProviderPro/ChartsDataProviderPro");
|
|
61
53
|
var _useHeatmapProps = require("../Heatmap/useHeatmapProps");
|
package/internals/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { useChartsContainerProProps } from "../ChartsContainerPro/useChartsContainerProProps.mjs";
|
|
2
|
-
export { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.mjs";
|
|
3
2
|
export { seriesPreviewPlotMap } from "../ChartsZoomSlider/internals/seriesPreviewPlotMap.mjs";
|
|
4
3
|
export { defaultSeriesConfigPro } from "../ChartsDataProviderPro/ChartsDataProviderPro.mjs";
|
|
5
4
|
export { useHeatmapProps } from "../Heatmap/useHeatmapProps.mjs";
|
|
@@ -41,14 +41,10 @@ function copyCanvasesContent(original, clone) {
|
|
|
41
41
|
const dataURL = originalCanvas.toDataURL();
|
|
42
42
|
const img = cloneCanvas.ownerDocument.createElement('img');
|
|
43
43
|
img.src = dataURL;
|
|
44
|
-
|
|
45
|
-
img.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
img.style[styleKey] = cloneCanvas.style[styleKey];
|
|
51
|
-
}
|
|
44
|
+
// Use the CSS dimensions (not canvas.width/height which are in device pixels)
|
|
45
|
+
img.width = originalCanvas.clientWidth;
|
|
46
|
+
img.height = originalCanvas.clientHeight;
|
|
47
|
+
img.style.cssText = cloneCanvas.style.cssText;
|
|
52
48
|
cloneCanvas.replaceWith(img);
|
|
53
49
|
img.onload = () => {
|
|
54
50
|
resolve();
|
|
@@ -33,14 +33,10 @@ export function copyCanvasesContent(original, clone) {
|
|
|
33
33
|
const dataURL = originalCanvas.toDataURL();
|
|
34
34
|
const img = cloneCanvas.ownerDocument.createElement('img');
|
|
35
35
|
img.src = dataURL;
|
|
36
|
-
|
|
37
|
-
img.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
img.style[styleKey] = cloneCanvas.style[styleKey];
|
|
43
|
-
}
|
|
36
|
+
// Use the CSS dimensions (not canvas.width/height which are in device pixels)
|
|
37
|
+
img.width = originalCanvas.clientWidth;
|
|
38
|
+
img.height = originalCanvas.clientHeight;
|
|
39
|
+
img.style.cssText = cloneCanvas.style.cssText;
|
|
44
40
|
cloneCanvas.replaceWith(img);
|
|
45
41
|
img.onload = () => {
|
|
46
42
|
resolve();
|
|
@@ -99,7 +99,7 @@ export type DoubleTapResetInteraction = Unpack<{
|
|
|
99
99
|
} & AllModeProp & AllKeysProp>;
|
|
100
100
|
export type BrushInteraction = Unpack<{
|
|
101
101
|
type: 'brush';
|
|
102
|
-
} &
|
|
102
|
+
} & AllModeProp & AllKeysProp>;
|
|
103
103
|
export type AnyInteraction = {
|
|
104
104
|
type: string;
|
|
105
105
|
pointerMode?: InteractionMode;
|
|
@@ -99,7 +99,7 @@ export type DoubleTapResetInteraction = Unpack<{
|
|
|
99
99
|
} & AllModeProp & AllKeysProp>;
|
|
100
100
|
export type BrushInteraction = Unpack<{
|
|
101
101
|
type: 'brush';
|
|
102
|
-
} &
|
|
102
|
+
} & AllModeProp & AllKeysProp>;
|
|
103
103
|
export type AnyInteraction = {
|
|
104
104
|
type: string;
|
|
105
105
|
pointerMode?: InteractionMode;
|
|
@@ -22,8 +22,23 @@ const useZoomOnBrush = ({
|
|
|
22
22
|
const config = store.use(_ZoomInteractionConfig.selectorZoomInteractionConfig, 'brush');
|
|
23
23
|
const isZoomOnBrushEnabled = Object.keys(optionsLookup).length > 0 && Boolean(config);
|
|
24
24
|
React.useEffect(() => {
|
|
25
|
-
instance
|
|
25
|
+
if ('setZoomBrushEnabled' in instance) {
|
|
26
|
+
instance.setZoomBrushEnabled(isZoomOnBrushEnabled);
|
|
27
|
+
}
|
|
26
28
|
}, [isZoomOnBrushEnabled, instance]);
|
|
29
|
+
React.useEffect(() => {
|
|
30
|
+
if (!isZoomOnBrushEnabled) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
instance.updateZoomInteractionListeners('brush', {
|
|
34
|
+
requiredKeys: config.requiredKeys,
|
|
35
|
+
pointerMode: config.pointerMode,
|
|
36
|
+
pointerOptions: {
|
|
37
|
+
mouse: config.mouse,
|
|
38
|
+
touch: config.touch
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}, [isZoomOnBrushEnabled, config, instance]);
|
|
27
42
|
|
|
28
43
|
// Zoom on brush
|
|
29
44
|
React.useEffect(() => {
|
|
@@ -16,8 +16,23 @@ export const useZoomOnBrush = ({
|
|
|
16
16
|
const config = store.use(selectorZoomInteractionConfig, 'brush');
|
|
17
17
|
const isZoomOnBrushEnabled = Object.keys(optionsLookup).length > 0 && Boolean(config);
|
|
18
18
|
React.useEffect(() => {
|
|
19
|
-
instance
|
|
19
|
+
if ('setZoomBrushEnabled' in instance) {
|
|
20
|
+
instance.setZoomBrushEnabled(isZoomOnBrushEnabled);
|
|
21
|
+
}
|
|
20
22
|
}, [isZoomOnBrushEnabled, instance]);
|
|
23
|
+
React.useEffect(() => {
|
|
24
|
+
if (!isZoomOnBrushEnabled) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
instance.updateZoomInteractionListeners('brush', {
|
|
28
|
+
requiredKeys: config.requiredKeys,
|
|
29
|
+
pointerMode: config.pointerMode,
|
|
30
|
+
pointerOptions: {
|
|
31
|
+
mouse: config.mouse,
|
|
32
|
+
touch: config.touch
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}, [isZoomOnBrushEnabled, config, instance]);
|
|
21
36
|
|
|
22
37
|
// Zoom on brush
|
|
23
38
|
React.useEffect(() => {
|