@mui/x-charts 8.14.0 → 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/BarChart/useBarPlotData.js +20 -33
- package/CHANGELOG.md +202 -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/Gauge/Gauge.js +2 -9
- package/Gauge/GaugeReferenceArc.d.ts +4 -1
- package/Gauge/GaugeReferenceArc.js +12 -3
- package/Gauge/GaugeValueArc.d.ts +4 -1
- package/Gauge/GaugeValueArc.js +16 -8
- package/Gauge/GaugeValueText.js +3 -1
- 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/seriesConfig/seriesProcessor.js +1 -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/BarChart/useBarPlotData.js +20 -33
- 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/Gauge/Gauge.js +2 -9
- package/esm/Gauge/GaugeReferenceArc.d.ts +4 -1
- package/esm/Gauge/GaugeReferenceArc.js +11 -2
- package/esm/Gauge/GaugeValueArc.d.ts +4 -1
- package/esm/Gauge/GaugeValueArc.js +16 -8
- package/esm/Gauge/GaugeValueText.js +3 -1
- 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/seriesConfig/seriesProcessor.js +1 -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/Flatbush.d.ts +63 -0
- package/esm/internals/Flatbush.js +468 -0
- 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/useChartBrush/useChartBrush.types.js +1 -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/getAxisValue.d.ts +6 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js +3 -6
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +3 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +19 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +41 -0
- 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/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +4 -1
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.d.ts +5 -0
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.js +33 -0
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +40 -81
- package/esm/internals/plugins/utils/selectors.d.ts +1 -1
- package/esm/locales/elGR.js +97 -99
- package/esm/models/seriesType/scatter.d.ts +2 -0
- package/esm/tests/constants.js +1 -0
- package/esm/themeAugmentation/components.d.ts +3 -0
- package/esm/themeAugmentation/overrides.d.ts +2 -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/Flatbush.d.ts +63 -0
- package/internals/Flatbush.js +477 -0
- 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/getAxisValue.d.ts +6 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js +3 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +19 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +43 -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/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +4 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.js +39 -0
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +39 -80
- package/internals/plugins/utils/selectors.d.ts +1 -1
- package/locales/elGR.js +97 -99
- package/models/seriesType/scatter.d.ts +2 -0
- package/package.json +5 -4
- package/tests/constants.js +7 -0
- package/themeAugmentation/components.d.ts +3 -0
- package/themeAugmentation/overrides.d.ts +2 -0
|
@@ -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/esm/locales/elGR.js
CHANGED
|
@@ -10,106 +10,104 @@ export const elGRLocaleText = {
|
|
|
10
10
|
toolbarExport: 'Εξαγωγή',
|
|
11
11
|
// Toolbar Export Menu
|
|
12
12
|
toolbarExportPrint: 'Εκτύπωση',
|
|
13
|
-
toolbarExportImage: mimeType => `Εξαγωγή ως ${imageMimeTypes[mimeType] ?? mimeType}
|
|
14
|
-
|
|
13
|
+
toolbarExportImage: mimeType => `Εξαγωγή ως ${imageMimeTypes[mimeType] ?? mimeType}`,
|
|
15
14
|
// Charts renderer configuration
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
15
|
+
chartTypeBar: 'Μπάρα',
|
|
16
|
+
chartTypeColumn: 'Στήλη',
|
|
17
|
+
chartTypeLine: 'Γραμμή',
|
|
18
|
+
chartTypeArea: 'Περιοχή',
|
|
19
|
+
chartTypePie: 'Πίτα',
|
|
20
|
+
chartPaletteLabel: 'Παλέτα χρωμάτων',
|
|
21
|
+
chartPaletteNameRainbowSurge: 'Έκρηξη Ουράνιου Τόξου',
|
|
22
|
+
chartPaletteNameBlueberryTwilight: 'Λυκόφως Μύρτιλου',
|
|
23
|
+
chartPaletteNameMangoFusion: 'Ένωση Μάνγκο',
|
|
24
|
+
chartPaletteNameCheerfulFiesta: 'Χαρούμενη Γιορτή',
|
|
25
|
+
chartPaletteNameStrawberrySky: 'Φραουλένιος Ουρανός',
|
|
26
|
+
chartPaletteNameBlue: 'Μπλέ',
|
|
27
|
+
chartPaletteNameGreen: 'Πράσινο',
|
|
28
|
+
chartPaletteNamePurple: 'Μώβ',
|
|
29
|
+
chartPaletteNameRed: 'Κόκκινο',
|
|
30
|
+
chartPaletteNameOrange: 'Πορτοκαλί',
|
|
31
|
+
chartPaletteNameYellow: 'Κίτρινο',
|
|
32
|
+
chartPaletteNameCyan: 'Κυανό',
|
|
33
|
+
chartPaletteNamePink: 'Ρόζ',
|
|
34
|
+
chartConfigurationSectionChart: 'Γράφημα',
|
|
35
|
+
chartConfigurationSectionColumns: 'Στήλες',
|
|
36
|
+
chartConfigurationSectionBars: 'Μπάρες',
|
|
37
|
+
chartConfigurationSectionAxes: 'Άξονες',
|
|
38
|
+
chartConfigurationGrid: 'Πλέγμα',
|
|
39
|
+
chartConfigurationBorderRadius: 'Ακτίνα περιγράμματος',
|
|
40
|
+
chartConfigurationCategoryGapRatio: 'Λόγος κενών κατηγορίας',
|
|
41
|
+
chartConfigurationBarGapRatio: 'Λόγος κενών Σειράς',
|
|
42
|
+
chartConfigurationStacked: 'Στοίβαγμα',
|
|
43
|
+
chartConfigurationShowToolbar: 'Εμφάνιση γραμμής εργαλείων',
|
|
44
|
+
chartConfigurationSkipAnimation: 'Παράξειψη Animation',
|
|
45
|
+
chartConfigurationInnerRadius: 'Εσωτερική ακτίνα',
|
|
46
|
+
chartConfigurationOuterRadius: 'Εξωτερική ακτίνα',
|
|
47
|
+
chartConfigurationColors: 'Χρώματα',
|
|
48
|
+
chartConfigurationHideLegend: 'Απόκρυψη Υπομνήματος',
|
|
49
|
+
chartConfigurationShowMark: 'Εμφάνιση Σημείωσης',
|
|
50
|
+
chartConfigurationHeight: 'Ύψος',
|
|
51
|
+
chartConfigurationWidth: 'Πλάτος',
|
|
52
|
+
chartConfigurationSeriesGap: 'Κενό Σειράς',
|
|
53
|
+
chartConfigurationTickPlacement: 'Τοποθέτηση Σημείων',
|
|
54
|
+
chartConfigurationTickLabelPlacement: 'Τοποθέτηση Ετικετών Σημείων',
|
|
55
|
+
chartConfigurationCategoriesAxisLabel: 'Ετικέτα άξονα κατηγοριών',
|
|
56
|
+
chartConfigurationSeriesAxisLabel: 'Ετικέτα άξονα σειρών',
|
|
57
|
+
chartConfigurationXAxisPosition: 'Θέση άξονα Χ',
|
|
58
|
+
chartConfigurationYAxisPosition: 'Θέση άξονα Υ',
|
|
59
|
+
chartConfigurationSeriesAxisReverse: 'Αντιστροφή άξονα σειρών',
|
|
60
|
+
chartConfigurationTooltipPlacement: 'Τοποθέτηση',
|
|
61
|
+
chartConfigurationTooltipTrigger: 'Τρόπος ενεργοποίησης του tooltip',
|
|
62
|
+
chartConfigurationLegendPosition: 'Θέση',
|
|
63
|
+
chartConfigurationLegendDirection: 'Κατεύθυνση',
|
|
64
|
+
chartConfigurationBarLabels: 'Ετικέτες μπαρών',
|
|
65
|
+
chartConfigurationColumnLabels: 'Ετικέτες στηλών',
|
|
66
|
+
chartConfigurationInterpolation: 'Διαμεσολάβηση',
|
|
67
|
+
chartConfigurationSectionTooltip: 'Tooltip',
|
|
68
|
+
chartConfigurationSectionLegend: 'Υπόμνημα',
|
|
69
|
+
chartConfigurationSectionLines: 'Γραμμές',
|
|
70
|
+
chartConfigurationSectionAreas: 'Περιοχές',
|
|
71
|
+
chartConfigurationSectionArcs: 'Τόξα',
|
|
72
|
+
chartConfigurationPaddingAngle: 'Γωνία περιθωρίου',
|
|
73
|
+
chartConfigurationCornerRadius: 'Ακτίνα γωνίας',
|
|
74
|
+
chartConfigurationArcLabels: 'Ετικέτες τόξων',
|
|
75
|
+
chartConfigurationStartAngle: 'Γωνία εκκίνησης',
|
|
76
|
+
chartConfigurationEndAngle: 'Γωνία λήξης',
|
|
77
|
+
chartConfigurationPieTooltipTrigger: 'Τρόπος ενεργοποίησης του tooltip',
|
|
78
|
+
chartConfigurationPieLegendPosition: 'Θέση',
|
|
79
|
+
chartConfigurationPieLegendDirection: 'Κατεύθυνση',
|
|
82
80
|
// Common option labels
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
81
|
+
chartConfigurationOptionNone: 'Κανένα',
|
|
82
|
+
chartConfigurationOptionValue: 'Τιμή',
|
|
83
|
+
chartConfigurationOptionAuto: 'Αυτόματο',
|
|
84
|
+
chartConfigurationOptionTop: 'Πάνω',
|
|
85
|
+
chartConfigurationOptionTopLeft: 'Πάνω Αριστερά',
|
|
86
|
+
chartConfigurationOptionTopRight: 'Πάνω Δεξιά',
|
|
87
|
+
chartConfigurationOptionBottom: 'Κάτω',
|
|
88
|
+
chartConfigurationOptionBottomLeft: 'Κάτω Αριστερά',
|
|
89
|
+
chartConfigurationOptionBottomRight: 'Κάτω Δεξιά',
|
|
90
|
+
chartConfigurationOptionLeft: 'Αριστερά',
|
|
91
|
+
chartConfigurationOptionRight: 'Δεξιά',
|
|
92
|
+
chartConfigurationOptionAxis: 'Άξονας',
|
|
93
|
+
chartConfigurationOptionItem: 'Στοιχείο',
|
|
94
|
+
chartConfigurationOptionHorizontal: 'Οριζόντιο',
|
|
95
|
+
chartConfigurationOptionVertical: 'Κάθετο',
|
|
96
|
+
chartConfigurationOptionBoth: 'Και τα δύο',
|
|
97
|
+
chartConfigurationOptionStart: 'Αρχή',
|
|
98
|
+
chartConfigurationOptionMiddle: 'Κέντρο',
|
|
99
|
+
chartConfigurationOptionEnd: 'Τέλος',
|
|
100
|
+
chartConfigurationOptionExtremities: 'Ακρότατα',
|
|
101
|
+
chartConfigurationOptionTick: 'Σημείο',
|
|
102
|
+
chartConfigurationOptionMonotoneX: 'Μονοτονικό Χ',
|
|
103
|
+
chartConfigurationOptionMonotoneY: 'Μονοτονικό Υ',
|
|
104
|
+
chartConfigurationOptionCatmullRom: 'Catmull-Rom',
|
|
105
|
+
chartConfigurationOptionLinear: 'Γραμμικό',
|
|
106
|
+
chartConfigurationOptionNatural: 'Φυσικό',
|
|
107
|
+
chartConfigurationOptionStep: 'Βήμα',
|
|
108
|
+
chartConfigurationOptionStepBefore: 'Βήμα Πριν',
|
|
109
|
+
chartConfigurationOptionStepAfter: 'Βήμα Μετά',
|
|
110
|
+
chartConfigurationOptionBumpX: 'Κυρτότητα Χ',
|
|
111
|
+
chartConfigurationOptionBumpY: 'Κυρτότητα Υ'
|
|
114
112
|
};
|
|
115
113
|
export const elGR = getChartsLocalization(elGRLocaleText);
|
|
@@ -23,6 +23,8 @@ export interface ScatterSeriesType extends CommonSeriesType<ScatterValueType | n
|
|
|
23
23
|
/**
|
|
24
24
|
* If true, the interaction will not use element hover for this series.
|
|
25
25
|
* @default false
|
|
26
|
+
* @deprecated This prop will be removed in a future version because it is ambiguous. You can select what to disable
|
|
27
|
+
* on hover by disabling the highlight or the tooltip separately.
|
|
26
28
|
*/
|
|
27
29
|
disableHover?: boolean;
|
|
28
30
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const CHART_SELECTOR = 'svg:not([aria-hidden="true"])';
|
|
@@ -62,6 +62,9 @@ export interface ChartsComponents<Theme = unknown> {
|
|
|
62
62
|
defaultProps?: ComponentsProps['MuiScatterChart'];
|
|
63
63
|
};
|
|
64
64
|
MuiScatter?: {};
|
|
65
|
+
MuiGauge?: {
|
|
66
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiGauge'];
|
|
67
|
+
};
|
|
65
68
|
}
|
|
66
69
|
declare module '@mui/material/styles' {
|
|
67
70
|
interface Components<Theme = unknown> extends ChartsComponents<Theme> {}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GaugeClassKey } from "../Gauge/index.js";
|
|
1
2
|
import { BarLabelClassKey } from "../BarChart/index.js";
|
|
2
3
|
import { BarElementClassKey } from "../BarChart/barElementClasses.js";
|
|
3
4
|
import { ChartsAxisHighlightClassKey } from "../ChartsAxisHighlight/index.js";
|
|
@@ -18,6 +19,7 @@ export interface ChartsComponentNameToClassKey {
|
|
|
18
19
|
MuiAreaElement: AreaElementClassKey;
|
|
19
20
|
MuiLineElement: LineElementClassKey;
|
|
20
21
|
MuiMarkElement: MarkElementClassKey;
|
|
22
|
+
MuiGauge: GaugeClassKey;
|
|
21
23
|
}
|
|
22
24
|
declare module '@mui/material/styles' {
|
|
23
25
|
interface ComponentNameToClassKey extends ChartsComponentNameToClassKey {}
|
package/hooks/index.d.ts
CHANGED
|
@@ -17,4 +17,5 @@ export * from "./useLegend.js";
|
|
|
17
17
|
export { useChartGradientId, useChartGradientIdObjectBound } from "./useChartGradientId.js";
|
|
18
18
|
export * from "./animation/index.js";
|
|
19
19
|
export * from "./useChartRootRef.js";
|
|
20
|
-
export * from "./useChartsLocalization.js";
|
|
20
|
+
export * from "./useChartsLocalization.js";
|
|
21
|
+
export * from "./useBrush.js";
|
package/hooks/index.js
CHANGED
|
@@ -247,4 +247,16 @@ Object.keys(_useChartsLocalization).forEach(function (key) {
|
|
|
247
247
|
return _useChartsLocalization[key];
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
+
});
|
|
251
|
+
var _useBrush = require("./useBrush");
|
|
252
|
+
Object.keys(_useBrush).forEach(function (key) {
|
|
253
|
+
if (key === "default" || key === "__esModule") return;
|
|
254
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
255
|
+
if (key in exports && exports[key] === _useBrush[key]) return;
|
|
256
|
+
Object.defineProperty(exports, key, {
|
|
257
|
+
enumerable: true,
|
|
258
|
+
get: function () {
|
|
259
|
+
return _useBrush[key];
|
|
260
|
+
}
|
|
261
|
+
});
|
|
250
262
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the current brush state.
|
|
3
|
+
*
|
|
4
|
+
* - `start` is the starting point of the brush selection.
|
|
5
|
+
* - `current` is the current point of the brush selection.
|
|
6
|
+
*
|
|
7
|
+
* @returns `{ start, current }` - The brush state.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useBrush(): {
|
|
10
|
+
start: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
current: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
};
|
|
18
|
+
} | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useBrush = useBrush;
|
|
7
|
+
var _useChartBrush = require("../internals/plugins/featurePlugins/useChartBrush");
|
|
8
|
+
var _useSelector = require("../internals/store/useSelector");
|
|
9
|
+
var _useStore = require("../internals/store/useStore");
|
|
10
|
+
/**
|
|
11
|
+
* Get the current brush state.
|
|
12
|
+
*
|
|
13
|
+
* - `start` is the starting point of the brush selection.
|
|
14
|
+
* - `current` is the current point of the brush selection.
|
|
15
|
+
*
|
|
16
|
+
* @returns `{ start, current }` - The brush state.
|
|
17
|
+
*/
|
|
18
|
+
function useBrush() {
|
|
19
|
+
const store = (0, _useStore.useStore)();
|
|
20
|
+
return (0, _useSelector.useSelector)(store, _useChartBrush.selectorBrushState);
|
|
21
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -28,4 +28,5 @@ export { ChartContainer } from "./ChartContainer/index.js";
|
|
|
28
28
|
export type { ChartContainerProps } from "./ChartContainer/index.js";
|
|
29
29
|
export * from "./ChartDataProvider/index.js";
|
|
30
30
|
export * from "./Toolbar/index.js";
|
|
31
|
-
export * from "./ChartsWrapper/index.js";
|
|
31
|
+
export * from "./ChartsWrapper/index.js";
|
|
32
|
+
export * from "./ChartsBrushOverlay/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-charts v8.
|
|
2
|
+
* @mui/x-charts v8.15.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -367,4 +367,16 @@ Object.keys(_ChartsWrapper).forEach(function (key) {
|
|
|
367
367
|
return _ChartsWrapper[key];
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
|
+
});
|
|
371
|
+
var _ChartsBrushOverlay = require("./ChartsBrushOverlay");
|
|
372
|
+
Object.keys(_ChartsBrushOverlay).forEach(function (key) {
|
|
373
|
+
if (key === "default" || key === "__esModule") return;
|
|
374
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
375
|
+
if (key in exports && exports[key] === _ChartsBrushOverlay[key]) return;
|
|
376
|
+
Object.defineProperty(exports, key, {
|
|
377
|
+
enumerable: true,
|
|
378
|
+
get: function () {
|
|
379
|
+
return _ChartsBrushOverlay[key];
|
|
380
|
+
}
|
|
381
|
+
});
|
|
370
382
|
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import FlatQueue from 'flatqueue';
|
|
2
|
+
type TypedArrayConstructor = Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor;
|
|
3
|
+
export declare class Flatbush {
|
|
4
|
+
_queue: FlatQueue<number>;
|
|
5
|
+
_boxes: TypedArrayConstructor;
|
|
6
|
+
_indices: Uint16Array | Uint32Array;
|
|
7
|
+
data: ArrayBufferLike;
|
|
8
|
+
numItems: number;
|
|
9
|
+
nodeSize: number;
|
|
10
|
+
_levelBounds: number[];
|
|
11
|
+
byteOffset: number;
|
|
12
|
+
/**
|
|
13
|
+
* Recreate a Flatbush index from raw `ArrayBuffer` or `SharedArrayBuffer` data.
|
|
14
|
+
* @param {ArrayBufferLike} data
|
|
15
|
+
* @param {number} [byteOffset=0] byte offset to the start of the Flatbush buffer in the referenced ArrayBuffer.
|
|
16
|
+
* @returns {Flatbush} index
|
|
17
|
+
*/
|
|
18
|
+
static from(data: any, byteOffset?: number): Flatbush;
|
|
19
|
+
/**
|
|
20
|
+
* Create a Flatbush index that will hold a given number of items.
|
|
21
|
+
* @param {number} numItems
|
|
22
|
+
* @param {number} [nodeSize=16] Size of the tree node (16 by default).
|
|
23
|
+
* @param {TypedArrayConstructor} [ArrayType=Float64Array] The array type used for coordinates storage (`Float64Array` by default).
|
|
24
|
+
* @param {ArrayBufferConstructor | SharedArrayBufferConstructor} [ArrayBufferType=ArrayBuffer] The array buffer type used to store data (`ArrayBuffer` by default).
|
|
25
|
+
* @param {ArrayBufferLike} [data] (Only used internally)
|
|
26
|
+
* @param {number} [byteOffset=0] (Only used internally)
|
|
27
|
+
*/
|
|
28
|
+
constructor(numItems: number, nodeSize?: number, ArrayType?: TypedArrayConstructor, ArrayBufferType?: ArrayBufferConstructor | SharedArrayBufferConstructor, data?: ArrayBufferLike, byteOffset?: number);
|
|
29
|
+
/**
|
|
30
|
+
* Add a given rectangle to the index.
|
|
31
|
+
* @param {number} minX
|
|
32
|
+
* @param {number} minY
|
|
33
|
+
* @param {number} maxX
|
|
34
|
+
* @param {number} maxY
|
|
35
|
+
* @returns {number} A zero-based, incremental number that represents the newly added rectangle.
|
|
36
|
+
*/
|
|
37
|
+
add(minX: any, minY: any, maxX?: any, maxY?: any): number;
|
|
38
|
+
/** Perform indexing of the added rectangles. */
|
|
39
|
+
finish(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Search the index by a bounding box.
|
|
42
|
+
* @param {number} minX
|
|
43
|
+
* @param {number} minY
|
|
44
|
+
* @param {number} maxX
|
|
45
|
+
* @param {number} maxY
|
|
46
|
+
* @param {(index: number) => boolean} [filterFn] An optional function for filtering the results.
|
|
47
|
+
* @returns {number[]} An array containing the index, the x coordinate and the y coordinate of the points intersecting or touching the given bounding box.
|
|
48
|
+
*/
|
|
49
|
+
search(minX: number, minY: number, maxX: number, maxY: number, filterFn?: (index: number) => boolean): number[];
|
|
50
|
+
/**
|
|
51
|
+
* Search items in order of distance from the given point.
|
|
52
|
+
* @param x
|
|
53
|
+
* @param y
|
|
54
|
+
* @param [maxResults=Infinity]
|
|
55
|
+
* @param maxDistSq
|
|
56
|
+
* @param [filterFn] An optional function for filtering the results.
|
|
57
|
+
* @param [sqDistFn] An optional function to calculate squared distance from the point to the item.
|
|
58
|
+
* @returns {number[]} An array of indices of items found.
|
|
59
|
+
*/
|
|
60
|
+
neighbors(x: any, y: any, maxResults?: number, maxDistSq?: number, filterFn?: (index: number) => boolean, sqDistFn?: typeof sqDist): number[];
|
|
61
|
+
}
|
|
62
|
+
declare function sqDist(dx: number, dy: number): number;
|
|
63
|
+
export {};
|