@mui/x-charts 7.2.0 → 7.3.1
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.ts +1 -0
- package/BarChart/BarChart.js +40 -99
- package/BarChart/BarElement.d.ts +63 -62
- package/BarChart/BarElement.js +1 -2
- package/BarChart/BarPlot.js +14 -7
- package/BarChart/getColor.d.ts +3 -0
- package/BarChart/getColor.js +33 -0
- package/CHANGELOG.md +204 -2
- package/ChartContainer/ChartContainer.js +38 -5
- package/ChartsAxis/ChartsAxis.js +11 -103
- package/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -1
- package/ChartsClipPath/ChartsClipPath.js +3 -3
- package/ChartsGrid/ChartsGrid.js +1 -1
- package/ChartsLegend/ChartsLegend.js +3 -3
- package/ChartsLegend/DefaultChartsLegend.js +1 -1
- package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/ChartsSurface.js +1 -1
- package/ChartsText/ChartsText.js +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +4 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.js +21 -3
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +6 -0
- package/ChartsTooltip/ChartsItemTooltipContent.js +32 -2
- package/ChartsTooltip/ChartsTooltip.js +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +3 -7
- package/ChartsTooltip/ChartsTooltipTable.js +8 -9
- package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +7 -7
- package/ChartsTooltip/DefaultChartsItemTooltipContent.js +15 -8
- package/ChartsTooltip/utils.d.ts +5 -1
- package/ChartsTooltip/utils.js +1 -1
- package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +7 -7
- package/ChartsXAxis/ChartsXAxis.js +3 -3
- package/ChartsYAxis/ChartsYAxis.js +3 -3
- package/Gauge/Gauge.js +1 -1
- package/Gauge/GaugeContainer.js +1 -1
- package/Gauge/GaugeProvider.js +6 -6
- package/Gauge/GaugeReferenceArc.js +1 -1
- package/Gauge/GaugeValueArc.js +1 -1
- package/Gauge/GaugeValueText.js +1 -1
- package/LineChart/AnimatedArea.d.ts +63 -62
- package/LineChart/AnimatedArea.js +7 -6
- package/LineChart/AnimatedLine.d.ts +63 -62
- package/LineChart/AnimatedLine.js +8 -6
- package/LineChart/AreaElement.d.ts +1 -0
- package/LineChart/AreaElement.js +5 -2
- package/LineChart/AreaPlot.js +8 -2
- package/LineChart/LineChart.d.ts +1 -0
- package/LineChart/LineChart.js +40 -99
- package/LineChart/LineElement.d.ts +1 -0
- package/LineChart/LineElement.js +5 -2
- package/LineChart/LineHighlightElement.js +1 -1
- package/LineChart/LineHighlightPlot.js +5 -2
- package/LineChart/LinePlot.js +8 -2
- package/LineChart/MarkElement.js +1 -1
- package/LineChart/MarkPlot.js +6 -6
- package/LineChart/getColor.d.ts +3 -0
- package/LineChart/getColor.js +31 -0
- package/PieChart/PieArc.d.ts +1 -0
- package/PieChart/PieArc.js +1 -1
- package/PieChart/PieArcLabel.d.ts +1 -0
- package/PieChart/PieArcLabel.js +1 -1
- package/PieChart/PieArcLabelPlot.js +1 -1
- package/PieChart/PieArcPlot.js +1 -1
- package/PieChart/PieChart.d.ts +1 -0
- package/PieChart/PieChart.js +40 -99
- package/PieChart/PiePlot.js +27 -7
- package/PieChart/dataTransform/transition.d.ts +1 -0
- package/PieChart/dataTransform/useTransformData.js +1 -1
- package/PieChart/formatter.js +4 -2
- package/PieChart/getColor.d.ts +2 -0
- package/PieChart/getColor.js +11 -0
- package/PieChart/getPieCoordinates.d.ts +7 -0
- package/PieChart/getPieCoordinates.js +25 -0
- package/PieChart/index.d.ts +1 -0
- package/PieChart/index.js +11 -0
- package/ResponsiveChartContainer/ResponsiveChartContainer.js +35 -3
- package/ResponsiveChartContainer/useChartContainerDimensions.js +1 -1
- package/ScatterChart/Scatter.d.ts +1 -0
- package/ScatterChart/Scatter.js +7 -4
- package/ScatterChart/ScatterChart.d.ts +3 -1
- package/ScatterChart/ScatterChart.js +95 -126
- package/ScatterChart/ScatterPlot.js +11 -1
- package/ScatterChart/getColor.d.ts +4 -0
- package/ScatterChart/getColor.js +48 -0
- package/SparkLineChart/SparkLineChart.js +16 -1
- package/context/CartesianContextProvider.d.ts +4 -3
- package/context/CartesianContextProvider.js +24 -9
- package/context/DrawingProvider.js +1 -1
- package/context/HighlightProvider.js +1 -1
- package/context/InteractionProvider.js +1 -1
- package/context/SeriesContextProvider.js +1 -1
- package/context/ZAxisContextProvider.d.ts +33 -0
- package/context/ZAxisContextProvider.js +98 -0
- package/context/index.d.ts +2 -0
- package/context/index.js +8 -1
- package/esm/BarChart/BarChart.js +40 -100
- package/esm/BarChart/BarElement.js +0 -1
- package/esm/BarChart/BarPlot.js +15 -7
- package/esm/BarChart/getColor.js +27 -0
- package/esm/ChartContainer/ChartContainer.js +38 -5
- package/esm/ChartsAxis/ChartsAxis.js +11 -104
- package/esm/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -2
- package/esm/ChartsClipPath/ChartsClipPath.js +2 -2
- package/esm/ChartsGrid/ChartsGrid.js +1 -2
- package/esm/ChartsLegend/ChartsLegend.js +2 -2
- package/esm/ChartsLegend/DefaultChartsLegend.js +1 -2
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +1 -2
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +1 -2
- package/esm/ChartsSurface.js +1 -2
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +20 -2
- package/esm/ChartsTooltip/ChartsItemTooltipContent.js +31 -1
- package/esm/ChartsTooltip/ChartsTooltipTable.js +8 -8
- package/esm/ChartsTooltip/DefaultChartsAxisTooltipContent.js +7 -8
- package/esm/ChartsTooltip/DefaultChartsItemTooltipContent.js +15 -9
- package/esm/ChartsVoronoiHandler/ChartsVoronoiHandler.js +6 -6
- package/esm/ChartsXAxis/ChartsXAxis.js +3 -4
- package/esm/ChartsYAxis/ChartsYAxis.js +3 -4
- package/esm/Gauge/Gauge.js +1 -2
- package/esm/Gauge/GaugeProvider.js +5 -5
- package/esm/LineChart/AnimatedArea.js +7 -7
- package/esm/LineChart/AnimatedLine.js +8 -7
- package/esm/LineChart/AreaElement.js +4 -1
- package/esm/LineChart/AreaPlot.js +7 -1
- package/esm/LineChart/LineChart.js +40 -100
- package/esm/LineChart/LineElement.js +4 -1
- package/esm/LineChart/LineHighlightPlot.js +4 -1
- package/esm/LineChart/LinePlot.js +7 -1
- package/esm/LineChart/MarkPlot.js +5 -5
- package/esm/LineChart/getColor.js +25 -0
- package/esm/PieChart/PieChart.js +40 -100
- package/esm/PieChart/PiePlot.js +27 -8
- package/esm/PieChart/formatter.js +4 -2
- package/esm/PieChart/getColor.js +5 -0
- package/esm/PieChart/getPieCoordinates.js +19 -0
- package/esm/PieChart/index.js +2 -1
- package/esm/ResponsiveChartContainer/ResponsiveChartContainer.js +34 -2
- package/esm/ScatterChart/Scatter.js +6 -3
- package/esm/ScatterChart/ScatterChart.js +95 -127
- package/esm/ScatterChart/ScatterPlot.js +10 -0
- package/esm/ScatterChart/getColor.js +42 -0
- package/esm/SparkLineChart/SparkLineChart.js +16 -2
- package/esm/context/CartesianContextProvider.js +23 -8
- package/esm/context/ZAxisContextProvider.js +89 -0
- package/esm/context/index.js +1 -1
- package/esm/hooks/index.js +4 -1
- package/esm/hooks/useAxisEvents.js +7 -6
- package/esm/hooks/useChartId.js +8 -0
- package/esm/hooks/useSeries.js +64 -0
- package/esm/hooks/useSvgRef.js +9 -0
- package/esm/internals/colorGetter.js +22 -0
- package/esm/internals/colorScale.js +16 -0
- package/esm/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +95 -0
- package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +55 -0
- package/esm/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +40 -0
- package/esm/internals/components/ChartsAxesGradients/index.js +1 -0
- package/esm/models/colorMapping.js +1 -0
- package/esm/models/seriesType/index.js +6 -1
- package/esm/models/z-axis.js +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.js +65 -1
- package/hooks/useAxisEvents.js +8 -7
- package/hooks/useChartDimensions.js +1 -1
- package/hooks/useChartId.d.ts +1 -0
- package/hooks/useChartId.js +16 -0
- package/hooks/useDrawingArea.js +1 -1
- package/hooks/useInteractionItemProps.js +1 -1
- package/hooks/useMounted.js +1 -1
- package/hooks/useScale.js +1 -1
- package/hooks/useSeries.d.ts +45 -0
- package/hooks/useSeries.js +75 -0
- package/hooks/useSvgRef.d.ts +2 -0
- package/hooks/useSvgRef.js +17 -0
- package/hooks/useTicks.js +1 -1
- package/index.js +1 -1
- package/internals/colorGetter.d.ts +7 -0
- package/internals/colorGetter.js +29 -0
- package/internals/colorScale.d.ts +5 -0
- package/internals/colorScale.js +24 -0
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +3 -0
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +105 -0
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +13 -0
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +63 -0
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +12 -0
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +48 -0
- package/internals/components/ChartsAxesGradients/index.d.ts +1 -0
- package/internals/components/ChartsAxesGradients/index.js +16 -0
- package/internals/defaultizeColor.d.ts +5 -4
- package/internals/defaultizeValueFormatter.d.ts +5 -5
- package/internals/getScale.d.ts +2 -2
- package/internals/useAnimatedPath.d.ts +1 -0
- package/internals/useAnimatedPath.js +1 -1
- package/models/axis.d.ts +44 -4
- package/models/colorMapping.d.ts +46 -0
- package/models/colorMapping.js +5 -0
- package/models/index.d.ts +1 -1
- package/models/seriesType/common.d.ts +10 -2
- package/models/seriesType/index.d.ts +2 -0
- package/models/seriesType/index.js +17 -1
- package/models/seriesType/pie.d.ts +5 -0
- package/models/seriesType/scatter.d.ts +5 -0
- package/models/z-axis.d.ts +14 -0
- package/models/z-axis.js +5 -0
- package/modern/BarChart/BarChart.js +40 -100
- package/modern/BarChart/BarElement.js +0 -1
- package/modern/BarChart/BarPlot.js +15 -7
- package/modern/BarChart/getColor.js +27 -0
- package/modern/ChartContainer/ChartContainer.js +38 -5
- package/modern/ChartsAxis/ChartsAxis.js +11 -104
- package/modern/ChartsAxisHighlight/ChartsAxisHighlight.js +1 -2
- package/modern/ChartsClipPath/ChartsClipPath.js +2 -2
- package/modern/ChartsGrid/ChartsGrid.js +1 -2
- package/modern/ChartsLegend/ChartsLegend.js +2 -2
- package/modern/ChartsLegend/DefaultChartsLegend.js +1 -2
- package/modern/ChartsReferenceLine/ChartsXReferenceLine.js +1 -2
- package/modern/ChartsReferenceLine/ChartsYReferenceLine.js +1 -2
- package/modern/ChartsSurface.js +1 -2
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +20 -2
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +31 -1
- package/modern/ChartsTooltip/ChartsTooltipTable.js +8 -8
- package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +7 -8
- package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +15 -9
- package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +6 -6
- package/modern/ChartsXAxis/ChartsXAxis.js +3 -4
- package/modern/ChartsYAxis/ChartsYAxis.js +3 -4
- package/modern/Gauge/Gauge.js +1 -2
- package/modern/Gauge/GaugeProvider.js +5 -5
- package/modern/LineChart/AnimatedArea.js +7 -7
- package/modern/LineChart/AnimatedLine.js +8 -7
- package/modern/LineChart/AreaElement.js +4 -1
- package/modern/LineChart/AreaPlot.js +7 -1
- package/modern/LineChart/LineChart.js +40 -100
- package/modern/LineChart/LineElement.js +4 -1
- package/modern/LineChart/LineHighlightPlot.js +4 -1
- package/modern/LineChart/LinePlot.js +7 -1
- package/modern/LineChart/MarkPlot.js +5 -5
- package/modern/LineChart/getColor.js +25 -0
- package/modern/PieChart/PieChart.js +40 -100
- package/modern/PieChart/PiePlot.js +27 -8
- package/modern/PieChart/formatter.js +4 -2
- package/modern/PieChart/getColor.js +5 -0
- package/modern/PieChart/getPieCoordinates.js +19 -0
- package/modern/PieChart/index.js +2 -1
- package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +34 -2
- package/modern/ScatterChart/Scatter.js +6 -3
- package/modern/ScatterChart/ScatterChart.js +95 -127
- package/modern/ScatterChart/ScatterPlot.js +10 -0
- package/modern/ScatterChart/getColor.js +42 -0
- package/modern/SparkLineChart/SparkLineChart.js +16 -2
- package/modern/context/CartesianContextProvider.js +23 -8
- package/modern/context/ZAxisContextProvider.js +89 -0
- package/modern/context/index.js +1 -1
- package/modern/hooks/index.js +4 -1
- package/modern/hooks/useAxisEvents.js +7 -6
- package/modern/hooks/useChartId.js +8 -0
- package/modern/hooks/useSeries.js +64 -0
- package/modern/hooks/useSvgRef.js +9 -0
- package/modern/index.js +1 -1
- package/modern/internals/colorGetter.js +22 -0
- package/modern/internals/colorScale.js +16 -0
- package/modern/internals/components/ChartsAxesGradients/ChartsAxesGradients.js +95 -0
- package/modern/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +55 -0
- package/modern/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.js +40 -0
- package/modern/internals/components/ChartsAxesGradients/index.js +1 -0
- package/modern/models/colorMapping.js +1 -0
- package/modern/models/seriesType/index.js +6 -1
- package/modern/models/z-axis.js +1 -0
- package/package.json +3 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@react-spring/shared" />
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import type { AreaElementOwnerState } from './AreaElement';
|
|
3
4
|
export declare const AreaElementPath: import("@emotion/styled").StyledComponent<Pick<import("@react-spring/web").AnimatedProps<{
|
|
@@ -925,9 +926,10 @@ export declare const AreaElementPath: import("@emotion/styled").StyledComponent<
|
|
|
925
926
|
vectorEffect?: string | number | undefined;
|
|
926
927
|
additive?: "replace" | "sum" | undefined;
|
|
927
928
|
path?: string | undefined;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
929
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
930
|
+
className?: string | undefined;
|
|
931
|
+
id?: string | undefined;
|
|
932
|
+
lang?: string | undefined;
|
|
931
933
|
max?: string | number | undefined;
|
|
932
934
|
media?: string | undefined;
|
|
933
935
|
method?: string | undefined;
|
|
@@ -935,65 +937,9 @@ export declare const AreaElementPath: import("@emotion/styled").StyledComponent<
|
|
|
935
937
|
name?: string | undefined;
|
|
936
938
|
target?: string | undefined;
|
|
937
939
|
type?: string | undefined;
|
|
938
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
939
|
-
className?: string | undefined;
|
|
940
|
-
id?: string | undefined;
|
|
941
|
-
lang?: string | undefined;
|
|
942
|
-
tabIndex?: number | undefined;
|
|
943
940
|
role?: React.AriaRole | undefined;
|
|
944
|
-
|
|
945
|
-
"
|
|
946
|
-
"aria-autocomplete"?: "both" | "none" | "inline" | "list" | undefined;
|
|
947
|
-
"aria-braillelabel"?: string | undefined;
|
|
948
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
949
|
-
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
950
|
-
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
951
|
-
"aria-colcount"?: number | undefined;
|
|
952
|
-
"aria-colindex"?: number | undefined;
|
|
953
|
-
"aria-colindextext"?: string | undefined;
|
|
954
|
-
"aria-colspan"?: number | undefined;
|
|
955
|
-
"aria-controls"?: string | undefined;
|
|
956
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
|
|
957
|
-
"aria-describedby"?: string | undefined;
|
|
958
|
-
"aria-description"?: string | undefined;
|
|
959
|
-
"aria-details"?: string | undefined;
|
|
960
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
961
|
-
"aria-dropeffect"?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
962
|
-
"aria-errormessage"?: string | undefined;
|
|
963
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
964
|
-
"aria-flowto"?: string | undefined;
|
|
965
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
966
|
-
"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
967
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
968
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
969
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
970
|
-
"aria-label"?: string | undefined;
|
|
971
|
-
"aria-labelledby"?: string | undefined;
|
|
972
|
-
"aria-level"?: number | undefined;
|
|
973
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
974
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
975
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
976
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
977
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
978
|
-
"aria-owns"?: string | undefined;
|
|
979
|
-
"aria-placeholder"?: string | undefined;
|
|
980
|
-
"aria-posinset"?: number | undefined;
|
|
981
|
-
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
982
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
983
|
-
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
984
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
985
|
-
"aria-roledescription"?: string | undefined;
|
|
986
|
-
"aria-rowcount"?: number | undefined;
|
|
987
|
-
"aria-rowindex"?: number | undefined;
|
|
988
|
-
"aria-rowindextext"?: string | undefined;
|
|
989
|
-
"aria-rowspan"?: number | undefined;
|
|
990
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
991
|
-
"aria-setsize"?: number | undefined;
|
|
992
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
993
|
-
"aria-valuemax"?: number | undefined;
|
|
994
|
-
"aria-valuemin"?: number | undefined;
|
|
995
|
-
"aria-valuenow"?: number | undefined;
|
|
996
|
-
"aria-valuetext"?: string | undefined;
|
|
941
|
+
tabIndex?: number | undefined;
|
|
942
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
997
943
|
accentHeight?: string | number | undefined;
|
|
998
944
|
allowReorder?: "yes" | "no" | undefined;
|
|
999
945
|
amplitude?: string | number | undefined;
|
|
@@ -1047,6 +993,7 @@ export declare const AreaElementPath: import("@emotion/styled").StyledComponent<
|
|
|
1047
993
|
gradientUnits?: string | undefined;
|
|
1048
994
|
horizAdvX?: string | number | undefined;
|
|
1049
995
|
horizOriginX?: string | number | undefined;
|
|
996
|
+
href?: string | undefined;
|
|
1050
997
|
in2?: string | number | undefined;
|
|
1051
998
|
in?: string | undefined;
|
|
1052
999
|
intercept?: string | number | undefined;
|
|
@@ -1161,6 +1108,59 @@ export declare const AreaElementPath: import("@emotion/styled").StyledComponent<
|
|
|
1161
1108
|
yChannelSelector?: string | undefined;
|
|
1162
1109
|
z?: string | number | undefined;
|
|
1163
1110
|
zoomAndPan?: string | undefined;
|
|
1111
|
+
"aria-activedescendant"?: string | undefined;
|
|
1112
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
1113
|
+
"aria-autocomplete"?: "both" | "none" | "inline" | "list" | undefined;
|
|
1114
|
+
"aria-braillelabel"?: string | undefined;
|
|
1115
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
1116
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
1117
|
+
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
1118
|
+
"aria-colcount"?: number | undefined;
|
|
1119
|
+
"aria-colindex"?: number | undefined;
|
|
1120
|
+
"aria-colindextext"?: string | undefined;
|
|
1121
|
+
"aria-colspan"?: number | undefined;
|
|
1122
|
+
"aria-controls"?: string | undefined;
|
|
1123
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
|
|
1124
|
+
"aria-describedby"?: string | undefined;
|
|
1125
|
+
"aria-description"?: string | undefined;
|
|
1126
|
+
"aria-details"?: string | undefined;
|
|
1127
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
1128
|
+
"aria-dropeffect"?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
1129
|
+
"aria-errormessage"?: string | undefined;
|
|
1130
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
1131
|
+
"aria-flowto"?: string | undefined;
|
|
1132
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
1133
|
+
"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
1134
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
1135
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
1136
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
1137
|
+
"aria-label"?: string | undefined;
|
|
1138
|
+
"aria-labelledby"?: string | undefined;
|
|
1139
|
+
"aria-level"?: number | undefined;
|
|
1140
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
1141
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
1142
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
1143
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
1144
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
1145
|
+
"aria-owns"?: string | undefined;
|
|
1146
|
+
"aria-placeholder"?: string | undefined;
|
|
1147
|
+
"aria-posinset"?: number | undefined;
|
|
1148
|
+
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
1149
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
1150
|
+
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1151
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
1152
|
+
"aria-roledescription"?: string | undefined;
|
|
1153
|
+
"aria-rowcount"?: number | undefined;
|
|
1154
|
+
"aria-rowindex"?: number | undefined;
|
|
1155
|
+
"aria-rowindextext"?: string | undefined;
|
|
1156
|
+
"aria-rowspan"?: number | undefined;
|
|
1157
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
1158
|
+
"aria-setsize"?: number | undefined;
|
|
1159
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
1160
|
+
"aria-valuemax"?: number | undefined;
|
|
1161
|
+
"aria-valuemin"?: number | undefined;
|
|
1162
|
+
"aria-valuenow"?: number | undefined;
|
|
1163
|
+
"aria-valuetext"?: string | undefined;
|
|
1164
1164
|
children?: React.ReactNode;
|
|
1165
1165
|
dangerouslySetInnerHTML?: {
|
|
1166
1166
|
__html: string | TrustedHTML;
|
|
@@ -1327,12 +1327,13 @@ export declare const AreaElementPath: import("@emotion/styled").StyledComponent<
|
|
|
1327
1327
|
onAnimationIterationCapture?: React.AnimationEventHandler<SVGPathElement> | undefined;
|
|
1328
1328
|
onTransitionEnd?: React.TransitionEventHandler<SVGPathElement> | undefined;
|
|
1329
1329
|
onTransitionEndCapture?: React.TransitionEventHandler<SVGPathElement> | undefined;
|
|
1330
|
+
key?: React.Key | null | undefined;
|
|
1330
1331
|
ref?: ((instance: SVGPathElement | null) => void) | React.RefObject<SVGPathElement> | null | undefined;
|
|
1331
1332
|
}> & {
|
|
1332
1333
|
scrollTop?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
|
|
1333
1334
|
scrollLeft?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
|
|
1334
1335
|
viewBox?: string | import("@react-spring/shared").FluidValue<string, any> | undefined;
|
|
1335
|
-
}, "string" | "end" | "accumulate" | "local" | "color" | "clip" | "style" | "unicode" | "fill" | "stroke" | "x" | "y" | "clipPath" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "additive" | "path" | "ref" | "
|
|
1336
|
+
}, "string" | "end" | "accumulate" | "local" | "color" | "clip" | "style" | "unicode" | "fill" | "stroke" | "x" | "y" | "clipPath" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "additive" | "path" | "ref" | "suppressHydrationWarning" | "className" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "scrollTop" | "scrollLeft"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
1336
1337
|
ownerState: AreaElementOwnerState;
|
|
1337
1338
|
}, {}, {}>;
|
|
1338
1339
|
export interface AnimatedAreaProps extends React.ComponentPropsWithoutRef<'path'> {
|
|
@@ -14,12 +14,12 @@ var _styles = require("@mui/material/styles");
|
|
|
14
14
|
var _d3Color = require("d3-color");
|
|
15
15
|
var _web = require("@react-spring/web");
|
|
16
16
|
var _useAnimatedPath = require("../internals/useAnimatedPath");
|
|
17
|
-
var _DrawingProvider = require("../context/DrawingProvider");
|
|
18
17
|
var _utils = require("../internals/utils");
|
|
18
|
+
var _hooks = require("../hooks");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
const _excluded = ["d", "skipAnimation", "ownerState"];
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
const AreaElementPath = exports.AreaElementPath = (0, _styles.styled)(_web.animated.path, {
|
|
24
24
|
name: 'MuiAreaElement',
|
|
25
25
|
slot: 'Root',
|
|
@@ -28,7 +28,7 @@ const AreaElementPath = exports.AreaElementPath = (0, _styles.styled)(_web.anima
|
|
|
28
28
|
ownerState
|
|
29
29
|
}) => ({
|
|
30
30
|
stroke: 'none',
|
|
31
|
-
fill: ownerState.isHighlighted
|
|
31
|
+
fill: ownerState.gradientId && `url(#${ownerState.gradientId})` || ownerState.isHighlighted && (0, _d3Color.color)(ownerState.color).brighter(1).formatHex() || (0, _d3Color.color)(ownerState.color).brighter(0.5).formatHex(),
|
|
32
32
|
transition: 'opacity 0.2s ease-in, fill 0.2s ease-in',
|
|
33
33
|
opacity: ownerState.isFaded ? 0.3 : 1
|
|
34
34
|
}));
|
|
@@ -55,9 +55,9 @@ function AnimatedArea(props) {
|
|
|
55
55
|
right,
|
|
56
56
|
bottom,
|
|
57
57
|
width,
|
|
58
|
-
height
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
height
|
|
59
|
+
} = (0, _hooks.useDrawingArea)();
|
|
60
|
+
const chartId = (0, _hooks.useChartId)();
|
|
61
61
|
const path = (0, _useAnimatedPath.useAnimatedPath)(d, skipAnimation);
|
|
62
62
|
const {
|
|
63
63
|
animatedWidth
|
|
@@ -99,6 +99,7 @@ process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes = {
|
|
|
99
99
|
ownerState: _propTypes.default.shape({
|
|
100
100
|
classes: _propTypes.default.object,
|
|
101
101
|
color: _propTypes.default.string.isRequired,
|
|
102
|
+
gradientId: _propTypes.default.string,
|
|
102
103
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
103
104
|
isFaded: _propTypes.default.bool.isRequired,
|
|
104
105
|
isHighlighted: _propTypes.default.bool.isRequired
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@react-spring/shared" />
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import type { LineElementOwnerState } from './LineElement';
|
|
3
4
|
export declare const LineElementPath: import("@emotion/styled").StyledComponent<Pick<import("@react-spring/web").AnimatedProps<{
|
|
@@ -925,9 +926,10 @@ export declare const LineElementPath: import("@emotion/styled").StyledComponent<
|
|
|
925
926
|
vectorEffect?: string | number | undefined;
|
|
926
927
|
additive?: "replace" | "sum" | undefined;
|
|
927
928
|
path?: string | undefined;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
929
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
930
|
+
className?: string | undefined;
|
|
931
|
+
id?: string | undefined;
|
|
932
|
+
lang?: string | undefined;
|
|
931
933
|
max?: string | number | undefined;
|
|
932
934
|
media?: string | undefined;
|
|
933
935
|
method?: string | undefined;
|
|
@@ -935,65 +937,9 @@ export declare const LineElementPath: import("@emotion/styled").StyledComponent<
|
|
|
935
937
|
name?: string | undefined;
|
|
936
938
|
target?: string | undefined;
|
|
937
939
|
type?: string | undefined;
|
|
938
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
939
|
-
className?: string | undefined;
|
|
940
|
-
id?: string | undefined;
|
|
941
|
-
lang?: string | undefined;
|
|
942
|
-
tabIndex?: number | undefined;
|
|
943
940
|
role?: React.AriaRole | undefined;
|
|
944
|
-
|
|
945
|
-
"
|
|
946
|
-
"aria-autocomplete"?: "both" | "none" | "inline" | "list" | undefined;
|
|
947
|
-
"aria-braillelabel"?: string | undefined;
|
|
948
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
949
|
-
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
950
|
-
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
951
|
-
"aria-colcount"?: number | undefined;
|
|
952
|
-
"aria-colindex"?: number | undefined;
|
|
953
|
-
"aria-colindextext"?: string | undefined;
|
|
954
|
-
"aria-colspan"?: number | undefined;
|
|
955
|
-
"aria-controls"?: string | undefined;
|
|
956
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
|
|
957
|
-
"aria-describedby"?: string | undefined;
|
|
958
|
-
"aria-description"?: string | undefined;
|
|
959
|
-
"aria-details"?: string | undefined;
|
|
960
|
-
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
961
|
-
"aria-dropeffect"?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
962
|
-
"aria-errormessage"?: string | undefined;
|
|
963
|
-
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
964
|
-
"aria-flowto"?: string | undefined;
|
|
965
|
-
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
966
|
-
"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
967
|
-
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
968
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
969
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
970
|
-
"aria-label"?: string | undefined;
|
|
971
|
-
"aria-labelledby"?: string | undefined;
|
|
972
|
-
"aria-level"?: number | undefined;
|
|
973
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
974
|
-
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
975
|
-
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
976
|
-
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
977
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
978
|
-
"aria-owns"?: string | undefined;
|
|
979
|
-
"aria-placeholder"?: string | undefined;
|
|
980
|
-
"aria-posinset"?: number | undefined;
|
|
981
|
-
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
982
|
-
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
983
|
-
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
984
|
-
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
985
|
-
"aria-roledescription"?: string | undefined;
|
|
986
|
-
"aria-rowcount"?: number | undefined;
|
|
987
|
-
"aria-rowindex"?: number | undefined;
|
|
988
|
-
"aria-rowindextext"?: string | undefined;
|
|
989
|
-
"aria-rowspan"?: number | undefined;
|
|
990
|
-
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
991
|
-
"aria-setsize"?: number | undefined;
|
|
992
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
993
|
-
"aria-valuemax"?: number | undefined;
|
|
994
|
-
"aria-valuemin"?: number | undefined;
|
|
995
|
-
"aria-valuenow"?: number | undefined;
|
|
996
|
-
"aria-valuetext"?: string | undefined;
|
|
941
|
+
tabIndex?: number | undefined;
|
|
942
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
997
943
|
accentHeight?: string | number | undefined;
|
|
998
944
|
allowReorder?: "yes" | "no" | undefined;
|
|
999
945
|
amplitude?: string | number | undefined;
|
|
@@ -1047,6 +993,7 @@ export declare const LineElementPath: import("@emotion/styled").StyledComponent<
|
|
|
1047
993
|
gradientUnits?: string | undefined;
|
|
1048
994
|
horizAdvX?: string | number | undefined;
|
|
1049
995
|
horizOriginX?: string | number | undefined;
|
|
996
|
+
href?: string | undefined;
|
|
1050
997
|
in2?: string | number | undefined;
|
|
1051
998
|
in?: string | undefined;
|
|
1052
999
|
intercept?: string | number | undefined;
|
|
@@ -1161,6 +1108,59 @@ export declare const LineElementPath: import("@emotion/styled").StyledComponent<
|
|
|
1161
1108
|
yChannelSelector?: string | undefined;
|
|
1162
1109
|
z?: string | number | undefined;
|
|
1163
1110
|
zoomAndPan?: string | undefined;
|
|
1111
|
+
"aria-activedescendant"?: string | undefined;
|
|
1112
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
1113
|
+
"aria-autocomplete"?: "both" | "none" | "inline" | "list" | undefined;
|
|
1114
|
+
"aria-braillelabel"?: string | undefined;
|
|
1115
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
1116
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
1117
|
+
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
1118
|
+
"aria-colcount"?: number | undefined;
|
|
1119
|
+
"aria-colindex"?: number | undefined;
|
|
1120
|
+
"aria-colindextext"?: string | undefined;
|
|
1121
|
+
"aria-colspan"?: number | undefined;
|
|
1122
|
+
"aria-controls"?: string | undefined;
|
|
1123
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
|
|
1124
|
+
"aria-describedby"?: string | undefined;
|
|
1125
|
+
"aria-description"?: string | undefined;
|
|
1126
|
+
"aria-details"?: string | undefined;
|
|
1127
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
1128
|
+
"aria-dropeffect"?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
1129
|
+
"aria-errormessage"?: string | undefined;
|
|
1130
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
1131
|
+
"aria-flowto"?: string | undefined;
|
|
1132
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
1133
|
+
"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
1134
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
1135
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
1136
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
1137
|
+
"aria-label"?: string | undefined;
|
|
1138
|
+
"aria-labelledby"?: string | undefined;
|
|
1139
|
+
"aria-level"?: number | undefined;
|
|
1140
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
1141
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
1142
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
1143
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
1144
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
1145
|
+
"aria-owns"?: string | undefined;
|
|
1146
|
+
"aria-placeholder"?: string | undefined;
|
|
1147
|
+
"aria-posinset"?: number | undefined;
|
|
1148
|
+
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
1149
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
1150
|
+
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1151
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
1152
|
+
"aria-roledescription"?: string | undefined;
|
|
1153
|
+
"aria-rowcount"?: number | undefined;
|
|
1154
|
+
"aria-rowindex"?: number | undefined;
|
|
1155
|
+
"aria-rowindextext"?: string | undefined;
|
|
1156
|
+
"aria-rowspan"?: number | undefined;
|
|
1157
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
1158
|
+
"aria-setsize"?: number | undefined;
|
|
1159
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
1160
|
+
"aria-valuemax"?: number | undefined;
|
|
1161
|
+
"aria-valuemin"?: number | undefined;
|
|
1162
|
+
"aria-valuenow"?: number | undefined;
|
|
1163
|
+
"aria-valuetext"?: string | undefined;
|
|
1164
1164
|
children?: React.ReactNode;
|
|
1165
1165
|
dangerouslySetInnerHTML?: {
|
|
1166
1166
|
__html: string | TrustedHTML;
|
|
@@ -1327,12 +1327,13 @@ export declare const LineElementPath: import("@emotion/styled").StyledComponent<
|
|
|
1327
1327
|
onAnimationIterationCapture?: React.AnimationEventHandler<SVGPathElement> | undefined;
|
|
1328
1328
|
onTransitionEnd?: React.TransitionEventHandler<SVGPathElement> | undefined;
|
|
1329
1329
|
onTransitionEndCapture?: React.TransitionEventHandler<SVGPathElement> | undefined;
|
|
1330
|
+
key?: React.Key | null | undefined;
|
|
1330
1331
|
ref?: ((instance: SVGPathElement | null) => void) | React.RefObject<SVGPathElement> | null | undefined;
|
|
1331
1332
|
}> & {
|
|
1332
1333
|
scrollTop?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
|
|
1333
1334
|
scrollLeft?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
|
|
1334
1335
|
viewBox?: string | import("@react-spring/shared").FluidValue<string, any> | undefined;
|
|
1335
|
-
}, "string" | "end" | "accumulate" | "local" | "color" | "clip" | "style" | "unicode" | "fill" | "stroke" | "x" | "y" | "clipPath" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "additive" | "path" | "ref" | "
|
|
1336
|
+
}, "string" | "end" | "accumulate" | "local" | "color" | "clip" | "style" | "unicode" | "fill" | "stroke" | "x" | "y" | "clipPath" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "additive" | "path" | "ref" | "suppressHydrationWarning" | "className" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "scrollTop" | "scrollLeft"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
1336
1337
|
ownerState: LineElementOwnerState;
|
|
1337
1338
|
}, {}, {}>;
|
|
1338
1339
|
export interface AnimatedLineProps extends React.ComponentPropsWithoutRef<'path'> {
|
|
@@ -14,12 +14,13 @@ var _web = require("@react-spring/web");
|
|
|
14
14
|
var _d3Color = require("d3-color");
|
|
15
15
|
var _styles = require("@mui/material/styles");
|
|
16
16
|
var _useAnimatedPath = require("../internals/useAnimatedPath");
|
|
17
|
-
var _DrawingProvider = require("../context/DrawingProvider");
|
|
18
17
|
var _utils = require("../internals/utils");
|
|
18
|
+
var _useChartId = require("../hooks/useChartId");
|
|
19
|
+
var _useDrawingArea = require("../hooks/useDrawingArea");
|
|
19
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
21
|
const _excluded = ["d", "skipAnimation", "ownerState"];
|
|
21
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
24
|
const LineElementPath = exports.LineElementPath = (0, _styles.styled)(_web.animated.path, {
|
|
24
25
|
name: 'MuiLineElement',
|
|
25
26
|
slot: 'Root',
|
|
@@ -30,7 +31,7 @@ const LineElementPath = exports.LineElementPath = (0, _styles.styled)(_web.anima
|
|
|
30
31
|
strokeWidth: 2,
|
|
31
32
|
strokeLinejoin: 'round',
|
|
32
33
|
fill: 'none',
|
|
33
|
-
stroke: ownerState.isHighlighted
|
|
34
|
+
stroke: ownerState.gradientId && `url(#${ownerState.gradientId})` || ownerState.isHighlighted && (0, _d3Color.color)(ownerState.color).brighter(0.5).formatHex() || ownerState.color,
|
|
34
35
|
transition: 'opacity 0.2s ease-in, stroke 0.2s ease-in',
|
|
35
36
|
opacity: ownerState.isFaded ? 0.3 : 1
|
|
36
37
|
}));
|
|
@@ -57,9 +58,9 @@ function AnimatedLine(props) {
|
|
|
57
58
|
bottom,
|
|
58
59
|
width,
|
|
59
60
|
height,
|
|
60
|
-
right
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
right
|
|
62
|
+
} = (0, _useDrawingArea.useDrawingArea)();
|
|
63
|
+
const chartId = (0, _useChartId.useChartId)();
|
|
63
64
|
const path = (0, _useAnimatedPath.useAnimatedPath)(d, skipAnimation);
|
|
64
65
|
const {
|
|
65
66
|
animatedWidth
|
|
@@ -101,6 +102,7 @@ process.env.NODE_ENV !== "production" ? AnimatedLine.propTypes = {
|
|
|
101
102
|
ownerState: _propTypes.default.shape({
|
|
102
103
|
classes: _propTypes.default.object,
|
|
103
104
|
color: _propTypes.default.string.isRequired,
|
|
105
|
+
gradientId: _propTypes.default.string,
|
|
104
106
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
105
107
|
isFaded: _propTypes.default.bool.isRequired,
|
|
106
108
|
isHighlighted: _propTypes.default.bool.isRequired
|
package/LineChart/AreaElement.js
CHANGED
|
@@ -19,9 +19,9 @@ var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
|
19
19
|
var _InteractionProvider = require("../context/InteractionProvider");
|
|
20
20
|
var _AnimatedArea = require("./AnimatedArea");
|
|
21
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
|
-
const _excluded = ["id", "classes", "color", "highlightScope", "slots", "slotProps", "onClick"];
|
|
22
|
+
const _excluded = ["id", "classes", "color", "gradientId", "highlightScope", "slots", "slotProps", "onClick"];
|
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
24
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
function getAreaElementUtilityClass(slot) {
|
|
26
26
|
return (0, _generateUtilityClass.default)('MuiAreaElement', slot);
|
|
27
27
|
}
|
|
@@ -53,6 +53,7 @@ function AreaElement(props) {
|
|
|
53
53
|
id,
|
|
54
54
|
classes: innerClasses,
|
|
55
55
|
color,
|
|
56
|
+
gradientId,
|
|
56
57
|
highlightScope,
|
|
57
58
|
slots,
|
|
58
59
|
slotProps,
|
|
@@ -75,6 +76,7 @@ function AreaElement(props) {
|
|
|
75
76
|
id,
|
|
76
77
|
classes: innerClasses,
|
|
77
78
|
color,
|
|
79
|
+
gradientId,
|
|
78
80
|
isFaded,
|
|
79
81
|
isHighlighted
|
|
80
82
|
};
|
|
@@ -103,6 +105,7 @@ process.env.NODE_ENV !== "production" ? AreaElement.propTypes = {
|
|
|
103
105
|
classes: _propTypes.default.object,
|
|
104
106
|
color: _propTypes.default.string.isRequired,
|
|
105
107
|
d: _propTypes.default.string.isRequired,
|
|
108
|
+
gradientId: _propTypes.default.string,
|
|
106
109
|
highlightScope: _propTypes.default.shape({
|
|
107
110
|
faded: _propTypes.default.oneOf(['global', 'none', 'series']),
|
|
108
111
|
highlighted: _propTypes.default.oneOf(['item', 'none', 'series'])
|