@mui/x-charts 9.9.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/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/CHANGELOG.md +111 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +1 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.mts +1 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.ts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +1 -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/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.mts +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.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/ChartsXReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.mts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.ts +1 -1
- package/ChartsTooltip/ChartTooltip.types.d.mts +2 -1
- package/ChartsTooltip/ChartTooltip.types.d.ts +2 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.mts +4 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +4 -1
- 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/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/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/LineChart/AreaPlot.d.mts +3 -3
- package/LineChart/AreaPlot.d.ts +3 -3
- package/LineChart/AreaPlot.js +4 -5
- package/LineChart/AreaPlot.mjs +4 -5
- package/LineChart/LinePlot.d.mts +3 -3
- package/LineChart/LinePlot.d.ts +3 -3
- package/LineChart/LinePlot.js +4 -5
- package/LineChart/LinePlot.mjs +4 -5
- package/LineChart/MarkPlot.d.mts +5 -4
- package/LineChart/MarkPlot.d.ts +5 -4
- 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/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/PieChart/PieArcLabelPlot.d.mts +2 -1
- package/PieChart/PieArcLabelPlot.d.ts +2 -1
- package/PieChart/PieArcPlot.d.mts +2 -1
- package/PieChart/PieArcPlot.d.ts +2 -1
- package/PieChart/pieClasses.d.mts +1 -1
- package/PieChart/pieClasses.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.utils.d.mts +5 -5
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +5 -5
- 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/useRadarChartProps.d.mts +1 -1
- package/RadarChart/useRadarChartProps.d.ts +1 -1
- package/ScatterChart/ScatterChart.d.mts +2 -1
- package/ScatterChart/ScatterChart.d.ts +2 -1
- package/ScatterChart/ScatterMarker.types.d.mts +2 -1
- package/ScatterChart/ScatterMarker.types.d.ts +2 -1
- package/ScatterChart/scatterClasses.d.mts +1 -1
- package/ScatterChart/scatterClasses.d.ts +1 -1
- 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/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/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/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/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 +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +2 -2
- 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/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 +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +1 -1
- 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 +2 -2
- package/models/seriesType/config.d.ts +2 -2
- 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
|
@@ -5,6 +5,18 @@ import type { SeriesId } from "../../models/seriesType/common.mjs";
|
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
7
|
export declare function useRadarSeriesData(querySeriesId?: SeriesId): {
|
|
8
|
+
type: 'radar';
|
|
9
|
+
data: number[];
|
|
10
|
+
label?: string | ((location: 'tooltip' | 'legend') => string);
|
|
11
|
+
hideMark?: boolean;
|
|
12
|
+
fillArea?: boolean;
|
|
13
|
+
hidden: boolean;
|
|
14
|
+
color: string;
|
|
15
|
+
colorGetter?: ((data: import("../../internals/index.mjs").ColorCallbackValue<number>) => string) | undefined;
|
|
16
|
+
id: SeriesId;
|
|
17
|
+
valueFormatter: import("../../internals/index.mjs").SeriesValueFormatter<number>;
|
|
18
|
+
highlightScope?: import("../../internals/index.mjs").CommonHighlightScope | undefined;
|
|
19
|
+
labelMarkType?: import("../../internals/index.mjs").ChartsLabelMarkType;
|
|
8
20
|
seriesId: string;
|
|
9
21
|
isSeriesHighlighted: boolean;
|
|
10
22
|
isSeriesFaded: boolean;
|
|
@@ -17,16 +29,4 @@ export declare function useRadarSeriesData(querySeriesId?: SeriesId): {
|
|
|
17
29
|
value: number;
|
|
18
30
|
color: string;
|
|
19
31
|
}[];
|
|
20
|
-
hidden: boolean;
|
|
21
|
-
type: "radar";
|
|
22
|
-
highlightScope?: import("../../internals/index.mjs").CommonHighlightScope | undefined;
|
|
23
|
-
labelMarkType?: import("../../internals/index.mjs").ChartsLabelMarkType | undefined;
|
|
24
|
-
colorGetter?: ((data: import("../../internals/index.mjs").ColorCallbackValue<number>) => string) | undefined;
|
|
25
|
-
label?: string | ((location: "tooltip" | "legend") => string) | undefined;
|
|
26
|
-
hideMark?: boolean | undefined;
|
|
27
|
-
fillArea?: boolean | undefined;
|
|
28
|
-
id: SeriesId;
|
|
29
|
-
valueFormatter: import("../../internals/index.mjs").SeriesValueFormatter<number>;
|
|
30
|
-
color: string;
|
|
31
|
-
data: number[];
|
|
32
32
|
}[];
|
|
@@ -5,6 +5,18 @@ import type { SeriesId } from "../../models/seriesType/common.js";
|
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
7
|
export declare function useRadarSeriesData(querySeriesId?: SeriesId): {
|
|
8
|
+
type: 'radar';
|
|
9
|
+
data: number[];
|
|
10
|
+
label?: string | ((location: 'tooltip' | 'legend') => string);
|
|
11
|
+
hideMark?: boolean;
|
|
12
|
+
fillArea?: boolean;
|
|
13
|
+
hidden: boolean;
|
|
14
|
+
color: string;
|
|
15
|
+
colorGetter?: ((data: import("../../internals/index.js").ColorCallbackValue<number>) => string) | undefined;
|
|
16
|
+
id: SeriesId;
|
|
17
|
+
valueFormatter: import("../../internals/index.js").SeriesValueFormatter<number>;
|
|
18
|
+
highlightScope?: import("../../internals/index.js").CommonHighlightScope | undefined;
|
|
19
|
+
labelMarkType?: import("../../internals/index.js").ChartsLabelMarkType;
|
|
8
20
|
seriesId: string;
|
|
9
21
|
isSeriesHighlighted: boolean;
|
|
10
22
|
isSeriesFaded: boolean;
|
|
@@ -17,16 +29,4 @@ export declare function useRadarSeriesData(querySeriesId?: SeriesId): {
|
|
|
17
29
|
value: number;
|
|
18
30
|
color: string;
|
|
19
31
|
}[];
|
|
20
|
-
hidden: boolean;
|
|
21
|
-
type: "radar";
|
|
22
|
-
highlightScope?: import("../../internals/index.js").CommonHighlightScope | undefined;
|
|
23
|
-
labelMarkType?: import("../../internals/index.js").ChartsLabelMarkType | undefined;
|
|
24
|
-
colorGetter?: ((data: import("../../internals/index.js").ColorCallbackValue<number>) => string) | undefined;
|
|
25
|
-
label?: string | ((location: "tooltip" | "legend") => string) | undefined;
|
|
26
|
-
hideMark?: boolean | undefined;
|
|
27
|
-
fillArea?: boolean | undefined;
|
|
28
|
-
id: SeriesId;
|
|
29
|
-
valueFormatter: import("../../internals/index.js").SeriesValueFormatter<number>;
|
|
30
|
-
color: string;
|
|
31
|
-
data: number[];
|
|
32
32
|
}[];
|
|
@@ -27,4 +27,4 @@ export interface RadarClasses {
|
|
|
27
27
|
export type RadarClassKey = keyof RadarClasses;
|
|
28
28
|
export declare function getRadarUtilityClass(slot: string): string;
|
|
29
29
|
export declare const radarClasses: RadarClasses;
|
|
30
|
-
export declare const useUtilityClasses: (classes?: Partial<RadarClasses>) => Record<"
|
|
30
|
+
export declare const useUtilityClasses: (classes?: Partial<RadarClasses>) => Record<"axisHighlightDot" | "axisHighlightLine" | "axisHighlightRoot" | "axisLabel" | "axisLine" | "axisRoot" | "gridDivider" | "gridRadial" | "gridStripe" | "seriesArea" | "seriesMark" | "seriesRoot", string>;
|
|
@@ -27,4 +27,4 @@ export interface RadarClasses {
|
|
|
27
27
|
export type RadarClassKey = keyof RadarClasses;
|
|
28
28
|
export declare function getRadarUtilityClass(slot: string): string;
|
|
29
29
|
export declare const radarClasses: RadarClasses;
|
|
30
|
-
export declare const useUtilityClasses: (classes?: Partial<RadarClasses>) => Record<"
|
|
30
|
+
export declare const useUtilityClasses: (classes?: Partial<RadarClasses>) => Record<"axisHighlightDot" | "axisHighlightLine" | "axisHighlightRoot" | "axisLabel" | "axisLine" | "axisRoot" | "gridDivider" | "gridRadial" | "gridStripe" | "seriesArea" | "seriesMark" | "seriesRoot", string>;
|
|
@@ -15,7 +15,7 @@ import type { RadarSeriesAreaProps, RadarSeriesMarksProps } from "./RadarSeriesP
|
|
|
15
15
|
* @returns An object with props for the children components of RadarChart
|
|
16
16
|
*/
|
|
17
17
|
export declare const useRadarChartProps: (props: RadarChartProps) => {
|
|
18
|
-
highlight: "
|
|
18
|
+
highlight: "axis" | "none" | "series";
|
|
19
19
|
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
|
|
20
20
|
chartsSurfaceProps: ChartsSurfaceProps;
|
|
21
21
|
radarDataProviderProps: RadarDataProviderProps<RadarChartPluginSignatures>;
|
|
@@ -15,7 +15,7 @@ import type { RadarSeriesAreaProps, RadarSeriesMarksProps } from "./RadarSeriesP
|
|
|
15
15
|
* @returns An object with props for the children components of RadarChart
|
|
16
16
|
*/
|
|
17
17
|
export declare const useRadarChartProps: (props: RadarChartProps) => {
|
|
18
|
-
highlight: "
|
|
18
|
+
highlight: "axis" | "none" | "series";
|
|
19
19
|
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
|
|
20
20
|
chartsSurfaceProps: ChartsSurfaceProps;
|
|
21
21
|
radarDataProviderProps: RadarDataProviderProps<RadarChartPluginSignatures>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { MakeOptional } from '@mui/x-internals/types';
|
|
3
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
3
4
|
import type { ChartsToolbarSlotProps, ChartsToolbarSlots } from "../Toolbar/index.mjs";
|
|
4
5
|
import type { ChartsSlots, ChartsSlotProps } from "../internals/material/index.mjs";
|
|
5
6
|
import type { ScatterPlotProps, ScatterPlotSlotProps, ScatterPlotSlots } from "./ScatterPlot.mjs";
|
|
@@ -21,7 +22,7 @@ export interface ScatterChartSlotProps extends ChartsAxisSlotProps, ScatterPlotS
|
|
|
21
22
|
* Slot props for the tooltip component.
|
|
22
23
|
* @default {}
|
|
23
24
|
*/
|
|
24
|
-
tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides
|
|
25
|
+
tooltip?: WithDataAttributes<Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides>;
|
|
25
26
|
}
|
|
26
27
|
export type ScatterSeries = MakeOptional<ScatterSeriesType, 'type'>;
|
|
27
28
|
export interface ScatterChartProps extends Omit<ChartsContainerProps<'scatter', ScatterChartPluginSignatures>, 'series' | 'plugins' | 'onItemClick' | 'highlightedAxis' | 'onHighlightedAxisChange'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, Pick<ScatterPlotProps, 'renderer'> {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { MakeOptional } from '@mui/x-internals/types';
|
|
3
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
3
4
|
import type { ChartsToolbarSlotProps, ChartsToolbarSlots } from "../Toolbar/index.js";
|
|
4
5
|
import type { ChartsSlots, ChartsSlotProps } from "../internals/material/index.js";
|
|
5
6
|
import type { ScatterPlotProps, ScatterPlotSlotProps, ScatterPlotSlots } from "./ScatterPlot.js";
|
|
@@ -21,7 +22,7 @@ export interface ScatterChartSlotProps extends ChartsAxisSlotProps, ScatterPlotS
|
|
|
21
22
|
* Slot props for the tooltip component.
|
|
22
23
|
* @default {}
|
|
23
24
|
*/
|
|
24
|
-
tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides
|
|
25
|
+
tooltip?: WithDataAttributes<Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides>;
|
|
25
26
|
}
|
|
26
27
|
export type ScatterSeries = MakeOptional<ScatterSeriesType, 'type'>;
|
|
27
28
|
export interface ScatterChartProps extends Omit<ChartsContainerProps<'scatter', ScatterChartPluginSignatures>, 'series' | 'plugins' | 'onItemClick' | 'highlightedAxis' | 'onHighlightedAxisChange'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, Pick<ScatterPlotProps, 'renderer'> {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
2
3
|
import type { ScatterMarkerProps } from "./ScatterMarker.mjs";
|
|
3
4
|
import type { MarkerPropsOverrides } from "../models/chartsSlotsComponentsProps.mjs";
|
|
4
5
|
export interface ScatterMarkerSlots {
|
|
@@ -9,7 +10,7 @@ export interface ScatterMarkerSlots {
|
|
|
9
10
|
marker?: React.JSXElementConstructor<ScatterMarkerProps & MarkerPropsOverrides>;
|
|
10
11
|
}
|
|
11
12
|
export interface ScatterMarkerSlotProps {
|
|
12
|
-
marker?: Partial<ScatterMarkerProps> & MarkerPropsOverrides
|
|
13
|
+
marker?: WithDataAttributes<Partial<ScatterMarkerProps> & MarkerPropsOverrides>;
|
|
13
14
|
}
|
|
14
15
|
export interface ScatterMarkerSlotExtension {
|
|
15
16
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
2
3
|
import type { ScatterMarkerProps } from "./ScatterMarker.js";
|
|
3
4
|
import type { MarkerPropsOverrides } from "../models/chartsSlotsComponentsProps.js";
|
|
4
5
|
export interface ScatterMarkerSlots {
|
|
@@ -9,7 +10,7 @@ export interface ScatterMarkerSlots {
|
|
|
9
10
|
marker?: React.JSXElementConstructor<ScatterMarkerProps & MarkerPropsOverrides>;
|
|
10
11
|
}
|
|
11
12
|
export interface ScatterMarkerSlotProps {
|
|
12
|
-
marker?: Partial<ScatterMarkerProps> & MarkerPropsOverrides
|
|
13
|
+
marker?: WithDataAttributes<Partial<ScatterMarkerProps> & MarkerPropsOverrides>;
|
|
13
14
|
}
|
|
14
15
|
export interface ScatterMarkerSlotExtension {
|
|
15
16
|
/**
|
|
@@ -19,4 +19,4 @@ export declare const scatterClasses: ScatterClasses;
|
|
|
19
19
|
export interface UseUtilityClassesOptions {
|
|
20
20
|
classes?: Partial<ScatterClasses>;
|
|
21
21
|
}
|
|
22
|
-
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"
|
|
22
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"focusedMark" | "highlightedMark" | "marker" | "root" | "series", string>;
|
|
@@ -19,4 +19,4 @@ export declare const scatterClasses: ScatterClasses;
|
|
|
19
19
|
export interface UseUtilityClassesOptions {
|
|
20
20
|
classes?: Partial<ScatterClasses>;
|
|
21
21
|
}
|
|
22
|
-
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"
|
|
22
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"focusedMark" | "highlightedMark" | "marker" | "root" | "series", string>;
|
|
@@ -4,5 +4,5 @@ import type { DefaultizedScatterSeriesType, ScatterValueType } from "../models/i
|
|
|
4
4
|
export declare function useScatterPlotData(series: DefaultizedScatterSeriesType, xScale: D3Scale, yScale: D3Scale, isPointInside: (x: number, y: number) => boolean): (ScatterValueType & {
|
|
5
5
|
dataIndex: number;
|
|
6
6
|
seriesId: SeriesId;
|
|
7
|
-
type:
|
|
7
|
+
type: 'scatter';
|
|
8
8
|
})[];
|
|
@@ -4,5 +4,5 @@ import type { DefaultizedScatterSeriesType, ScatterValueType } from "../models/i
|
|
|
4
4
|
export declare function useScatterPlotData(series: DefaultizedScatterSeriesType, xScale: D3Scale, yScale: D3Scale, isPointInside: (x: number, y: number) => boolean): (ScatterValueType & {
|
|
5
5
|
dataIndex: number;
|
|
6
6
|
seriesId: SeriesId;
|
|
7
|
-
type:
|
|
7
|
+
type: 'scatter';
|
|
8
8
|
})[];
|
|
@@ -125,5 +125,5 @@ export interface SparkLineChartProps<PlotType extends 'line' | 'bar' = 'line' |
|
|
|
125
125
|
*
|
|
126
126
|
* - [SparkLineChart API](https://mui.com/x/api/charts/spark-line-chart/)
|
|
127
127
|
*/
|
|
128
|
-
declare const SparkLineChart: React.ForwardRefExoticComponent<SparkLineChartProps<"
|
|
128
|
+
declare const SparkLineChart: React.ForwardRefExoticComponent<SparkLineChartProps<"bar" | "line"> & React.RefAttributes<HTMLDivElement>>;
|
|
129
129
|
export { SparkLineChart };
|
|
@@ -125,5 +125,5 @@ export interface SparkLineChartProps<PlotType extends 'line' | 'bar' = 'line' |
|
|
|
125
125
|
*
|
|
126
126
|
* - [SparkLineChart API](https://mui.com/x/api/charts/spark-line-chart/)
|
|
127
127
|
*/
|
|
128
|
-
declare const SparkLineChart: React.ForwardRefExoticComponent<SparkLineChartProps<"
|
|
128
|
+
declare const SparkLineChart: React.ForwardRefExoticComponent<SparkLineChartProps<"bar" | "line"> & React.RefAttributes<HTMLDivElement>>;
|
|
129
129
|
export { SparkLineChart };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
2
3
|
import type { ToolbarPropsOverrides } from "../models/chartsSlotsComponentsProps.mjs";
|
|
3
4
|
export interface ChartsToolbarProps {}
|
|
4
5
|
export interface ChartsToolbarSlots {
|
|
@@ -12,5 +13,5 @@ export interface ChartsToolbarSlotProps {
|
|
|
12
13
|
/**
|
|
13
14
|
* Props for the toolbar component.
|
|
14
15
|
*/
|
|
15
|
-
toolbar?: Partial<ChartsToolbarProps> & ToolbarPropsOverrides
|
|
16
|
+
toolbar?: WithDataAttributes<Partial<ChartsToolbarProps> & ToolbarPropsOverrides>;
|
|
16
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
import type { WithDataAttributes } from '@mui/utils/types';
|
|
2
3
|
import type { ToolbarPropsOverrides } from "../models/chartsSlotsComponentsProps.js";
|
|
3
4
|
export interface ChartsToolbarProps {}
|
|
4
5
|
export interface ChartsToolbarSlots {
|
|
@@ -12,5 +13,5 @@ export interface ChartsToolbarSlotProps {
|
|
|
12
13
|
/**
|
|
13
14
|
* Props for the toolbar component.
|
|
14
15
|
*/
|
|
15
|
-
toolbar?: Partial<ChartsToolbarProps> & ToolbarPropsOverrides
|
|
16
|
+
toolbar?: WithDataAttributes<Partial<ChartsToolbarProps> & ToolbarPropsOverrides>;
|
|
16
17
|
}
|
package/index.js
CHANGED
package/index.mjs
CHANGED
|
@@ -2,4 +2,4 @@ import type { ScaleOrdinal } from '@mui/x-charts-vendor/d3-scale';
|
|
|
2
2
|
import type { ContinuousColorConfig, PiecewiseColorConfig, OrdinalColorConfig } from "../models/colorMapping.mjs";
|
|
3
3
|
export declare function getSequentialColorScale<Value extends number | Date>(config: ContinuousColorConfig<Value> | PiecewiseColorConfig<Value>): import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<Value, string, string | null>;
|
|
4
4
|
export declare function getOrdinalColorScale<Value extends number | Date | string>(config: OrdinalColorConfig<Value>): ScaleOrdinal<Value, string, null | string> | ScaleOrdinal<number, string, null | string>;
|
|
5
|
-
export declare function getColorScale(config: ContinuousColorConfig | PiecewiseColorConfig | OrdinalColorConfig): ScaleOrdinal<
|
|
5
|
+
export declare function getColorScale(config: ContinuousColorConfig | PiecewiseColorConfig | OrdinalColorConfig): ScaleOrdinal<number, string, string | null> | ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string, string | null>;
|
|
@@ -2,4 +2,4 @@ import type { ScaleOrdinal } from '@mui/x-charts-vendor/d3-scale';
|
|
|
2
2
|
import type { ContinuousColorConfig, PiecewiseColorConfig, OrdinalColorConfig } from "../models/colorMapping.js";
|
|
3
3
|
export declare function getSequentialColorScale<Value extends number | Date>(config: ContinuousColorConfig<Value> | PiecewiseColorConfig<Value>): import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<Value, string, string | null>;
|
|
4
4
|
export declare function getOrdinalColorScale<Value extends number | Date | string>(config: OrdinalColorConfig<Value>): ScaleOrdinal<Value, string, null | string> | ScaleOrdinal<number, string, null | string>;
|
|
5
|
-
export declare function getColorScale(config: ContinuousColorConfig | PiecewiseColorConfig | OrdinalColorConfig): ScaleOrdinal<
|
|
5
|
+
export declare function getColorScale(config: ContinuousColorConfig | PiecewiseColorConfig | OrdinalColorConfig): ScaleOrdinal<number, string, string | null> | ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string, string | null>;
|
|
@@ -3,7 +3,7 @@ declare class CartesianSeriesTypes {
|
|
|
3
3
|
types: Set<CartesianChartSeriesType>;
|
|
4
4
|
constructor();
|
|
5
5
|
addType(value: CartesianChartSeriesType): void;
|
|
6
|
-
getTypes(): Set<"
|
|
6
|
+
getTypes(): Set<"bar" | "line" | "scatter">;
|
|
7
7
|
}
|
|
8
8
|
declare class PolarSeriesTypes {
|
|
9
9
|
types: Set<PolarChartSeriesType>;
|
|
@@ -3,7 +3,7 @@ declare class CartesianSeriesTypes {
|
|
|
3
3
|
types: Set<CartesianChartSeriesType>;
|
|
4
4
|
constructor();
|
|
5
5
|
addType(value: CartesianChartSeriesType): void;
|
|
6
|
-
getTypes(): Set<"
|
|
6
|
+
getTypes(): Set<"bar" | "line" | "scatter">;
|
|
7
7
|
}
|
|
8
8
|
declare class PolarSeriesTypes {
|
|
9
9
|
types: Set<PolarChartSeriesType>;
|
|
@@ -42,7 +42,7 @@ import * as React from 'react';
|
|
|
42
42
|
*/
|
|
43
43
|
export declare const consumeSlots: <Props extends {}, Ref extends {}, RenderFunction = React.ForwardRefExoticComponent<Props & React.RefAttributes<Ref>>>(name: string, slotPropName: string, options: {
|
|
44
44
|
propagateSlots?: boolean;
|
|
45
|
-
defaultProps?: Omit<Partial<Props>,
|
|
45
|
+
defaultProps?: Omit<Partial<Props>, 'slots' | 'slotProps'> | ((props: Props) => Omit<Partial<Props>, 'slots' | 'slotProps'>);
|
|
46
46
|
omitProps?: Array<keyof Props>;
|
|
47
47
|
classesResolver?: (props: Props, theme: any) => Record<string, string>;
|
|
48
48
|
}, InComponent: RenderFunction) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Props> & React.RefAttributes<Ref>>;
|
|
@@ -42,7 +42,7 @@ import * as React from 'react';
|
|
|
42
42
|
*/
|
|
43
43
|
export declare const consumeSlots: <Props extends {}, Ref extends {}, RenderFunction = React.ForwardRefExoticComponent<Props & React.RefAttributes<Ref>>>(name: string, slotPropName: string, options: {
|
|
44
44
|
propagateSlots?: boolean;
|
|
45
|
-
defaultProps?: Omit<Partial<Props>,
|
|
45
|
+
defaultProps?: Omit<Partial<Props>, 'slots' | 'slotProps'> | ((props: Props) => Omit<Partial<Props>, 'slots' | 'slotProps'>);
|
|
46
46
|
omitProps?: Array<keyof Props>;
|
|
47
47
|
classesResolver?: (props: Props, theme: any) => Record<string, string>;
|
|
48
48
|
}, InComponent: RenderFunction) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Props> & React.RefAttributes<Ref>>;
|
|
@@ -45,6 +45,6 @@ import * as React from 'react';
|
|
|
45
45
|
* @param InComponent The component to render if the slot is not provided.
|
|
46
46
|
*/
|
|
47
47
|
export declare const consumeThemeProps: <Props extends {}, Ref extends {}, RenderFunction = (props: Props, ref: React.Ref<Ref>) => React.ElementType>(name: string, options: {
|
|
48
|
-
defaultProps?: Omit<Partial<Props>,
|
|
48
|
+
defaultProps?: Omit<Partial<Props>, 'slots' | 'slotProps'> | (<T extends Props>(props: T) => Omit<Partial<T>, 'slots' | 'slotProps'>);
|
|
49
49
|
classesResolver?: (props: Props, theme: any) => Record<string, string>;
|
|
50
50
|
}, InComponent: RenderFunction) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Props> & React.RefAttributes<Ref>>;
|
|
@@ -45,6 +45,6 @@ import * as React from 'react';
|
|
|
45
45
|
* @param InComponent The component to render if the slot is not provided.
|
|
46
46
|
*/
|
|
47
47
|
export declare const consumeThemeProps: <Props extends {}, Ref extends {}, RenderFunction = (props: Props, ref: React.Ref<Ref>) => React.ElementType>(name: string, options: {
|
|
48
|
-
defaultProps?: Omit<Partial<Props>,
|
|
48
|
+
defaultProps?: Omit<Partial<Props>, 'slots' | 'slotProps'> | (<T extends Props>(props: T) => Omit<Partial<T>, 'slots' | 'slotProps'>);
|
|
49
49
|
classesResolver?: (props: Props, theme: any) => Record<string, string>;
|
|
50
50
|
}, InComponent: RenderFunction) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Props> & React.RefAttributes<Ref>>;
|
|
@@ -3,7 +3,7 @@ import type { ChartSeriesType } from "../models/seriesType/config.mjs";
|
|
|
3
3
|
* Create a keyboard focus handler for common use cases where focused item are defined by the series is and data index.
|
|
4
4
|
*/
|
|
5
5
|
export declare function createCommonKeyboardFocusHandler<SeriesType extends Exclude<ChartSeriesType, 'sankey' | 'heatmap'>, TInputSeriesType extends Exclude<ChartSeriesType, 'sankey' | 'heatmap'> = SeriesType>(outSeriesTypes: Set<SeriesType>, allowCycles?: boolean, useCurrentSeriesMaxLength?: boolean): (event: KeyboardEvent) => ((currentItem: {
|
|
6
|
-
type: Exclude<ChartSeriesType,
|
|
6
|
+
type: Exclude<ChartSeriesType, 'sankey' | 'heatmap'>;
|
|
7
7
|
seriesId: import("../index.mjs").SeriesId;
|
|
8
8
|
dataIndex?: number;
|
|
9
9
|
} | null, state: {
|
|
@@ -3,7 +3,7 @@ import type { ChartSeriesType } from "../models/seriesType/config.js";
|
|
|
3
3
|
* Create a keyboard focus handler for common use cases where focused item are defined by the series is and data index.
|
|
4
4
|
*/
|
|
5
5
|
export declare function createCommonKeyboardFocusHandler<SeriesType extends Exclude<ChartSeriesType, 'sankey' | 'heatmap'>, TInputSeriesType extends Exclude<ChartSeriesType, 'sankey' | 'heatmap'> = SeriesType>(outSeriesTypes: Set<SeriesType>, allowCycles?: boolean, useCurrentSeriesMaxLength?: boolean): (event: KeyboardEvent) => ((currentItem: {
|
|
6
|
-
type: Exclude<ChartSeriesType,
|
|
6
|
+
type: Exclude<ChartSeriesType, 'sankey' | 'heatmap'>;
|
|
7
7
|
seriesId: import("../index.js").SeriesId;
|
|
8
8
|
dataIndex?: number;
|
|
9
9
|
} | null, state: {
|
|
@@ -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'>;
|
|
@@ -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,7 +25,7 @@ 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">;
|
|
@@ -42,4 +42,4 @@ export declare const selectorChartSeriesConfigGetter: (args_0: import("../useCha
|
|
|
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,7 +25,7 @@ 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">;
|
|
@@ -42,4 +42,4 @@ export declare const selectorChartSeriesConfigGetter: (args_0: import("../useCha
|
|
|
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;
|
|
@@ -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;
|