@mui/x-charts 8.14.1 → 8.15.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.js +8 -0
- package/BarChart/BarChart.plugins.d.ts +2 -1
- package/BarChart/BarChart.plugins.js +2 -1
- package/BarChart/useBarChartProps.js +4 -2
- package/CHANGELOG.md +107 -0
- package/ChartContainer/ChartContainer.js +8 -0
- package/ChartContainer/useChartContainerProps.js +4 -2
- package/ChartsBrushOverlay/ChartsBrushOverlay.classes.d.ts +12 -0
- package/ChartsBrushOverlay/ChartsBrushOverlay.classes.js +9 -0
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -0
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +102 -0
- package/ChartsBrushOverlay/index.d.ts +4 -0
- package/ChartsBrushOverlay/index.js +19 -0
- package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.js +13 -8
- package/ChartsReferenceLine/ChartsYReferenceLine.js +13 -8
- package/ChartsReferenceLine/common.d.ts +3 -1
- package/ChartsReferenceLine/common.js +3 -1
- package/ChartsTooltip/ChartsTooltipContainer.js +20 -2
- package/ChartsXAxis/getVisibleLabels.js +45 -25
- package/LineChart/LineChart.js +8 -0
- package/LineChart/LineChart.plugins.d.ts +2 -1
- package/LineChart/LineChart.plugins.js +2 -1
- package/LineChart/useLineChartProps.js +4 -2
- package/ScatterChart/ScatterChart.js +8 -0
- package/ScatterChart/ScatterChart.plugins.d.ts +2 -1
- package/ScatterChart/ScatterChart.plugins.js +2 -1
- package/ScatterChart/useScatterChartProps.js +5 -3
- package/SparkLineChart/SparkLineChart.js +8 -0
- package/esm/BarChart/BarChart.js +8 -0
- package/esm/BarChart/BarChart.plugins.d.ts +2 -1
- package/esm/BarChart/BarChart.plugins.js +2 -1
- package/esm/BarChart/useBarChartProps.js +4 -2
- package/esm/ChartContainer/ChartContainer.js +8 -0
- package/esm/ChartContainer/useChartContainerProps.js +4 -2
- package/esm/ChartsBrushOverlay/ChartsBrushOverlay.classes.d.ts +12 -0
- package/esm/ChartsBrushOverlay/ChartsBrushOverlay.classes.js +2 -0
- package/esm/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -0
- package/esm/ChartsBrushOverlay/ChartsBrushOverlay.js +95 -0
- package/esm/ChartsBrushOverlay/index.d.ts +4 -0
- package/esm/ChartsBrushOverlay/index.js +2 -0
- package/esm/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +14 -9
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +14 -9
- package/esm/ChartsReferenceLine/common.d.ts +3 -1
- package/esm/ChartsReferenceLine/common.js +2 -0
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +20 -2
- package/esm/ChartsXAxis/getVisibleLabels.js +45 -25
- package/esm/LineChart/LineChart.js +8 -0
- package/esm/LineChart/LineChart.plugins.d.ts +2 -1
- package/esm/LineChart/LineChart.plugins.js +2 -1
- package/esm/LineChart/useLineChartProps.js +4 -2
- package/esm/ScatterChart/ScatterChart.js +8 -0
- package/esm/ScatterChart/ScatterChart.plugins.d.ts +2 -1
- package/esm/ScatterChart/ScatterChart.plugins.js +2 -1
- package/esm/ScatterChart/useScatterChartProps.js +5 -3
- package/esm/SparkLineChart/SparkLineChart.js +8 -0
- package/esm/hooks/index.d.ts +2 -1
- package/esm/hooks/index.js +2 -1
- package/esm/hooks/useBrush.d.ts +18 -0
- package/esm/hooks/useBrush.js +16 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/internals/domUtils.d.ts +9 -4
- package/esm/internals/domUtils.js +115 -52
- package/esm/internals/index.d.ts +1 -0
- package/esm/internals/index.js +1 -0
- package/esm/internals/plugins/allPlugins.d.ts +4 -3
- package/esm/internals/plugins/allPlugins.js +2 -1
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +16 -10
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartBrush/index.d.ts +3 -0
- package/esm/internals/plugins/featurePlugins/useChartBrush/index.js +3 -0
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.d.ts +3 -0
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +109 -0
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +82 -0
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +75 -0
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.types.d.ts +72 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.js +3 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +2 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +8 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +3 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +13 -6
- package/esm/internals/plugins/utils/selectors.d.ts +1 -1
- package/esm/locales/elGR.js +97 -99
- package/esm/tests/constants.js +1 -0
- package/hooks/index.d.ts +2 -1
- package/hooks/index.js +12 -0
- package/hooks/useBrush.d.ts +18 -0
- package/hooks/useBrush.js +21 -0
- package/index.d.ts +2 -1
- package/index.js +13 -1
- package/internals/domUtils.d.ts +9 -4
- package/internals/domUtils.js +119 -54
- package/internals/index.d.ts +1 -0
- package/internals/index.js +12 -0
- package/internals/plugins/allPlugins.d.ts +4 -3
- package/internals/plugins/allPlugins.js +2 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +16 -10
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartBrush/index.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartBrush/index.js +38 -0
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +117 -0
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +82 -0
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +82 -0
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.types.d.ts +72 -0
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.types.js +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.js +3 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +2 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +8 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +13 -6
- package/internals/plugins/utils/selectors.d.ts +1 -1
- package/locales/elGR.js +97 -99
- package/package.json +3 -3
- package/tests/constants.js +7 -0
- package/esm/internals/Flatbush.bench.js +0 -42
- package/internals/Flatbush.bench.d.ts +0 -1
- package/internals/Flatbush.bench.js +0 -44
- /package/esm/internals/{Flatbush.bench.d.ts → plugins/featurePlugins/useChartBrush/useChartBrush.types.js} +0 -0
package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { UseChartSeriesSignature } from "../../corePlugins/useChartSeries/i
|
|
|
5
5
|
import type { ZoomData, ZoomOptions, ZoomSliderShowTooltip } from "./zoom.types.js";
|
|
6
6
|
import type { UseChartInteractionSignature } from "../useChartInteraction/index.js";
|
|
7
7
|
import type { ChartsAxisProps } from "../../../../ChartsAxis/index.js";
|
|
8
|
+
import type { UseChartBrushSignature } from "../useChartBrush/index.js";
|
|
8
9
|
/**
|
|
9
10
|
* The axes' configuration after computing.
|
|
10
11
|
* An axis in this state already contains a scale function and all the necessary properties to be rendered.
|
|
@@ -67,6 +68,7 @@ export interface DefaultizedZoomOptions extends Required<Omit<ZoomOptions, 'slid
|
|
|
67
68
|
axisId: AxisId;
|
|
68
69
|
axisDirection: 'x' | 'y';
|
|
69
70
|
slider: DefaultedZoomSliderOptions;
|
|
71
|
+
reverse: boolean;
|
|
70
72
|
}
|
|
71
73
|
export interface UseChartCartesianAxisState {
|
|
72
74
|
/**
|
|
@@ -94,5 +96,5 @@ export type UseChartCartesianAxisSignature<SeriesType extends ChartSeriesType =
|
|
|
94
96
|
defaultizedParams: UseChartCartesianAxisDefaultizedParameters;
|
|
95
97
|
state: UseChartCartesianAxisState;
|
|
96
98
|
dependencies: [UseChartSeriesSignature<SeriesType>];
|
|
97
|
-
optionalDependencies: [UseChartInteractionSignature];
|
|
99
|
+
optionalDependencies: [UseChartInteractionSignature, UseChartBrushSignature];
|
|
98
100
|
}>;
|
|
@@ -3,17 +3,17 @@ export declare const selectorChartsHighlightXAxisIndex: import("reselect").Selec
|
|
|
3
3
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
4
4
|
} & {
|
|
5
5
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
6
|
-
} & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}>, AxisItemIdentifier[], [id?: import("../../../index.js").AxisId | undefined]>;
|
|
6
|
+
} & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}> & Partial<import("../useChartBrush/index.js").UseChartBrushState>, AxisItemIdentifier[], [id?: import("../../../index.js").AxisId | undefined]>;
|
|
7
7
|
export declare const selectorChartsHighlightYAxisIndex: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & 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("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
|
|
8
8
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
9
9
|
} & {
|
|
10
10
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
11
|
-
} & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}>, AxisItemIdentifier[], [id?: import("../../../index.js").AxisId | undefined]>;
|
|
11
|
+
} & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}> & Partial<import("../useChartBrush/index.js").UseChartBrushState>, AxisItemIdentifier[], [id?: import("../../../index.js").AxisId | undefined]>;
|
|
12
12
|
export declare const selectorChartsHighlightXAxisValue: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & 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("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
|
|
13
13
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
14
14
|
} & {
|
|
15
15
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
16
|
-
} & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}> & Partial<import("../useChartKeyboardNavigation/useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState>, {
|
|
16
|
+
} & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}> & Partial<import("../useChartKeyboardNavigation/useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & Partial<import("../useChartBrush/index.js").UseChartBrushState>, {
|
|
17
17
|
value: any;
|
|
18
18
|
axisId: import("../../../index.js").AxisId;
|
|
19
19
|
dataIndex: number;
|
|
@@ -26,7 +26,7 @@ export declare const selectorChartsHighlightYAxisValue: import("reselect").Selec
|
|
|
26
26
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
27
27
|
} & {
|
|
28
28
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
29
|
-
} & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}> & Partial<import("../useChartKeyboardNavigation/useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState>, {
|
|
29
|
+
} & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}> & Partial<import("../useChartKeyboardNavigation/useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & Partial<import("../useChartBrush/index.js").UseChartBrushState>, {
|
|
30
30
|
value: any;
|
|
31
31
|
axisId: import("../../../index.js").AxisId;
|
|
32
32
|
dataIndex: number;
|
|
@@ -11,8 +11,12 @@ var _useChartCartesianAxisRendering = require("./useChartCartesianAxisRendering.
|
|
|
11
11
|
var _useChartCartesianInteraction = require("./useChartCartesianInteraction.selectors");
|
|
12
12
|
var _useChartKeyboardNavigation = require("../useChartKeyboardNavigation/useChartKeyboardNavigation.selectors");
|
|
13
13
|
var _useChartInteraction = require("../useChartInteraction/useChartInteraction.selectors");
|
|
14
|
+
var _useChartBrush = require("../useChartBrush");
|
|
14
15
|
const selectorChartControlledCartesianAxisHighlight = state => state.controlledCartesianAxisHighlight;
|
|
15
|
-
const selectAxisHighlight = (computedIndex, axis, axisItems) => {
|
|
16
|
+
const selectAxisHighlight = (computedIndex, axis, axisItems, isBrushSelectionActive) => {
|
|
17
|
+
if (isBrushSelectionActive) {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
16
20
|
if (axisItems !== undefined) {
|
|
17
21
|
return axisItems.filter(item => axis.axis[item.axisId] !== undefined).map(item => item);
|
|
18
22
|
}
|
|
@@ -21,9 +25,12 @@ const selectAxisHighlight = (computedIndex, axis, axisItems) => {
|
|
|
21
25
|
dataIndex: computedIndex
|
|
22
26
|
}];
|
|
23
27
|
};
|
|
24
|
-
const selectorChartsHighlightXAxisIndex = exports.selectorChartsHighlightXAxisIndex = (0, _selectors.createSelector)([_useChartCartesianInteraction.selectorChartsInteractionXAxisIndex, _useChartCartesianAxisRendering.selectorChartXAxis, selectorChartControlledCartesianAxisHighlight], selectAxisHighlight);
|
|
25
|
-
const selectorChartsHighlightYAxisIndex = exports.selectorChartsHighlightYAxisIndex = (0, _selectors.createSelector)([_useChartCartesianInteraction.selectorChartsInteractionYAxisIndex, _useChartCartesianAxisRendering.selectorChartYAxis, selectorChartControlledCartesianAxisHighlight], selectAxisHighlight);
|
|
26
|
-
const selectAxisHighlightWithValue = (computedIndex, computedValue, axis, controlledAxisItems, keyboardAxisItem, lastInteractionUpdate) => {
|
|
28
|
+
const selectorChartsHighlightXAxisIndex = exports.selectorChartsHighlightXAxisIndex = (0, _selectors.createSelector)([_useChartCartesianInteraction.selectorChartsInteractionXAxisIndex, _useChartCartesianAxisRendering.selectorChartXAxis, selectorChartControlledCartesianAxisHighlight, _useChartBrush.selectorBrushShouldPreventAxisHighlight], selectAxisHighlight);
|
|
29
|
+
const selectorChartsHighlightYAxisIndex = exports.selectorChartsHighlightYAxisIndex = (0, _selectors.createSelector)([_useChartCartesianInteraction.selectorChartsInteractionYAxisIndex, _useChartCartesianAxisRendering.selectorChartYAxis, selectorChartControlledCartesianAxisHighlight, _useChartBrush.selectorBrushShouldPreventAxisHighlight], selectAxisHighlight);
|
|
30
|
+
const selectAxisHighlightWithValue = (computedIndex, computedValue, axis, controlledAxisItems, keyboardAxisItem, lastInteractionUpdate, isBrushSelectionActive) => {
|
|
31
|
+
if (isBrushSelectionActive) {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
27
34
|
if (controlledAxisItems !== undefined) {
|
|
28
35
|
return controlledAxisItems.map(item => (0, _extends2.default)({}, item, {
|
|
29
36
|
value: axis.axis[item.axisId]?.data?.[item.dataIndex]
|
|
@@ -58,8 +65,8 @@ const selectAxisHighlightWithValue = (computedIndex, computedValue, axis, contro
|
|
|
58
65
|
}
|
|
59
66
|
return [];
|
|
60
67
|
};
|
|
61
|
-
const selectorChartsHighlightXAxisValue = exports.selectorChartsHighlightXAxisValue = (0, _selectors.createSelector)([_useChartCartesianInteraction.selectorChartsInteractionXAxisIndex, _useChartCartesianInteraction.selectorChartsInteractionXAxisValue, _useChartCartesianAxisRendering.selectorChartXAxis, selectorChartControlledCartesianAxisHighlight, _useChartKeyboardNavigation.selectorChartsKeyboardXAxisIndex, _useChartInteraction.selectorChartsLastInteraction], selectAxisHighlightWithValue);
|
|
62
|
-
const selectorChartsHighlightYAxisValue = exports.selectorChartsHighlightYAxisValue = (0, _selectors.createSelector)([_useChartCartesianInteraction.selectorChartsInteractionYAxisIndex, _useChartCartesianInteraction.selectorChartsInteractionYAxisValue, _useChartCartesianAxisRendering.selectorChartYAxis, selectorChartControlledCartesianAxisHighlight, _useChartKeyboardNavigation.selectorChartsKeyboardYAxisIndex, _useChartInteraction.selectorChartsLastInteraction], selectAxisHighlightWithValue);
|
|
68
|
+
const selectorChartsHighlightXAxisValue = exports.selectorChartsHighlightXAxisValue = (0, _selectors.createSelector)([_useChartCartesianInteraction.selectorChartsInteractionXAxisIndex, _useChartCartesianInteraction.selectorChartsInteractionXAxisValue, _useChartCartesianAxisRendering.selectorChartXAxis, selectorChartControlledCartesianAxisHighlight, _useChartKeyboardNavigation.selectorChartsKeyboardXAxisIndex, _useChartInteraction.selectorChartsLastInteraction, _useChartBrush.selectorBrushShouldPreventAxisHighlight], selectAxisHighlightWithValue);
|
|
69
|
+
const selectorChartsHighlightYAxisValue = exports.selectorChartsHighlightYAxisValue = (0, _selectors.createSelector)([_useChartCartesianInteraction.selectorChartsInteractionYAxisIndex, _useChartCartesianInteraction.selectorChartsInteractionYAxisValue, _useChartCartesianAxisRendering.selectorChartYAxis, selectorChartControlledCartesianAxisHighlight, _useChartKeyboardNavigation.selectorChartsKeyboardYAxisIndex, _useChartInteraction.selectorChartsLastInteraction, _useChartBrush.selectorBrushShouldPreventAxisHighlight], selectAxisHighlightWithValue);
|
|
63
70
|
|
|
64
71
|
/**
|
|
65
72
|
* Get the scale of the axis with highlight if controlled. The default axis otherwise.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectorArray, Combiner, Selector, GetStateFromSelectors, GetParamsFromSelectors, CreateSelectorOptions } from 'reselect';
|
|
2
2
|
import { ChartAnyPluginSignature, ChartState, ChartStateCacheKey } from "../models/index.js";
|
|
3
|
-
export type ChartRootSelector<TSignature extends ChartAnyPluginSignature> = Selector<ChartState<[TSignature]>, TSignature['state'][
|
|
3
|
+
export type ChartRootSelector<TSignature extends ChartAnyPluginSignature, T extends keyof TSignature['state'] = keyof TSignature['state']> = Selector<ChartState<[TSignature]>, TSignature['state'][T]>;
|
|
4
4
|
export type ChartOptionalRootSelector<TSignature extends ChartAnyPluginSignature> = Selector<ChartState<[], [TSignature]>, TSignature['state'][keyof TSignature['state']] | undefined>;
|
|
5
5
|
export type ChartsSelector<Signatures extends readonly ChartAnyPluginSignature[] = [], OptionalSignatures extends readonly ChartAnyPluginSignature[] = [], Result = unknown, Args extends readonly any[] = []> = Selector<ChartState<Signatures, OptionalSignatures>, Result, Args>;
|
|
6
6
|
type InterruptRecursion = NonNullable<unknown>;
|
package/locales/elGR.js
CHANGED
|
@@ -16,106 +16,104 @@ const elGRLocaleText = exports.elGRLocaleText = {
|
|
|
16
16
|
toolbarExport: 'Εξαγωγή',
|
|
17
17
|
// Toolbar Export Menu
|
|
18
18
|
toolbarExportPrint: 'Εκτύπωση',
|
|
19
|
-
toolbarExportImage: mimeType => `Εξαγωγή ως ${_imageMimeTypes.imageMimeTypes[mimeType] ?? mimeType}
|
|
20
|
-
|
|
19
|
+
toolbarExportImage: mimeType => `Εξαγωγή ως ${_imageMimeTypes.imageMimeTypes[mimeType] ?? mimeType}`,
|
|
21
20
|
// Charts renderer configuration
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
21
|
+
chartTypeBar: 'Μπάρα',
|
|
22
|
+
chartTypeColumn: 'Στήλη',
|
|
23
|
+
chartTypeLine: 'Γραμμή',
|
|
24
|
+
chartTypeArea: 'Περιοχή',
|
|
25
|
+
chartTypePie: 'Πίτα',
|
|
26
|
+
chartPaletteLabel: 'Παλέτα χρωμάτων',
|
|
27
|
+
chartPaletteNameRainbowSurge: 'Έκρηξη Ουράνιου Τόξου',
|
|
28
|
+
chartPaletteNameBlueberryTwilight: 'Λυκόφως Μύρτιλου',
|
|
29
|
+
chartPaletteNameMangoFusion: 'Ένωση Μάνγκο',
|
|
30
|
+
chartPaletteNameCheerfulFiesta: 'Χαρούμενη Γιορτή',
|
|
31
|
+
chartPaletteNameStrawberrySky: 'Φραουλένιος Ουρανός',
|
|
32
|
+
chartPaletteNameBlue: 'Μπλέ',
|
|
33
|
+
chartPaletteNameGreen: 'Πράσινο',
|
|
34
|
+
chartPaletteNamePurple: 'Μώβ',
|
|
35
|
+
chartPaletteNameRed: 'Κόκκινο',
|
|
36
|
+
chartPaletteNameOrange: 'Πορτοκαλί',
|
|
37
|
+
chartPaletteNameYellow: 'Κίτρινο',
|
|
38
|
+
chartPaletteNameCyan: 'Κυανό',
|
|
39
|
+
chartPaletteNamePink: 'Ρόζ',
|
|
40
|
+
chartConfigurationSectionChart: 'Γράφημα',
|
|
41
|
+
chartConfigurationSectionColumns: 'Στήλες',
|
|
42
|
+
chartConfigurationSectionBars: 'Μπάρες',
|
|
43
|
+
chartConfigurationSectionAxes: 'Άξονες',
|
|
44
|
+
chartConfigurationGrid: 'Πλέγμα',
|
|
45
|
+
chartConfigurationBorderRadius: 'Ακτίνα περιγράμματος',
|
|
46
|
+
chartConfigurationCategoryGapRatio: 'Λόγος κενών κατηγορίας',
|
|
47
|
+
chartConfigurationBarGapRatio: 'Λόγος κενών Σειράς',
|
|
48
|
+
chartConfigurationStacked: 'Στοίβαγμα',
|
|
49
|
+
chartConfigurationShowToolbar: 'Εμφάνιση γραμμής εργαλείων',
|
|
50
|
+
chartConfigurationSkipAnimation: 'Παράξειψη Animation',
|
|
51
|
+
chartConfigurationInnerRadius: 'Εσωτερική ακτίνα',
|
|
52
|
+
chartConfigurationOuterRadius: 'Εξωτερική ακτίνα',
|
|
53
|
+
chartConfigurationColors: 'Χρώματα',
|
|
54
|
+
chartConfigurationHideLegend: 'Απόκρυψη Υπομνήματος',
|
|
55
|
+
chartConfigurationShowMark: 'Εμφάνιση Σημείωσης',
|
|
56
|
+
chartConfigurationHeight: 'Ύψος',
|
|
57
|
+
chartConfigurationWidth: 'Πλάτος',
|
|
58
|
+
chartConfigurationSeriesGap: 'Κενό Σειράς',
|
|
59
|
+
chartConfigurationTickPlacement: 'Τοποθέτηση Σημείων',
|
|
60
|
+
chartConfigurationTickLabelPlacement: 'Τοποθέτηση Ετικετών Σημείων',
|
|
61
|
+
chartConfigurationCategoriesAxisLabel: 'Ετικέτα άξονα κατηγοριών',
|
|
62
|
+
chartConfigurationSeriesAxisLabel: 'Ετικέτα άξονα σειρών',
|
|
63
|
+
chartConfigurationXAxisPosition: 'Θέση άξονα Χ',
|
|
64
|
+
chartConfigurationYAxisPosition: 'Θέση άξονα Υ',
|
|
65
|
+
chartConfigurationSeriesAxisReverse: 'Αντιστροφή άξονα σειρών',
|
|
66
|
+
chartConfigurationTooltipPlacement: 'Τοποθέτηση',
|
|
67
|
+
chartConfigurationTooltipTrigger: 'Τρόπος ενεργοποίησης του tooltip',
|
|
68
|
+
chartConfigurationLegendPosition: 'Θέση',
|
|
69
|
+
chartConfigurationLegendDirection: 'Κατεύθυνση',
|
|
70
|
+
chartConfigurationBarLabels: 'Ετικέτες μπαρών',
|
|
71
|
+
chartConfigurationColumnLabels: 'Ετικέτες στηλών',
|
|
72
|
+
chartConfigurationInterpolation: 'Διαμεσολάβηση',
|
|
73
|
+
chartConfigurationSectionTooltip: 'Tooltip',
|
|
74
|
+
chartConfigurationSectionLegend: 'Υπόμνημα',
|
|
75
|
+
chartConfigurationSectionLines: 'Γραμμές',
|
|
76
|
+
chartConfigurationSectionAreas: 'Περιοχές',
|
|
77
|
+
chartConfigurationSectionArcs: 'Τόξα',
|
|
78
|
+
chartConfigurationPaddingAngle: 'Γωνία περιθωρίου',
|
|
79
|
+
chartConfigurationCornerRadius: 'Ακτίνα γωνίας',
|
|
80
|
+
chartConfigurationArcLabels: 'Ετικέτες τόξων',
|
|
81
|
+
chartConfigurationStartAngle: 'Γωνία εκκίνησης',
|
|
82
|
+
chartConfigurationEndAngle: 'Γωνία λήξης',
|
|
83
|
+
chartConfigurationPieTooltipTrigger: 'Τρόπος ενεργοποίησης του tooltip',
|
|
84
|
+
chartConfigurationPieLegendPosition: 'Θέση',
|
|
85
|
+
chartConfigurationPieLegendDirection: 'Κατεύθυνση',
|
|
88
86
|
// Common option labels
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
87
|
+
chartConfigurationOptionNone: 'Κανένα',
|
|
88
|
+
chartConfigurationOptionValue: 'Τιμή',
|
|
89
|
+
chartConfigurationOptionAuto: 'Αυτόματο',
|
|
90
|
+
chartConfigurationOptionTop: 'Πάνω',
|
|
91
|
+
chartConfigurationOptionTopLeft: 'Πάνω Αριστερά',
|
|
92
|
+
chartConfigurationOptionTopRight: 'Πάνω Δεξιά',
|
|
93
|
+
chartConfigurationOptionBottom: 'Κάτω',
|
|
94
|
+
chartConfigurationOptionBottomLeft: 'Κάτω Αριστερά',
|
|
95
|
+
chartConfigurationOptionBottomRight: 'Κάτω Δεξιά',
|
|
96
|
+
chartConfigurationOptionLeft: 'Αριστερά',
|
|
97
|
+
chartConfigurationOptionRight: 'Δεξιά',
|
|
98
|
+
chartConfigurationOptionAxis: 'Άξονας',
|
|
99
|
+
chartConfigurationOptionItem: 'Στοιχείο',
|
|
100
|
+
chartConfigurationOptionHorizontal: 'Οριζόντιο',
|
|
101
|
+
chartConfigurationOptionVertical: 'Κάθετο',
|
|
102
|
+
chartConfigurationOptionBoth: 'Και τα δύο',
|
|
103
|
+
chartConfigurationOptionStart: 'Αρχή',
|
|
104
|
+
chartConfigurationOptionMiddle: 'Κέντρο',
|
|
105
|
+
chartConfigurationOptionEnd: 'Τέλος',
|
|
106
|
+
chartConfigurationOptionExtremities: 'Ακρότατα',
|
|
107
|
+
chartConfigurationOptionTick: 'Σημείο',
|
|
108
|
+
chartConfigurationOptionMonotoneX: 'Μονοτονικό Χ',
|
|
109
|
+
chartConfigurationOptionMonotoneY: 'Μονοτονικό Υ',
|
|
110
|
+
chartConfigurationOptionCatmullRom: 'Catmull-Rom',
|
|
111
|
+
chartConfigurationOptionLinear: 'Γραμμικό',
|
|
112
|
+
chartConfigurationOptionNatural: 'Φυσικό',
|
|
113
|
+
chartConfigurationOptionStep: 'Βήμα',
|
|
114
|
+
chartConfigurationOptionStepBefore: 'Βήμα Πριν',
|
|
115
|
+
chartConfigurationOptionStepAfter: 'Βήμα Μετά',
|
|
116
|
+
chartConfigurationOptionBumpX: 'Κυρτότητα Χ',
|
|
117
|
+
chartConfigurationOptionBumpY: 'Κυρτότητα Υ'
|
|
120
118
|
};
|
|
121
119
|
const elGR = exports.elGR = (0, _getChartsLocalization.getChartsLocalization)(elGRLocaleText);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.15.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of MUI X Charts components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
36
|
"reselect": "^5.1.1",
|
|
37
37
|
"use-sync-external-store": "^1.6.0",
|
|
38
|
-
"@mui/x-charts-vendor": "8.
|
|
38
|
+
"@mui/x-charts-vendor": "8.15.0",
|
|
39
39
|
"@mui/x-internals": "8.14.0",
|
|
40
|
-
"@mui/x-internal-gestures": "0.3.
|
|
40
|
+
"@mui/x-internal-gestures": "0.3.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@emotion/react": "^11.9.0",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { describe, bench } from 'vitest';
|
|
2
|
-
import { Flatbush } from "./Flatbush.js";
|
|
3
|
-
const data = [],
|
|
4
|
-
n = 1_000_000;
|
|
5
|
-
|
|
6
|
-
// Generate and position the datapoints in a tangent wave pattern
|
|
7
|
-
for (let i = 0; i < n; i += 1) {
|
|
8
|
-
const theta = Math.random() * 2 * Math.PI;
|
|
9
|
-
const radius = Math.pow(Math.random(), 2) * 100;
|
|
10
|
-
const waveDeviation = (Math.random() - 0.5) * 70;
|
|
11
|
-
const waveValue = Math.tan(theta) * waveDeviation;
|
|
12
|
-
data.push({
|
|
13
|
-
x: 50 + (radius + waveValue) * Math.cos(theta),
|
|
14
|
-
y: 50 + (radius + waveValue) * Math.sin(theta)
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
const flatbush1M = new Flatbush(data.length);
|
|
18
|
-
for (let i = 0; i < data.length; i += 1) {
|
|
19
|
-
flatbush1M.add(data[i].x, data[i].y);
|
|
20
|
-
}
|
|
21
|
-
flatbush1M.finish();
|
|
22
|
-
describe('Flatbush benchmarks', () => {
|
|
23
|
-
describe('add + finish', () => {
|
|
24
|
-
bench('add 1M points + finish', () => {
|
|
25
|
-
const flatbush = new Flatbush(data.length);
|
|
26
|
-
for (let i = 0; i < data.length; i += 1) {
|
|
27
|
-
flatbush.add(data[i].x, data[i].y);
|
|
28
|
-
}
|
|
29
|
-
flatbush.finish();
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
describe('search 1M points', () => {
|
|
33
|
-
bench('search 1M points', () => {
|
|
34
|
-
flatbush1M.search(0.4, 0.4, 0.6, 0.6);
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
describe('neighbors 1M points', () => {
|
|
38
|
-
bench('neighbors 1M points', () => {
|
|
39
|
-
flatbush1M.neighbors(0.5, 0.5, 1, 0.04, undefined);
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _vitest = require("vitest");
|
|
4
|
-
var _Flatbush = require("./Flatbush");
|
|
5
|
-
const data = [],
|
|
6
|
-
n = 1_000_000;
|
|
7
|
-
|
|
8
|
-
// Generate and position the datapoints in a tangent wave pattern
|
|
9
|
-
for (let i = 0; i < n; i += 1) {
|
|
10
|
-
const theta = Math.random() * 2 * Math.PI;
|
|
11
|
-
const radius = Math.pow(Math.random(), 2) * 100;
|
|
12
|
-
const waveDeviation = (Math.random() - 0.5) * 70;
|
|
13
|
-
const waveValue = Math.tan(theta) * waveDeviation;
|
|
14
|
-
data.push({
|
|
15
|
-
x: 50 + (radius + waveValue) * Math.cos(theta),
|
|
16
|
-
y: 50 + (radius + waveValue) * Math.sin(theta)
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
const flatbush1M = new _Flatbush.Flatbush(data.length);
|
|
20
|
-
for (let i = 0; i < data.length; i += 1) {
|
|
21
|
-
flatbush1M.add(data[i].x, data[i].y);
|
|
22
|
-
}
|
|
23
|
-
flatbush1M.finish();
|
|
24
|
-
(0, _vitest.describe)('Flatbush benchmarks', () => {
|
|
25
|
-
(0, _vitest.describe)('add + finish', () => {
|
|
26
|
-
(0, _vitest.bench)('add 1M points + finish', () => {
|
|
27
|
-
const flatbush = new _Flatbush.Flatbush(data.length);
|
|
28
|
-
for (let i = 0; i < data.length; i += 1) {
|
|
29
|
-
flatbush.add(data[i].x, data[i].y);
|
|
30
|
-
}
|
|
31
|
-
flatbush.finish();
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
(0, _vitest.describe)('search 1M points', () => {
|
|
35
|
-
(0, _vitest.bench)('search 1M points', () => {
|
|
36
|
-
flatbush1M.search(0.4, 0.4, 0.6, 0.6);
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
(0, _vitest.describe)('neighbors 1M points', () => {
|
|
40
|
-
(0, _vitest.bench)('neighbors 1M points', () => {
|
|
41
|
-
flatbush1M.neighbors(0.5, 0.5, 1, 0.04, undefined);
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
});
|
|
File without changes
|