@mui/x-charts 9.8.0 → 9.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/AnimatedBarElement.d.mts +1 -1
- package/BarChart/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarClipPath.d.mts +1 -1
- package/BarChart/BarClipPath.d.ts +1 -1
- package/BarChart/BarElement.d.mts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelItem.d.mts +1 -1
- package/BarChart/BarLabel/BarLabelItem.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelPlot.d.mts +2 -1
- package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -1
- package/BarChart/BatchBarPlot/BarGroup.d.mts +1 -1
- package/BarChart/BatchBarPlot/BarGroup.d.ts +1 -1
- package/BarChart/BatchBarPlot/BatchBarPlot.d.mts +2 -1
- package/BarChart/BatchBarPlot/BatchBarPlot.d.ts +2 -1
- package/BarChart/FocusedBar.d.mts +1 -1
- package/BarChart/FocusedBar.d.ts +1 -1
- package/BarChart/IndividualBarPlot.d.mts +2 -1
- package/BarChart/IndividualBarPlot.d.ts +2 -1
- package/BarChart/barClasses.d.mts +1 -1
- package/BarChart/barClasses.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.mts +10 -10
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +10 -10
- package/BarChart/seriesConfig/bar/tooltipPosition.d.mts +2 -3
- package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +2 -3
- package/BarChart/seriesConfig/bar/tooltipPosition.js +19 -15
- package/BarChart/seriesConfig/bar/tooltipPosition.mjs +18 -14
- package/BarChart/seriesConfig/index.js +2 -2
- package/BarChart/seriesConfig/index.mjs +2 -2
- package/BarChart/useBarPlotData.d.mts +5 -1
- package/BarChart/useBarPlotData.d.ts +5 -1
- package/BarChart/useBarPlotData.js +102 -25
- package/BarChart/useBarPlotData.mjs +102 -26
- package/CHANGELOG.md +230 -0
- package/ChartsAxis/ChartsAxis.d.mts +2 -1
- package/ChartsAxis/ChartsAxis.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +22 -5
- package/ChartsAxisHighlight/ChartsXAxisHighlight.mjs +23 -6
- package/ChartsAxisHighlight/ChartsYAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +22 -5
- package/ChartsAxisHighlight/ChartsYAxisHighlight.mjs +23 -6
- package/ChartsAxisHighlight/getSampledBandHighlight.d.mts +27 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.d.ts +27 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.js +35 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.mjs +29 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.mts +2 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.ts +2 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.mts +1 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.ts +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +2 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +2 -1
- package/ChartsClipPath/ChartsClipPath.d.mts +1 -1
- package/ChartsClipPath/ChartsClipPath.d.ts +1 -1
- package/ChartsDataProvider/ChartsDataProvider.d.mts +1 -1
- package/ChartsDataProvider/ChartsDataProvider.d.ts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +1 -1
- package/ChartsGrid/ChartsGrid.d.ts +1 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.mts +2 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -1
- package/ChartsGrid/ChartsVerticalGrid.d.mts +2 -1
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -1
- package/ChartsLabel/labelGradientClasses.d.mts +1 -1
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.mts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/ChartsLegend/chartsLegend.types.d.mts +2 -1
- package/ChartsLegend/chartsLegend.types.d.ts +2 -1
- package/ChartsLegend/chartsLegendClasses.d.mts +1 -1
- package/ChartsLegend/chartsLegendClasses.d.ts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.mts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsLegend/piecewiseColorLegendClasses.d.mts +1 -1
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.mts +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsOverlay.d.ts +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.ts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.ts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.ts +2 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.mts +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.ts +1 -1
- package/ChartsRadialGrid/ChartsRadialGrid.d.mts +1 -1
- package/ChartsRadialGrid/ChartsRadialGrid.d.ts +1 -1
- package/ChartsRadialGrid/ChartsRadiusGrid.d.mts +2 -1
- package/ChartsRadialGrid/ChartsRadiusGrid.d.ts +2 -1
- package/ChartsRadialGrid/ChartsRotationGrid.d.mts +2 -1
- package/ChartsRadialGrid/ChartsRotationGrid.d.ts +2 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -1
- package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.mts +1 -1
- package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.ts +1 -1
- package/ChartsRadiusAxis/createGetLabelTextAnchors.d.mts +6 -6
- package/ChartsRadiusAxis/createGetLabelTextAnchors.d.ts +6 -6
- package/ChartsReferenceLine/ChartsReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.mts +2 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +2 -2
- package/ChartsReferenceLine/ChartsYReferenceLine.d.mts +2 -2
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +2 -2
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.mts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.ts +1 -1
- package/ChartsText/ChartsText.d.mts +1 -1
- package/ChartsText/ChartsText.d.ts +1 -1
- package/ChartsTooltip/ChartTooltip.types.d.mts +2 -1
- package/ChartsTooltip/ChartTooltip.types.d.ts +2 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.mts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -1
- package/ChartsTooltip/ChartsItemTooltipContent.d.mts +2 -1
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +2 -1
- package/ChartsTooltip/ChartsTooltip.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.mts +5 -2
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +5 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +1 -5
- package/ChartsTooltip/ChartsTooltipContainer.mjs +2 -6
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/chartsTooltipClasses.d.mts +1 -1
- package/ChartsTooltip/chartsTooltipClasses.d.ts +1 -1
- package/ChartsTooltip/useItemTooltip.d.mts +1 -1
- package/ChartsTooltip/useItemTooltip.d.ts +1 -1
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.mts +2 -1
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +2 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.d.mts +2 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +2 -1
- package/ChartsXAxis/ChartsXAxis.d.mts +1 -1
- package/ChartsXAxis/ChartsXAxis.d.ts +1 -1
- package/ChartsXAxis/ChartsXAxisImpl.d.mts +2 -1
- package/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +2573 -2573
- package/ChartsXAxis/useAxisTicksProps.d.ts +2573 -2573
- package/ChartsXAxis/utilities.d.mts +1 -1
- package/ChartsXAxis/utilities.d.ts +1 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.mts +2 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +2 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.d.mts +2 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +2 -1
- package/ChartsYAxis/ChartsYAxis.d.mts +1 -1
- package/ChartsYAxis/ChartsYAxis.d.ts +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.d.mts +2 -1
- package/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -1
- package/ChartsYAxis/useAxisTicksProps.d.mts +2573 -2573
- package/ChartsYAxis/useAxisTicksProps.d.ts +2573 -2573
- package/ChartsYAxis/utilities.d.mts +1 -1
- package/ChartsYAxis/utilities.d.ts +1 -1
- package/Gauge/GaugeProvider.d.mts +1 -1
- package/Gauge/GaugeProvider.d.ts +1 -1
- package/Gauge/GaugeReferenceArc.d.mts +1 -1
- package/Gauge/GaugeReferenceArc.d.ts +1 -1
- package/Gauge/GaugeValueArc.d.mts +1 -1
- package/Gauge/GaugeValueArc.d.ts +1 -1
- package/Gauge/GaugeValueText.d.mts +1 -1
- package/Gauge/GaugeValueText.d.ts +1 -1
- package/LineChart/AnimatedArea.d.mts +1 -1
- package/LineChart/AnimatedArea.d.ts +1 -1
- package/LineChart/AppearingMask.d.mts +1 -1
- package/LineChart/AppearingMask.d.ts +1 -1
- package/LineChart/AreaElement.d.mts +1 -1
- package/LineChart/AreaElement.d.ts +1 -1
- package/LineChart/AreaPlot.d.mts +4 -4
- package/LineChart/AreaPlot.d.ts +4 -4
- package/LineChart/AreaPlot.js +4 -5
- package/LineChart/AreaPlot.mjs +4 -5
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/FocusedLineMark.d.mts +1 -1
- package/LineChart/FocusedLineMark.d.ts +1 -1
- package/LineChart/LineElement.d.mts +1 -1
- package/LineChart/LineElement.d.ts +1 -1
- package/LineChart/LineHighlightElement.d.mts +1 -1
- package/LineChart/LineHighlightElement.d.ts +1 -1
- package/LineChart/LineHighlightPlot.d.mts +1 -1
- package/LineChart/LineHighlightPlot.d.ts +1 -1
- package/LineChart/LinePlot.d.mts +4 -4
- package/LineChart/LinePlot.d.ts +4 -4
- package/LineChart/LinePlot.js +7 -7
- package/LineChart/LinePlot.mjs +7 -7
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkPlot.d.mts +6 -5
- package/LineChart/MarkPlot.d.ts +6 -5
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/MarkPlot.mjs +1 -1
- package/LineChart/lineClasses.d.mts +1 -1
- package/LineChart/lineClasses.d.ts +1 -1
- package/LineChart/seriesConfig/index.js +2 -2
- package/LineChart/seriesConfig/index.mjs +2 -2
- package/LineChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/LineChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/LineChart/seriesConfig/tooltipPosition.js +14 -14
- package/LineChart/seriesConfig/tooltipPosition.mjs +13 -13
- package/LineChart/useLineItemClickHandler.d.mts +12 -0
- package/LineChart/useLineItemClickHandler.d.ts +12 -0
- package/LineChart/useLineItemClickHandler.js +54 -0
- package/LineChart/useLineItemClickHandler.mjs +48 -0
- package/LineChart/useLinePlotData.d.mts +13 -1
- package/LineChart/useLinePlotData.d.ts +13 -1
- package/LineChart/useLinePlotData.js +90 -33
- package/LineChart/useLinePlotData.mjs +92 -34
- package/PieChart/FocusedPieArc.d.mts +1 -1
- package/PieChart/FocusedPieArc.d.ts +1 -1
- package/PieChart/PieArcLabelPlot.d.mts +3 -2
- package/PieChart/PieArcLabelPlot.d.ts +3 -2
- package/PieChart/PieArcPlot.d.mts +3 -2
- package/PieChart/PieArcPlot.d.ts +3 -2
- package/PieChart/PiePlot.d.mts +1 -1
- package/PieChart/PiePlot.d.ts +1 -1
- package/PieChart/pieClasses.d.mts +1 -1
- package/PieChart/pieClasses.d.ts +1 -1
- package/PieChart/seriesConfig/index.js +2 -2
- package/PieChart/seriesConfig/index.mjs +2 -2
- package/PieChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/PieChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/PieChart/seriesConfig/tooltipPosition.js +7 -11
- package/PieChart/seriesConfig/tooltipPosition.mjs +6 -10
- package/RadarChart/FocusedRadarMark.d.mts +1 -1
- package/RadarChart/FocusedRadarMark.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.d.mts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.utils.d.mts +5 -5
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +5 -5
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +1 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -1
- package/RadarChart/RadarGrid/CircularRadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/CircularRadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.d.mts +2 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +2 -1
- package/RadarChart/RadarGrid/RadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/RadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/SharpRadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/SharpRadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.d.mts +2 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +2 -1
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.mts +2 -1
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +12 -12
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +12 -12
- package/RadarChart/radarClasses.d.mts +1 -1
- package/RadarChart/radarClasses.d.ts +1 -1
- package/RadarChart/seriesConfig/index.js +2 -2
- package/RadarChart/seriesConfig/index.mjs +2 -2
- package/RadarChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/RadarChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/RadarChart/seriesConfig/tooltipPosition.js +9 -16
- package/RadarChart/seriesConfig/tooltipPosition.mjs +8 -15
- package/RadarChart/useRadarChartProps.d.mts +1 -1
- package/RadarChart/useRadarChartProps.d.ts +1 -1
- package/ScatterChart/BatchScatter.d.mts +2 -1
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/FocusedScatterMark.d.mts +1 -1
- package/ScatterChart/FocusedScatterMark.d.ts +1 -1
- package/ScatterChart/HighlightedScatterMark.d.mts +1 -1
- package/ScatterChart/HighlightedScatterMark.d.ts +1 -1
- package/ScatterChart/Scatter.d.mts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/ScatterChart.d.mts +2 -1
- package/ScatterChart/ScatterChart.d.ts +2 -1
- package/ScatterChart/ScatterMarker.d.mts +1 -1
- package/ScatterChart/ScatterMarker.d.ts +1 -1
- package/ScatterChart/ScatterMarker.types.d.mts +2 -1
- package/ScatterChart/ScatterMarker.types.d.ts +2 -1
- package/ScatterChart/ScatterPlot.d.mts +1 -1
- package/ScatterChart/ScatterPlot.d.ts +1 -1
- package/ScatterChart/async/ScatterAsync.d.mts +2 -1
- package/ScatterChart/async/ScatterAsync.d.ts +2 -1
- package/ScatterChart/async/ScatterAsyncBatch.d.mts +1 -1
- package/ScatterChart/async/ScatterAsyncBatch.d.ts +1 -1
- package/ScatterChart/scatterClasses.d.mts +1 -1
- package/ScatterChart/scatterClasses.d.ts +1 -1
- package/ScatterChart/seriesConfig/index.js +2 -2
- package/ScatterChart/seriesConfig/index.mjs +2 -2
- package/ScatterChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/ScatterChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/ScatterChart/seriesConfig/tooltipPosition.js +13 -13
- package/ScatterChart/seriesConfig/tooltipPosition.mjs +12 -12
- package/ScatterChart/useScatterPlotData.d.mts +1 -1
- package/ScatterChart/useScatterPlotData.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.d.mts +1 -1
- package/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/Toolbar/Toolbar.types.d.mts +2 -1
- package/Toolbar/Toolbar.types.d.ts +2 -1
- package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
- package/context/ChartsSlotsContext.d.mts +1 -1
- package/context/ChartsSlotsContext.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/colorScale.d.mts +1 -1
- package/internals/colorScale.d.ts +1 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +2 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.mts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.mts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.mts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.mts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +2 -1
- package/internals/configInit.d.mts +1 -1
- package/internals/configInit.d.ts +1 -1
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/consumeThemeProps.d.mts +1 -1
- package/internals/consumeThemeProps.d.ts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.ts +1 -1
- package/internals/createGetBarDimensions.d.mts +14 -1
- package/internals/createGetBarDimensions.d.ts +14 -1
- package/internals/createGetBarDimensions.js +45 -0
- package/internals/createGetBarDimensions.mjs +45 -0
- package/internals/geometry.js +1 -1
- package/internals/geometry.mjs +1 -1
- package/internals/getGraphemeCount.d.mts +2 -2
- package/internals/getGraphemeCount.d.ts +2 -2
- package/internals/getGroupingConfig.d.mts +1 -1
- package/internals/getGroupingConfig.d.ts +1 -1
- package/internals/identifierCleaner.d.mts +1 -1
- package/internals/identifierCleaner.d.ts +1 -1
- package/internals/index.d.mts +1 -2
- package/internals/index.d.ts +1 -2
- package/internals/index.js +12 -8
- package/internals/index.mjs +1 -2
- package/internals/invertScale.d.mts +1 -1
- package/internals/invertScale.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +11 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +11 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.mts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.ts +18 -0
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +2 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +2 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +12 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.mts +26 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.ts +26 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +89 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +81 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.mts +93 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.ts +93 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +70 -70
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +70 -70
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +78 -78
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +78 -78
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +7 -7
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +7 -7
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -53
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +2 -53
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +1 -1
- package/internals/seriesSelectorOfType.d.mts +6 -6
- package/internals/seriesSelectorOfType.d.ts +6 -6
- package/internals/sizeScale.d.mts +1 -1
- package/internals/sizeScale.d.ts +1 -1
- package/internals/sliceUntil.d.mts +2 -2
- package/internals/sliceUntil.d.ts +2 -2
- package/models/axis.d.mts +5 -4
- package/models/axis.d.ts +5 -4
- package/models/seriesType/config.d.mts +8 -4
- package/models/seriesType/config.d.ts +8 -4
- package/models/seriesType/index.d.mts +1 -1
- package/models/seriesType/index.d.ts +1 -1
- package/models/seriesType/line.d.mts +14 -1
- package/models/seriesType/line.d.ts +14 -1
- package/package.json +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +0 -45
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +0 -45
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +0 -48
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +0 -48
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +0 -124
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +0 -117
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +0 -73
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +0 -73
- /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.js → tooltipItemPositionSelector.types.js} +0 -0
- /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.mjs → tooltipItemPositionSelector.types.mjs} +0 -0
- /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.js → useChartCartesianAxis/sampling.types.js} +0 -0
- /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.mjs → useChartCartesianAxis/sampling.types.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function
|
|
1
|
+
declare function getGraphemeCountFallback(text: string): number;
|
|
2
2
|
/** Returns the number of graphemes (basically characters) present in {@link text}. */
|
|
3
|
-
export declare const getGraphemeCount: typeof
|
|
3
|
+
export declare const getGraphemeCount: typeof getGraphemeCountFallback;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function
|
|
1
|
+
declare function getGraphemeCountFallback(text: string): number;
|
|
2
2
|
/** Returns the number of graphemes (basically characters) present in {@link text}. */
|
|
3
|
-
export declare const getGraphemeCount: typeof
|
|
3
|
+
export declare const getGraphemeCount: typeof getGraphemeCountFallback;
|
|
4
4
|
export {};
|
|
@@ -2,5 +2,5 @@ import type { AxisGroup } from "../models/axis.mjs";
|
|
|
2
2
|
export declare const getGroupingConfig: (groups: AxisGroup[], groupIndex: number, tickSize: number | undefined, computedGroupTickSizes?: number[]) => {
|
|
3
3
|
tickSize: number;
|
|
4
4
|
getValue: (value: any, dataIndex: number) => string | number | Date;
|
|
5
|
-
tickLabelStyle?: import("../index.mjs").ChartsTextProps[
|
|
5
|
+
tickLabelStyle?: import("../index.mjs").ChartsTextProps['style'];
|
|
6
6
|
};
|
|
@@ -2,5 +2,5 @@ import type { AxisGroup } from "../models/axis.js";
|
|
|
2
2
|
export declare const getGroupingConfig: (groups: AxisGroup[], groupIndex: number, tickSize: number | undefined, computedGroupTickSizes?: number[]) => {
|
|
3
3
|
tickSize: number;
|
|
4
4
|
getValue: (value: any, dataIndex: number) => string | number | Date;
|
|
5
|
-
tickLabelStyle?: import("../index.js").ChartsTextProps[
|
|
5
|
+
tickLabelStyle?: import("../index.js").ChartsTextProps['style'];
|
|
6
6
|
};
|
|
@@ -12,4 +12,4 @@ export declare const identifierCleanerSeriesIdDataIndex: <T extends {
|
|
|
12
12
|
type: ChartSeriesType;
|
|
13
13
|
seriesId: SeriesId;
|
|
14
14
|
dataIndex?: number;
|
|
15
|
-
}>(identifier: T) => Pick<T,
|
|
15
|
+
}>(identifier: T) => Pick<T, 'type' | 'seriesId' | 'dataIndex'>;
|
|
@@ -12,4 +12,4 @@ export declare const identifierCleanerSeriesIdDataIndex: <T extends {
|
|
|
12
12
|
type: ChartSeriesType;
|
|
13
13
|
seriesId: SeriesId;
|
|
14
14
|
dataIndex?: number;
|
|
15
|
-
}>(identifier: T) => Pick<T,
|
|
15
|
+
}>(identifier: T) => Pick<T, 'type' | 'seriesId' | 'dataIndex'>;
|
package/internals/index.d.mts
CHANGED
|
@@ -20,6 +20,7 @@ export * from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
|
20
20
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.mjs";
|
|
21
21
|
export * from "../ChartsRadialDataProvider/useChartsRadialDataProviderProps.mjs";
|
|
22
22
|
export * from "./seriesSelectorOfType.mjs";
|
|
23
|
+
export * from "./createGetBarDimensions.mjs";
|
|
23
24
|
export { useSkipAnimation } from "../hooks/useSkipAnimation.mjs";
|
|
24
25
|
export { useRegisterPointerInteractions } from "./plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs";
|
|
25
26
|
export * from "./plugins/corePlugins/useChartId/index.mjs";
|
|
@@ -37,8 +38,6 @@ export * from "./plugins/featurePlugins/useChartVisibilityManager/index.mjs";
|
|
|
37
38
|
export * from "./plugins/featurePlugins/useChartKeyboardNavigation/index.mjs";
|
|
38
39
|
export * from "./plugins/featurePlugins/useChartClosestPoint/index.mjs";
|
|
39
40
|
export * from "./plugins/featurePlugins/useChartBrush/index.mjs";
|
|
40
|
-
export * as useGeoProjectionSelectors from "./plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs";
|
|
41
|
-
export * as useGeoProjectionTypes from "./plugins/featurePlugins/useGeoProjection/useGeoProjection.types.mjs";
|
|
42
41
|
export * from "./plugins/featurePlugins/useChartItemClick/index.mjs";
|
|
43
42
|
export * from "./plugins/featurePlugins/useProgressiveRendering/index.mjs";
|
|
44
43
|
export * from "./plugins/utils/selectors.mjs";
|
package/internals/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from "../ChartsContainer/useChartsContainerProps.js";
|
|
|
20
20
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.js";
|
|
21
21
|
export * from "../ChartsRadialDataProvider/useChartsRadialDataProviderProps.js";
|
|
22
22
|
export * from "./seriesSelectorOfType.js";
|
|
23
|
+
export * from "./createGetBarDimensions.js";
|
|
23
24
|
export { useSkipAnimation } from "../hooks/useSkipAnimation.js";
|
|
24
25
|
export { useRegisterPointerInteractions } from "./plugins/featurePlugins/shared/useRegisterPointerInteractions.js";
|
|
25
26
|
export * from "./plugins/corePlugins/useChartId/index.js";
|
|
@@ -37,8 +38,6 @@ export * from "./plugins/featurePlugins/useChartVisibilityManager/index.js";
|
|
|
37
38
|
export * from "./plugins/featurePlugins/useChartKeyboardNavigation/index.js";
|
|
38
39
|
export * from "./plugins/featurePlugins/useChartClosestPoint/index.js";
|
|
39
40
|
export * from "./plugins/featurePlugins/useChartBrush/index.js";
|
|
40
|
-
export * as useGeoProjectionSelectors from "./plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js";
|
|
41
|
-
export * as useGeoProjectionTypes from "./plugins/featurePlugins/useGeoProjection/useGeoProjection.types.js";
|
|
42
41
|
export * from "./plugins/featurePlugins/useChartItemClick/index.js";
|
|
43
42
|
export * from "./plugins/featurePlugins/useProgressiveRendering/index.js";
|
|
44
43
|
export * from "./plugins/utils/selectors.js";
|
package/internals/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -20,8 +19,6 @@ var _exportNames = {
|
|
|
20
19
|
useRadarChartProps: true,
|
|
21
20
|
useSkipAnimation: true,
|
|
22
21
|
useRegisterPointerInteractions: true,
|
|
23
|
-
useGeoProjectionSelectors: true,
|
|
24
|
-
useGeoProjectionTypes: true,
|
|
25
22
|
getCartesianAxisTriggerTooltip: true,
|
|
26
23
|
getCartesianAxisIndex: true,
|
|
27
24
|
getRotationAxisIndex: true,
|
|
@@ -165,7 +162,6 @@ Object.defineProperty(exports, "useDrawingArea", {
|
|
|
165
162
|
return _useDrawingArea.useDrawingArea;
|
|
166
163
|
}
|
|
167
164
|
});
|
|
168
|
-
exports.useGeoProjectionTypes = exports.useGeoProjectionSelectors = void 0;
|
|
169
165
|
Object.defineProperty(exports, "useInteractionItemProps", {
|
|
170
166
|
enumerable: true,
|
|
171
167
|
get: function () {
|
|
@@ -351,6 +347,18 @@ Object.keys(_seriesSelectorOfType).forEach(function (key) {
|
|
|
351
347
|
}
|
|
352
348
|
});
|
|
353
349
|
});
|
|
350
|
+
var _createGetBarDimensions = require("./createGetBarDimensions");
|
|
351
|
+
Object.keys(_createGetBarDimensions).forEach(function (key) {
|
|
352
|
+
if (key === "default" || key === "__esModule") return;
|
|
353
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
354
|
+
if (key in exports && exports[key] === _createGetBarDimensions[key]) return;
|
|
355
|
+
Object.defineProperty(exports, key, {
|
|
356
|
+
enumerable: true,
|
|
357
|
+
get: function () {
|
|
358
|
+
return _createGetBarDimensions[key];
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
});
|
|
354
362
|
var _useSkipAnimation = require("../hooks/useSkipAnimation");
|
|
355
363
|
var _useRegisterPointerInteractions = require("./plugins/featurePlugins/shared/useRegisterPointerInteractions");
|
|
356
364
|
var _useChartId = require("./plugins/corePlugins/useChartId");
|
|
@@ -533,10 +541,6 @@ Object.keys(_useChartBrush).forEach(function (key) {
|
|
|
533
541
|
}
|
|
534
542
|
});
|
|
535
543
|
});
|
|
536
|
-
var _useGeoProjectionSelectors = _interopRequireWildcard(require("./plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors"));
|
|
537
|
-
exports.useGeoProjectionSelectors = _useGeoProjectionSelectors;
|
|
538
|
-
var _useGeoProjectionTypes = _interopRequireWildcard(require("./plugins/featurePlugins/useGeoProjection/useGeoProjection.types"));
|
|
539
|
-
exports.useGeoProjectionTypes = _useGeoProjectionTypes;
|
|
540
544
|
var _useChartItemClick = require("./plugins/featurePlugins/useChartItemClick");
|
|
541
545
|
Object.keys(_useChartItemClick).forEach(function (key) {
|
|
542
546
|
if (key === "default" || key === "__esModule") return;
|
package/internals/index.mjs
CHANGED
|
@@ -22,6 +22,7 @@ export * from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
|
22
22
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.mjs";
|
|
23
23
|
export * from "../ChartsRadialDataProvider/useChartsRadialDataProviderProps.mjs";
|
|
24
24
|
export * from "./seriesSelectorOfType.mjs";
|
|
25
|
+
export * from "./createGetBarDimensions.mjs";
|
|
25
26
|
export { useSkipAnimation } from "../hooks/useSkipAnimation.mjs";
|
|
26
27
|
export { useRegisterPointerInteractions } from "./plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs";
|
|
27
28
|
|
|
@@ -41,8 +42,6 @@ export * from "./plugins/featurePlugins/useChartVisibilityManager/index.mjs";
|
|
|
41
42
|
export * from "./plugins/featurePlugins/useChartKeyboardNavigation/index.mjs";
|
|
42
43
|
export * from "./plugins/featurePlugins/useChartClosestPoint/index.mjs";
|
|
43
44
|
export * from "./plugins/featurePlugins/useChartBrush/index.mjs";
|
|
44
|
-
export * as useGeoProjectionSelectors from "./plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs";
|
|
45
|
-
export * as useGeoProjectionTypes from "./plugins/featurePlugins/useGeoProjection/useGeoProjection.types.mjs";
|
|
46
45
|
export * from "./plugins/featurePlugins/useChartItemClick/index.mjs";
|
|
47
46
|
export * from "./plugins/featurePlugins/useProgressiveRendering/index.mjs";
|
|
48
47
|
export * from "./plugins/utils/selectors.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { D3OrdinalScale, D3Scale } from "../models/axis.mjs";
|
|
2
|
-
export declare function invertScale<T>(scale: D3Scale, data: readonly T[], value: number): number |
|
|
2
|
+
export declare function invertScale<T>(scale: D3Scale, data: readonly T[], value: number): number | T | Date;
|
|
3
3
|
/**
|
|
4
4
|
* Get the data index for a given value on an ordinal scale.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { D3OrdinalScale, D3Scale } from "../models/axis.js";
|
|
2
|
-
export declare function invertScale<T>(scale: D3Scale, data: readonly T[], value: number): number |
|
|
2
|
+
export declare function invertScale<T>(scale: D3Scale, data: readonly T[], value: number): number | T | Date;
|
|
3
3
|
/**
|
|
4
4
|
* Get the data index for a given value on an ordinal scale.
|
|
5
5
|
*/
|
|
@@ -19,7 +19,7 @@ export declare const defaultizeSeries: <SeriesType extends ChartSeriesType>({
|
|
|
19
19
|
}: {
|
|
20
20
|
series: Readonly<AllSeriesType<SeriesType>[]>;
|
|
21
21
|
colors: readonly string[];
|
|
22
|
-
theme:
|
|
22
|
+
theme: 'light' | 'dark';
|
|
23
23
|
seriesConfig: ChartSeriesConfig<SeriesType>;
|
|
24
24
|
}) => {
|
|
25
25
|
defaultizedSeries: DefaultizedSeriesGroups<SeriesType>;
|
|
@@ -19,7 +19,7 @@ export declare const defaultizeSeries: <SeriesType extends ChartSeriesType>({
|
|
|
19
19
|
}: {
|
|
20
20
|
series: Readonly<AllSeriesType<SeriesType>[]>;
|
|
21
21
|
colors: readonly string[];
|
|
22
|
-
theme:
|
|
22
|
+
theme: 'light' | 'dark';
|
|
23
23
|
seriesConfig: ChartSeriesConfig<SeriesType>;
|
|
24
24
|
}) => {
|
|
25
25
|
defaultizedSeries: DefaultizedSeriesGroups<SeriesType>;
|
|
@@ -25,21 +25,21 @@ export declare const selectorChartSeriesProcessed: (args_0: import("../useChartI
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const selectorChartSeriesConfigGetter: (args_0: import("../useChartId/useChartId.types.mjs").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("./useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../useChartInteractionListener/index.mjs").UseChartInteractionListenerState & Partial<{}> & {
|
|
27
27
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
28
|
-
}) => (seriesId: SeriesId) =>
|
|
28
|
+
}) => (seriesId: SeriesId) => {
|
|
29
29
|
seriesProcessor: import("../useChartSeriesConfig/index.mjs").SeriesProcessor<"pie">;
|
|
30
30
|
seriesLayout?: import("../useChartSeriesConfig/index.mjs").SeriesLayoutGetter<"pie"> | undefined;
|
|
31
31
|
colorProcessor: import("../useChartSeriesConfig/index.mjs").ColorProcessor<"pie">;
|
|
32
32
|
legendGetter: import("../useChartSeriesConfig/index.mjs").LegendGetter<"pie">;
|
|
33
33
|
tooltipGetter: import("../useChartSeriesConfig/index.mjs").TooltipGetter<"pie">;
|
|
34
34
|
ItemTooltipContent?: import("react").ComponentType<import("../useChartSeriesConfig/index.mjs").ItemTooltipContentProps<"pie">> | undefined;
|
|
35
|
-
|
|
36
|
-
selectorTooltipItemPosition?: import("../useChartSeriesConfig/index.mjs").TooltipItemPositionSelector;
|
|
35
|
+
selectorTooltipItemPosition?: import("../useChartSeriesConfig/index.mjs").TooltipItemPositionSelector<"pie"> | undefined;
|
|
37
36
|
getSeriesWithDefaultValues: import("../useChartSeriesConfig/index.mjs").GetSeriesWithDefaultValues<"pie">;
|
|
38
37
|
keyboardFocusHandler?: import("../../../index.mjs").KeyboardFocusHandler<"pie"> | undefined;
|
|
39
38
|
identifierSerializer: import("../useChartSeriesConfig/index.mjs").IdentifierSerializer<"pie">;
|
|
40
39
|
identifierCleaner: import("../useChartSeriesConfig/index.mjs").IdentifierCleaner<"pie">;
|
|
41
40
|
getItemAtPosition?: import("../useChartSeriesConfig/index.mjs").GetItemAtPosition<"pie"> | undefined;
|
|
41
|
+
sampler?: import("../../../index.mjs").SamplingStrategy<"pie", unknown> | undefined;
|
|
42
42
|
descriptionGetter: import("../useChartSeriesConfig/index.mjs").DescriptionGetter<"pie">;
|
|
43
43
|
isHighlightedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.mjs").HighlightCreator<"pie">;
|
|
44
44
|
isFadedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.mjs").HighlightCreator<"pie">;
|
|
45
|
-
} | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"radar"> | null;
|
|
45
|
+
} | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"bar"> | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"line"> | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"radar"> | import("../useChartSeriesConfig/index.mjs").ChartSeriesTypeConfig<"scatter"> | null;
|
|
@@ -25,21 +25,21 @@ export declare const selectorChartSeriesProcessed: (args_0: import("../useChartI
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const selectorChartSeriesConfigGetter: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
27
27
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
28
|
-
}) => (seriesId: SeriesId) =>
|
|
28
|
+
}) => (seriesId: SeriesId) => {
|
|
29
29
|
seriesProcessor: import("../useChartSeriesConfig/index.js").SeriesProcessor<"pie">;
|
|
30
30
|
seriesLayout?: import("../useChartSeriesConfig/index.js").SeriesLayoutGetter<"pie"> | undefined;
|
|
31
31
|
colorProcessor: import("../useChartSeriesConfig/index.js").ColorProcessor<"pie">;
|
|
32
32
|
legendGetter: import("../useChartSeriesConfig/index.js").LegendGetter<"pie">;
|
|
33
33
|
tooltipGetter: import("../useChartSeriesConfig/index.js").TooltipGetter<"pie">;
|
|
34
34
|
ItemTooltipContent?: import("react").ComponentType<import("../useChartSeriesConfig/index.js").ItemTooltipContentProps<"pie">> | undefined;
|
|
35
|
-
|
|
36
|
-
selectorTooltipItemPosition?: import("../useChartSeriesConfig/index.js").TooltipItemPositionSelector;
|
|
35
|
+
selectorTooltipItemPosition?: import("../useChartSeriesConfig/index.js").TooltipItemPositionSelector<"pie"> | undefined;
|
|
37
36
|
getSeriesWithDefaultValues: import("../useChartSeriesConfig/index.js").GetSeriesWithDefaultValues<"pie">;
|
|
38
37
|
keyboardFocusHandler?: import("../../../index.js").KeyboardFocusHandler<"pie"> | undefined;
|
|
39
38
|
identifierSerializer: import("../useChartSeriesConfig/index.js").IdentifierSerializer<"pie">;
|
|
40
39
|
identifierCleaner: import("../useChartSeriesConfig/index.js").IdentifierCleaner<"pie">;
|
|
41
40
|
getItemAtPosition?: import("../useChartSeriesConfig/index.js").GetItemAtPosition<"pie"> | undefined;
|
|
41
|
+
sampler?: import("../../../index.js").SamplingStrategy<"pie", unknown> | undefined;
|
|
42
42
|
descriptionGetter: import("../useChartSeriesConfig/index.js").DescriptionGetter<"pie">;
|
|
43
43
|
isHighlightedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.js").HighlightCreator<"pie">;
|
|
44
44
|
isFadedCreator: import("../../featurePlugins/useChartHighlight/highlightCreator.types.js").HighlightCreator<"pie">;
|
|
45
|
-
} | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"radar"> | null;
|
|
45
|
+
} | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"bar"> | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"line"> | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"radar"> | import("../useChartSeriesConfig/index.js").ChartSeriesTypeConfig<"scatter"> | null;
|
|
@@ -5,7 +5,7 @@ export * from "./seriesConfig.types.mjs";
|
|
|
5
5
|
export * from "./seriesProcessor.types.mjs";
|
|
6
6
|
export * from "./seriesLayout.types.mjs";
|
|
7
7
|
export * from "./tooltipGetter.types.mjs";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./tooltipItemPositionSelector.types.mjs";
|
|
9
9
|
export * from "./legendGetter.types.mjs";
|
|
10
10
|
export * from "./getSeriesWithDefaultValues.types.mjs";
|
|
11
11
|
export * from "./identifierSerializer.types.mjs";
|
|
@@ -5,7 +5,7 @@ export * from "./seriesConfig.types.js";
|
|
|
5
5
|
export * from "./seriesProcessor.types.js";
|
|
6
6
|
export * from "./seriesLayout.types.js";
|
|
7
7
|
export * from "./tooltipGetter.types.js";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./tooltipItemPositionSelector.types.js";
|
|
9
9
|
export * from "./legendGetter.types.js";
|
|
10
10
|
export * from "./getSeriesWithDefaultValues.types.js";
|
|
11
11
|
export * from "./identifierSerializer.types.js";
|
|
@@ -80,14 +80,14 @@ Object.keys(_tooltipGetter).forEach(function (key) {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
-
var
|
|
84
|
-
Object.keys(
|
|
83
|
+
var _tooltipItemPositionSelector = require("./tooltipItemPositionSelector.types");
|
|
84
|
+
Object.keys(_tooltipItemPositionSelector).forEach(function (key) {
|
|
85
85
|
if (key === "default" || key === "__esModule") return;
|
|
86
|
-
if (key in exports && exports[key] ===
|
|
86
|
+
if (key in exports && exports[key] === _tooltipItemPositionSelector[key]) return;
|
|
87
87
|
Object.defineProperty(exports, key, {
|
|
88
88
|
enumerable: true,
|
|
89
89
|
get: function () {
|
|
90
|
-
return
|
|
90
|
+
return _tooltipItemPositionSelector[key];
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
});
|
|
@@ -5,7 +5,7 @@ export * from "./seriesConfig.types.mjs";
|
|
|
5
5
|
export * from "./seriesProcessor.types.mjs";
|
|
6
6
|
export * from "./seriesLayout.types.mjs";
|
|
7
7
|
export * from "./tooltipGetter.types.mjs";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./tooltipItemPositionSelector.types.mjs";
|
|
9
9
|
export * from "./legendGetter.types.mjs";
|
|
10
10
|
export * from "./getSeriesWithDefaultValues.types.mjs";
|
|
11
11
|
export * from "./identifierSerializer.types.mjs";
|
|
@@ -7,7 +7,7 @@ import type { LegendGetter } from "./legendGetter.types.mjs";
|
|
|
7
7
|
import type { AxisTooltipGetter, TooltipGetter } from "./tooltipGetter.types.mjs";
|
|
8
8
|
import type { PolarExtremumGetter } from "./polarExtremumGetter.types.mjs";
|
|
9
9
|
import type { GetSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.types.mjs";
|
|
10
|
-
import type {
|
|
10
|
+
import type { TooltipItemPositionSelector } from "./tooltipItemPositionSelector.types.mjs";
|
|
11
11
|
import type { SeriesLayoutGetter } from "./seriesLayout.types.mjs";
|
|
12
12
|
import type { KeyboardFocusHandler } from "../../../featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.mjs";
|
|
13
13
|
import type { IdentifierSerializer } from "./identifierSerializer.types.mjs";
|
|
@@ -18,6 +18,7 @@ import type { UseChartCartesianAxisSignature } from "../../../featurePlugins/use
|
|
|
18
18
|
import type { UseChartPolarAxisSignature } from "../../../featurePlugins/useChartPolarAxis/index.mjs";
|
|
19
19
|
import type { HighlightCreator } from "../../../featurePlugins/useChartHighlight/highlightCreator.types.mjs";
|
|
20
20
|
import type { AxisTooltipContentProps, ItemTooltipContentProps } from "./TooltipContent.types.mjs";
|
|
21
|
+
import type { SamplingStrategy } from "../../../featurePlugins/useChartCartesianAxis/sampling.types.mjs";
|
|
21
22
|
export type ChartSeriesTypeRequiredPlugins<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType] extends {
|
|
22
23
|
axisType: 'cartesian';
|
|
23
24
|
} ? [UseChartCartesianAxisSignature] : ChartsSeriesConfig[SeriesType] extends {
|
|
@@ -33,13 +34,12 @@ export type ChartSeriesTypeConfig<SeriesType extends ChartSeriesType> = {
|
|
|
33
34
|
legendGetter: LegendGetter<SeriesType>;
|
|
34
35
|
tooltipGetter: TooltipGetter<SeriesType>;
|
|
35
36
|
ItemTooltipContent?: React.ComponentType<ItemTooltipContentProps<SeriesType>>;
|
|
36
|
-
tooltipItemPositionGetter?: TooltipItemPositionGetter<SeriesType>;
|
|
37
37
|
/**
|
|
38
|
-
* Computes the item tooltip position from the chart state
|
|
39
|
-
*
|
|
40
|
-
*
|
|
38
|
+
* Computes the item tooltip anchor position from the chart state. Provided by
|
|
39
|
+
* the series type so it reads only the state it needs (axes, layout, geo
|
|
40
|
+
* projection, …). When omitted, the item tooltip follows the pointer.
|
|
41
41
|
*/
|
|
42
|
-
selectorTooltipItemPosition?: TooltipItemPositionSelector
|
|
42
|
+
selectorTooltipItemPosition?: TooltipItemPositionSelector<SeriesType>;
|
|
43
43
|
getSeriesWithDefaultValues: GetSeriesWithDefaultValues<SeriesType>;
|
|
44
44
|
keyboardFocusHandler?: KeyboardFocusHandler<SeriesType>;
|
|
45
45
|
/**
|
|
@@ -56,6 +56,11 @@ export type ChartSeriesTypeConfig<SeriesType extends ChartSeriesType> = {
|
|
|
56
56
|
*/
|
|
57
57
|
identifierCleaner: IdentifierCleaner<SeriesType>;
|
|
58
58
|
getItemAtPosition?: GetItemAtPosition<SeriesType>;
|
|
59
|
+
/**
|
|
60
|
+
* Optional sampling strategy used to render large datasets. When set and sampling is enabled,
|
|
61
|
+
* the series is reduced to a zoom-appropriate level of detail before rendering.
|
|
62
|
+
*/
|
|
63
|
+
sampler?: SamplingStrategy<SeriesType>;
|
|
59
64
|
descriptionGetter: DescriptionGetter<SeriesType>;
|
|
60
65
|
isHighlightedCreator: HighlightCreator<SeriesType>;
|
|
61
66
|
isFadedCreator: HighlightCreator<SeriesType>;
|
|
@@ -7,7 +7,7 @@ import type { LegendGetter } from "./legendGetter.types.js";
|
|
|
7
7
|
import type { AxisTooltipGetter, TooltipGetter } from "./tooltipGetter.types.js";
|
|
8
8
|
import type { PolarExtremumGetter } from "./polarExtremumGetter.types.js";
|
|
9
9
|
import type { GetSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.types.js";
|
|
10
|
-
import type {
|
|
10
|
+
import type { TooltipItemPositionSelector } from "./tooltipItemPositionSelector.types.js";
|
|
11
11
|
import type { SeriesLayoutGetter } from "./seriesLayout.types.js";
|
|
12
12
|
import type { KeyboardFocusHandler } from "../../../featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.js";
|
|
13
13
|
import type { IdentifierSerializer } from "./identifierSerializer.types.js";
|
|
@@ -18,6 +18,7 @@ import type { UseChartCartesianAxisSignature } from "../../../featurePlugins/use
|
|
|
18
18
|
import type { UseChartPolarAxisSignature } from "../../../featurePlugins/useChartPolarAxis/index.js";
|
|
19
19
|
import type { HighlightCreator } from "../../../featurePlugins/useChartHighlight/highlightCreator.types.js";
|
|
20
20
|
import type { AxisTooltipContentProps, ItemTooltipContentProps } from "./TooltipContent.types.js";
|
|
21
|
+
import type { SamplingStrategy } from "../../../featurePlugins/useChartCartesianAxis/sampling.types.js";
|
|
21
22
|
export type ChartSeriesTypeRequiredPlugins<SeriesType extends ChartSeriesType> = ChartsSeriesConfig[SeriesType] extends {
|
|
22
23
|
axisType: 'cartesian';
|
|
23
24
|
} ? [UseChartCartesianAxisSignature] : ChartsSeriesConfig[SeriesType] extends {
|
|
@@ -33,13 +34,12 @@ export type ChartSeriesTypeConfig<SeriesType extends ChartSeriesType> = {
|
|
|
33
34
|
legendGetter: LegendGetter<SeriesType>;
|
|
34
35
|
tooltipGetter: TooltipGetter<SeriesType>;
|
|
35
36
|
ItemTooltipContent?: React.ComponentType<ItemTooltipContentProps<SeriesType>>;
|
|
36
|
-
tooltipItemPositionGetter?: TooltipItemPositionGetter<SeriesType>;
|
|
37
37
|
/**
|
|
38
|
-
* Computes the item tooltip position from the chart state
|
|
39
|
-
*
|
|
40
|
-
*
|
|
38
|
+
* Computes the item tooltip anchor position from the chart state. Provided by
|
|
39
|
+
* the series type so it reads only the state it needs (axes, layout, geo
|
|
40
|
+
* projection, …). When omitted, the item tooltip follows the pointer.
|
|
41
41
|
*/
|
|
42
|
-
selectorTooltipItemPosition?: TooltipItemPositionSelector
|
|
42
|
+
selectorTooltipItemPosition?: TooltipItemPositionSelector<SeriesType>;
|
|
43
43
|
getSeriesWithDefaultValues: GetSeriesWithDefaultValues<SeriesType>;
|
|
44
44
|
keyboardFocusHandler?: KeyboardFocusHandler<SeriesType>;
|
|
45
45
|
/**
|
|
@@ -56,6 +56,11 @@ export type ChartSeriesTypeConfig<SeriesType extends ChartSeriesType> = {
|
|
|
56
56
|
*/
|
|
57
57
|
identifierCleaner: IdentifierCleaner<SeriesType>;
|
|
58
58
|
getItemAtPosition?: GetItemAtPosition<SeriesType>;
|
|
59
|
+
/**
|
|
60
|
+
* Optional sampling strategy used to render large datasets. When set and sampling is enabled,
|
|
61
|
+
* the series is reduced to a zoom-appropriate level of detail before rendering.
|
|
62
|
+
*/
|
|
63
|
+
sampler?: SamplingStrategy<SeriesType>;
|
|
59
64
|
descriptionGetter: DescriptionGetter<SeriesType>;
|
|
60
65
|
isHighlightedCreator: HighlightCreator<SeriesType>;
|
|
61
66
|
isFadedCreator: HighlightCreator<SeriesType>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ChartSeriesType } from "../../../../../models/seriesType/config.mjs";
|
|
2
|
+
import type { ChartState } from "../../../models/index.mjs";
|
|
3
|
+
import type { UseChartCartesianAxisSignature } from "../../../featurePlugins/useChartCartesianAxis/index.mjs";
|
|
4
|
+
import type { UseChartInteractionSignature } from "../../../featurePlugins/useChartInteraction/index.mjs";
|
|
5
|
+
import type { UseChartTooltipSignature } from "../../../featurePlugins/useChartTooltip/index.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Computes the anchor position of an item tooltip from the chart state. Each
|
|
8
|
+
* series type provides one of these so it reads only the state it needs (axes,
|
|
9
|
+
* layout, geo projection, …) and the feature-specific code stays out of the core
|
|
10
|
+
* bundle.
|
|
11
|
+
* @param {ChartState} state The chart state.
|
|
12
|
+
* @param {'top' | 'bottom' | 'left' | 'right' | undefined} position The preferred placement of the tooltip.
|
|
13
|
+
* @returns {{ x: number; y: number } | null} The tooltip anchor position, or `null` when it cannot be computed.
|
|
14
|
+
*/
|
|
15
|
+
export type TooltipItemPositionSelector<SeriesType extends ChartSeriesType> = (state: ChartState<[UseChartCartesianAxisSignature<SeriesType>, UseChartInteractionSignature, UseChartTooltipSignature<SeriesType>]>, position: 'top' | 'bottom' | 'left' | 'right' | undefined) => {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
} | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ChartSeriesType } from "../../../../../models/seriesType/config.js";
|
|
2
|
+
import type { ChartState } from "../../../models/index.js";
|
|
3
|
+
import type { UseChartCartesianAxisSignature } from "../../../featurePlugins/useChartCartesianAxis/index.js";
|
|
4
|
+
import type { UseChartInteractionSignature } from "../../../featurePlugins/useChartInteraction/index.js";
|
|
5
|
+
import type { UseChartTooltipSignature } from "../../../featurePlugins/useChartTooltip/index.js";
|
|
6
|
+
/**
|
|
7
|
+
* Computes the anchor position of an item tooltip from the chart state. Each
|
|
8
|
+
* series type provides one of these so it reads only the state it needs (axes,
|
|
9
|
+
* layout, geo projection, …) and the feature-specific code stays out of the core
|
|
10
|
+
* bundle.
|
|
11
|
+
* @param {ChartState} state The chart state.
|
|
12
|
+
* @param {'top' | 'bottom' | 'left' | 'right' | undefined} position The preferred placement of the tooltip.
|
|
13
|
+
* @returns {{ x: number; y: number } | null} The tooltip anchor position, or `null` when it cannot be computed.
|
|
14
|
+
*/
|
|
15
|
+
export type TooltipItemPositionSelector<SeriesType extends ChartSeriesType> = (state: ChartState<[UseChartCartesianAxisSignature<SeriesType>, UseChartInteractionSignature, UseChartTooltipSignature<SeriesType>]>, position: 'top' | 'bottom' | 'left' | 'right' | undefined) => {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
} | null;
|
|
@@ -33,13 +33,13 @@ export declare const selectorBrushState: (args_0: import("../../corePlugins/useC
|
|
|
33
33
|
} | null;
|
|
34
34
|
export declare const selectorBrushConfigNoZoom: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<{}> & {
|
|
35
35
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
36
|
-
}) => "x" | "
|
|
36
|
+
}) => "x" | "xy" | "y";
|
|
37
37
|
export declare const selectorBrushConfigZoom: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("../useChartCartesianAxis/index.mjs").UseChartCartesianAxisState> & {
|
|
38
38
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
39
|
-
}) => "x" | "
|
|
39
|
+
}) => "x" | "xy" | "y" | null;
|
|
40
40
|
export declare const selectorBrushConfig: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<{}> & {
|
|
41
41
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
42
|
-
}) => "x" | "
|
|
42
|
+
}) => "x" | "xy" | "y";
|
|
43
43
|
export declare const selectorIsBrushEnabled: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("./useChartBrush.types.mjs").UseChartBrushState> & {
|
|
44
44
|
cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
|
|
45
45
|
}) => boolean | undefined;
|
|
@@ -33,13 +33,13 @@ export declare const selectorBrushState: (args_0: import("../../corePlugins/useC
|
|
|
33
33
|
} | null;
|
|
34
34
|
export declare const selectorBrushConfigNoZoom: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
35
35
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
36
|
-
}) => "x" | "
|
|
36
|
+
}) => "x" | "xy" | "y";
|
|
37
37
|
export declare const selectorBrushConfigZoom: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartCartesianAxis/index.js").UseChartCartesianAxisState> & {
|
|
38
38
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
39
|
-
}) => "x" | "
|
|
39
|
+
}) => "x" | "xy" | "y" | null;
|
|
40
40
|
export declare const selectorBrushConfig: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
41
41
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
42
|
-
}) => "x" | "
|
|
42
|
+
}) => "x" | "xy" | "y";
|
|
43
43
|
export declare const selectorIsBrushEnabled: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartBrush.types.js").UseChartBrushState> & {
|
|
44
44
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
45
45
|
}) => boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AxisConfig, ScaleName } from "../../../../models/index.mjs";
|
|
2
2
|
import type { AxisId, ChartsCartesianAxisProps } from "../../../../models/axis.mjs";
|
|
3
3
|
import type { DefaultizedZoomOptions } from "./useChartCartesianAxis.types.mjs";
|
|
4
|
-
export declare const createZoomLookup: (axisDirection:
|
|
4
|
+
export declare const createZoomLookup: (axisDirection: 'x' | 'y') => (axes?: AxisConfig<ScaleName, any, ChartsCartesianAxisProps>[]) => Record<AxisId, DefaultizedZoomOptions>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AxisConfig, ScaleName } from "../../../../models/index.js";
|
|
2
2
|
import type { AxisId, ChartsCartesianAxisProps } from "../../../../models/axis.js";
|
|
3
3
|
import type { DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
|
|
4
|
-
export declare const createZoomLookup: (axisDirection:
|
|
4
|
+
export declare const createZoomLookup: (axisDirection: 'x' | 'y') => (axes?: AxisConfig<ScaleName, any, ChartsCartesianAxisProps>[]) => Record<AxisId, DefaultizedZoomOptions>;
|
|
@@ -9,7 +9,7 @@ import type { ZoomOptions } from "./zoom.types.mjs";
|
|
|
9
9
|
* Returns the `reverse` flag the zoom handlers should use so that pan/wheel
|
|
10
10
|
* gestures follow the visual direction of the axis.
|
|
11
11
|
*/
|
|
12
|
-
export declare const getEffectiveZoomReverse: (axisDirection:
|
|
12
|
+
export declare const getEffectiveZoomReverse: (axisDirection: 'x' | 'y', scaleType: ScaleName | undefined, reverse: boolean | undefined) => boolean;
|
|
13
13
|
export declare const defaultZoomOptions: {
|
|
14
14
|
minStart: number;
|
|
15
15
|
maxEnd: number;
|
|
@@ -26,4 +26,4 @@ export declare const defaultZoomOptions: {
|
|
|
26
26
|
showTooltip: import("./zoom.types.mjs").ZoomSliderShowTooltip;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
export declare const defaultizeZoom: (zoom: boolean | ZoomOptions | undefined, axisId: AxisId, axisDirection:
|
|
29
|
+
export declare const defaultizeZoom: (zoom: boolean | ZoomOptions | undefined, axisId: AxisId, axisDirection: 'x' | 'y', reverse?: boolean) => DefaultizedZoomOptions | undefined;
|
|
@@ -9,7 +9,7 @@ import type { ZoomOptions } from "./zoom.types.js";
|
|
|
9
9
|
* Returns the `reverse` flag the zoom handlers should use so that pan/wheel
|
|
10
10
|
* gestures follow the visual direction of the axis.
|
|
11
11
|
*/
|
|
12
|
-
export declare const getEffectiveZoomReverse: (axisDirection:
|
|
12
|
+
export declare const getEffectiveZoomReverse: (axisDirection: 'x' | 'y', scaleType: ScaleName | undefined, reverse: boolean | undefined) => boolean;
|
|
13
13
|
export declare const defaultZoomOptions: {
|
|
14
14
|
minStart: number;
|
|
15
15
|
maxEnd: number;
|
|
@@ -26,4 +26,4 @@ export declare const defaultZoomOptions: {
|
|
|
26
26
|
showTooltip: import("./zoom.types.js").ZoomSliderShowTooltip;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
export declare const defaultizeZoom: (zoom: boolean | ZoomOptions | undefined, axisId: AxisId, axisDirection:
|
|
29
|
+
export declare const defaultizeZoom: (zoom: boolean | ZoomOptions | undefined, axisId: AxisId, axisDirection: 'x' | 'y', reverse?: boolean) => DefaultizedZoomOptions | undefined;
|
|
@@ -2,7 +2,7 @@ import type { NumberValue } from '@mui/x-charts-vendor/d3-scale';
|
|
|
2
2
|
import type { AxisConfig } from "../../../../models/axis.mjs";
|
|
3
3
|
import type { CartesianChartSeriesType } from "../../../../models/seriesType/config.mjs";
|
|
4
4
|
import type { ProcessedSeries } from "../../corePlugins/useChartSeries/index.mjs";
|
|
5
|
-
export declare const getAxisDomainLimit: <T extends CartesianChartSeriesType>(axis: Pick<AxisConfig,
|
|
5
|
+
export declare const getAxisDomainLimit: <T extends CartesianChartSeriesType>(axis: Pick<AxisConfig, 'id' | 'domainLimit'>, axisDirection: 'x' | 'y', axisIndex: number, formattedSeries: ProcessedSeries<T | 'line'>) => 'nice' | 'strict' | ((min: NumberValue, max: NumberValue) => {
|
|
6
6
|
min: NumberValue;
|
|
7
7
|
max: NumberValue;
|
|
8
8
|
});
|
|
@@ -2,7 +2,7 @@ import type { NumberValue } from '@mui/x-charts-vendor/d3-scale';
|
|
|
2
2
|
import type { AxisConfig } from "../../../../models/axis.js";
|
|
3
3
|
import type { CartesianChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
4
4
|
import type { ProcessedSeries } from "../../corePlugins/useChartSeries/index.js";
|
|
5
|
-
export declare const getAxisDomainLimit: <T extends CartesianChartSeriesType>(axis: Pick<AxisConfig,
|
|
5
|
+
export declare const getAxisDomainLimit: <T extends CartesianChartSeriesType>(axis: Pick<AxisConfig, 'id' | 'domainLimit'>, axisDirection: 'x' | 'y', axisIndex: number, formattedSeries: ProcessedSeries<T | 'line'>) => 'nice' | 'strict' | ((min: NumberValue, max: NumberValue) => {
|
|
6
6
|
min: NumberValue;
|
|
7
7
|
max: NumberValue;
|
|
8
8
|
});
|
|
@@ -2,4 +2,4 @@ import type { CartesianChartSeriesType } from "../../../../models/seriesType/con
|
|
|
2
2
|
import type { ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
|
|
3
3
|
import type { ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.mjs";
|
|
4
4
|
import type { AxisId } from "../../../../models/axis.mjs";
|
|
5
|
-
export declare const getAxisTriggerTooltip: <SeriesType extends CartesianChartSeriesType>(axisDirection:
|
|
5
|
+
export declare const getAxisTriggerTooltip: <SeriesType extends CartesianChartSeriesType>(axisDirection: 'x' | 'y', seriesConfig: ChartSeriesConfig<SeriesType>, formattedSeries: ProcessedSeries<SeriesType>, defaultAxisId: AxisId) => Set<AxisId>;
|
|
@@ -2,4 +2,4 @@ import type { CartesianChartSeriesType } from "../../../../models/seriesType/con
|
|
|
2
2
|
import type { ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
|
|
3
3
|
import type { ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
|
|
4
4
|
import type { AxisId } from "../../../../models/axis.js";
|
|
5
|
-
export declare const getAxisTriggerTooltip: <SeriesType extends CartesianChartSeriesType>(axisDirection:
|
|
5
|
+
export declare const getAxisTriggerTooltip: <SeriesType extends CartesianChartSeriesType>(axisDirection: 'x' | 'y', seriesConfig: ChartSeriesConfig<SeriesType>, formattedSeries: ProcessedSeries<SeriesType>, defaultAxisId: AxisId) => Set<AxisId>;
|
|
@@ -12,4 +12,6 @@ export { defaultizeXAxis, defaultizeYAxis } from "./defaultizeAxis.mjs";
|
|
|
12
12
|
export * from "./computeAxisValue.mjs";
|
|
13
13
|
export * from "./createZoomLookup.mjs";
|
|
14
14
|
export * from "./zoom.types.mjs";
|
|
15
|
+
export * from "./sampling.selectors.mjs";
|
|
16
|
+
export type * from "./sampling.types.mjs";
|
|
15
17
|
export { computeAxisAutoSize } from "./computeAxisAutoSize.mjs";
|