@mui/x-charts 9.0.4 → 9.2.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/BarChart.d.mts +1 -2
- package/BarChart/BarChart.d.ts +1 -2
- package/BarChart/BarChart.js +2 -913
- package/BarChart/BarChart.mjs +2 -913
- package/BarChart/seriesConfig/bar/seriesProcessor.js +2 -0
- package/BarChart/seriesConfig/bar/seriesProcessor.mjs +2 -0
- package/CHANGELOG.md +236 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +55 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +55 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.js +94 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +88 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.mts +13 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.ts +13 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.js +86 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.mjs +80 -0
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.mts +18 -0
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.ts +18 -0
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.js +26 -0
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.mjs +16 -0
- package/ChartsAxisHighlightValue/index.d.mts +1 -0
- package/ChartsAxisHighlightValue/index.d.ts +1 -0
- package/ChartsAxisHighlightValue/index.js +16 -0
- package/ChartsAxisHighlightValue/index.mjs +1 -0
- package/ChartsAxisHighlightValue/useAxisHighlightValue.d.mts +14 -0
- package/ChartsAxisHighlightValue/useAxisHighlightValue.d.ts +14 -0
- package/ChartsAxisHighlightValue/useAxisHighlightValue.js +130 -0
- package/ChartsAxisHighlightValue/useAxisHighlightValue.mjs +124 -0
- package/ChartsContainer/ChartsContainer.js +4 -1431
- package/ChartsContainer/ChartsContainer.mjs +4 -1431
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.mts +15 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.ts +15 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.js +56 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.mjs +50 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.d.mts +6 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.d.ts +6 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.js +5 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.mjs +1 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.d.mts +11 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.d.ts +11 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.js +70 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.mjs +64 -0
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.mts +9 -0
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.ts +9 -0
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.js +104 -0
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.mjs +98 -0
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.mts +9 -0
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.ts +9 -0
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.js +98 -0
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.mjs +92 -0
- package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.d.mts +7 -0
- package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.d.ts +7 -0
- package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.js +14 -0
- package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.mjs +6 -0
- package/ChartsRadialAxisHighlight/index.d.mts +5 -0
- package/ChartsRadialAxisHighlight/index.d.ts +5 -0
- package/ChartsRadialAxisHighlight/index.js +47 -0
- package/ChartsRadialAxisHighlight/index.mjs +4 -0
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -47
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -47
- package/ChartsRadiusAxis/ChartsRadiusAxis.js +20 -16
- package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +21 -15
- package/ChartsRadiusAxis/index.d.mts +3 -2
- package/ChartsRadiusAxis/index.d.ts +3 -2
- package/ChartsRadiusAxis/index.mjs +3 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -47
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -47
- package/ChartsRotationAxis/ChartsRotationAxis.js +16 -19
- package/ChartsRotationAxis/ChartsRotationAxis.mjs +17 -18
- package/ChartsRotationAxis/index.d.mts +3 -2
- package/ChartsRotationAxis/index.d.ts +3 -2
- package/ChartsRotationAxis/index.mjs +3 -1
- package/ChartsTooltip/useAxesTooltip.d.mts +1 -1
- package/ChartsTooltip/useAxesTooltip.d.ts +1 -1
- package/ChartsTooltip/useAxesTooltip.js +11 -2
- package/ChartsTooltip/useAxesTooltip.mjs +12 -3
- package/ChartsXAxis/useAxisTicksProps.d.mts +162 -81
- package/ChartsXAxis/useAxisTicksProps.d.ts +162 -81
- package/ChartsYAxis/useAxisTicksProps.d.mts +162 -81
- package/ChartsYAxis/useAxisTicksProps.d.ts +162 -81
- package/LICENSE +2 -0
- package/LineChart/LineChart.js +2 -913
- package/LineChart/LineChart.mjs +2 -913
- package/LineChart/seriesConfig/curveEvaluation.d.mts +19 -1
- package/LineChart/seriesConfig/curveEvaluation.d.ts +19 -1
- package/LineChart/seriesConfig/curveEvaluation.js +132 -0
- package/LineChart/seriesConfig/curveEvaluation.mjs +131 -0
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.js +2 -1
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.mjs +2 -1
- package/LineChart/seriesConfig/seriesProcessor.js +4 -0
- package/LineChart/seriesConfig/seriesProcessor.mjs +4 -0
- package/LineChart/useAreaPlotData.js +4 -0
- package/LineChart/useAreaPlotData.mjs +4 -0
- package/LineChart/useLinePlotData.js +2 -0
- package/LineChart/useLinePlotData.mjs +2 -0
- package/LineChart/useMarkPlotData.js +2 -0
- package/LineChart/useMarkPlotData.mjs +2 -0
- package/RadarChart/RadarGrid/CircularRadarStripes.js +2 -3
- package/RadarChart/RadarGrid/CircularRadarStripes.mjs +2 -3
- package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.js +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.mjs +2 -2
- package/ScatterChart/FocusedScatterMark.js +10 -24
- package/ScatterChart/FocusedScatterMark.mjs +10 -24
- package/ScatterChart/HighlightedScatterMark.d.mts +11 -0
- package/ScatterChart/HighlightedScatterMark.d.ts +11 -0
- package/ScatterChart/HighlightedScatterMark.js +68 -0
- package/ScatterChart/HighlightedScatterMark.mjs +62 -0
- package/ScatterChart/ScatterChart.d.mts +1 -2
- package/ScatterChart/ScatterChart.d.ts +1 -2
- package/ScatterChart/ScatterChart.js +2 -913
- package/ScatterChart/ScatterChart.mjs +2 -913
- package/ScatterChart/index.d.mts +1 -0
- package/ScatterChart/index.d.ts +1 -0
- package/ScatterChart/index.js +12 -0
- package/ScatterChart/index.mjs +1 -0
- package/ScatterChart/scatterClasses.d.mts +3 -1
- package/ScatterChart/scatterClasses.d.ts +3 -1
- package/ScatterChart/scatterClasses.js +3 -2
- package/ScatterChart/scatterClasses.mjs +3 -2
- package/ScatterChart/useScatterChartProps.js +3 -1
- package/ScatterChart/useScatterChartProps.mjs +3 -1
- package/ScatterChart/useScatterItemPosition.d.mts +16 -0
- package/ScatterChart/useScatterItemPosition.d.ts +16 -0
- package/ScatterChart/useScatterItemPosition.js +47 -0
- package/ScatterChart/useScatterItemPosition.mjs +41 -0
- package/SparkLineChart/SparkLineChart.js +2 -913
- package/SparkLineChart/SparkLineChart.mjs +2 -913
- package/hooks/useAxis.d.mts +3 -3
- package/hooks/useAxis.d.ts +3 -3
- package/hooks/useAxisSystem.d.mts +1 -1
- package/hooks/useAxisSystem.d.ts +1 -1
- package/hooks/useAxisSystem.js +1 -1
- package/hooks/useAxisSystem.mjs +1 -1
- package/index.d.mts +2 -0
- package/index.d.ts +2 -0
- package/index.js +25 -1
- package/index.mjs +3 -1
- package/internals/getRingPath.d.mts +16 -0
- package/internals/getRingPath.d.ts +16 -0
- package/internals/getRingPath.js +39 -0
- package/internals/getRingPath.mjs +33 -0
- package/internals/index.d.mts +8 -1
- package/internals/index.d.ts +8 -1
- package/internals/index.js +67 -0
- package/internals/index.mjs +7 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +4 -2
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +4 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +8 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.mts +6 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.ts +6 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.js +48 -36
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.mjs +47 -36
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +77 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +77 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +152 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +152 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.mts +4 -7
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +4 -7
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.mts +3 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.ts +3 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.mts +7 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.ts +7 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +56 -6
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.mjs +54 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.mts +2 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +2 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.js +12 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.mjs +2 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.mts +4 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.mts +23 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +23 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +73 -12
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +74 -12
- package/models/axis.d.mts +79 -31
- package/models/axis.d.ts +79 -31
- package/models/axis.js +5 -1
- package/models/axis.mjs +5 -1
- package/models/seriesType/line.d.mts +6 -6
- package/models/seriesType/line.d.ts +6 -6
- package/package.json +32 -4
package/hooks/useAxis.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AxisId, type ChartsRadiusAxisProps, type ChartsRotationAxisProps, type
|
|
1
|
+
import { type AxisId, type ChartsRadiusAxisProps, type ChartsRotationAxisProps, type ScaleName, type AxisScaleConfig, type ChartsXAxisProps, type ChartsYAxisProps, type ComputedAxis } from "../models/axis.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* Get all the x-axes.
|
|
4
4
|
*
|
|
@@ -128,7 +128,7 @@ export declare function useRadiusAxes(): {
|
|
|
128
128
|
* // Get a specific rotation axis by string ID
|
|
129
129
|
* const rotationAxis = useRotationAxis('categories');
|
|
130
130
|
*/
|
|
131
|
-
export declare function useRotationAxis(axisId?: AxisId):
|
|
131
|
+
export declare function useRotationAxis(axisId?: AxisId): ComputedAxis<ScaleName, any, ChartsRotationAxisProps> | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* Get a specific radius axis or the default radius axis for polar charts.
|
|
134
134
|
*
|
|
@@ -148,4 +148,4 @@ export declare function useRotationAxis(axisId?: AxisId): PolarAxisDefaultized<S
|
|
|
148
148
|
* // Get a specific radius axis by string ID
|
|
149
149
|
* const radiusAxis = useRadiusAxis('magnitude');
|
|
150
150
|
*/
|
|
151
|
-
export declare function useRadiusAxis(axisId?: AxisId):
|
|
151
|
+
export declare function useRadiusAxis(axisId?: AxisId): ComputedAxis<ScaleName, any, ChartsRadiusAxisProps> | undefined;
|
package/hooks/useAxis.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AxisId, type ChartsRadiusAxisProps, type ChartsRotationAxisProps, type
|
|
1
|
+
import { type AxisId, type ChartsRadiusAxisProps, type ChartsRotationAxisProps, type ScaleName, type AxisScaleConfig, type ChartsXAxisProps, type ChartsYAxisProps, type ComputedAxis } from "../models/axis.js";
|
|
2
2
|
/**
|
|
3
3
|
* Get all the x-axes.
|
|
4
4
|
*
|
|
@@ -128,7 +128,7 @@ export declare function useRadiusAxes(): {
|
|
|
128
128
|
* // Get a specific rotation axis by string ID
|
|
129
129
|
* const rotationAxis = useRotationAxis('categories');
|
|
130
130
|
*/
|
|
131
|
-
export declare function useRotationAxis(axisId?: AxisId):
|
|
131
|
+
export declare function useRotationAxis(axisId?: AxisId): ComputedAxis<ScaleName, any, ChartsRotationAxisProps> | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* Get a specific radius axis or the default radius axis for polar charts.
|
|
134
134
|
*
|
|
@@ -148,4 +148,4 @@ export declare function useRotationAxis(axisId?: AxisId): PolarAxisDefaultized<S
|
|
|
148
148
|
* // Get a specific radius axis by string ID
|
|
149
149
|
* const radiusAxis = useRadiusAxis('magnitude');
|
|
150
150
|
*/
|
|
151
|
-
export declare function useRadiusAxis(axisId?: AxisId):
|
|
151
|
+
export declare function useRadiusAxis(axisId?: AxisId): ComputedAxis<ScaleName, any, ChartsRadiusAxisProps> | undefined;
|
package/hooks/useAxisSystem.d.ts
CHANGED
package/hooks/useAxisSystem.js
CHANGED
|
@@ -9,7 +9,7 @@ var _useChartCartesianAxis = require("../internals/plugins/featurePlugins/useCha
|
|
|
9
9
|
var _useChartPolarAxis = require("../internals/plugins/featurePlugins/useChartPolarAxis");
|
|
10
10
|
var _useStore = require("../internals/store/useStore");
|
|
11
11
|
/**
|
|
12
|
-
* @
|
|
12
|
+
* @internal
|
|
13
13
|
*
|
|
14
14
|
* Get the coordinate system implemented.
|
|
15
15
|
* The hook assumes polar and cartesian are never implemented at the same time.
|
package/hooks/useAxisSystem.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { selectorChartRawRotationAxis } from "../internals/plugins/featurePlugin
|
|
|
5
5
|
import { useStore } from "../internals/store/useStore.mjs";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @
|
|
8
|
+
* @internal
|
|
9
9
|
*
|
|
10
10
|
* Get the coordinate system implemented.
|
|
11
11
|
* The hook assumes polar and cartesian are never implemented at the same time.
|
package/index.d.mts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./models/index.mjs";
|
|
|
7
7
|
export * from "./ChartsClipPath/index.mjs";
|
|
8
8
|
export * from "./ChartsReferenceLine/index.mjs";
|
|
9
9
|
export * from "./ChartsAxis/index.mjs";
|
|
10
|
+
export * from "./ChartsAxisHighlightValue/index.mjs";
|
|
10
11
|
export * from "./ChartsXAxis/index.mjs";
|
|
11
12
|
export * from "./ChartsYAxis/index.mjs";
|
|
12
13
|
export * from "./ChartsGrid/index.mjs";
|
|
@@ -29,6 +30,7 @@ export type { ChartsContainerProps, ChartsContainerSlots, ChartsContainerSlotPro
|
|
|
29
30
|
export * from "./ChartsDataProvider/index.mjs";
|
|
30
31
|
export * from "./ChartsRadialDataProvider/index.mjs";
|
|
31
32
|
export * from "./ChartsRadialGrid/index.mjs";
|
|
33
|
+
export * from "./ChartsRadialAxisHighlight/index.mjs";
|
|
32
34
|
export * from "./ChartsRadiusAxis/index.mjs";
|
|
33
35
|
export { type ChartsRotationAxisProps, Unstable_ChartsRotationAxis } from "./ChartsRotationAxis/index.mjs";
|
|
34
36
|
export * from "./Toolbar/index.mjs";
|
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./models/index.js";
|
|
|
7
7
|
export * from "./ChartsClipPath/index.js";
|
|
8
8
|
export * from "./ChartsReferenceLine/index.js";
|
|
9
9
|
export * from "./ChartsAxis/index.js";
|
|
10
|
+
export * from "./ChartsAxisHighlightValue/index.js";
|
|
10
11
|
export * from "./ChartsXAxis/index.js";
|
|
11
12
|
export * from "./ChartsYAxis/index.js";
|
|
12
13
|
export * from "./ChartsGrid/index.js";
|
|
@@ -29,6 +30,7 @@ export type { ChartsContainerProps, ChartsContainerSlots, ChartsContainerSlotPro
|
|
|
29
30
|
export * from "./ChartsDataProvider/index.js";
|
|
30
31
|
export * from "./ChartsRadialDataProvider/index.js";
|
|
31
32
|
export * from "./ChartsRadialGrid/index.js";
|
|
33
|
+
export * from "./ChartsRadialAxisHighlight/index.js";
|
|
32
34
|
export * from "./ChartsRadiusAxis/index.js";
|
|
33
35
|
export { type ChartsRotationAxisProps, Unstable_ChartsRotationAxis } from "./ChartsRotationAxis/index.js";
|
|
34
36
|
export * from "./Toolbar/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts v9.0
|
|
2
|
+
* @mui/x-charts v9.2.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -134,6 +134,18 @@ Object.keys(_ChartsAxis).forEach(function (key) {
|
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
|
+
var _ChartsAxisHighlightValue = require("./ChartsAxisHighlightValue");
|
|
138
|
+
Object.keys(_ChartsAxisHighlightValue).forEach(function (key) {
|
|
139
|
+
if (key === "default" || key === "__esModule") return;
|
|
140
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
141
|
+
if (key in exports && exports[key] === _ChartsAxisHighlightValue[key]) return;
|
|
142
|
+
Object.defineProperty(exports, key, {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () {
|
|
145
|
+
return _ChartsAxisHighlightValue[key];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
137
149
|
var _ChartsXAxis = require("./ChartsXAxis");
|
|
138
150
|
Object.keys(_ChartsXAxis).forEach(function (key) {
|
|
139
151
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -375,6 +387,18 @@ Object.keys(_ChartsRadialGrid).forEach(function (key) {
|
|
|
375
387
|
}
|
|
376
388
|
});
|
|
377
389
|
});
|
|
390
|
+
var _ChartsRadialAxisHighlight = require("./ChartsRadialAxisHighlight");
|
|
391
|
+
Object.keys(_ChartsRadialAxisHighlight).forEach(function (key) {
|
|
392
|
+
if (key === "default" || key === "__esModule") return;
|
|
393
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
394
|
+
if (key in exports && exports[key] === _ChartsRadialAxisHighlight[key]) return;
|
|
395
|
+
Object.defineProperty(exports, key, {
|
|
396
|
+
enumerable: true,
|
|
397
|
+
get: function () {
|
|
398
|
+
return _ChartsRadialAxisHighlight[key];
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
});
|
|
378
402
|
var _ChartsRadiusAxis = require("./ChartsRadiusAxis");
|
|
379
403
|
Object.keys(_ChartsRadiusAxis).forEach(function (key) {
|
|
380
404
|
if (key === "default" || key === "__esModule") return;
|
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts v9.0
|
|
2
|
+
* @mui/x-charts v9.2.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -14,6 +14,7 @@ export * from "./models/index.mjs";
|
|
|
14
14
|
export * from "./ChartsClipPath/index.mjs";
|
|
15
15
|
export * from "./ChartsReferenceLine/index.mjs";
|
|
16
16
|
export * from "./ChartsAxis/index.mjs";
|
|
17
|
+
export * from "./ChartsAxisHighlightValue/index.mjs";
|
|
17
18
|
export * from "./ChartsXAxis/index.mjs";
|
|
18
19
|
export * from "./ChartsYAxis/index.mjs";
|
|
19
20
|
export * from "./ChartsGrid/index.mjs";
|
|
@@ -35,6 +36,7 @@ export { ChartsContainer } from "./ChartsContainer/index.mjs";
|
|
|
35
36
|
export * from "./ChartsDataProvider/index.mjs";
|
|
36
37
|
export * from "./ChartsRadialDataProvider/index.mjs";
|
|
37
38
|
export * from "./ChartsRadialGrid/index.mjs";
|
|
39
|
+
export * from "./ChartsRadialAxisHighlight/index.mjs";
|
|
38
40
|
export * from "./ChartsRadiusAxis/index.mjs";
|
|
39
41
|
export { Unstable_ChartsRotationAxis } from "./ChartsRotationAxis/index.mjs";
|
|
40
42
|
export * from "./Toolbar/index.mjs";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the SVG path to display a ring (a donut shape) defined by an outer radius and an inner radius.
|
|
3
|
+
*
|
|
4
|
+
* @param center - The center of the ring.
|
|
5
|
+
* @param outerRadius - The outer radius of the ring.
|
|
6
|
+
* @param innerRadius - The inner radius of the ring.
|
|
7
|
+
* @param angles - The start and end angles of the ring in radians. If not provided, it defaults to a full circle.
|
|
8
|
+
* @returns The SVG path string to display the ring.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getRingPath(center: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}, outerRadius: number, innerRadius: number, angles?: {
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
} | undefined): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the SVG path to display a ring (a donut shape) defined by an outer radius and an inner radius.
|
|
3
|
+
*
|
|
4
|
+
* @param center - The center of the ring.
|
|
5
|
+
* @param outerRadius - The outer radius of the ring.
|
|
6
|
+
* @param innerRadius - The inner radius of the ring.
|
|
7
|
+
* @param angles - The start and end angles of the ring in radians. If not provided, it defaults to a full circle.
|
|
8
|
+
* @returns The SVG path string to display the ring.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getRingPath(center: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}, outerRadius: number, innerRadius: number, angles?: {
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
} | undefined): string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getRingPath = getRingPath;
|
|
7
|
+
/**
|
|
8
|
+
* Get the SVG path to display a ring (a donut shape) defined by an outer radius and an inner radius.
|
|
9
|
+
*
|
|
10
|
+
* @param center - The center of the ring.
|
|
11
|
+
* @param outerRadius - The outer radius of the ring.
|
|
12
|
+
* @param innerRadius - The inner radius of the ring.
|
|
13
|
+
* @param angles - The start and end angles of the ring in radians. If not provided, it defaults to a full circle.
|
|
14
|
+
* @returns The SVG path string to display the ring.
|
|
15
|
+
*/
|
|
16
|
+
function getRingPath(center, outerRadius, innerRadius, angles) {
|
|
17
|
+
if (!angles) {
|
|
18
|
+
return [`M ${center.x - outerRadius} ${center.y}`, `A ${outerRadius} ${outerRadius} 0 1 0 ${center.x + outerRadius} ${center.y}`, `A ${outerRadius} ${outerRadius} 0 1 0 ${center.x - outerRadius} ${center.y} Z`, `M ${center.x - innerRadius} ${center.y}`, `A ${innerRadius} ${innerRadius} 0 1 0 ${center.x + innerRadius} ${center.y}`, `A ${innerRadius} ${innerRadius} 0 1 0 ${center.x - innerRadius} ${center.y} Z`].join('');
|
|
19
|
+
}
|
|
20
|
+
const isLargeArc = Math.abs(angles.end - angles.start) > Math.PI;
|
|
21
|
+
const isDirectArc = angles.end > angles.start;
|
|
22
|
+
const startOuterPoint = {
|
|
23
|
+
x: center.x + outerRadius * Math.sin(angles.start),
|
|
24
|
+
y: center.y - outerRadius * Math.cos(angles.start)
|
|
25
|
+
};
|
|
26
|
+
const endOuterPoint = {
|
|
27
|
+
x: center.x + outerRadius * Math.sin(angles.end),
|
|
28
|
+
y: center.y - outerRadius * Math.cos(angles.end)
|
|
29
|
+
};
|
|
30
|
+
const startInnerPoint = {
|
|
31
|
+
x: center.x + innerRadius * Math.sin(angles.start),
|
|
32
|
+
y: center.y - innerRadius * Math.cos(angles.start)
|
|
33
|
+
};
|
|
34
|
+
const endInnerPoint = {
|
|
35
|
+
x: center.x + innerRadius * Math.sin(angles.end),
|
|
36
|
+
y: center.y - innerRadius * Math.cos(angles.end)
|
|
37
|
+
};
|
|
38
|
+
return [`M ${startOuterPoint.x} ${startOuterPoint.y}`, `A ${outerRadius} ${outerRadius} 0 ${isLargeArc ? 1 : 0} ${isDirectArc ? 1 : 0} ${endOuterPoint.x} ${endOuterPoint.y}`, `L ${endInnerPoint.x} ${endInnerPoint.y}`, `A ${innerRadius} ${innerRadius} 0 ${isLargeArc ? 1 : 0} ${!isDirectArc ? 1 : 0} ${startInnerPoint.x} ${startInnerPoint.y} Z`].join('');
|
|
39
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the SVG path to display a ring (a donut shape) defined by an outer radius and an inner radius.
|
|
3
|
+
*
|
|
4
|
+
* @param center - The center of the ring.
|
|
5
|
+
* @param outerRadius - The outer radius of the ring.
|
|
6
|
+
* @param innerRadius - The inner radius of the ring.
|
|
7
|
+
* @param angles - The start and end angles of the ring in radians. If not provided, it defaults to a full circle.
|
|
8
|
+
* @returns The SVG path string to display the ring.
|
|
9
|
+
*/
|
|
10
|
+
export function getRingPath(center, outerRadius, innerRadius, angles) {
|
|
11
|
+
if (!angles) {
|
|
12
|
+
return [`M ${center.x - outerRadius} ${center.y}`, `A ${outerRadius} ${outerRadius} 0 1 0 ${center.x + outerRadius} ${center.y}`, `A ${outerRadius} ${outerRadius} 0 1 0 ${center.x - outerRadius} ${center.y} Z`, `M ${center.x - innerRadius} ${center.y}`, `A ${innerRadius} ${innerRadius} 0 1 0 ${center.x + innerRadius} ${center.y}`, `A ${innerRadius} ${innerRadius} 0 1 0 ${center.x - innerRadius} ${center.y} Z`].join('');
|
|
13
|
+
}
|
|
14
|
+
const isLargeArc = Math.abs(angles.end - angles.start) > Math.PI;
|
|
15
|
+
const isDirectArc = angles.end > angles.start;
|
|
16
|
+
const startOuterPoint = {
|
|
17
|
+
x: center.x + outerRadius * Math.sin(angles.start),
|
|
18
|
+
y: center.y - outerRadius * Math.cos(angles.start)
|
|
19
|
+
};
|
|
20
|
+
const endOuterPoint = {
|
|
21
|
+
x: center.x + outerRadius * Math.sin(angles.end),
|
|
22
|
+
y: center.y - outerRadius * Math.cos(angles.end)
|
|
23
|
+
};
|
|
24
|
+
const startInnerPoint = {
|
|
25
|
+
x: center.x + innerRadius * Math.sin(angles.start),
|
|
26
|
+
y: center.y - innerRadius * Math.cos(angles.start)
|
|
27
|
+
};
|
|
28
|
+
const endInnerPoint = {
|
|
29
|
+
x: center.x + innerRadius * Math.sin(angles.end),
|
|
30
|
+
y: center.y - innerRadius * Math.cos(angles.end)
|
|
31
|
+
};
|
|
32
|
+
return [`M ${startOuterPoint.x} ${startOuterPoint.y}`, `A ${outerRadius} ${outerRadius} 0 ${isLargeArc ? 1 : 0} ${isDirectArc ? 1 : 0} ${endOuterPoint.x} ${endOuterPoint.y}`, `L ${endInnerPoint.x} ${endInnerPoint.y}`, `A ${innerRadius} ${innerRadius} 0 ${isLargeArc ? 1 : 0} ${!isDirectArc ? 1 : 0} ${startInnerPoint.x} ${startInnerPoint.y} Z`].join('');
|
|
33
|
+
}
|
package/internals/index.d.mts
CHANGED
|
@@ -13,7 +13,8 @@ export { useLineChartProps } from "../LineChart/useLineChartProps.mjs";
|
|
|
13
13
|
export { useAreaPlotData } from "../LineChart/useAreaPlotData.mjs";
|
|
14
14
|
export { useLinePlotData } from "../LineChart/useLinePlotData.mjs";
|
|
15
15
|
export * from "../BarChart/useBarChartProps.mjs";
|
|
16
|
-
export { processBarDataForPlot } from "../BarChart/useBarPlotData.mjs";
|
|
16
|
+
export { processBarDataForPlot, useBarPlotData } from "../BarChart/useBarPlotData.mjs";
|
|
17
|
+
export type { BorderRadiusSide, MaskData, ProcessedBarData, ProcessedBarSeriesData } from "../BarChart/types.mjs";
|
|
17
18
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.mjs";
|
|
18
19
|
export * from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
19
20
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.mjs";
|
|
@@ -40,6 +41,7 @@ export * from "./plugins/featurePlugins/useChartItemClick/index.mjs";
|
|
|
40
41
|
export * from "./plugins/utils/selectors.mjs";
|
|
41
42
|
export { getAxisTriggerTooltip as getCartesianAxisTriggerTooltip } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.mjs";
|
|
42
43
|
export { getAxisIndex as getCartesianAxisIndex } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisValue.mjs";
|
|
44
|
+
export { getRotationAxisIndex } from "./plugins/featurePlugins/useChartPolarAxis/getAxisIndex.mjs";
|
|
43
45
|
export * from "./store/useCharts.mjs";
|
|
44
46
|
export * from "./store/useStore.mjs";
|
|
45
47
|
export * from "../BarChart/BarChart.plugins.mjs";
|
|
@@ -48,11 +50,14 @@ export * from "../ScatterChart/ScatterChart.plugins.mjs";
|
|
|
48
50
|
export * from "../RadarChart/RadarChart.plugins.mjs";
|
|
49
51
|
export * from "../PieChart/PieChart.plugins.mjs";
|
|
50
52
|
export * from "./configInit.mjs";
|
|
53
|
+
export * from "./clampAngle.mjs";
|
|
51
54
|
export * from "./getLabel.mjs";
|
|
52
55
|
export * from "./legendUtils.mjs";
|
|
53
56
|
export * from "./getChartPoint.mjs";
|
|
57
|
+
export * from "./plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.mjs";
|
|
54
58
|
export * from "./isDefined.mjs";
|
|
55
59
|
export * from "./getScale.mjs";
|
|
60
|
+
export * from "./getAsNumber.mjs";
|
|
56
61
|
export * from "./stacking/index.mjs";
|
|
57
62
|
export * from "./getCurve.mjs";
|
|
58
63
|
export * from "./getSymbol.mjs";
|
|
@@ -71,6 +76,7 @@ export { getSeriesColorFn } from "./getSeriesColorFn.mjs";
|
|
|
71
76
|
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.mjs";
|
|
72
77
|
export { getBandSize } from "./getBandSize.mjs";
|
|
73
78
|
export * from "./plugins/utils/defaultSeriesConfig.mjs";
|
|
79
|
+
export { EPSILON } from "../utils/epsilon.mjs";
|
|
74
80
|
export { useUtilityClasses as useChartsTooltipUtilityClasses, getChartsTooltipUtilityClass } from "../ChartsTooltip/chartsTooltipClasses.mjs";
|
|
75
81
|
export { getAxisExtrema } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.mjs";
|
|
76
82
|
export * from "../context/ChartsProvider/index.mjs";
|
|
@@ -89,4 +95,5 @@ export * from "./constants.mjs";
|
|
|
89
95
|
export * from "./scales/index.mjs";
|
|
90
96
|
export * from "./identifierSerializer.mjs";
|
|
91
97
|
export * from "./identifierCleaner.mjs";
|
|
98
|
+
export { evaluateCurveAtAngle } from "../LineChart/seriesConfig/curveEvaluation.mjs";
|
|
92
99
|
export { default as getLineItemAtPosition } from "../LineChart/seriesConfig/getItemAtPosition.mjs";
|
package/internals/index.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ export { useLineChartProps } from "../LineChart/useLineChartProps.js";
|
|
|
13
13
|
export { useAreaPlotData } from "../LineChart/useAreaPlotData.js";
|
|
14
14
|
export { useLinePlotData } from "../LineChart/useLinePlotData.js";
|
|
15
15
|
export * from "../BarChart/useBarChartProps.js";
|
|
16
|
-
export { processBarDataForPlot } from "../BarChart/useBarPlotData.js";
|
|
16
|
+
export { processBarDataForPlot, useBarPlotData } from "../BarChart/useBarPlotData.js";
|
|
17
|
+
export type { BorderRadiusSide, MaskData, ProcessedBarData, ProcessedBarSeriesData } from "../BarChart/types.js";
|
|
17
18
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.js";
|
|
18
19
|
export * from "../ChartsContainer/useChartsContainerProps.js";
|
|
19
20
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.js";
|
|
@@ -40,6 +41,7 @@ export * from "./plugins/featurePlugins/useChartItemClick/index.js";
|
|
|
40
41
|
export * from "./plugins/utils/selectors.js";
|
|
41
42
|
export { getAxisTriggerTooltip as getCartesianAxisTriggerTooltip } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.js";
|
|
42
43
|
export { getAxisIndex as getCartesianAxisIndex } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js";
|
|
44
|
+
export { getRotationAxisIndex } from "./plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js";
|
|
43
45
|
export * from "./store/useCharts.js";
|
|
44
46
|
export * from "./store/useStore.js";
|
|
45
47
|
export * from "../BarChart/BarChart.plugins.js";
|
|
@@ -48,11 +50,14 @@ export * from "../ScatterChart/ScatterChart.plugins.js";
|
|
|
48
50
|
export * from "../RadarChart/RadarChart.plugins.js";
|
|
49
51
|
export * from "../PieChart/PieChart.plugins.js";
|
|
50
52
|
export * from "./configInit.js";
|
|
53
|
+
export * from "./clampAngle.js";
|
|
51
54
|
export * from "./getLabel.js";
|
|
52
55
|
export * from "./legendUtils.js";
|
|
53
56
|
export * from "./getChartPoint.js";
|
|
57
|
+
export * from "./plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.js";
|
|
54
58
|
export * from "./isDefined.js";
|
|
55
59
|
export * from "./getScale.js";
|
|
60
|
+
export * from "./getAsNumber.js";
|
|
56
61
|
export * from "./stacking/index.js";
|
|
57
62
|
export * from "./getCurve.js";
|
|
58
63
|
export * from "./getSymbol.js";
|
|
@@ -71,6 +76,7 @@ export { getSeriesColorFn } from "./getSeriesColorFn.js";
|
|
|
71
76
|
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.js";
|
|
72
77
|
export { getBandSize } from "./getBandSize.js";
|
|
73
78
|
export * from "./plugins/utils/defaultSeriesConfig.js";
|
|
79
|
+
export { EPSILON } from "../utils/epsilon.js";
|
|
74
80
|
export { useUtilityClasses as useChartsTooltipUtilityClasses, getChartsTooltipUtilityClass } from "../ChartsTooltip/chartsTooltipClasses.js";
|
|
75
81
|
export { getAxisExtrema } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.js";
|
|
76
82
|
export * from "../context/ChartsProvider/index.js";
|
|
@@ -89,4 +95,5 @@ export * from "./constants.js";
|
|
|
89
95
|
export * from "./scales/index.js";
|
|
90
96
|
export * from "./identifierSerializer.js";
|
|
91
97
|
export * from "./identifierCleaner.js";
|
|
98
|
+
export { evaluateCurveAtAngle } from "../LineChart/seriesConfig/curveEvaluation.js";
|
|
92
99
|
export { default as getLineItemAtPosition } from "../LineChart/seriesConfig/getItemAtPosition.js";
|
package/internals/index.js
CHANGED
|
@@ -15,20 +15,30 @@ var _exportNames = {
|
|
|
15
15
|
useAreaPlotData: true,
|
|
16
16
|
useLinePlotData: true,
|
|
17
17
|
processBarDataForPlot: true,
|
|
18
|
+
useBarPlotData: true,
|
|
18
19
|
useRadarChartProps: true,
|
|
19
20
|
useSkipAnimation: true,
|
|
20
21
|
useRegisterPointerInteractions: true,
|
|
21
22
|
getCartesianAxisTriggerTooltip: true,
|
|
22
23
|
getCartesianAxisIndex: true,
|
|
24
|
+
getRotationAxisIndex: true,
|
|
23
25
|
createCommonKeyboardFocusHandler: true,
|
|
24
26
|
getSeriesColorFn: true,
|
|
25
27
|
checkBarChartScaleErrors: true,
|
|
26
28
|
getBandSize: true,
|
|
29
|
+
EPSILON: true,
|
|
27
30
|
useChartsTooltipUtilityClasses: true,
|
|
28
31
|
getChartsTooltipUtilityClass: true,
|
|
29
32
|
getAxisExtrema: true,
|
|
33
|
+
evaluateCurveAtAngle: true,
|
|
30
34
|
getLineItemAtPosition: true
|
|
31
35
|
};
|
|
36
|
+
Object.defineProperty(exports, "EPSILON", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _epsilon.EPSILON;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
32
42
|
Object.defineProperty(exports, "checkBarChartScaleErrors", {
|
|
33
43
|
enumerable: true,
|
|
34
44
|
get: function () {
|
|
@@ -41,6 +51,12 @@ Object.defineProperty(exports, "createCommonKeyboardFocusHandler", {
|
|
|
41
51
|
return _createCommonKeyboardFocusHandler.createCommonKeyboardFocusHandler;
|
|
42
52
|
}
|
|
43
53
|
});
|
|
54
|
+
Object.defineProperty(exports, "evaluateCurveAtAngle", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _curveEvaluation.evaluateCurveAtAngle;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
44
60
|
Object.defineProperty(exports, "getAxisExtrema", {
|
|
45
61
|
enumerable: true,
|
|
46
62
|
get: function () {
|
|
@@ -77,6 +93,12 @@ Object.defineProperty(exports, "getLineItemAtPosition", {
|
|
|
77
93
|
return _getItemAtPosition.default;
|
|
78
94
|
}
|
|
79
95
|
});
|
|
96
|
+
Object.defineProperty(exports, "getRotationAxisIndex", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _getAxisIndex.getRotationAxisIndex;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
80
102
|
Object.defineProperty(exports, "getSeriesColorFn", {
|
|
81
103
|
enumerable: true,
|
|
82
104
|
get: function () {
|
|
@@ -101,6 +123,12 @@ Object.defineProperty(exports, "useAreaPlotData", {
|
|
|
101
123
|
return _useAreaPlotData.useAreaPlotData;
|
|
102
124
|
}
|
|
103
125
|
});
|
|
126
|
+
Object.defineProperty(exports, "useBarPlotData", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _useBarPlotData.useBarPlotData;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
104
132
|
Object.defineProperty(exports, "useChartsTooltipUtilityClasses", {
|
|
105
133
|
enumerable: true,
|
|
106
134
|
get: function () {
|
|
@@ -506,6 +534,7 @@ Object.keys(_selectors).forEach(function (key) {
|
|
|
506
534
|
});
|
|
507
535
|
var _getAxisTriggerTooltip = require("./plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip");
|
|
508
536
|
var _getAxisValue = require("./plugins/featurePlugins/useChartCartesianAxis/getAxisValue");
|
|
537
|
+
var _getAxisIndex = require("./plugins/featurePlugins/useChartPolarAxis/getAxisIndex");
|
|
509
538
|
var _useCharts = require("./store/useCharts");
|
|
510
539
|
Object.keys(_useCharts).forEach(function (key) {
|
|
511
540
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -602,6 +631,18 @@ Object.keys(_configInit).forEach(function (key) {
|
|
|
602
631
|
}
|
|
603
632
|
});
|
|
604
633
|
});
|
|
634
|
+
var _clampAngle = require("./clampAngle");
|
|
635
|
+
Object.keys(_clampAngle).forEach(function (key) {
|
|
636
|
+
if (key === "default" || key === "__esModule") return;
|
|
637
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
638
|
+
if (key in exports && exports[key] === _clampAngle[key]) return;
|
|
639
|
+
Object.defineProperty(exports, key, {
|
|
640
|
+
enumerable: true,
|
|
641
|
+
get: function () {
|
|
642
|
+
return _clampAngle[key];
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
});
|
|
605
646
|
var _getLabel = require("./getLabel");
|
|
606
647
|
Object.keys(_getLabel).forEach(function (key) {
|
|
607
648
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -638,6 +679,18 @@ Object.keys(_getChartPoint).forEach(function (key) {
|
|
|
638
679
|
}
|
|
639
680
|
});
|
|
640
681
|
});
|
|
682
|
+
var _coordinateTransformation = require("./plugins/featurePlugins/useChartPolarAxis/coordinateTransformation");
|
|
683
|
+
Object.keys(_coordinateTransformation).forEach(function (key) {
|
|
684
|
+
if (key === "default" || key === "__esModule") return;
|
|
685
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
686
|
+
if (key in exports && exports[key] === _coordinateTransformation[key]) return;
|
|
687
|
+
Object.defineProperty(exports, key, {
|
|
688
|
+
enumerable: true,
|
|
689
|
+
get: function () {
|
|
690
|
+
return _coordinateTransformation[key];
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
});
|
|
641
694
|
var _isDefined = require("./isDefined");
|
|
642
695
|
Object.keys(_isDefined).forEach(function (key) {
|
|
643
696
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -662,6 +715,18 @@ Object.keys(_getScale).forEach(function (key) {
|
|
|
662
715
|
}
|
|
663
716
|
});
|
|
664
717
|
});
|
|
718
|
+
var _getAsNumber = require("./getAsNumber");
|
|
719
|
+
Object.keys(_getAsNumber).forEach(function (key) {
|
|
720
|
+
if (key === "default" || key === "__esModule") return;
|
|
721
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
722
|
+
if (key in exports && exports[key] === _getAsNumber[key]) return;
|
|
723
|
+
Object.defineProperty(exports, key, {
|
|
724
|
+
enumerable: true,
|
|
725
|
+
get: function () {
|
|
726
|
+
return _getAsNumber[key];
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
});
|
|
665
730
|
var _stacking = require("./stacking");
|
|
666
731
|
Object.keys(_stacking).forEach(function (key) {
|
|
667
732
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -834,6 +899,7 @@ Object.keys(_defaultSeriesConfig).forEach(function (key) {
|
|
|
834
899
|
}
|
|
835
900
|
});
|
|
836
901
|
});
|
|
902
|
+
var _epsilon = require("../utils/epsilon");
|
|
837
903
|
var _chartsTooltipClasses = require("../ChartsTooltip/chartsTooltipClasses");
|
|
838
904
|
var _getAxisExtrema = require("./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema");
|
|
839
905
|
var _ChartsProvider = require("../context/ChartsProvider");
|
|
@@ -1028,4 +1094,5 @@ Object.keys(_identifierCleaner).forEach(function (key) {
|
|
|
1028
1094
|
}
|
|
1029
1095
|
});
|
|
1030
1096
|
});
|
|
1097
|
+
var _curveEvaluation = require("../LineChart/seriesConfig/curveEvaluation");
|
|
1031
1098
|
var _getItemAtPosition = _interopRequireDefault(require("../LineChart/seriesConfig/getItemAtPosition"));
|
package/internals/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ export { useLineChartProps } from "../LineChart/useLineChartProps.mjs";
|
|
|
16
16
|
export { useAreaPlotData } from "../LineChart/useAreaPlotData.mjs";
|
|
17
17
|
export { useLinePlotData } from "../LineChart/useLinePlotData.mjs";
|
|
18
18
|
export * from "../BarChart/useBarChartProps.mjs";
|
|
19
|
-
export { processBarDataForPlot } from "../BarChart/useBarPlotData.mjs";
|
|
19
|
+
export { processBarDataForPlot, useBarPlotData } from "../BarChart/useBarPlotData.mjs";
|
|
20
20
|
export { useRadarChartProps } from "../RadarChart/useRadarChartProps.mjs";
|
|
21
21
|
export * from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
22
22
|
export * from "../ChartsDataProvider/useChartsDataProviderProps.mjs";
|
|
@@ -45,6 +45,7 @@ export * from "./plugins/featurePlugins/useChartItemClick/index.mjs";
|
|
|
45
45
|
export * from "./plugins/utils/selectors.mjs";
|
|
46
46
|
export { getAxisTriggerTooltip as getCartesianAxisTriggerTooltip } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.mjs";
|
|
47
47
|
export { getAxisIndex as getCartesianAxisIndex } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisValue.mjs";
|
|
48
|
+
export { getRotationAxisIndex } from "./plugins/featurePlugins/useChartPolarAxis/getAxisIndex.mjs";
|
|
48
49
|
export * from "./store/useCharts.mjs";
|
|
49
50
|
export * from "./store/useStore.mjs";
|
|
50
51
|
|
|
@@ -57,11 +58,14 @@ export * from "../PieChart/PieChart.plugins.mjs";
|
|
|
57
58
|
|
|
58
59
|
// utils
|
|
59
60
|
export * from "./configInit.mjs";
|
|
61
|
+
export * from "./clampAngle.mjs";
|
|
60
62
|
export * from "./getLabel.mjs";
|
|
61
63
|
export * from "./legendUtils.mjs";
|
|
62
64
|
export * from "./getChartPoint.mjs";
|
|
65
|
+
export * from "./plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.mjs";
|
|
63
66
|
export * from "./isDefined.mjs";
|
|
64
67
|
export * from "./getScale.mjs";
|
|
68
|
+
export * from "./getAsNumber.mjs";
|
|
65
69
|
export * from "./stacking/index.mjs";
|
|
66
70
|
export * from "./getCurve.mjs";
|
|
67
71
|
export * from "./getSymbol.mjs";
|
|
@@ -80,6 +84,7 @@ export { getSeriesColorFn } from "./getSeriesColorFn.mjs";
|
|
|
80
84
|
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.mjs";
|
|
81
85
|
export { getBandSize } from "./getBandSize.mjs";
|
|
82
86
|
export * from "./plugins/utils/defaultSeriesConfig.mjs";
|
|
87
|
+
export { EPSILON } from "../utils/epsilon.mjs";
|
|
83
88
|
export { useUtilityClasses as useChartsTooltipUtilityClasses, getChartsTooltipUtilityClass } from "../ChartsTooltip/chartsTooltipClasses.mjs";
|
|
84
89
|
|
|
85
90
|
// contexts
|
|
@@ -102,4 +107,5 @@ export * from "./constants.mjs";
|
|
|
102
107
|
export * from "./scales/index.mjs";
|
|
103
108
|
export * from "./identifierSerializer.mjs";
|
|
104
109
|
export * from "./identifierCleaner.mjs";
|
|
110
|
+
export { evaluateCurveAtAngle } from "../LineChart/seriesConfig/curveEvaluation.mjs";
|
|
105
111
|
export { default as getLineItemAtPosition } from "../LineChart/seriesConfig/getItemAtPosition.mjs";
|
package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js
CHANGED
|
@@ -52,10 +52,12 @@ const useChartInteractionListener = ({
|
|
|
52
52
|
}), new _core.TurnWheelGesture({
|
|
53
53
|
name: 'zoomTurnWheel',
|
|
54
54
|
sensitivity: 0.01,
|
|
55
|
-
initialDelta: 1
|
|
55
|
+
initialDelta: 1,
|
|
56
|
+
passive: false
|
|
56
57
|
}), new _core.TurnWheelGesture({
|
|
57
58
|
name: 'panTurnWheel',
|
|
58
|
-
sensitivity: 0.5
|
|
59
|
+
sensitivity: 0.5,
|
|
60
|
+
passive: false
|
|
59
61
|
}), new _core.TapAndDragGesture({
|
|
60
62
|
name: 'zoomTapAndDrag',
|
|
61
63
|
dragThreshold: 10
|
package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs
CHANGED
|
@@ -46,10 +46,12 @@ export const useChartInteractionListener = ({
|
|
|
46
46
|
}), new TurnWheelGesture({
|
|
47
47
|
name: 'zoomTurnWheel',
|
|
48
48
|
sensitivity: 0.01,
|
|
49
|
-
initialDelta: 1
|
|
49
|
+
initialDelta: 1,
|
|
50
|
+
passive: false
|
|
50
51
|
}), new TurnWheelGesture({
|
|
51
52
|
name: 'panTurnWheel',
|
|
52
|
-
sensitivity: 0.5
|
|
53
|
+
sensitivity: 0.5,
|
|
54
|
+
passive: false
|
|
53
55
|
}), new TapAndDragGesture({
|
|
54
56
|
name: 'zoomTapAndDrag',
|
|
55
57
|
dragThreshold: 10
|
package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { PolarChartSeriesType, ChartSeriesDefaultized } from "../../../../../models/seriesType/config.mjs";
|
|
2
|
-
import type {
|
|
2
|
+
import type { PolarAxisConfig } from "../../../../../models/axis.mjs";
|
|
3
3
|
import type { SeriesId } from "../../../../../models/seriesType/common.mjs";
|
|
4
4
|
type PolarExtremumGetterParams<SeriesType extends PolarChartSeriesType> = {
|
|
5
5
|
series: Record<SeriesId, ChartSeriesDefaultized<SeriesType>>;
|
|
6
|
-
axis:
|
|
6
|
+
axis: PolarAxisConfig;
|
|
7
7
|
axisIndex: number;
|
|
8
8
|
isDefaultAxis: boolean;
|
|
9
9
|
};
|
package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { PolarChartSeriesType, ChartSeriesDefaultized } from "../../../../../models/seriesType/config.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { PolarAxisConfig } from "../../../../../models/axis.js";
|
|
3
3
|
import type { SeriesId } from "../../../../../models/seriesType/common.js";
|
|
4
4
|
type PolarExtremumGetterParams<SeriesType extends PolarChartSeriesType> = {
|
|
5
5
|
series: Record<SeriesId, ChartSeriesDefaultized<SeriesType>>;
|
|
6
|
-
axis:
|
|
6
|
+
axis: PolarAxisConfig;
|
|
7
7
|
axisIndex: number;
|
|
8
8
|
isDefaultAxis: boolean;
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AxisConfig, ScaleName } from "../../../../models/index.mjs";
|
|
2
|
+
import type { AxisId, ChartsCartesianAxisProps } from "../../../../models/axis.mjs";
|
|
3
3
|
import { type DefaultizedZoomOptions } from "./useChartCartesianAxis.types.mjs";
|
|
4
|
-
export declare const createZoomLookup: (axisDirection: "x" | "y") => (axes?: AxisConfig<ScaleName, any,
|
|
4
|
+
export declare const createZoomLookup: (axisDirection: "x" | "y") => (axes?: AxisConfig<ScaleName, any, ChartsCartesianAxisProps>[]) => Record<AxisId, DefaultizedZoomOptions>;
|