@mui/x-charts-pro 9.0.0-alpha.0 → 9.0.0-alpha.2
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 +33 -0
- package/BarChartPro/BarChartPro.d.ts +1 -1
- package/BarChartPro/BarChartPro.js +47 -15
- package/BarChartPro/BarChartPro.mjs +1634 -0
- package/BarChartPro/BarChartPro.plugins.d.mts +5 -0
- package/BarChartPro/BarChartPro.plugins.d.ts +1 -1
- package/BarChartPro/BarChartPro.plugins.mjs +4 -0
- package/BarChartPro/index.d.mts +2 -0
- package/BarChartPro/index.mjs +2 -0
- package/CHANGELOG.md +236 -0
- package/ChartContainerPro/ChartContainerPro.d.mts +21 -0
- package/ChartContainerPro/ChartContainerPro.mjs +20 -0
- package/ChartContainerPro/index.d.mts +9 -0
- package/ChartContainerPro/index.mjs +6 -0
- package/ChartContainerPro/useChartContainerProProps.d.mts +12 -0
- package/ChartContainerPro/useChartContainerProProps.d.ts +1 -2
- package/ChartContainerPro/useChartContainerProProps.js +2 -2
- package/ChartContainerPro/useChartContainerProProps.mjs +14 -0
- package/ChartDataProviderPro/ChartDataProviderPro.d.mts +20 -0
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +17 -46
- package/ChartDataProviderPro/ChartDataProviderPro.js +21 -141
- package/ChartDataProviderPro/ChartDataProviderPro.mjs +21 -0
- package/ChartDataProviderPro/index.d.mts +2 -0
- package/ChartDataProviderPro/index.mjs +2 -0
- package/ChartDataProviderPro/useChartDataProviderProProps.d.mts +10 -0
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +7 -7
- package/ChartDataProviderPro/useChartDataProviderProProps.js +5 -18
- package/ChartDataProviderPro/useChartDataProviderProProps.mjs +8 -0
- package/ChartZoomSlider/index.d.mts +29 -0
- package/ChartZoomSlider/index.d.ts +29 -3
- package/ChartZoomSlider/index.js +33 -30
- package/ChartZoomSlider/index.mjs +34 -0
- package/ChartsContainerPro/ChartsContainerPro.d.mts +37 -0
- package/ChartsContainerPro/ChartsContainerPro.d.ts +3 -3
- package/ChartsContainerPro/ChartsContainerPro.js +5 -4
- package/ChartsContainerPro/ChartsContainerPro.mjs +182 -0
- package/ChartsContainerPro/index.d.mts +9 -0
- package/ChartsContainerPro/index.mjs +6 -0
- package/ChartsContainerPro/useChartsContainerProProps.d.mts +8 -0
- package/ChartsContainerPro/useChartsContainerProProps.d.ts +1 -2
- package/ChartsContainerPro/useChartsContainerProProps.js +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.mjs +37 -0
- package/ChartsDataProvider/index.d.mts +1 -0
- package/ChartsDataProvider/index.d.ts +1 -0
- package/ChartsDataProvider/index.js +16 -0
- package/ChartsDataProvider/index.mjs +2 -0
- package/ChartsDataProviderPro/ChartsDataProviderPro.d.mts +49 -0
- package/ChartsDataProviderPro/ChartsDataProviderPro.d.ts +49 -0
- package/ChartsDataProviderPro/ChartsDataProviderPro.js +149 -0
- package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +143 -0
- package/ChartsDataProviderPro/index.d.mts +2 -0
- package/ChartsDataProviderPro/index.d.ts +2 -0
- package/ChartsDataProviderPro/index.js +19 -0
- package/ChartsDataProviderPro/index.mjs +2 -0
- package/ChartsDataProviderPro/useChartsDataProviderProProps.d.mts +10 -0
- package/ChartsDataProviderPro/useChartsDataProviderProProps.d.ts +10 -0
- package/ChartsDataProviderPro/useChartsDataProviderProProps.js +25 -0
- package/ChartsDataProviderPro/useChartsDataProviderProProps.mjs +19 -0
- package/ChartsLayerContainer/index.d.mts +1 -0
- package/ChartsLayerContainer/index.d.ts +1 -0
- package/ChartsLayerContainer/index.js +16 -0
- package/ChartsLayerContainer/index.mjs +2 -0
- package/ChartsSvgLayer/index.d.mts +1 -0
- package/ChartsSvgLayer/index.d.ts +1 -0
- package/ChartsSvgLayer/index.js +16 -0
- package/ChartsSvgLayer/index.mjs +2 -0
- package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.mts +27 -0
- package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.mjs +73 -0
- package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.mts +33 -0
- package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.mjs +71 -0
- package/ChartsToolbarPro/ChartsToolbarPro.d.mts +19 -0
- package/ChartsToolbarPro/ChartsToolbarPro.mjs +166 -0
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +51 -0
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +51 -0
- package/ChartsToolbarPro/Toolbar.types.d.mts +15 -0
- package/ChartsToolbarPro/index.d.mts +5 -0
- package/ChartsToolbarPro/index.mjs +5 -0
- package/ChartsToolbarPro/internals/ChartsMenu.d.mts +14 -0
- package/ChartsToolbarPro/internals/ChartsToolbarDivider.d.mts +5 -0
- package/ChartsZoomSlider/ChartsZoomSlider.d.mts +4 -0
- package/ChartsZoomSlider/ChartsZoomSlider.d.ts +4 -0
- package/ChartsZoomSlider/ChartsZoomSlider.js +47 -0
- package/ChartsZoomSlider/ChartsZoomSlider.mjs +41 -0
- package/ChartsZoomSlider/index.d.mts +3 -0
- package/ChartsZoomSlider/index.d.ts +3 -0
- package/ChartsZoomSlider/index.js +26 -0
- package/ChartsZoomSlider/index.mjs +3 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.mts +20 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.ts +20 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.js +111 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.mjs +105 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.mts +25 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.ts +25 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.js +303 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.mjs +296 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.mts +17 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.ts +17 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.js +105 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.mjs +97 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.mts +9 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.ts +9 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.js +46 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.mjs +38 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderThumb.d.mts +12 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderThumb.d.ts +12 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderThumb.js +112 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderThumb.mjs +105 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.mts +18 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.ts +18 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.js +145 -0
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.mjs +138 -0
- package/ChartsZoomSlider/internals/chartsAxisZoomSliderThumbClasses.d.mts +17 -0
- package/ChartsZoomSlider/internals/chartsAxisZoomSliderThumbClasses.d.ts +17 -0
- package/ChartsZoomSlider/internals/chartsAxisZoomSliderThumbClasses.js +27 -0
- package/ChartsZoomSlider/internals/chartsAxisZoomSliderThumbClasses.mjs +17 -0
- package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.d.mts +15 -0
- package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.d.ts +15 -0
- package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.js +31 -0
- package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.mjs +21 -0
- package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.mts +14 -0
- package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.mts +9 -0
- package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.mts +4 -0
- package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.mjs +15 -0
- package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.mts +14 -0
- package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.mts +15 -0
- package/ChartsZoomSlider/internals/seriesPreviewPlotMap.d.mts +3 -0
- package/ChartsZoomSlider/internals/seriesPreviewPlotMap.mjs +4 -0
- package/FunnelChart/FocusedFunnelSection.mjs +64 -0
- package/FunnelChart/FunnelChart.d.mts +39 -0
- package/FunnelChart/FunnelChart.d.ts +1 -1
- package/FunnelChart/FunnelChart.js +29 -13
- package/FunnelChart/FunnelChart.mjs +362 -0
- package/FunnelChart/FunnelChart.plugins.d.mts +5 -0
- package/FunnelChart/FunnelChart.plugins.d.ts +1 -1
- package/FunnelChart/FunnelChart.plugins.mjs +4 -0
- package/FunnelChart/FunnelPlot.d.mts +16 -0
- package/FunnelChart/FunnelPlot.mjs +182 -0
- package/FunnelChart/FunnelSection.d.mts +16 -0
- package/FunnelChart/FunnelSection.js +4 -6
- package/FunnelChart/FunnelSection.mjs +65 -0
- package/FunnelChart/FunnelSectionLabel.d.mts +21 -0
- package/FunnelChart/FunnelSectionLabel.mjs +46 -0
- package/FunnelChart/coordinateMapper.d.mts +3 -0
- package/FunnelChart/curves/borderRadiusPolygon.d.mts +8 -0
- package/FunnelChart/curves/bump.d.mts +31 -0
- package/FunnelChart/curves/getFunnelCurve.d.mts +8 -0
- package/FunnelChart/curves/getFunnelCurve.mjs +26 -0
- package/FunnelChart/curves/index.d.mts +2 -0
- package/FunnelChart/curves/index.mjs +2 -0
- package/FunnelChart/curves/linear.d.mts +40 -0
- package/FunnelChart/curves/linear.mjs +164 -0
- package/FunnelChart/curves/pyramid.d.mts +36 -0
- package/FunnelChart/curves/pyramid.mjs +146 -0
- package/FunnelChart/curves/step-pyramid.d.mts +39 -0
- package/FunnelChart/curves/step-pyramid.mjs +174 -0
- package/FunnelChart/curves/step.d.mts +36 -0
- package/FunnelChart/curves/step.mjs +85 -0
- package/FunnelChart/funnel.types.d.mts +158 -0
- package/FunnelChart/funnelAxisPlugin/computeAxisValue.js +2 -1
- package/FunnelChart/funnelAxisPlugin/computeAxisValue.mjs +113 -0
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.mts +3 -0
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +5 -5
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.mjs +178 -0
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.mts +28 -0
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +1 -1
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.mts +18 -0
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.mjs +21 -0
- package/FunnelChart/funnelPlotSlots.types.d.mts +31 -0
- package/FunnelChart/funnelSectionClasses.d.mts +30 -0
- package/FunnelChart/funnelSectionClasses.d.ts +8 -2
- package/FunnelChart/funnelSlots.types.d.mts +20 -0
- package/FunnelChart/funnelSlots.types.d.ts +3 -9
- package/FunnelChart/get2DExtrema.d.mts +3 -0
- package/FunnelChart/index.d.mts +18 -0
- package/FunnelChart/index.d.ts +1 -1
- package/FunnelChart/index.mjs +17 -0
- package/FunnelChart/labelUtils.d.mts +37 -0
- package/FunnelChart/seriesConfig/index.js +3 -1
- package/FunnelChart/seriesConfig/index.mjs +24 -0
- package/FunnelChart/seriesConfig/keyboardFocusHandler.js +1 -14
- package/FunnelChart/seriesConfig/keyboardFocusHandler.mjs +4 -0
- package/FunnelChart/seriesConfig/tooltipPosition.mjs +56 -0
- package/FunnelChart/useFunnelChartProps.d.mts +26 -0
- package/FunnelChart/useFunnelChartProps.js +1 -1
- package/FunnelChart/useFunnelChartProps.mjs +154 -0
- package/Heatmap/FocusedHeatmapCell.mjs +29 -0
- package/Heatmap/Heatmap.d.mts +88 -0
- package/Heatmap/Heatmap.d.ts +1 -1
- package/Heatmap/Heatmap.js +45 -15
- package/Heatmap/Heatmap.mjs +496 -0
- package/Heatmap/Heatmap.plugins.d.mts +5 -0
- package/Heatmap/Heatmap.plugins.d.ts +1 -1
- package/Heatmap/Heatmap.plugins.mjs +4 -0
- package/Heatmap/Heatmap.types.d.mts +19 -0
- package/Heatmap/HeatmapItem.d.mts +56 -0
- package/Heatmap/HeatmapItem.js +3 -1
- package/Heatmap/HeatmapItem.mjs +104 -0
- package/Heatmap/HeatmapPlot.d.mts +11 -0
- package/Heatmap/HeatmapPlot.mjs +39 -0
- package/Heatmap/HeatmapSVGPlot.d.mts +2 -0
- package/Heatmap/HeatmapSVGPlot.js +3 -1
- package/Heatmap/HeatmapSVGPlot.mjs +66 -0
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.mts +2 -0
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.mts +6 -0
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.js +3 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.mjs +195 -0
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.mts +26 -0
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +16 -4
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.mts +6 -0
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.mjs +88 -0
- package/Heatmap/HeatmapTooltip/index.d.mts +3 -0
- package/Heatmap/HeatmapTooltip/index.mjs +3 -0
- package/Heatmap/heatmapClasses.d.mts +22 -0
- package/Heatmap/heatmapClasses.d.ts +8 -2
- package/Heatmap/index.d.mts +9 -0
- package/Heatmap/index.mjs +6 -0
- package/Heatmap/internals/HeatmapCell.d.mts +21 -0
- package/Heatmap/seriesConfig/getItemAtPosition.d.mts +6 -0
- package/Heatmap/seriesConfig/getItemAtPosition.d.ts +2 -2
- package/Heatmap/seriesConfig/highlight.d.mts +10 -0
- package/Heatmap/seriesConfig/highlight.d.ts +10 -0
- package/Heatmap/seriesConfig/highlight.js +52 -0
- package/Heatmap/seriesConfig/highlight.mjs +45 -0
- package/Heatmap/seriesConfig/index.js +4 -1
- package/Heatmap/seriesConfig/index.mjs +27 -0
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.d.mts +2 -0
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.mjs +13 -0
- package/Heatmap/useHeatmapProps.d.mts +24 -0
- package/Heatmap/useHeatmapProps.mjs +151 -0
- package/LineChartPro/LineChartPro.d.mts +32 -0
- package/LineChartPro/LineChartPro.d.ts +1 -1
- package/LineChartPro/LineChartPro.js +47 -15
- package/LineChartPro/LineChartPro.mjs +1627 -0
- package/LineChartPro/LineChartPro.plugins.d.mts +5 -0
- package/LineChartPro/LineChartPro.plugins.d.ts +1 -1
- package/LineChartPro/LineChartPro.plugins.mjs +4 -0
- package/LineChartPro/index.d.mts +2 -0
- package/LineChartPro/index.mjs +2 -0
- package/PieChartPro/PieChartPro.d.mts +22 -0
- package/PieChartPro/PieChartPro.d.ts +1 -1
- package/PieChartPro/PieChartPro.js +29 -13
- package/PieChartPro/PieChartPro.mjs +287 -0
- package/PieChartPro/PieChartPro.plugins.d.mts +4 -0
- package/PieChartPro/PieChartPro.plugins.d.ts +1 -1
- package/PieChartPro/PieChartPro.plugins.mjs +3 -0
- package/PieChartPro/index.d.mts +2 -0
- package/PieChartPro/index.mjs +2 -0
- package/RadarChartPro/RadarChartPro.d.mts +30 -0
- package/RadarChartPro/RadarChartPro.d.ts +1 -1
- package/RadarChartPro/RadarChartPro.js +28 -13
- package/RadarChartPro/RadarChartPro.mjs +304 -0
- package/RadarChartPro/RadarChartPro.plugins.d.mts +4 -0
- package/RadarChartPro/RadarChartPro.plugins.d.ts +1 -1
- package/RadarChartPro/RadarChartPro.plugins.mjs +3 -0
- package/RadarChartPro/index.d.mts +2 -0
- package/RadarChartPro/index.mjs +2 -0
- package/SankeyChart/FocusedSankeyLink.mjs +27 -0
- package/SankeyChart/FocusedSankeyNode.mjs +33 -0
- package/SankeyChart/SankeyChart.d.mts +32 -0
- package/SankeyChart/SankeyChart.d.ts +1 -1
- package/SankeyChart/SankeyChart.js +37 -2
- package/SankeyChart/SankeyChart.mjs +257 -0
- package/SankeyChart/SankeyChart.plugins.d.mts +4 -0
- package/SankeyChart/SankeyChart.plugins.d.ts +2 -3
- package/SankeyChart/SankeyChart.plugins.js +1 -2
- package/SankeyChart/SankeyChart.plugins.mjs +3 -0
- package/SankeyChart/SankeyDataProvider.d.mts +19 -0
- package/SankeyChart/SankeyDataProvider.mjs +27 -0
- package/SankeyChart/SankeyLinkElement.d.mts +27 -0
- package/SankeyChart/SankeyLinkElement.js +2 -4
- package/SankeyChart/SankeyLinkElement.mjs +57 -0
- package/SankeyChart/SankeyLinkLabel.d.mts +12 -0
- package/SankeyChart/SankeyLinkLabel.mjs +62 -0
- package/SankeyChart/SankeyLinkLabelPlot.d.mts +9 -0
- package/SankeyChart/SankeyLinkLabelPlot.js +3 -1
- package/SankeyChart/SankeyLinkLabelPlot.mjs +35 -0
- package/SankeyChart/SankeyLinkPlot.d.mts +17 -0
- package/SankeyChart/SankeyLinkPlot.js +3 -1
- package/SankeyChart/SankeyLinkPlot.mjs +50 -0
- package/SankeyChart/SankeyNodeElement.d.mts +23 -0
- package/SankeyChart/SankeyNodeElement.js +2 -4
- package/SankeyChart/SankeyNodeElement.mjs +63 -0
- package/SankeyChart/SankeyNodeLabel.d.mts +17 -0
- package/SankeyChart/SankeyNodeLabel.d.ts +5 -0
- package/SankeyChart/SankeyNodeLabel.js +8 -2
- package/SankeyChart/SankeyNodeLabel.mjs +58 -0
- package/SankeyChart/SankeyNodeLabelPlot.d.mts +9 -0
- package/SankeyChart/SankeyNodeLabelPlot.js +4 -1
- package/SankeyChart/SankeyNodeLabelPlot.mjs +37 -0
- package/SankeyChart/SankeyNodePlot.d.mts +17 -0
- package/SankeyChart/SankeyNodePlot.js +3 -1
- package/SankeyChart/SankeyNodePlot.mjs +49 -0
- package/SankeyChart/SankeyPlot.d.mts +29 -0
- package/SankeyChart/SankeyPlot.js +3 -2
- package/SankeyChart/SankeyPlot.mjs +83 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.d.mts +2 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.mts +6 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltip.js +6 -5
- package/SankeyChart/SankeyTooltip/SankeyTooltip.mjs +211 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.mts +6 -0
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.mjs +58 -0
- package/SankeyChart/SankeyTooltip/index.d.mts +3 -0
- package/SankeyChart/SankeyTooltip/index.mjs +3 -0
- package/SankeyChart/calculateSankeyLayout.d.mts +12 -0
- package/SankeyChart/calculateSankeyLayout.js +2 -1
- package/SankeyChart/calculateSankeyLayout.mjs +131 -0
- package/SankeyChart/d3Sankey/align.d.mts +33 -0
- package/SankeyChart/d3Sankey/index.d.mts +4 -0
- package/SankeyChart/d3Sankey/index.mjs +4 -0
- package/SankeyChart/d3Sankey/sankey.d.mts +42 -0
- package/SankeyChart/d3Sankey/sankey.js +5 -3
- package/SankeyChart/d3Sankey/sankey.mjs +453 -0
- package/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.mts +22 -0
- package/SankeyChart/index.d.mts +21 -0
- package/SankeyChart/index.d.ts +5 -1
- package/SankeyChart/index.js +14 -7
- package/SankeyChart/index.mjs +21 -0
- package/SankeyChart/sankey.types.d.mts +300 -0
- package/SankeyChart/sankeyHighlightHooks.d.mts +3 -0
- package/SankeyChart/sankeyHighlightHooks.d.ts +3 -3
- package/SankeyChart/sankeyHighlightHooks.js +6 -7
- package/SankeyChart/sankeyHighlightHooks.mjs +17 -0
- package/SankeyChart/sankeySlots.types.d.mts +18 -0
- package/SankeyChart/sankeySlots.types.d.ts +3 -9
- package/SankeyChart/seriesConfig/createIsFaded.d.mts +3 -0
- package/SankeyChart/seriesConfig/createIsFaded.d.ts +3 -0
- package/SankeyChart/seriesConfig/createIsFaded.js +29 -0
- package/SankeyChart/seriesConfig/createIsFaded.mjs +23 -0
- package/SankeyChart/seriesConfig/createIsHighlighted.d.mts +4 -0
- package/SankeyChart/seriesConfig/createIsHighlighted.d.ts +4 -0
- package/SankeyChart/seriesConfig/createIsHighlighted.js +89 -0
- package/SankeyChart/seriesConfig/createIsHighlighted.mjs +83 -0
- package/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +2 -1
- package/SankeyChart/seriesConfig/getSeriesWithDefaultValues.mjs +111 -0
- package/SankeyChart/seriesConfig/index.js +5 -1
- package/SankeyChart/seriesConfig/index.mjs +38 -0
- package/SankeyChart/useSankeyChartProps.d.mts +22 -0
- package/SankeyChart/useSankeyChartProps.js +2 -2
- package/SankeyChart/useSankeyChartProps.mjs +71 -0
- package/SankeyChart/utils.d.mts +3 -0
- package/SankeyChart/utils.mjs +14 -0
- package/ScatterChartPro/ScatterChartPro.d.mts +39 -0
- package/ScatterChartPro/ScatterChartPro.d.ts +1 -1
- package/ScatterChartPro/ScatterChartPro.js +47 -15
- package/ScatterChartPro/ScatterChartPro.mjs +1609 -0
- package/ScatterChartPro/ScatterChartPro.plugins.d.mts +5 -0
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +1 -1
- package/ScatterChartPro/ScatterChartPro.plugins.mjs +4 -0
- package/ScatterChartPro/index.d.mts +2 -0
- package/ScatterChartPro/index.mjs +2 -0
- package/context/ChartProApi.d.mts +29 -0
- package/context/index.d.mts +3 -0
- package/context/index.mjs +5 -0
- package/context/useChartProApiContext.d.mts +9 -0
- package/hooks/index.d.mts +5 -0
- package/hooks/index.mjs +7 -0
- package/hooks/useChartProApiRef.d.mts +23 -0
- package/hooks/useSankeySeries.d.mts +40 -0
- package/hooks/zoom/index.d.mts +1 -0
- package/hooks/zoom/index.mjs +1 -0
- package/hooks/zoom/useIsZoomInteracting.mjs +14 -0
- package/index.d.mts +49 -0
- package/index.d.ts +3 -0
- package/index.js +37 -1
- package/index.mjs +61 -0
- package/internals/ChartsWatermark.d.mts +6 -0
- package/internals/ChartsWatermark.d.ts +6 -0
- package/internals/ChartsWatermark.js +27 -0
- package/internals/ChartsWatermark.mjs +21 -0
- package/internals/index.d.mts +14 -0
- package/internals/index.d.ts +5 -4
- package/internals/index.js +16 -4
- package/internals/index.mjs +9 -0
- package/internals/material/components/BaseMenuItem.d.mts +2 -0
- package/internals/material/components/BasePopper.d.mts +2 -0
- package/internals/material/index.d.mts +6 -0
- package/internals/material/index.mjs +21 -0
- package/internals/plugins/allPlugins.d.mts +9 -0
- package/internals/plugins/allPlugins.d.ts +4 -4
- package/internals/plugins/allPlugins.mjs +7 -0
- package/internals/plugins/useChartProExport/exportImage.d.mts +3 -0
- package/internals/plugins/useChartProExport/exportImage.d.ts +1 -1
- package/internals/plugins/useChartProExport/exportImage.js +5 -4
- package/internals/plugins/useChartProExport/exportImage.mjs +110 -0
- package/internals/plugins/useChartProExport/index.d.mts +2 -0
- package/internals/plugins/useChartProExport/index.mjs +2 -0
- package/internals/plugins/useChartProExport/print.d.mts +7 -0
- package/internals/plugins/useChartProExport/print.mjs +35 -0
- package/internals/plugins/useChartProExport/useChartProExport.d.mts +3 -0
- package/internals/plugins/useChartProExport/useChartProExport.js +2 -2
- package/internals/plugins/useChartProExport/useChartProExport.mjs +69 -0
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.mts +25 -0
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.mjs +6 -0
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.mts +7 -0
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.mjs +83 -0
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.mts +7 -0
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.mjs +87 -0
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.mts +7 -0
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.mjs +100 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.mts +7 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.mjs +102 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.mts +7 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.mjs +59 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.mts +7 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.mjs +70 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.mts +7 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.mjs +75 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.mts +7 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +3 -3
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.mjs +91 -0
- package/internals/plugins/useChartProZoom/index.d.mts +3 -0
- package/internals/plugins/useChartProZoom/index.mjs +3 -0
- package/internals/plugins/useChartProZoom/initializeZoomInteractionConfig.d.mts +3 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.d.mts +3 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.mjs +176 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.mts +18 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.mts +84 -0
- package/internals/slots/chartsBaseSlots.d.mts +10 -0
- package/models/index.d.mts +4 -0
- package/models/index.mjs +6 -0
- package/models/seriesType/index.d.mts +1 -0
- package/models/seriesType/index.mjs +1 -0
- package/package.json +794 -17
- package/plugins/index.d.mts +3 -0
- package/plugins/index.mjs +3 -0
- package/plugins/selectors/useChartHeatmapPosition.selectors.d.mts +4 -0
- package/themeAugmentation/index.d.mts +4 -0
- package/themeAugmentation/overrides.d.mts +8 -0
- package/themeAugmentation/props.d.mts +14 -0
- package/typeOverloads/index.d.mts +1 -0
- package/typeOverloads/index.mjs +1 -0
- package/typeOverloads/modules.d.mts +65 -0
- package/typeOverloads/modules.d.ts +13 -1
- package/ChartZoomSlider/ChartZoomSlider.d.ts +0 -4
- package/ChartZoomSlider/ChartZoomSlider.js +0 -47
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +0 -20
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +0 -111
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +0 -25
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +0 -303
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +0 -17
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +0 -105
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +0 -9
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.js +0 -46
- package/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.d.ts +0 -12
- package/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.js +0 -112
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +0 -18
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +0 -145
- package/ChartZoomSlider/internals/chartAxisZoomSliderThumbClasses.d.ts +0 -17
- package/ChartZoomSlider/internals/chartAxisZoomSliderThumbClasses.js +0 -27
- package/ChartZoomSlider/internals/chartAxisZoomSliderTrackClasses.d.ts +0 -15
- package/ChartZoomSlider/internals/chartAxisZoomSliderTrackClasses.js +0 -31
- package/SankeyChart/plugins/index.d.ts +0 -3
- package/SankeyChart/plugins/index.js +0 -49
- package/SankeyChart/plugins/useSankeyHighlight.d.ts +0 -7
- package/SankeyChart/plugins/useSankeyHighlight.js +0 -72
- package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +0 -64
- package/SankeyChart/plugins/useSankeyHighlight.selectors.js +0 -126
- package/SankeyChart/plugins/useSankeyHighlight.types.d.ts +0 -55
- package/SankeyChart/plugins/useSankeyHighlight.types.js +0 -5
- package/esm/BarChartPro/BarChartPro.d.ts +0 -33
- package/esm/BarChartPro/BarChartPro.js +0 -1602
- package/esm/BarChartPro/BarChartPro.plugins.d.ts +0 -5
- package/esm/BarChartPro/BarChartPro.plugins.js +0 -4
- package/esm/BarChartPro/index.d.ts +0 -2
- package/esm/BarChartPro/index.js +0 -2
- package/esm/ChartContainerPro/ChartContainerPro.d.ts +0 -21
- package/esm/ChartContainerPro/ChartContainerPro.js +0 -20
- package/esm/ChartContainerPro/index.d.ts +0 -9
- package/esm/ChartContainerPro/index.js +0 -6
- package/esm/ChartContainerPro/useChartContainerProProps.d.ts +0 -13
- package/esm/ChartContainerPro/useChartContainerProProps.js +0 -14
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +0 -49
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +0 -144
- package/esm/ChartDataProviderPro/index.d.ts +0 -2
- package/esm/ChartDataProviderPro/index.js +0 -2
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +0 -10
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +0 -19
- package/esm/ChartZoomSlider/ChartZoomSlider.d.ts +0 -4
- package/esm/ChartZoomSlider/ChartZoomSlider.js +0 -41
- package/esm/ChartZoomSlider/index.d.ts +0 -3
- package/esm/ChartZoomSlider/index.js +0 -3
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +0 -20
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +0 -105
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +0 -25
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +0 -296
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +0 -17
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +0 -97
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +0 -9
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.js +0 -38
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.d.ts +0 -12
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.js +0 -105
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +0 -18
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +0 -138
- package/esm/ChartZoomSlider/internals/chartAxisZoomSliderThumbClasses.d.ts +0 -17
- package/esm/ChartZoomSlider/internals/chartAxisZoomSliderThumbClasses.js +0 -17
- package/esm/ChartZoomSlider/internals/chartAxisZoomSliderTrackClasses.d.ts +0 -15
- package/esm/ChartZoomSlider/internals/chartAxisZoomSliderTrackClasses.js +0 -21
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +0 -14
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +0 -9
- package/esm/ChartZoomSlider/internals/previews/LineAreaPreviewPlot.d.ts +0 -4
- package/esm/ChartZoomSlider/internals/previews/LineAreaPreviewPlot.js +0 -15
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +0 -14
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +0 -15
- package/esm/ChartZoomSlider/internals/seriesPreviewPlotMap.d.ts +0 -3
- package/esm/ChartZoomSlider/internals/seriesPreviewPlotMap.js +0 -4
- package/esm/ChartsContainerPro/ChartsContainerPro.d.ts +0 -37
- package/esm/ChartsContainerPro/ChartsContainerPro.js +0 -181
- package/esm/ChartsContainerPro/index.d.ts +0 -9
- package/esm/ChartsContainerPro/index.js +0 -6
- package/esm/ChartsContainerPro/useChartsContainerProProps.d.ts +0 -9
- package/esm/ChartsContainerPro/useChartsContainerProProps.js +0 -37
- package/esm/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.ts +0 -27
- package/esm/ChartsToolbarPro/ChartsToolbarImageExportTrigger.js +0 -73
- package/esm/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.ts +0 -33
- package/esm/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.js +0 -71
- package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +0 -19
- package/esm/ChartsToolbarPro/ChartsToolbarPro.js +0 -166
- package/esm/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +0 -51
- package/esm/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +0 -51
- package/esm/ChartsToolbarPro/Toolbar.types.d.ts +0 -15
- package/esm/ChartsToolbarPro/index.d.ts +0 -5
- package/esm/ChartsToolbarPro/index.js +0 -5
- package/esm/ChartsToolbarPro/internals/ChartsMenu.d.ts +0 -14
- package/esm/ChartsToolbarPro/internals/ChartsToolbarDivider.d.ts +0 -5
- package/esm/FunnelChart/FocusedFunnelSection.js +0 -64
- package/esm/FunnelChart/FunnelChart.d.ts +0 -39
- package/esm/FunnelChart/FunnelChart.js +0 -346
- package/esm/FunnelChart/FunnelChart.plugins.d.ts +0 -5
- package/esm/FunnelChart/FunnelChart.plugins.js +0 -4
- package/esm/FunnelChart/FunnelPlot.d.ts +0 -16
- package/esm/FunnelChart/FunnelPlot.js +0 -182
- package/esm/FunnelChart/FunnelSection.d.ts +0 -16
- package/esm/FunnelChart/FunnelSection.js +0 -67
- package/esm/FunnelChart/FunnelSectionLabel.d.ts +0 -21
- package/esm/FunnelChart/FunnelSectionLabel.js +0 -46
- package/esm/FunnelChart/coordinateMapper.d.ts +0 -3
- package/esm/FunnelChart/curves/borderRadiusPolygon.d.ts +0 -8
- package/esm/FunnelChart/curves/bump.d.ts +0 -31
- package/esm/FunnelChart/curves/getFunnelCurve.d.ts +0 -8
- package/esm/FunnelChart/curves/getFunnelCurve.js +0 -26
- package/esm/FunnelChart/curves/index.d.ts +0 -2
- package/esm/FunnelChart/curves/index.js +0 -2
- package/esm/FunnelChart/curves/linear.d.ts +0 -40
- package/esm/FunnelChart/curves/linear.js +0 -164
- package/esm/FunnelChart/curves/pyramid.d.ts +0 -36
- package/esm/FunnelChart/curves/pyramid.js +0 -146
- package/esm/FunnelChart/curves/step-pyramid.d.ts +0 -39
- package/esm/FunnelChart/curves/step-pyramid.js +0 -174
- package/esm/FunnelChart/curves/step.d.ts +0 -36
- package/esm/FunnelChart/curves/step.js +0 -85
- package/esm/FunnelChart/funnel.types.d.ts +0 -158
- package/esm/FunnelChart/funnelAxisPlugin/computeAxisValue.js +0 -112
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.ts +0 -3
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +0 -178
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +0 -28
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +0 -18
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +0 -21
- package/esm/FunnelChart/funnelPlotSlots.types.d.ts +0 -31
- package/esm/FunnelChart/funnelSectionClasses.d.ts +0 -24
- package/esm/FunnelChart/funnelSlots.types.d.ts +0 -26
- package/esm/FunnelChart/get2DExtrema.d.ts +0 -3
- package/esm/FunnelChart/index.d.ts +0 -18
- package/esm/FunnelChart/index.js +0 -17
- package/esm/FunnelChart/labelUtils.d.ts +0 -37
- package/esm/FunnelChart/seriesConfig/index.js +0 -22
- package/esm/FunnelChart/seriesConfig/keyboardFocusHandler.js +0 -17
- package/esm/FunnelChart/seriesConfig/tooltipPosition.js +0 -56
- package/esm/FunnelChart/useFunnelChartProps.d.ts +0 -26
- package/esm/FunnelChart/useFunnelChartProps.js +0 -154
- package/esm/Heatmap/FocusedHeatmapCell.js +0 -29
- package/esm/Heatmap/Heatmap.d.ts +0 -88
- package/esm/Heatmap/Heatmap.js +0 -466
- package/esm/Heatmap/Heatmap.plugins.d.ts +0 -5
- package/esm/Heatmap/Heatmap.plugins.js +0 -4
- package/esm/Heatmap/Heatmap.types.d.ts +0 -19
- package/esm/Heatmap/HeatmapItem.d.ts +0 -56
- package/esm/Heatmap/HeatmapItem.js +0 -102
- package/esm/Heatmap/HeatmapPlot.d.ts +0 -11
- package/esm/Heatmap/HeatmapPlot.js +0 -39
- package/esm/Heatmap/HeatmapSVGPlot.d.ts +0 -2
- package/esm/Heatmap/HeatmapSVGPlot.js +0 -64
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.ts +0 -2
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +0 -6
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.js +0 -194
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +0 -14
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +0 -6
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -88
- package/esm/Heatmap/HeatmapTooltip/index.d.ts +0 -3
- package/esm/Heatmap/HeatmapTooltip/index.js +0 -3
- package/esm/Heatmap/heatmapClasses.d.ts +0 -16
- package/esm/Heatmap/index.d.ts +0 -9
- package/esm/Heatmap/index.js +0 -6
- package/esm/Heatmap/internals/HeatmapCell.d.ts +0 -21
- package/esm/Heatmap/seriesConfig/getItemAtPosition.d.ts +0 -6
- package/esm/Heatmap/seriesConfig/index.js +0 -24
- package/esm/Heatmap/shouldRegisterPointerInteractionsGlobally.d.ts +0 -2
- package/esm/Heatmap/shouldRegisterPointerInteractionsGlobally.js +0 -13
- package/esm/Heatmap/useHeatmapProps.d.ts +0 -24
- package/esm/Heatmap/useHeatmapProps.js +0 -151
- package/esm/LineChartPro/LineChartPro.d.ts +0 -32
- package/esm/LineChartPro/LineChartPro.js +0 -1595
- package/esm/LineChartPro/LineChartPro.plugins.d.ts +0 -5
- package/esm/LineChartPro/LineChartPro.plugins.js +0 -4
- package/esm/LineChartPro/index.d.ts +0 -2
- package/esm/LineChartPro/index.js +0 -2
- package/esm/PieChartPro/PieChartPro.d.ts +0 -22
- package/esm/PieChartPro/PieChartPro.js +0 -271
- package/esm/PieChartPro/PieChartPro.plugins.d.ts +0 -4
- package/esm/PieChartPro/PieChartPro.plugins.js +0 -3
- package/esm/PieChartPro/index.d.ts +0 -2
- package/esm/PieChartPro/index.js +0 -2
- package/esm/RadarChartPro/RadarChartPro.d.ts +0 -30
- package/esm/RadarChartPro/RadarChartPro.js +0 -289
- package/esm/RadarChartPro/RadarChartPro.plugins.d.ts +0 -4
- package/esm/RadarChartPro/RadarChartPro.plugins.js +0 -3
- package/esm/RadarChartPro/index.d.ts +0 -2
- package/esm/RadarChartPro/index.js +0 -2
- package/esm/SankeyChart/FocusedSankeyLink.js +0 -27
- package/esm/SankeyChart/FocusedSankeyNode.js +0 -33
- package/esm/SankeyChart/SankeyChart.d.ts +0 -32
- package/esm/SankeyChart/SankeyChart.js +0 -222
- package/esm/SankeyChart/SankeyChart.plugins.d.ts +0 -5
- package/esm/SankeyChart/SankeyChart.plugins.js +0 -4
- package/esm/SankeyChart/SankeyDataProvider.d.ts +0 -19
- package/esm/SankeyChart/SankeyDataProvider.js +0 -27
- package/esm/SankeyChart/SankeyLinkElement.d.ts +0 -27
- package/esm/SankeyChart/SankeyLinkElement.js +0 -59
- package/esm/SankeyChart/SankeyLinkLabel.d.ts +0 -12
- package/esm/SankeyChart/SankeyLinkLabel.js +0 -62
- package/esm/SankeyChart/SankeyLinkLabelPlot.d.ts +0 -9
- package/esm/SankeyChart/SankeyLinkLabelPlot.js +0 -34
- package/esm/SankeyChart/SankeyLinkPlot.d.ts +0 -17
- package/esm/SankeyChart/SankeyLinkPlot.js +0 -49
- package/esm/SankeyChart/SankeyNodeElement.d.ts +0 -23
- package/esm/SankeyChart/SankeyNodeElement.js +0 -65
- package/esm/SankeyChart/SankeyNodeLabel.d.ts +0 -12
- package/esm/SankeyChart/SankeyNodeLabel.js +0 -52
- package/esm/SankeyChart/SankeyNodeLabelPlot.d.ts +0 -9
- package/esm/SankeyChart/SankeyNodeLabelPlot.js +0 -35
- package/esm/SankeyChart/SankeyNodePlot.d.ts +0 -17
- package/esm/SankeyChart/SankeyNodePlot.js +0 -48
- package/esm/SankeyChart/SankeyPlot.d.ts +0 -29
- package/esm/SankeyChart/SankeyPlot.js +0 -82
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.classes.d.ts +0 -2
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +0 -6
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.js +0 -210
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +0 -6
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -58
- package/esm/SankeyChart/SankeyTooltip/index.d.ts +0 -3
- package/esm/SankeyChart/SankeyTooltip/index.js +0 -3
- package/esm/SankeyChart/calculateSankeyLayout.d.ts +0 -12
- package/esm/SankeyChart/calculateSankeyLayout.js +0 -130
- package/esm/SankeyChart/d3Sankey/align.d.ts +0 -33
- package/esm/SankeyChart/d3Sankey/index.d.ts +0 -4
- package/esm/SankeyChart/d3Sankey/index.js +0 -4
- package/esm/SankeyChart/d3Sankey/sankey.d.ts +0 -42
- package/esm/SankeyChart/d3Sankey/sankey.js +0 -452
- package/esm/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.ts +0 -22
- package/esm/SankeyChart/index.d.ts +0 -17
- package/esm/SankeyChart/index.js +0 -15
- package/esm/SankeyChart/plugins/index.d.ts +0 -3
- package/esm/SankeyChart/plugins/index.js +0 -3
- package/esm/SankeyChart/plugins/useSankeyHighlight.d.ts +0 -7
- package/esm/SankeyChart/plugins/useSankeyHighlight.js +0 -64
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +0 -64
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.js +0 -120
- package/esm/SankeyChart/plugins/useSankeyHighlight.types.d.ts +0 -55
- package/esm/SankeyChart/sankey.types.d.ts +0 -300
- package/esm/SankeyChart/sankeyHighlightHooks.d.ts +0 -3
- package/esm/SankeyChart/sankeyHighlightHooks.js +0 -18
- package/esm/SankeyChart/sankeySlots.types.d.ts +0 -24
- package/esm/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +0 -110
- package/esm/SankeyChart/seriesConfig/index.js +0 -34
- package/esm/SankeyChart/useSankeyChartProps.d.ts +0 -22
- package/esm/SankeyChart/useSankeyChartProps.js +0 -71
- package/esm/SankeyChart/utils.d.ts +0 -3
- package/esm/SankeyChart/utils.js +0 -14
- package/esm/ScatterChartPro/ScatterChartPro.d.ts +0 -39
- package/esm/ScatterChartPro/ScatterChartPro.js +0 -1577
- package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +0 -5
- package/esm/ScatterChartPro/ScatterChartPro.plugins.js +0 -4
- package/esm/ScatterChartPro/index.d.ts +0 -2
- package/esm/ScatterChartPro/index.js +0 -2
- package/esm/context/ChartProApi.d.ts +0 -29
- package/esm/context/index.d.ts +0 -3
- package/esm/context/index.js +0 -5
- package/esm/context/useChartProApiContext.d.ts +0 -9
- package/esm/hooks/index.d.ts +0 -5
- package/esm/hooks/index.js +0 -7
- package/esm/hooks/useChartProApiRef.d.ts +0 -23
- package/esm/hooks/useSankeySeries.d.ts +0 -40
- package/esm/hooks/zoom/index.d.ts +0 -1
- package/esm/hooks/zoom/index.js +0 -1
- package/esm/hooks/zoom/useIsZoomInteracting.js +0 -14
- package/esm/index.d.ts +0 -46
- package/esm/index.js +0 -58
- package/esm/internals/index.d.ts +0 -13
- package/esm/internals/index.js +0 -8
- package/esm/internals/material/components/BaseMenuItem.d.ts +0 -2
- package/esm/internals/material/components/BasePopper.d.ts +0 -2
- package/esm/internals/material/index.d.ts +0 -6
- package/esm/internals/material/index.js +0 -21
- package/esm/internals/plugins/allPlugins.d.ts +0 -9
- package/esm/internals/plugins/allPlugins.js +0 -7
- package/esm/internals/plugins/useChartProExport/exportImage.d.ts +0 -3
- package/esm/internals/plugins/useChartProExport/exportImage.js +0 -109
- package/esm/internals/plugins/useChartProExport/index.d.ts +0 -2
- package/esm/internals/plugins/useChartProExport/index.js +0 -2
- package/esm/internals/plugins/useChartProExport/print.d.ts +0 -7
- package/esm/internals/plugins/useChartProExport/print.js +0 -35
- package/esm/internals/plugins/useChartProExport/useChartProExport.d.ts +0 -3
- package/esm/internals/plugins/useChartProExport/useChartProExport.js +0 -69
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +0 -25
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +0 -6
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +0 -7
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +0 -83
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +0 -7
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +0 -87
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +0 -7
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.js +0 -100
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +0 -7
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +0 -102
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +0 -7
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +0 -59
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +0 -7
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +0 -70
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +0 -7
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +0 -75
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +0 -7
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +0 -91
- package/esm/internals/plugins/useChartProZoom/index.d.ts +0 -3
- package/esm/internals/plugins/useChartProZoom/index.js +0 -3
- package/esm/internals/plugins/useChartProZoom/initializeZoomInteractionConfig.d.ts +0 -3
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +0 -3
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +0 -176
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +0 -18
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +0 -84
- package/esm/internals/slots/chartsBaseSlots.d.ts +0 -10
- package/esm/models/index.d.ts +0 -4
- package/esm/models/index.js +0 -6
- package/esm/models/seriesType/index.d.ts +0 -1
- package/esm/models/seriesType/index.js +0 -1
- package/esm/package.json +0 -1
- package/esm/plugins/index.d.ts +0 -3
- package/esm/plugins/index.js +0 -3
- package/esm/plugins/selectors/useChartHeatmapPosition.selectors.d.ts +0 -4
- package/esm/themeAugmentation/index.d.ts +0 -4
- package/esm/themeAugmentation/overrides.d.ts +0 -8
- package/esm/themeAugmentation/props.d.ts +0 -14
- package/esm/typeOverloads/index.d.ts +0 -1
- package/esm/typeOverloads/index.js +0 -1
- package/esm/typeOverloads/modules.d.ts +0 -53
- package/esm/typeOverloads/modules.js +0 -1
- /package/{esm/BarChart/index.d.ts → BarChart/index.d.mts} +0 -0
- /package/{esm/BarChart/index.js → BarChart/index.mjs} +0 -0
- /package/{esm/ChartContainer/index.d.ts → ChartContainer/index.d.mts} +0 -0
- /package/{esm/ChartContainer/index.js → ChartContainer/index.mjs} +0 -0
- /package/{esm/ChartDataProvider/index.d.ts → ChartDataProvider/index.d.mts} +0 -0
- /package/{esm/ChartDataProvider/index.js → ChartDataProvider/index.mjs} +0 -0
- /package/{esm/ChartsAxis/index.d.ts → ChartsAxis/index.d.mts} +0 -0
- /package/{esm/ChartsAxis/index.js → ChartsAxis/index.mjs} +0 -0
- /package/{esm/ChartsAxisHighlight/index.d.ts → ChartsAxisHighlight/index.d.mts} +0 -0
- /package/{esm/ChartsAxisHighlight/index.js → ChartsAxisHighlight/index.mjs} +0 -0
- /package/{esm/ChartsBrushOverlay/index.d.ts → ChartsBrushOverlay/index.d.mts} +0 -0
- /package/{esm/ChartsBrushOverlay/index.js → ChartsBrushOverlay/index.mjs} +0 -0
- /package/{esm/ChartsClipPath/index.d.ts → ChartsClipPath/index.d.mts} +0 -0
- /package/{esm/ChartsClipPath/index.js → ChartsClipPath/index.mjs} +0 -0
- /package/{esm/ChartsContainer/index.d.ts → ChartsContainer/index.d.mts} +0 -0
- /package/{esm/ChartsContainer/index.js → ChartsContainer/index.mjs} +0 -0
- /package/{esm/ChartsGrid/index.d.ts → ChartsGrid/index.d.mts} +0 -0
- /package/{esm/ChartsGrid/index.js → ChartsGrid/index.mjs} +0 -0
- /package/{esm/ChartsLabel/index.d.ts → ChartsLabel/index.d.mts} +0 -0
- /package/{esm/ChartsLabel/index.js → ChartsLabel/index.mjs} +0 -0
- /package/{esm/ChartsLegend/index.d.ts → ChartsLegend/index.d.mts} +0 -0
- /package/{esm/ChartsLegend/index.js → ChartsLegend/index.mjs} +0 -0
- /package/{esm/ChartsLocalizationProvider/index.d.ts → ChartsLocalizationProvider/index.d.mts} +0 -0
- /package/{esm/ChartsLocalizationProvider/index.js → ChartsLocalizationProvider/index.mjs} +0 -0
- /package/{esm/ChartsOverlay/index.d.ts → ChartsOverlay/index.d.mts} +0 -0
- /package/{esm/ChartsOverlay/index.js → ChartsOverlay/index.mjs} +0 -0
- /package/{esm/ChartsReferenceLine/index.d.ts → ChartsReferenceLine/index.d.mts} +0 -0
- /package/{esm/ChartsReferenceLine/index.js → ChartsReferenceLine/index.mjs} +0 -0
- /package/{esm/ChartsSurface/index.d.ts → ChartsSurface/index.d.mts} +0 -0
- /package/{esm/ChartsSurface/index.js → ChartsSurface/index.mjs} +0 -0
- /package/{esm/ChartsText/index.d.ts → ChartsText/index.d.mts} +0 -0
- /package/{esm/ChartsText/index.js → ChartsText/index.mjs} +0 -0
- /package/{esm/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.ts → ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.mts} +0 -0
- /package/{esm/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.ts → ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.mts} +0 -0
- /package/{esm/ChartZoomSlider/internals/previews/PreviewPlot.types.js → ChartsToolbarPro/Toolbar.types.mjs} +0 -0
- /package/{esm/ChartsToolbarPro/internals/ChartsMenu.js → ChartsToolbarPro/internals/ChartsMenu.mjs} +0 -0
- /package/{esm/ChartsToolbarPro/internals/ChartsToolbarDivider.js → ChartsToolbarPro/internals/ChartsToolbarDivider.mjs} +0 -0
- /package/{esm/ChartsTooltip/index.d.ts → ChartsTooltip/index.d.mts} +0 -0
- /package/{esm/ChartsTooltip/index.js → ChartsTooltip/index.mjs} +0 -0
- /package/{esm/ChartsWrapper/index.d.ts → ChartsWrapper/index.d.mts} +0 -0
- /package/{esm/ChartsWrapper/index.js → ChartsWrapper/index.mjs} +0 -0
- /package/{esm/ChartsXAxis/index.d.ts → ChartsXAxis/index.d.mts} +0 -0
- /package/{esm/ChartsXAxis/index.js → ChartsXAxis/index.mjs} +0 -0
- /package/{esm/ChartsYAxis/index.d.ts → ChartsYAxis/index.d.mts} +0 -0
- /package/{esm/ChartsYAxis/index.js → ChartsYAxis/index.mjs} +0 -0
- /package/{ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts → ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.mts} +0 -0
- /package/{esm/ChartZoomSlider → ChartsZoomSlider}/internals/ChartsTooltipZoomSliderValue.d.ts +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/ChartsTooltipZoomSliderValue.js +0 -0
- /package/{esm/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.js → ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.mjs} +0 -0
- /package/{ChartZoomSlider/internals/constants.d.ts → ChartsZoomSlider/internals/constants.d.mts} +0 -0
- /package/{esm/ChartZoomSlider → ChartsZoomSlider}/internals/constants.d.ts +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/constants.js +0 -0
- /package/{esm/ChartZoomSlider/internals/constants.js → ChartsZoomSlider/internals/constants.mjs} +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/AreaPreviewPlot.d.ts +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/AreaPreviewPlot.js +0 -0
- /package/{esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js → ChartsZoomSlider/internals/previews/AreaPreviewPlot.mjs} +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/BarPreviewPlot.d.ts +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/BarPreviewPlot.js +0 -0
- /package/{esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js → ChartsZoomSlider/internals/previews/BarPreviewPlot.mjs} +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/LineAreaPreviewPlot.d.ts +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/LineAreaPreviewPlot.js +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/LinePreviewPlot.d.ts +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/LinePreviewPlot.js +0 -0
- /package/{esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js → ChartsZoomSlider/internals/previews/LinePreviewPlot.mjs} +0 -0
- /package/{ChartZoomSlider/internals/previews/PreviewPlot.types.d.ts → ChartsZoomSlider/internals/previews/PreviewPlot.types.d.mts} +0 -0
- /package/{esm/ChartZoomSlider → ChartsZoomSlider}/internals/previews/PreviewPlot.types.d.ts +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/PreviewPlot.types.js +0 -0
- /package/{esm/ChartsToolbarPro/Toolbar.types.js → ChartsZoomSlider/internals/previews/PreviewPlot.types.mjs} +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/ScatterPreviewPlot.d.ts +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/ScatterPreviewPlot.js +0 -0
- /package/{esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js → ChartsZoomSlider/internals/previews/ScatterPreviewPlot.mjs} +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/seriesPreviewPlotMap.d.ts +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/seriesPreviewPlotMap.js +0 -0
- /package/{ChartZoomSlider/internals/zoom-utils.d.ts → ChartsZoomSlider/internals/zoom-utils.d.mts} +0 -0
- /package/{esm/ChartZoomSlider → ChartsZoomSlider}/internals/zoom-utils.d.ts +0 -0
- /package/{ChartZoomSlider → ChartsZoomSlider}/internals/zoom-utils.js +0 -0
- /package/{esm/ChartZoomSlider/internals/zoom-utils.js → ChartsZoomSlider/internals/zoom-utils.mjs} +0 -0
- /package/{esm/FunnelChart/FocusedFunnelSection.d.ts → FunnelChart/FocusedFunnelSection.d.mts} +0 -0
- /package/{esm/FunnelChart/categoryAxis.types.d.ts → FunnelChart/categoryAxis.types.d.mts} +0 -0
- /package/{esm/FunnelChart/categoryAxis.types.js → FunnelChart/categoryAxis.types.mjs} +0 -0
- /package/{esm/FunnelChart/coordinateMapper.js → FunnelChart/coordinateMapper.mjs} +0 -0
- /package/{esm/FunnelChart/curves/borderRadiusPolygon.js → FunnelChart/curves/borderRadiusPolygon.mjs} +0 -0
- /package/{esm/FunnelChart/curves/bump.js → FunnelChart/curves/bump.mjs} +0 -0
- /package/{esm/FunnelChart/curves/curve.types.d.ts → FunnelChart/curves/curve.types.d.mts} +0 -0
- /package/{esm/FunnelChart/curves/curve.types.js → FunnelChart/curves/curve.types.mjs} +0 -0
- /package/{esm/FunnelChart/curves/utils.d.ts → FunnelChart/curves/utils.d.mts} +0 -0
- /package/{esm/FunnelChart/curves/utils.js → FunnelChart/curves/utils.mjs} +0 -0
- /package/{esm/FunnelChart/funnel.types.js → FunnelChart/funnel.types.mjs} +0 -0
- /package/{esm/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts → FunnelChart/funnelAxisPlugin/computeAxisValue.d.mts} +0 -0
- /package/{esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.js → FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.mjs} +0 -0
- /package/{esm/FunnelChart/funnelPlotSlots.types.js → FunnelChart/funnelPlotSlots.types.mjs} +0 -0
- /package/{esm/FunnelChart/funnelSectionClasses.js → FunnelChart/funnelSectionClasses.mjs} +0 -0
- /package/{esm/FunnelChart/funnelSlots.types.js → FunnelChart/funnelSlots.types.mjs} +0 -0
- /package/{esm/FunnelChart/get2DExtrema.js → FunnelChart/get2DExtrema.mjs} +0 -0
- /package/{esm/FunnelChart/labelUtils.js → FunnelChart/labelUtils.mjs} +0 -0
- /package/{esm/FunnelChart/seriesConfig/extremums.d.ts → FunnelChart/seriesConfig/extremums.d.mts} +0 -0
- /package/{esm/FunnelChart/seriesConfig/extremums.js → FunnelChart/seriesConfig/extremums.mjs} +0 -0
- /package/{esm/FunnelChart/seriesConfig/getColor.d.ts → FunnelChart/seriesConfig/getColor.d.mts} +0 -0
- /package/{esm/FunnelChart/seriesConfig/getColor.js → FunnelChart/seriesConfig/getColor.mjs} +0 -0
- /package/{esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts → FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.mts} +0 -0
- /package/{esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js → FunnelChart/seriesConfig/getSeriesWithDefaultValues.mjs} +0 -0
- /package/{esm/FunnelChart/seriesConfig/index.d.ts → FunnelChart/seriesConfig/index.d.mts} +0 -0
- /package/{esm/FunnelChart/seriesConfig/keyboardFocusHandler.d.ts → FunnelChart/seriesConfig/keyboardFocusHandler.d.mts} +0 -0
- /package/{esm/FunnelChart/seriesConfig/legend.d.ts → FunnelChart/seriesConfig/legend.d.mts} +0 -0
- /package/{esm/FunnelChart/seriesConfig/legend.js → FunnelChart/seriesConfig/legend.mjs} +0 -0
- /package/{esm/FunnelChart/seriesConfig/seriesProcessor.d.ts → FunnelChart/seriesConfig/seriesProcessor.d.mts} +0 -0
- /package/{esm/FunnelChart/seriesConfig/seriesProcessor.js → FunnelChart/seriesConfig/seriesProcessor.mjs} +0 -0
- /package/{esm/FunnelChart/seriesConfig/tooltip.d.ts → FunnelChart/seriesConfig/tooltip.d.mts} +0 -0
- /package/{esm/FunnelChart/seriesConfig/tooltip.js → FunnelChart/seriesConfig/tooltip.mjs} +0 -0
- /package/{esm/FunnelChart/seriesConfig/tooltipPosition.d.ts → FunnelChart/seriesConfig/tooltipPosition.d.mts} +0 -0
- /package/{esm/Gauge/index.d.ts → Gauge/index.d.mts} +0 -0
- /package/{esm/Gauge/index.js → Gauge/index.mjs} +0 -0
- /package/{esm/Heatmap/FocusedHeatmapCell.d.ts → Heatmap/FocusedHeatmapCell.d.mts} +0 -0
- /package/{esm/Heatmap/Heatmap.types.js → Heatmap/Heatmap.types.mjs} +0 -0
- /package/{esm/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.js → Heatmap/HeatmapTooltip/HeatmapTooltip.classes.mjs} +0 -0
- /package/{esm/Heatmap/HeatmapTooltip/HeatmapTooltip.types.js → Heatmap/HeatmapTooltip/HeatmapTooltip.types.mjs} +0 -0
- /package/{esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts → Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.mts} +0 -0
- /package/{esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.js → Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.mjs} +0 -0
- /package/{esm/Heatmap/heatmapClasses.js → Heatmap/heatmapClasses.mjs} +0 -0
- /package/{esm/Heatmap/internals/HeatmapCell.js → Heatmap/internals/HeatmapCell.mjs} +0 -0
- /package/{esm/Heatmap/seriesConfig/extremums.d.ts → Heatmap/seriesConfig/extremums.d.mts} +0 -0
- /package/{esm/Heatmap/seriesConfig/extremums.js → Heatmap/seriesConfig/extremums.mjs} +0 -0
- /package/{esm/Heatmap/seriesConfig/getColor.d.ts → Heatmap/seriesConfig/getColor.d.mts} +0 -0
- /package/{esm/Heatmap/seriesConfig/getColor.js → Heatmap/seriesConfig/getColor.mjs} +0 -0
- /package/{esm/Heatmap/seriesConfig/getItemAtPosition.js → Heatmap/seriesConfig/getItemAtPosition.mjs} +0 -0
- /package/{esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts → Heatmap/seriesConfig/getSeriesWithDefaultValues.d.mts} +0 -0
- /package/{esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.js → Heatmap/seriesConfig/getSeriesWithDefaultValues.mjs} +0 -0
- /package/{esm/Heatmap/seriesConfig/index.d.ts → Heatmap/seriesConfig/index.d.mts} +0 -0
- /package/{esm/Heatmap/seriesConfig/keyboardFocusHandler.d.ts → Heatmap/seriesConfig/keyboardFocusHandler.d.mts} +0 -0
- /package/{esm/Heatmap/seriesConfig/keyboardFocusHandler.js → Heatmap/seriesConfig/keyboardFocusHandler.mjs} +0 -0
- /package/{esm/Heatmap/seriesConfig/seriesProcessor.d.ts → Heatmap/seriesConfig/seriesProcessor.d.mts} +0 -0
- /package/{esm/Heatmap/seriesConfig/seriesProcessor.js → Heatmap/seriesConfig/seriesProcessor.mjs} +0 -0
- /package/{esm/Heatmap/seriesConfig/tooltip.d.ts → Heatmap/seriesConfig/tooltip.d.mts} +0 -0
- /package/{esm/Heatmap/seriesConfig/tooltip.js → Heatmap/seriesConfig/tooltip.mjs} +0 -0
- /package/{esm/Heatmap/seriesConfig/tooltipPosition.d.ts → Heatmap/seriesConfig/tooltipPosition.d.mts} +0 -0
- /package/{esm/Heatmap/seriesConfig/tooltipPosition.js → Heatmap/seriesConfig/tooltipPosition.mjs} +0 -0
- /package/{esm/LineChart/index.d.ts → LineChart/index.d.mts} +0 -0
- /package/{esm/LineChart/index.js → LineChart/index.mjs} +0 -0
- /package/{esm/PieChart/index.d.ts → PieChart/index.d.mts} +0 -0
- /package/{esm/PieChart/index.js → PieChart/index.mjs} +0 -0
- /package/{esm/RadarChart/index.d.ts → RadarChart/index.d.mts} +0 -0
- /package/{esm/RadarChart/index.js → RadarChart/index.mjs} +0 -0
- /package/{esm/SankeyChart/FocusedSankeyLink.d.ts → SankeyChart/FocusedSankeyLink.d.mts} +0 -0
- /package/{esm/SankeyChart/FocusedSankeyNode.d.ts → SankeyChart/FocusedSankeyNode.d.mts} +0 -0
- /package/{esm/SankeyChart/SankeyTooltip/SankeyTooltip.classes.js → SankeyChart/SankeyTooltip/SankeyTooltip.classes.mjs} +0 -0
- /package/{esm/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts → SankeyChart/SankeyTooltip/SankeyTooltip.types.d.mts} +0 -0
- /package/{esm/SankeyChart/SankeyTooltip/SankeyTooltip.types.js → SankeyChart/SankeyTooltip/SankeyTooltip.types.mjs} +0 -0
- /package/{esm/SankeyChart/d3Sankey/align.js → SankeyChart/d3Sankey/align.mjs} +0 -0
- /package/{esm/SankeyChart/d3Sankey/sankey.types.d.ts → SankeyChart/d3Sankey/sankey.types.d.mts} +0 -0
- /package/{esm/SankeyChart/d3Sankey/sankey.types.js → SankeyChart/d3Sankey/sankey.types.mjs} +0 -0
- /package/{esm/SankeyChart/d3Sankey/sankeyLinkHorizontal.js → SankeyChart/d3Sankey/sankeyLinkHorizontal.mjs} +0 -0
- /package/{esm/SankeyChart/sankey.highlight.types.d.ts → SankeyChart/sankey.highlight.types.d.mts} +0 -0
- /package/{esm/SankeyChart/sankey.highlight.types.js → SankeyChart/sankey.highlight.types.mjs} +0 -0
- /package/{esm/SankeyChart/sankey.types.js → SankeyChart/sankey.types.mjs} +0 -0
- /package/{esm/SankeyChart/sankeyClasses.d.ts → SankeyChart/sankeyClasses.d.mts} +0 -0
- /package/{esm/SankeyChart/sankeyClasses.js → SankeyChart/sankeyClasses.mjs} +0 -0
- /package/{esm/SankeyChart/plugins/useSankeyHighlight.types.js → SankeyChart/sankeySlots.types.mjs} +0 -0
- /package/{esm/SankeyChart/seriesConfig/getSeriesWithDefaultValues.d.ts → SankeyChart/seriesConfig/getSeriesWithDefaultValues.d.mts} +0 -0
- /package/{esm/SankeyChart/seriesConfig/identifierCleaner.d.ts → SankeyChart/seriesConfig/identifierCleaner.d.mts} +0 -0
- /package/{esm/SankeyChart/seriesConfig/identifierCleaner.js → SankeyChart/seriesConfig/identifierCleaner.mjs} +0 -0
- /package/{esm/SankeyChart/seriesConfig/identifierSerializer.d.ts → SankeyChart/seriesConfig/identifierSerializer.d.mts} +0 -0
- /package/{esm/SankeyChart/seriesConfig/identifierSerializer.js → SankeyChart/seriesConfig/identifierSerializer.mjs} +0 -0
- /package/{esm/SankeyChart/seriesConfig/index.d.ts → SankeyChart/seriesConfig/index.d.mts} +0 -0
- /package/{esm/SankeyChart/seriesConfig/keyboardFocusHandler.d.ts → SankeyChart/seriesConfig/keyboardFocusHandler.d.mts} +0 -0
- /package/{esm/SankeyChart/seriesConfig/keyboardFocusHandler.js → SankeyChart/seriesConfig/keyboardFocusHandler.mjs} +0 -0
- /package/{esm/SankeyChart/seriesConfig/tooltipGetter.d.ts → SankeyChart/seriesConfig/tooltipGetter.d.mts} +0 -0
- /package/{esm/SankeyChart/seriesConfig/tooltipGetter.js → SankeyChart/seriesConfig/tooltipGetter.mjs} +0 -0
- /package/{esm/SankeyChart/seriesConfig/tooltipPosition.d.ts → SankeyChart/seriesConfig/tooltipPosition.d.mts} +0 -0
- /package/{esm/SankeyChart/seriesConfig/tooltipPosition.js → SankeyChart/seriesConfig/tooltipPosition.mjs} +0 -0
- /package/{esm/ScatterChart/index.d.ts → ScatterChart/index.d.mts} +0 -0
- /package/{esm/ScatterChart/index.js → ScatterChart/index.mjs} +0 -0
- /package/{esm/SparkLineChart/index.d.ts → SparkLineChart/index.d.mts} +0 -0
- /package/{esm/SparkLineChart/index.js → SparkLineChart/index.mjs} +0 -0
- /package/{esm/Toolbar/index.d.ts → Toolbar/index.d.mts} +0 -0
- /package/{esm/Toolbar/index.js → Toolbar/index.mjs} +0 -0
- /package/{esm/colorPalettes/index.d.ts → colorPalettes/index.d.mts} +0 -0
- /package/{esm/colorPalettes/index.js → colorPalettes/index.mjs} +0 -0
- /package/{esm/constants/index.d.ts → constants/index.d.mts} +0 -0
- /package/{esm/constants/index.js → constants/index.mjs} +0 -0
- /package/{esm/SankeyChart/sankeySlots.types.js → context/ChartProApi.mjs} +0 -0
- /package/{esm/context/useChartProApiContext.js → context/useChartProApiContext.mjs} +0 -0
- /package/{esm/hooks/useChartProApiRef.js → hooks/useChartProApiRef.mjs} +0 -0
- /package/{esm/hooks/useFunnelSeries.d.ts → hooks/useFunnelSeries.d.mts} +0 -0
- /package/{esm/hooks/useFunnelSeries.js → hooks/useFunnelSeries.mjs} +0 -0
- /package/{esm/hooks/useHeatmapSeries.d.ts → hooks/useHeatmapSeries.d.mts} +0 -0
- /package/{esm/hooks/useHeatmapSeries.js → hooks/useHeatmapSeries.mjs} +0 -0
- /package/{esm/hooks/useSankeySeries.js → hooks/useSankeySeries.mjs} +0 -0
- /package/{esm/hooks/zoom/useIsZoomInteracting.d.ts → hooks/zoom/useIsZoomInteracting.d.mts} +0 -0
- /package/{esm/internals/material/components/BaseMenuItem.js → internals/material/components/BaseMenuItem.mjs} +0 -0
- /package/{esm/internals/material/components/BasePopper.js → internals/material/components/BasePopper.mjs} +0 -0
- /package/{esm/internals/material/icons.d.ts → internals/material/icons.d.mts} +0 -0
- /package/{esm/internals/material/icons.js → internals/material/icons.mjs} +0 -0
- /package/{esm/internals/plugins/useChartProExport/common.d.ts → internals/plugins/useChartProExport/common.d.mts} +0 -0
- /package/{esm/internals/plugins/useChartProExport/common.js → internals/plugins/useChartProExport/common.mjs} +0 -0
- /package/{esm/internals/plugins/useChartProExport/defaults.d.ts → internals/plugins/useChartProExport/defaults.d.mts} +0 -0
- /package/{esm/internals/plugins/useChartProExport/defaults.js → internals/plugins/useChartProExport/defaults.mjs} +0 -0
- /package/{esm/internals/plugins/useChartProExport/useChartProExport.types.d.ts → internals/plugins/useChartProExport/useChartProExport.types.d.mts} +0 -0
- /package/{esm/context/ChartProApi.js → internals/plugins/useChartProExport/useChartProExport.types.mjs} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts → internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.mts} +0 -0
- /package/{esm/internals/plugins/useChartProExport/useChartProExport.types.js → internals/plugins/useChartProZoom/ZoomInteractionConfig.types.mjs} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/calculateZoom.d.ts → internals/plugins/useChartProZoom/calculateZoom.d.mts} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/calculateZoom.js → internals/plugins/useChartProZoom/calculateZoom.mjs} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts → internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.mts} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.js → internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.mjs} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/initializeZoomData.d.ts → internals/plugins/useChartProZoom/initializeZoomData.d.mts} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/initializeZoomData.js → internals/plugins/useChartProZoom/initializeZoomData.mjs} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/initializeZoomInteractionConfig.js → internals/plugins/useChartProZoom/initializeZoomInteractionConfig.mjs} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js → internals/plugins/useChartProZoom/useChartProZoom.selectors.mjs} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.js → internals/plugins/useChartProZoom/useChartProZoom.types.mjs} +0 -0
- /package/{esm/internals/slots/chartBaseSlotProps.d.ts → internals/slots/chartBaseSlotProps.d.mts} +0 -0
- /package/{esm/internals/plugins/useChartProZoom/useChartProZoom.types.js → internals/slots/chartBaseSlotProps.mjs} +0 -0
- /package/{esm/internals/slots/chartBaseSlotProps.js → internals/slots/chartsBaseSlots.mjs} +0 -0
- /package/{esm/internals/slots/chartsIconSlots.d.ts → internals/slots/chartsIconSlots.d.mts} +0 -0
- /package/{esm/internals/slots/chartsBaseSlots.js → internals/slots/chartsIconSlots.mjs} +0 -0
- /package/{esm/locales/index.d.ts → locales/index.d.mts} +0 -0
- /package/{esm/locales/index.js → locales/index.mjs} +0 -0
- /package/{esm/models/seriesType/heatmap.d.ts → models/seriesType/heatmap.d.mts} +0 -0
- /package/{esm/internals/slots/chartsIconSlots.js → models/seriesType/heatmap.mjs} +0 -0
- /package/{esm/plugins/selectors/useChartHeatmapPosition.selectors.js → plugins/selectors/useChartHeatmapPosition.selectors.mjs} +0 -0
- /package/{esm/tests/constants.js → tests/constants.mjs} +0 -0
- /package/{esm/themeAugmentation/components.d.ts → themeAugmentation/components.d.mts} +0 -0
- /package/{esm/models/seriesType/heatmap.js → themeAugmentation/components.mjs} +0 -0
- /package/{esm/themeAugmentation/index.js → themeAugmentation/index.mjs} +0 -0
- /package/{esm/themeAugmentation/overrides.js → themeAugmentation/overrides.mjs} +0 -0
- /package/{esm/themeAugmentation/props.js → themeAugmentation/props.mjs} +0 -0
- /package/{esm/themeAugmentation/components.js → typeOverloads/modules.mjs} +0 -0
- /package/{esm/utils/index.d.ts → utils/index.d.mts} +0 -0
- /package/{esm/utils/index.js → utils/index.mjs} +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import { useTheme } from '@mui/material/styles';
|
|
3
|
-
import { useFocusedItem } from "../hooks/index.js";
|
|
4
|
-
import { useSankeyLayout } from "../hooks/useSankeySeries.js";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export function FocusedSankeyLink(props) {
|
|
7
|
-
const focusedItem = useFocusedItem();
|
|
8
|
-
const layout = useSankeyLayout();
|
|
9
|
-
const theme = useTheme();
|
|
10
|
-
if (!focusedItem || focusedItem.type !== 'sankey' || focusedItem.subType !== 'link' || !layout) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
const link = layout?.links.find(({
|
|
14
|
-
source,
|
|
15
|
-
target
|
|
16
|
-
}) => source.id === focusedItem.sourceId && target.id === focusedItem.targetId);
|
|
17
|
-
if (!link || !link.path) {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
return /*#__PURE__*/_jsx("path", _extends({
|
|
21
|
-
d: link.path,
|
|
22
|
-
fill: "none",
|
|
23
|
-
stroke: (theme.vars ?? theme).palette.text.primary,
|
|
24
|
-
strokeWidth: 2,
|
|
25
|
-
pointerEvents: "none"
|
|
26
|
-
}, props));
|
|
27
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import { useTheme } from '@mui/material/styles';
|
|
3
|
-
import { useFocusedItem } from "../hooks/index.js";
|
|
4
|
-
import { useSankeyLayout } from "../hooks/useSankeySeries.js";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export function FocusedSankeyNode(props) {
|
|
7
|
-
const focusedItem = useFocusedItem();
|
|
8
|
-
const layout = useSankeyLayout();
|
|
9
|
-
const theme = useTheme();
|
|
10
|
-
if (!focusedItem || focusedItem.type !== 'sankey' || focusedItem.subType !== 'node' || !layout) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
const node = layout?.nodes.find(({
|
|
14
|
-
id
|
|
15
|
-
}) => id === focusedItem.nodeId);
|
|
16
|
-
if (!node) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
const x0 = node.x0 ?? 0;
|
|
20
|
-
const y0 = node.y0 ?? 0;
|
|
21
|
-
const x1 = node.x1 ?? 0;
|
|
22
|
-
const y1 = node.y1 ?? 0;
|
|
23
|
-
return /*#__PURE__*/_jsx("rect", _extends({
|
|
24
|
-
x: x0,
|
|
25
|
-
y: y0,
|
|
26
|
-
width: x1 - x0,
|
|
27
|
-
height: y1 - y0,
|
|
28
|
-
fill: "none",
|
|
29
|
-
stroke: (theme.vars ?? theme).palette.text.primary,
|
|
30
|
-
strokeWidth: 2,
|
|
31
|
-
pointerEvents: "none"
|
|
32
|
-
}, props));
|
|
33
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { type ChartsOverlayProps } from '@mui/x-charts/ChartsOverlay';
|
|
3
|
-
import type { MakeOptional } from '@mui/x-internals/types';
|
|
4
|
-
import { type SankeyPlotProps } from "./SankeyPlot.js";
|
|
5
|
-
import type { SankeySeriesType } from "./sankey.types.js";
|
|
6
|
-
import type { SankeyChartSlotExtension } from "./sankeySlots.types.js";
|
|
7
|
-
import type { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
8
|
-
import type { SankeyChartPluginSignatures } from "./SankeyChart.plugins.js";
|
|
9
|
-
export type SankeySeries = MakeOptional<SankeySeriesType, 'type'>;
|
|
10
|
-
export interface SankeyChartProps extends Omit<ChartContainerProProps<'sankey', SankeyChartPluginSignatures>, 'plugins' | 'series' | 'slotProps' | 'slots' | 'dataset' | 'hideLegend' | 'skipAnimation'>, Omit<SankeyPlotProps, 'data'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, SankeyChartSlotExtension {
|
|
11
|
-
/**
|
|
12
|
-
* The series to display in the Sankey chart.
|
|
13
|
-
* A single object is expected.
|
|
14
|
-
*/
|
|
15
|
-
series: SankeySeries;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Sankey Chart component
|
|
19
|
-
*
|
|
20
|
-
* Displays a Sankey diagram, visualizing flows between nodes where the width
|
|
21
|
-
* of the links is proportional to the flow quantity.
|
|
22
|
-
*
|
|
23
|
-
* Demos:
|
|
24
|
-
*
|
|
25
|
-
* - [Sankey Chart](https://mui.com/x/react-charts/sankey/)
|
|
26
|
-
*
|
|
27
|
-
* API:
|
|
28
|
-
*
|
|
29
|
-
* - [SankeyChart API](https://mui.com/x/api/charts/sankey-chart/)
|
|
30
|
-
*/
|
|
31
|
-
declare const SankeyChart: React.ForwardRefExoticComponent<SankeyChartProps & React.RefAttributes<SVGSVGElement>>;
|
|
32
|
-
export { SankeyChart };
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["series"];
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
8
|
-
import { useThemeProps } from '@mui/material/styles';
|
|
9
|
-
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
10
|
-
import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
|
|
11
|
-
import { ChartsWrapper } from '@mui/x-charts/ChartsWrapper';
|
|
12
|
-
import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
|
|
13
|
-
import { SankeyPlot } from "./SankeyPlot.js";
|
|
14
|
-
import { useSankeyChartProps } from "./useSankeyChartProps.js";
|
|
15
|
-
import { SankeyTooltip } from "./SankeyTooltip/index.js";
|
|
16
|
-
import { FocusedSankeyNode } from "./FocusedSankeyNode.js";
|
|
17
|
-
import { FocusedSankeyLink } from "./FocusedSankeyLink.js";
|
|
18
|
-
import { SankeyDataProvider } from "./SankeyDataProvider.js";
|
|
19
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
/**
|
|
21
|
-
* Sankey Chart component
|
|
22
|
-
*
|
|
23
|
-
* Displays a Sankey diagram, visualizing flows between nodes where the width
|
|
24
|
-
* of the links is proportional to the flow quantity.
|
|
25
|
-
*
|
|
26
|
-
* Demos:
|
|
27
|
-
*
|
|
28
|
-
* - [Sankey Chart](https://mui.com/x/react-charts/sankey/)
|
|
29
|
-
*
|
|
30
|
-
* API:
|
|
31
|
-
*
|
|
32
|
-
* - [SankeyChart API](https://mui.com/x/api/charts/sankey-chart/)
|
|
33
|
-
*/
|
|
34
|
-
const SankeyChart = /*#__PURE__*/React.forwardRef(function SankeyChart(props, ref) {
|
|
35
|
-
const themedProps = useThemeProps({
|
|
36
|
-
props,
|
|
37
|
-
name: 'MuiSankeyChart'
|
|
38
|
-
});
|
|
39
|
-
const {
|
|
40
|
-
chartContainerProps,
|
|
41
|
-
sankeyPlotProps,
|
|
42
|
-
overlayProps,
|
|
43
|
-
chartsWrapperProps,
|
|
44
|
-
children
|
|
45
|
-
} = useSankeyChartProps(themedProps);
|
|
46
|
-
const _useChartContainerPro = useChartContainerProProps(chartContainerProps, ref),
|
|
47
|
-
{
|
|
48
|
-
chartDataProviderProProps: {
|
|
49
|
-
series
|
|
50
|
-
},
|
|
51
|
-
chartsSurfaceProps
|
|
52
|
-
} = _useChartContainerPro,
|
|
53
|
-
chartDataProviderProProps = _objectWithoutPropertiesLoose(_useChartContainerPro.chartDataProviderProProps, _excluded);
|
|
54
|
-
const Tooltip = themedProps.slots?.tooltip ?? SankeyTooltip;
|
|
55
|
-
return /*#__PURE__*/_jsx(SankeyDataProvider, _extends({
|
|
56
|
-
series: series
|
|
57
|
-
}, chartDataProviderProProps, {
|
|
58
|
-
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
59
|
-
children: [/*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
60
|
-
children: [/*#__PURE__*/_jsx(SankeyPlot, _extends({}, sankeyPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(FocusedSankeyNode, {}), /*#__PURE__*/_jsx(FocusedSankeyLink, {}), children]
|
|
61
|
-
})), !themedProps.loading && /*#__PURE__*/_jsx(Tooltip, _extends({
|
|
62
|
-
trigger: "item"
|
|
63
|
-
}, themedProps.slotProps?.tooltip))]
|
|
64
|
-
}))
|
|
65
|
-
}));
|
|
66
|
-
});
|
|
67
|
-
if (process.env.NODE_ENV !== "production") SankeyChart.displayName = "SankeyChart";
|
|
68
|
-
process.env.NODE_ENV !== "production" ? SankeyChart.propTypes = {
|
|
69
|
-
// ----------------------------- Warning --------------------------------
|
|
70
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
71
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
72
|
-
// ----------------------------------------------------------------------
|
|
73
|
-
apiRef: PropTypes.shape({
|
|
74
|
-
current: PropTypes.shape({
|
|
75
|
-
exportAsImage: PropTypes.func.isRequired,
|
|
76
|
-
exportAsPrint: PropTypes.func.isRequired
|
|
77
|
-
})
|
|
78
|
-
}),
|
|
79
|
-
/**
|
|
80
|
-
* Classes applied to the various elements.
|
|
81
|
-
*/
|
|
82
|
-
classes: PropTypes.object,
|
|
83
|
-
className: PropTypes.string,
|
|
84
|
-
/**
|
|
85
|
-
* Color palette used to colorize multiple series.
|
|
86
|
-
* @default rainbowSurgePalette
|
|
87
|
-
*/
|
|
88
|
-
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
89
|
-
desc: PropTypes.string,
|
|
90
|
-
enableKeyboardNavigation: PropTypes.bool,
|
|
91
|
-
/**
|
|
92
|
-
* Options to enable features planned for the next major.
|
|
93
|
-
*/
|
|
94
|
-
experimentalFeatures: PropTypes.shape({
|
|
95
|
-
preferStrictDomainInLineCharts: PropTypes.bool
|
|
96
|
-
}),
|
|
97
|
-
/**
|
|
98
|
-
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
99
|
-
*/
|
|
100
|
-
height: PropTypes.number,
|
|
101
|
-
/**
|
|
102
|
-
* The highlighted item.
|
|
103
|
-
* Used when the highlight is controlled.
|
|
104
|
-
*/
|
|
105
|
-
highlightedItem: PropTypes.oneOfType([PropTypes.shape({
|
|
106
|
-
nodeId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
107
|
-
seriesId: PropTypes.string.isRequired,
|
|
108
|
-
subType: PropTypes.oneOf([
|
|
109
|
-
/**
|
|
110
|
-
* Subtype to differentiate between node and link
|
|
111
|
-
*/
|
|
112
|
-
'node']).isRequired,
|
|
113
|
-
type: PropTypes.oneOf(['sankey']).isRequired
|
|
114
|
-
}), PropTypes.shape({
|
|
115
|
-
seriesId: PropTypes.string.isRequired,
|
|
116
|
-
sourceId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
117
|
-
subType: PropTypes.oneOf([
|
|
118
|
-
/**
|
|
119
|
-
* Subtype to differentiate between node and link
|
|
120
|
-
*/
|
|
121
|
-
'link']).isRequired,
|
|
122
|
-
targetId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
123
|
-
type: PropTypes.oneOf(['sankey']).isRequired
|
|
124
|
-
})]),
|
|
125
|
-
/**
|
|
126
|
-
* This prop is used to help implement the accessibility logic.
|
|
127
|
-
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
128
|
-
*/
|
|
129
|
-
id: PropTypes.string,
|
|
130
|
-
/**
|
|
131
|
-
* If `true`, a loading overlay is displayed.
|
|
132
|
-
* @default false
|
|
133
|
-
*/
|
|
134
|
-
loading: PropTypes.bool,
|
|
135
|
-
/**
|
|
136
|
-
* Localized text for chart components.
|
|
137
|
-
*/
|
|
138
|
-
localeText: PropTypes.object,
|
|
139
|
-
/**
|
|
140
|
-
* The margin between the SVG and the drawing area.
|
|
141
|
-
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
142
|
-
*
|
|
143
|
-
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
144
|
-
*/
|
|
145
|
-
margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
146
|
-
bottom: PropTypes.number,
|
|
147
|
-
left: PropTypes.number,
|
|
148
|
-
right: PropTypes.number,
|
|
149
|
-
top: PropTypes.number
|
|
150
|
-
})]),
|
|
151
|
-
/**
|
|
152
|
-
* The callback fired when the highlighted item changes.
|
|
153
|
-
*
|
|
154
|
-
* @param {SankeyHighlightItemData | null} highlightedItem The newly highlighted item.
|
|
155
|
-
*/
|
|
156
|
-
onHighlightChange: PropTypes.func,
|
|
157
|
-
/**
|
|
158
|
-
* Callback fired when a sankey item is clicked.
|
|
159
|
-
* @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
|
|
160
|
-
* @param {SankeyLinkIdentifierWithData} link The sankey link identifier.
|
|
161
|
-
*/
|
|
162
|
-
onLinkClick: PropTypes.func,
|
|
163
|
-
/**
|
|
164
|
-
* Callback fired when a sankey item is clicked.
|
|
165
|
-
* @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
|
|
166
|
-
* @param {SankeyNodeIdentifierWithData} node The sankey node identifier.
|
|
167
|
-
*/
|
|
168
|
-
onNodeClick: PropTypes.func,
|
|
169
|
-
/**
|
|
170
|
-
* The callback fired when the tooltip item changes.
|
|
171
|
-
*
|
|
172
|
-
* @param {SeriesItemIdentifier<TSeries> | null} tooltipItem The newly highlighted item.
|
|
173
|
-
*/
|
|
174
|
-
onTooltipItemChange: PropTypes.func,
|
|
175
|
-
/**
|
|
176
|
-
* The series to display in the Sankey chart.
|
|
177
|
-
* A single object is expected.
|
|
178
|
-
*/
|
|
179
|
-
series: PropTypes.object.isRequired,
|
|
180
|
-
/**
|
|
181
|
-
* The props used for each component slot.
|
|
182
|
-
* @default {}
|
|
183
|
-
*/
|
|
184
|
-
slotProps: PropTypes.object,
|
|
185
|
-
/**
|
|
186
|
-
* Overridable component slots.
|
|
187
|
-
* @default {}
|
|
188
|
-
*/
|
|
189
|
-
slots: PropTypes.object,
|
|
190
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
191
|
-
theme: PropTypes.oneOf(['dark', 'light']),
|
|
192
|
-
title: PropTypes.string,
|
|
193
|
-
/**
|
|
194
|
-
* The tooltip item.
|
|
195
|
-
* Used when the tooltip is controlled.
|
|
196
|
-
*/
|
|
197
|
-
tooltipItem: PropTypes.oneOfType([PropTypes.shape({
|
|
198
|
-
nodeId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
199
|
-
seriesId: PropTypes.string.isRequired,
|
|
200
|
-
subType: PropTypes.oneOf([
|
|
201
|
-
/**
|
|
202
|
-
* Subtype to differentiate between node and link
|
|
203
|
-
*/
|
|
204
|
-
'node']).isRequired,
|
|
205
|
-
type: PropTypes.oneOf(['sankey']).isRequired
|
|
206
|
-
}), PropTypes.shape({
|
|
207
|
-
seriesId: PropTypes.string.isRequired,
|
|
208
|
-
sourceId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
209
|
-
subType: PropTypes.oneOf([
|
|
210
|
-
/**
|
|
211
|
-
* Subtype to differentiate between node and link
|
|
212
|
-
*/
|
|
213
|
-
'link']).isRequired,
|
|
214
|
-
targetId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
215
|
-
type: PropTypes.oneOf(['sankey']).isRequired
|
|
216
|
-
})]),
|
|
217
|
-
/**
|
|
218
|
-
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
219
|
-
*/
|
|
220
|
-
width: PropTypes.number
|
|
221
|
-
} : void 0;
|
|
222
|
-
export { SankeyChart };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type ConvertSignaturesIntoPlugins, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartKeyboardNavigationSignature } from '@mui/x-charts/internals';
|
|
2
|
-
import { type UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
|
|
3
|
-
import { type UseSankeyHighlightSignature } from "./plugins/index.js";
|
|
4
|
-
export type SankeyChartPluginSignatures = [UseChartTooltipSignature<'sankey'>, UseChartInteractionSignature, UseSankeyHighlightSignature, UseChartProExportSignature, UseChartKeyboardNavigationSignature];
|
|
5
|
-
export declare const SANKEY_CHART_PLUGINS: ConvertSignaturesIntoPlugins<SankeyChartPluginSignatures>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { useChartTooltip, useChartInteraction, useChartKeyboardNavigation } from '@mui/x-charts/internals';
|
|
2
|
-
import { useChartProExport } from "../internals/plugins/useChartProExport/index.js";
|
|
3
|
-
import { useSankeyHighlight } from "./plugins/index.js";
|
|
4
|
-
export const SANKEY_CHART_PLUGINS = [useChartTooltip, useChartInteraction, useSankeyHighlight, useChartProExport, useChartKeyboardNavigation];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
3
|
-
import type { SankeySeriesType } from "./sankey.types.js";
|
|
4
|
-
import { type SankeyChartPluginSignatures } from "./SankeyChart.plugins.js";
|
|
5
|
-
export interface SankeyDataProviderProps extends Omit<ChartContainerProProps<'sankey', SankeyChartPluginSignatures>, 'plugins' | 'series' | 'slotProps' | 'slots' | 'dataset' | 'hideLegend' | 'skipAnimation'> {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
series: readonly SankeySeriesType[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Orchestrates the data providers for the sankey chart components and hooks.
|
|
11
|
-
*
|
|
12
|
-
* Use this component if you have custom HTML components that need to access the chart data.
|
|
13
|
-
*
|
|
14
|
-
* Demos:
|
|
15
|
-
*
|
|
16
|
-
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
17
|
-
*/
|
|
18
|
-
declare function SankeyDataProvider(props: SankeyDataProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export { SankeyDataProvider };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { SANKEY_CHART_PLUGINS } from "./SankeyChart.plugins.js";
|
|
6
|
-
import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
|
|
7
|
-
import { sankeySeriesConfig } from "./seriesConfig/index.js";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const seriesConfig = {
|
|
10
|
-
sankey: sankeySeriesConfig
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Orchestrates the data providers for the sankey chart components and hooks.
|
|
14
|
-
*
|
|
15
|
-
* Use this component if you have custom HTML components that need to access the chart data.
|
|
16
|
-
*
|
|
17
|
-
* Demos:
|
|
18
|
-
*
|
|
19
|
-
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
20
|
-
*/
|
|
21
|
-
function SankeyDataProvider(props) {
|
|
22
|
-
return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, props, {
|
|
23
|
-
seriesConfig: seriesConfig,
|
|
24
|
-
plugins: SANKEY_CHART_PLUGINS
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
export { SankeyDataProvider };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { SeriesId } from '@mui/x-charts/internals';
|
|
3
|
-
import type { SankeyLayoutLink, SankeyLinkIdentifierWithData } from "./sankey.types.js";
|
|
4
|
-
export interface SankeyLinkElementProps {
|
|
5
|
-
/**
|
|
6
|
-
* The series ID to which the link belongs
|
|
7
|
-
*/
|
|
8
|
-
seriesId: SeriesId;
|
|
9
|
-
/**
|
|
10
|
-
* The link data
|
|
11
|
-
*/
|
|
12
|
-
link: SankeyLayoutLink;
|
|
13
|
-
/**
|
|
14
|
-
* Opacity to apply to the link
|
|
15
|
-
*/
|
|
16
|
-
opacity?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Callback fired when a sankey item is clicked.
|
|
19
|
-
* @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
|
|
20
|
-
* @param {SankeyLinkIdentifierWithData} link The sankey link identifier.
|
|
21
|
-
*/
|
|
22
|
-
onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, link: SankeyLinkIdentifierWithData) => void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @ignore - internal component.
|
|
26
|
-
*/
|
|
27
|
-
export declare const SankeyLinkElement: React.ForwardRefExoticComponent<SankeyLinkElementProps & React.RefAttributes<SVGPathElement>>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import useEventCallback from '@mui/utils/useEventCallback';
|
|
6
|
-
import { useInteractionItemProps, useStore } from '@mui/x-charts/internals';
|
|
7
|
-
import { selectorIsLinkHighlighted } from "./plugins/index.js";
|
|
8
|
-
import { selectorIsSankeyItemFaded } from "./plugins/useSankeyHighlight.selectors.js";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
/**
|
|
11
|
-
* @ignore - internal component.
|
|
12
|
-
*/
|
|
13
|
-
export const SankeyLinkElement = /*#__PURE__*/React.forwardRef(function SankeyLinkElement(props, ref) {
|
|
14
|
-
const {
|
|
15
|
-
link,
|
|
16
|
-
opacity = 0.4,
|
|
17
|
-
onClick,
|
|
18
|
-
seriesId
|
|
19
|
-
} = props;
|
|
20
|
-
const store = useStore();
|
|
21
|
-
const identifier = {
|
|
22
|
-
type: 'sankey',
|
|
23
|
-
seriesId,
|
|
24
|
-
subType: 'link',
|
|
25
|
-
targetId: link.target.id,
|
|
26
|
-
sourceId: link.source.id,
|
|
27
|
-
link
|
|
28
|
-
};
|
|
29
|
-
const isHighlighted = store.use(selectorIsLinkHighlighted, link);
|
|
30
|
-
const isFaded = store.use(selectorIsSankeyItemFaded, isHighlighted);
|
|
31
|
-
|
|
32
|
-
// Add interaction props for tooltips
|
|
33
|
-
const interactionProps = useInteractionItemProps(identifier);
|
|
34
|
-
const handleClick = useEventCallback(event => {
|
|
35
|
-
onClick?.(event, identifier);
|
|
36
|
-
});
|
|
37
|
-
if (!link.path) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
let finalOpacity = opacity;
|
|
41
|
-
if (isFaded) {
|
|
42
|
-
finalOpacity = opacity * 0.3;
|
|
43
|
-
} else if (isHighlighted) {
|
|
44
|
-
finalOpacity = Math.min(opacity * 1.2, 1);
|
|
45
|
-
}
|
|
46
|
-
return /*#__PURE__*/_jsx("path", _extends({
|
|
47
|
-
ref: ref,
|
|
48
|
-
d: link.path,
|
|
49
|
-
fill: link.color,
|
|
50
|
-
opacity: finalOpacity,
|
|
51
|
-
"data-link-source": link.source.id,
|
|
52
|
-
"data-link-target": link.target.id,
|
|
53
|
-
"data-highlighted": isHighlighted || undefined,
|
|
54
|
-
"data-faded": isFaded || undefined,
|
|
55
|
-
onClick: onClick ? handleClick : undefined,
|
|
56
|
-
cursor: onClick ? 'pointer' : 'default'
|
|
57
|
-
}, interactionProps));
|
|
58
|
-
});
|
|
59
|
-
if (process.env.NODE_ENV !== "production") SankeyLinkElement.displayName = "SankeyLinkElement";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { type SankeyLayoutLink } from "./sankey.types.js";
|
|
3
|
-
export interface SankeyLinkLabelProps {
|
|
4
|
-
/**
|
|
5
|
-
* The link data
|
|
6
|
-
*/
|
|
7
|
-
link: SankeyLayoutLink;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @ignore - internal component.
|
|
11
|
-
*/
|
|
12
|
-
export declare const SankeyLinkLabel: React.ForwardRefExoticComponent<SankeyLinkLabelProps & React.RefAttributes<SVGTextElement>>;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { useTheme } from '@mui/material/styles';
|
|
5
|
-
import { useSankeySeries } from "../hooks/useSankeySeries.js";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
const getLinkMidpoint = link => {
|
|
8
|
-
if (link.y0 === undefined || link.y1 === undefined) {
|
|
9
|
-
return {
|
|
10
|
-
x: 0,
|
|
11
|
-
y: 0
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// For Sankey links, we can calculate the midpoint using the source and target positions
|
|
16
|
-
const sourceX = link.source.x1 || 0;
|
|
17
|
-
const sourceY = (link.y0 + link.y1) / 2;
|
|
18
|
-
const targetX = link.target.x0 || 0;
|
|
19
|
-
const targetY = (link.y0 + link.y1) / 2;
|
|
20
|
-
return {
|
|
21
|
-
x: (sourceX + targetX) / 2,
|
|
22
|
-
y: (sourceY + targetY) / 2
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @ignore - internal component.
|
|
28
|
-
*/
|
|
29
|
-
export const SankeyLinkLabel = /*#__PURE__*/React.forwardRef(function SankeyLinkLabel(props, ref) {
|
|
30
|
-
const {
|
|
31
|
-
link
|
|
32
|
-
} = props;
|
|
33
|
-
const theme = useTheme();
|
|
34
|
-
const series = useSankeySeries()[0];
|
|
35
|
-
if (!link.path || link.y0 === undefined || link.y1 === undefined) {
|
|
36
|
-
return null; // No path defined or invalid coordinates, nothing to render
|
|
37
|
-
}
|
|
38
|
-
const midpoint = getLinkMidpoint(link);
|
|
39
|
-
|
|
40
|
-
// Get the series data and valueFormatter
|
|
41
|
-
const formattedValue = series?.valueFormatter ? series.valueFormatter(link.value, {
|
|
42
|
-
type: 'link',
|
|
43
|
-
sourceId: link.source.id,
|
|
44
|
-
targetId: link.target.id,
|
|
45
|
-
location: 'label'
|
|
46
|
-
}) : link.value;
|
|
47
|
-
return /*#__PURE__*/_jsx("text", {
|
|
48
|
-
ref: ref,
|
|
49
|
-
x: midpoint.x,
|
|
50
|
-
y: midpoint.y,
|
|
51
|
-
textAnchor: "middle",
|
|
52
|
-
dominantBaseline: "middle",
|
|
53
|
-
fontSize: theme.typography.caption.fontSize,
|
|
54
|
-
fill: (theme.vars || theme).palette.text.primary,
|
|
55
|
-
"data-link-source": link.source.id,
|
|
56
|
-
"data-link-target": link.target.id,
|
|
57
|
-
fontFamily: theme.typography.fontFamily,
|
|
58
|
-
pointerEvents: "none",
|
|
59
|
-
children: formattedValue
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
if (process.env.NODE_ENV !== "production") SankeyLinkLabel.displayName = "SankeyLinkLabel";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type SankeyPlotClasses } from "./sankeyClasses.js";
|
|
2
|
-
export interface SankeyLinkLabelPlotProps {
|
|
3
|
-
/**
|
|
4
|
-
* Classes applied to the various elements.
|
|
5
|
-
*/
|
|
6
|
-
classes?: Partial<SankeyPlotClasses>;
|
|
7
|
-
}
|
|
8
|
-
declare function SankeyLinkLabelPlot(props: SankeyLinkLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export { SankeyLinkLabelPlot };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { SankeyLinkLabel } from "./SankeyLinkLabel.js";
|
|
4
|
-
import { useSankeyLayout, useSankeySeries } from "../hooks/useSankeySeries.js";
|
|
5
|
-
import { useUtilityClasses } from "./sankeyClasses.js";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
function SankeyLinkLabelPlot(props) {
|
|
8
|
-
const {
|
|
9
|
-
classes: inputClasses
|
|
10
|
-
} = props;
|
|
11
|
-
const classes = useUtilityClasses({
|
|
12
|
-
classes: inputClasses
|
|
13
|
-
});
|
|
14
|
-
const sankeySeries = useSankeySeries()[0];
|
|
15
|
-
const layout = useSankeyLayout();
|
|
16
|
-
if (!sankeySeries) {
|
|
17
|
-
throw new Error(`MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartDataProviderPro.`);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Early return if no data or dimensions
|
|
21
|
-
if (!layout || !layout.links) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
if (!sankeySeries.linkOptions?.showValues) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
return /*#__PURE__*/_jsx("g", {
|
|
28
|
-
className: classes.linkLabels,
|
|
29
|
-
children: layout.links.map(link => /*#__PURE__*/_jsx(SankeyLinkLabel, {
|
|
30
|
-
link: link
|
|
31
|
-
}, `label-link-${link.source.id}-${link.target.id}`))
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
export { SankeyLinkLabelPlot };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { SankeyLinkIdentifierWithData } from "./sankey.types.js";
|
|
3
|
-
import { type SankeyPlotClasses } from "./sankeyClasses.js";
|
|
4
|
-
export interface SankeyLinkPlotProps {
|
|
5
|
-
/**
|
|
6
|
-
* Classes applied to the various elements.
|
|
7
|
-
*/
|
|
8
|
-
classes?: Partial<SankeyPlotClasses>;
|
|
9
|
-
/**
|
|
10
|
-
* Callback fired when a sankey item is clicked.
|
|
11
|
-
* @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
|
|
12
|
-
* @param {SankeyLinkIdentifierWithData} link The sankey link identifier.
|
|
13
|
-
*/
|
|
14
|
-
onClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, link: SankeyLinkIdentifierWithData) => void;
|
|
15
|
-
}
|
|
16
|
-
declare function SankeyLinkPlot(props: SankeyLinkPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
-
export { SankeyLinkPlot };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { styled } from '@mui/material/styles';
|
|
5
|
-
import { SankeyLinkElement } from "./SankeyLinkElement.js";
|
|
6
|
-
import { useSankeyLayout, useSankeySeries } from "../hooks/useSankeySeries.js";
|
|
7
|
-
import { useUtilityClasses } from "./sankeyClasses.js";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const SankeyLinkPlotRoot = styled('g', {
|
|
10
|
-
slot: 'internal',
|
|
11
|
-
shouldForwardProp: undefined
|
|
12
|
-
})({
|
|
13
|
-
transition: 'opacity 0.1s ease-out, filter 0.1s ease-out',
|
|
14
|
-
'& [data-faded=true]': {
|
|
15
|
-
filter: 'saturate(80%)'
|
|
16
|
-
},
|
|
17
|
-
'& [data-highlighted=true]': {
|
|
18
|
-
filter: 'saturate(120%)'
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
function SankeyLinkPlot(props) {
|
|
22
|
-
const {
|
|
23
|
-
classes: inputClasses,
|
|
24
|
-
onClick
|
|
25
|
-
} = props;
|
|
26
|
-
const classes = useUtilityClasses({
|
|
27
|
-
classes: inputClasses
|
|
28
|
-
});
|
|
29
|
-
const sankeySeries = useSankeySeries()[0];
|
|
30
|
-
const layout = useSankeyLayout();
|
|
31
|
-
if (!sankeySeries) {
|
|
32
|
-
throw new Error(`MUI X Charts: Sankey series context is missing. Ensure the SankeyPlot is used inside a properly configured ChartDataProviderPro.`);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Early return if no data or dimensions
|
|
36
|
-
if (!layout || !layout.links) {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
return /*#__PURE__*/_jsx(SankeyLinkPlotRoot, {
|
|
40
|
-
className: classes.links,
|
|
41
|
-
children: layout.links.map(link => /*#__PURE__*/_jsx(SankeyLinkElement, {
|
|
42
|
-
seriesId: sankeySeries.id,
|
|
43
|
-
link: link,
|
|
44
|
-
opacity: sankeySeries?.linkOptions?.opacity,
|
|
45
|
-
onClick: onClick
|
|
46
|
-
}, `${link.source.id}-${link.target.id}`))
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
export { SankeyLinkPlot };
|