@mui/x-charts 7.18.0 → 7.20.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.
Files changed (90) hide show
  1. package/BarChart/BarChart.d.ts +1 -1
  2. package/BarChart/BarChart.js +1 -1
  3. package/BarChart/BarElement.d.ts +1 -1
  4. package/BarChart/BarLabel/BarLabel.d.ts +1 -1
  5. package/BarChart/formatter.js +5 -4
  6. package/CHANGELOG.md +213 -11
  7. package/ChartContainer/useDefaultizeAxis.d.ts +4 -4
  8. package/ChartContainer/useDefaultizeAxis.js +1 -1
  9. package/ChartsAxis/ChartsAxis.js +4 -4
  10. package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +1 -1
  11. package/ChartsGrid/styledCommonents.d.ts +2 -2
  12. package/ChartsLegend/DefaultChartsLegend.js +1 -1
  13. package/ChartsLegend/LegendPerItem.d.ts +1 -1
  14. package/ChartsLegend/LegendPerItem.js +1 -1
  15. package/ChartsLegend/PiecewiseColorLegend.js +1 -1
  16. package/ChartsReferenceLine/common.d.ts +1 -1
  17. package/ChartsTooltip/ChartsTooltipTable.d.ts +5 -5
  18. package/LineChart/AnimatedArea.d.ts +1 -1
  19. package/LineChart/AnimatedArea.js +9 -45
  20. package/LineChart/AnimatedLine.d.ts +1 -1
  21. package/LineChart/AnimatedLine.js +9 -36
  22. package/LineChart/AppearingMask.d.ts +12 -0
  23. package/LineChart/AppearingMask.js +42 -0
  24. package/LineChart/LineChart.d.ts +1 -1
  25. package/LineChart/LineChart.js +1 -1
  26. package/LineChart/formatter.js +5 -5
  27. package/PieChart/PieChart.d.ts +1 -1
  28. package/PieChart/PieChart.js +1 -1
  29. package/ResponsiveChartContainer/ResizableContainer.d.ts +1 -1
  30. package/ResponsiveChartContainer/useResponsiveChartContainerProps.d.ts +1 -1
  31. package/ScatterChart/ScatterChart.d.ts +1 -1
  32. package/ScatterChart/ScatterChart.js +1 -1
  33. package/SparkLineChart/SparkLineChart.d.ts +1 -1
  34. package/context/CartesianProvider/defaultizeAxis.d.ts +4 -4
  35. package/context/PluginProvider/mergePlugins.d.ts +6 -6
  36. package/context/ZAxisContextProvider.js +1 -1
  37. package/hooks/useReducedMotion.js +2 -2
  38. package/hooks/useSeries.d.ts +4 -4
  39. package/hooks/useSeries.js +4 -4
  40. package/index.js +1 -1
  41. package/internals/components/AxisSharedComponents.d.ts +1 -1
  42. package/internals/configInit.d.ts +1 -1
  43. package/internals/defaultizeColor.d.ts +8 -8
  44. package/internals/domUtils.js +1 -1
  45. package/internals/geometry.js +3 -5
  46. package/internals/getPercentageValue.js +1 -1
  47. package/models/seriesType/line.d.ts +5 -0
  48. package/modern/BarChart/BarChart.js +1 -1
  49. package/modern/BarChart/formatter.js +5 -4
  50. package/modern/ChartContainer/useDefaultizeAxis.js +1 -1
  51. package/modern/ChartsAxis/ChartsAxis.js +4 -4
  52. package/modern/ChartsLegend/DefaultChartsLegend.js +1 -1
  53. package/modern/ChartsLegend/LegendPerItem.js +1 -1
  54. package/modern/ChartsLegend/PiecewiseColorLegend.js +1 -1
  55. package/modern/LineChart/AnimatedArea.js +9 -45
  56. package/modern/LineChart/AnimatedLine.js +9 -36
  57. package/modern/LineChart/AppearingMask.js +42 -0
  58. package/modern/LineChart/LineChart.js +1 -1
  59. package/modern/LineChart/formatter.js +5 -5
  60. package/modern/PieChart/PieChart.js +1 -1
  61. package/modern/ScatterChart/ScatterChart.js +1 -1
  62. package/modern/context/ZAxisContextProvider.js +1 -1
  63. package/modern/hooks/useReducedMotion.js +2 -2
  64. package/modern/hooks/useSeries.js +4 -4
  65. package/modern/index.js +1 -1
  66. package/modern/internals/domUtils.js +1 -1
  67. package/modern/internals/geometry.js +3 -5
  68. package/modern/internals/getPercentageValue.js +1 -1
  69. package/node/BarChart/BarChart.js +1 -1
  70. package/node/BarChart/formatter.js +5 -4
  71. package/node/ChartContainer/useDefaultizeAxis.js +1 -1
  72. package/node/ChartsAxis/ChartsAxis.js +4 -4
  73. package/node/ChartsLegend/DefaultChartsLegend.js +1 -1
  74. package/node/ChartsLegend/LegendPerItem.js +1 -1
  75. package/node/ChartsLegend/PiecewiseColorLegend.js +1 -1
  76. package/node/LineChart/AnimatedArea.js +8 -44
  77. package/node/LineChart/AnimatedLine.js +8 -35
  78. package/node/LineChart/AppearingMask.js +48 -0
  79. package/node/LineChart/LineChart.js +1 -1
  80. package/node/LineChart/formatter.js +5 -5
  81. package/node/PieChart/PieChart.js +1 -1
  82. package/node/ScatterChart/ScatterChart.js +1 -1
  83. package/node/context/ZAxisContextProvider.js +1 -1
  84. package/node/hooks/useReducedMotion.js +2 -2
  85. package/node/hooks/useSeries.js +4 -4
  86. package/node/index.js +1 -1
  87. package/node/internals/domUtils.js +1 -1
  88. package/node/internals/geometry.js +3 -5
  89. package/node/internals/getPercentageValue.js +1 -1
  90. package/package.json +5 -5
@@ -1,22 +1,22 @@
1
1
  /**
2
2
  * @ignore - internal component.
3
3
  */
4
- export declare const ChartsTooltipPaper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
4
+ export declare const ChartsTooltipPaper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
5
5
  /**
6
6
  * @ignore - internal component.
7
7
  */
8
- export declare const ChartsTooltipTable: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, keyof import("react").ClassAttributes<HTMLTableElement> | keyof import("react").TableHTMLAttributes<HTMLTableElement>>, {}>;
8
+ export declare const ChartsTooltipTable: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, keyof import("react").ClassAttributes<HTMLTableElement> | keyof import("react").TableHTMLAttributes<HTMLTableElement>>, {}>;
9
9
  /**
10
10
  * @ignore - internal component.
11
11
  */
12
- export declare const ChartsTooltipRow: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, keyof import("react").ClassAttributes<HTMLTableRowElement> | keyof import("react").HTMLAttributes<HTMLTableRowElement>>, {}>;
12
+ export declare const ChartsTooltipRow: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, keyof import("react").ClassAttributes<HTMLTableRowElement> | keyof import("react").HTMLAttributes<HTMLTableRowElement>>, {}>;
13
13
  /**
14
14
  * @ignore - internal component.
15
15
  */
16
- export declare const ChartsTooltipCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, keyof import("react").ClassAttributes<HTMLTableDataCellElement> | keyof import("react").TdHTMLAttributes<HTMLTableDataCellElement>>, {}>;
16
+ export declare const ChartsTooltipCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, keyof import("react").ClassAttributes<HTMLTableDataCellElement> | keyof import("react").TdHTMLAttributes<HTMLTableDataCellElement>>, {}>;
17
17
  /**
18
18
  * @ignore - internal component.
19
19
  */
20
- export declare const ChartsTooltipMark: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
20
+ export declare const ChartsTooltipMark: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
21
21
  color: string;
22
22
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1330,7 +1330,7 @@ export declare const AreaElementPath: import("@emotion/styled").StyledComponent<
1330
1330
  scrollTop?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
1331
1331
  scrollLeft?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
1332
1332
  viewBox?: string | import("@react-spring/shared").FluidValue<string, any> | undefined;
1333
- }, "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" | "onPointerLeave" | "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> & {
1333
+ }, "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" | "onPointerLeave" | "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").Theme> & {
1334
1334
  ownerState: AreaElementOwnerState;
1335
1335
  }, {}, {}>;
1336
1336
  export interface AnimatedAreaProps extends React.ComponentPropsWithoutRef<'path'> {
@@ -8,10 +8,9 @@ import PropTypes from 'prop-types';
8
8
  import { styled } from '@mui/material/styles';
9
9
  import { animated, useTransition } from '@react-spring/web';
10
10
  import { color as d3Color } from '@mui/x-charts-vendor/d3-color';
11
- import { cleanId } from "../internals/cleanId.js";
12
- import { useChartId, useDrawingArea } from "../hooks/index.js";
13
11
  import { useStringInterpolator } from "../internals/useStringInterpolator.js";
14
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { AppearingMask } from "./AppearingMask.js";
13
+ import { jsx as _jsx } from "react/jsx-runtime";
15
14
  export const AreaElementPath = styled(animated.path, {
16
15
  name: 'MuiAreaElement',
17
16
  slot: 'Root',
@@ -41,32 +40,7 @@ function AnimatedArea(props) {
41
40
  ownerState
42
41
  } = props,
43
42
  other = _objectWithoutPropertiesLoose(props, _excluded);
44
- const {
45
- left,
46
- top,
47
- right,
48
- bottom,
49
- width,
50
- height
51
- } = useDrawingArea();
52
- const chartId = useChartId();
53
43
  const stringInterpolator = useStringInterpolator(d);
54
- const transitionAppear = useTransition([1], {
55
- from: {
56
- animatedWidth: left
57
- },
58
- to: {
59
- animatedWidth: width + left + right
60
- },
61
- enter: {
62
- animatedWidth: width + left + right
63
- },
64
- leave: {
65
- animatedWidth: left
66
- },
67
- reset: false,
68
- immediate: skipAnimation
69
- });
70
44
  const transitionChange = useTransition([stringInterpolator], {
71
45
  from: {
72
46
  value: 0
@@ -80,23 +54,13 @@ function AnimatedArea(props) {
80
54
  reset: false,
81
55
  immediate: skipAnimation
82
56
  });
83
- const clipId = cleanId(`${chartId}-${ownerState.id}-area-clip`);
84
- return /*#__PURE__*/_jsxs(React.Fragment, {
85
- children: [/*#__PURE__*/_jsx("clipPath", {
86
- id: clipId,
87
- children: transitionAppear(style => /*#__PURE__*/_jsx(animated.rect, {
88
- x: 0,
89
- y: 0,
90
- width: style.animatedWidth,
91
- height: top + height + bottom
92
- }))
93
- }), /*#__PURE__*/_jsx("g", {
94
- clipPath: `url(#${clipId})`,
95
- children: transitionChange((style, interpolator) => /*#__PURE__*/_jsx(AreaElementPath, _extends({}, other, {
96
- ownerState: ownerState,
97
- d: style.value.to(interpolator)
98
- })))
99
- })]
57
+ return /*#__PURE__*/_jsx(AppearingMask, {
58
+ skipAnimation: skipAnimation,
59
+ id: `${ownerState.id}-area-clip`,
60
+ children: transitionChange((style, interpolator) => /*#__PURE__*/_jsx(AreaElementPath, _extends({}, other, {
61
+ ownerState: ownerState,
62
+ d: style.value.to(interpolator)
63
+ })))
100
64
  });
101
65
  }
102
66
  process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes = {
@@ -1330,7 +1330,7 @@ export declare const LineElementPath: import("@emotion/styled").StyledComponent<
1330
1330
  scrollTop?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
1331
1331
  scrollLeft?: number | import("@react-spring/shared").FluidValue<number, any> | undefined;
1332
1332
  viewBox?: string | import("@react-spring/shared").FluidValue<string, any> | undefined;
1333
- }, "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" | "onPointerLeave" | "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> & {
1333
+ }, "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" | "onPointerLeave" | "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").Theme> & {
1334
1334
  ownerState: LineElementOwnerState;
1335
1335
  }, {}, {}>;
1336
1336
  export interface AnimatedLineProps extends React.ComponentPropsWithoutRef<'path'> {
@@ -8,11 +8,9 @@ import PropTypes from 'prop-types';
8
8
  import { animated, useTransition } from '@react-spring/web';
9
9
  import { color as d3Color } from '@mui/x-charts-vendor/d3-color';
10
10
  import { styled } from '@mui/material/styles';
11
- import { cleanId } from "../internals/cleanId.js";
12
- import { useChartId } from "../hooks/useChartId.js";
13
- import { useDrawingArea } from "../hooks/useDrawingArea.js";
14
11
  import { useStringInterpolator } from "../internals/useStringInterpolator.js";
15
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { AppearingMask } from "./AppearingMask.js";
13
+ import { jsx as _jsx } from "react/jsx-runtime";
16
14
  export const LineElementPath = styled(animated.path, {
17
15
  name: 'MuiLineElement',
18
16
  slot: 'Root',
@@ -44,22 +42,7 @@ function AnimatedLine(props) {
44
42
  ownerState
45
43
  } = props,
46
44
  other = _objectWithoutPropertiesLoose(props, _excluded);
47
- const drawingArea = useDrawingArea();
48
- const chartId = useChartId();
49
45
  const stringInterpolator = useStringInterpolator(d);
50
- const transitionAppear = useTransition([drawingArea], {
51
- from: v => ({
52
- animatedWidth: v.left
53
- }),
54
- enter: v => ({
55
- animatedWidth: v.width + v.left + v.right
56
- }),
57
- leave: v => ({
58
- animatedWidth: v.width + v.left + v.right
59
- }),
60
- reset: false,
61
- immediate: skipAnimation
62
- });
63
46
  const transitionChange = useTransition([stringInterpolator], {
64
47
  from: {
65
48
  value: 0
@@ -73,23 +56,13 @@ function AnimatedLine(props) {
73
56
  reset: false,
74
57
  immediate: skipAnimation
75
58
  });
76
- const clipId = cleanId(`${chartId}-${ownerState.id}-line-clip`);
77
- return /*#__PURE__*/_jsxs(React.Fragment, {
78
- children: [/*#__PURE__*/_jsx("clipPath", {
79
- id: clipId,
80
- children: transitionAppear(style => /*#__PURE__*/_jsx(animated.rect, {
81
- x: 0,
82
- y: 0,
83
- width: style.animatedWidth,
84
- height: drawingArea.top + drawingArea.height + drawingArea.bottom
85
- }))
86
- }), /*#__PURE__*/_jsx("g", {
87
- clipPath: `url(#${clipId})`,
88
- children: transitionChange((style, interpolator) => /*#__PURE__*/_jsx(LineElementPath, _extends({}, other, {
89
- ownerState: ownerState,
90
- d: style.value.to(interpolator)
91
- })))
92
- })]
59
+ return /*#__PURE__*/_jsx(AppearingMask, {
60
+ skipAnimation: skipAnimation,
61
+ id: `${ownerState.id}-line-clip`,
62
+ children: transitionChange((style, interpolator) => /*#__PURE__*/_jsx(LineElementPath, _extends({}, other, {
63
+ ownerState: ownerState,
64
+ d: style.value.to(interpolator)
65
+ })))
93
66
  });
94
67
  }
95
68
  process.env.NODE_ENV !== "production" ? AnimatedLine.propTypes = {
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { SeriesId } from '../models/seriesType/common';
3
+ interface AppearingMaskProps {
4
+ id: SeriesId;
5
+ skipAnimation?: boolean;
6
+ children: React.ReactNode;
7
+ }
8
+ /**
9
+ * @ignore - internal component.
10
+ */
11
+ export declare function AppearingMask(props: AppearingMaskProps): React.JSX.Element;
12
+ export {};
@@ -0,0 +1,42 @@
1
+ 'use client';
2
+
3
+ import * as React from 'react';
4
+ import { animated, useTransition } from '@react-spring/web';
5
+ import { cleanId } from "../internals/cleanId.js";
6
+ import { useChartId, useDrawingArea } from "../hooks/index.js";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
+ /**
9
+ * @ignore - internal component.
10
+ */
11
+ export function AppearingMask(props) {
12
+ const drawingArea = useDrawingArea();
13
+ const chartId = useChartId();
14
+ const transitionAppear = useTransition([drawingArea], {
15
+ from: v => ({
16
+ animatedWidth: v.left
17
+ }),
18
+ enter: v => ({
19
+ animatedWidth: v.width + v.left + v.right
20
+ }),
21
+ leave: v => ({
22
+ animatedWidth: v.width + v.left + v.right
23
+ }),
24
+ reset: false,
25
+ immediate: props.skipAnimation
26
+ });
27
+ const clipId = cleanId(`${chartId}-${props.id}`);
28
+ return /*#__PURE__*/_jsxs(React.Fragment, {
29
+ children: [/*#__PURE__*/_jsx("clipPath", {
30
+ id: clipId,
31
+ children: transitionAppear(style => /*#__PURE__*/_jsx(animated.rect, {
32
+ x: 0,
33
+ y: 0,
34
+ width: style.animatedWidth,
35
+ height: drawingArea.top + drawingArea.height + drawingArea.bottom
36
+ }))
37
+ }), /*#__PURE__*/_jsx("g", {
38
+ clipPath: `url(#${clipId})`,
39
+ children: props.children
40
+ })]
41
+ });
42
+ }
@@ -36,7 +36,7 @@ export interface LineChartProps extends Omit<ResponsiveChartContainerProps, 'ser
36
36
  grid?: Pick<ChartsGridProps, 'vertical' | 'horizontal'>;
37
37
  /**
38
38
  * The configuration of axes highlight.
39
- * @see See {@link https://mui.com/x/react-charts/tooltip/#highlights highlight docs} for more details.
39
+ * @see See {@link https://mui.com/x/react-charts/highlighting highlighting docs} for more details.
40
40
  * @default { x: 'line' }
41
41
  */
42
42
  axisHighlight?: ChartsAxisHighlightProps;
@@ -69,7 +69,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
69
69
  // ----------------------------------------------------------------------
70
70
  /**
71
71
  * The configuration of axes highlight.
72
- * @see See {@link https://mui.com/x/react-charts/tooltip/#highlights highlight docs} for more details.
72
+ * @see See {@link https://mui.com/x/react-charts/highlighting highlighting docs} for more details.
73
73
  * @default { x: 'line' }
74
74
  */
75
75
  axisHighlight: PropTypes.shape({
@@ -1,9 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { stack as d3Stack } from '@mui/x-charts-vendor/d3-shape';
3
+ import { warnOnce } from '@mui/x-internals/warning';
3
4
  import { getStackingGroups } from "../internals/stackSeries.js";
4
5
  import { defaultizeValueFormatter } from "../internals/defaultizeValueFormatter.js";
5
- let warnedOnce = false;
6
-
7
6
  // For now it's a copy past of bar charts formatter, but maybe will diverge later
8
7
  const formatter = (params, dataset) => {
9
8
  const {
@@ -54,9 +53,10 @@ const formatter = (params, dataset) => {
54
53
  data: dataKey ? dataset.map(data => {
55
54
  const value = data[dataKey];
56
55
  if (typeof value !== 'number') {
57
- if (process.env.NODE_ENV !== 'production' && !warnedOnce && value !== null) {
58
- warnedOnce = true;
59
- console.error([`MUI X: Your dataset key "${dataKey}" is used for plotting line, but contains nonnumerical elements.`, 'Line plots only support numbers and null values.']);
56
+ if (process.env.NODE_ENV !== 'production') {
57
+ if (value !== null) {
58
+ warnOnce([`MUI X: Your dataset key "${dataKey}" is used for plotting line, but contains nonnumerical elements.`, 'Line plots only support numbers and null values.']);
59
+ }
60
60
  }
61
61
  return null;
62
62
  }
@@ -40,7 +40,7 @@ export interface PieChartProps extends Omit<ResponsiveChartContainerProps, 'seri
40
40
  tooltip?: ChartsTooltipProps<'pie'>;
41
41
  /**
42
42
  * The configuration of axes highlight.
43
- * @see See {@link https://mui.com/x/react-charts/tooltip/#highlights highlight docs} for more details.
43
+ * @see See {@link https://mui.com/x/react-charts/highlighting highlighting docs} for more details.
44
44
  * @default { x: 'none', y: 'none' }
45
45
  */
46
46
  axisHighlight?: ChartsAxisHighlightProps;
@@ -137,7 +137,7 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
137
137
  // ----------------------------------------------------------------------
138
138
  /**
139
139
  * The configuration of axes highlight.
140
- * @see See {@link https://mui.com/x/react-charts/tooltip/#highlights highlight docs} for more details.
140
+ * @see See {@link https://mui.com/x/react-charts/highlighting highlighting docs} for more details.
141
141
  * @default { x: 'none', y: 'none' }
142
142
  */
143
143
  axisHighlight: PropTypes.shape({
@@ -4,6 +4,6 @@ import type { ResponsiveChartContainerProps } from './ResponsiveChartContainer';
4
4
  *
5
5
  * @ignore - do not document.
6
6
  */
7
- export declare const ResizableContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
7
+ export declare const ResizableContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
8
8
  ownerState: Pick<ResponsiveChartContainerProps, "width" | "height">;
9
9
  }, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
@@ -4,7 +4,7 @@ export declare const useResponsiveChartContainerProps: (props: ResponsiveChartCo
4
4
  chartContainerProps: Omit<import("..").ChartsSurfaceProps & Omit<import("../internals").SeriesProviderProps, "seriesFormatters"> & Omit<import("../internals").DrawingProviderProps, "svgRef"> & Pick<import("../internals").CartesianProviderProps, "dataset"> & import("..").ZAxisContextProviderProps & import("..").HighlightedProviderProps & import("../internals").PluginProviderProps, "children"> & {
5
5
  xAxis?: import("../internals").MakeOptional<import("..").AxisConfig<import("..").ScaleName, any, import("..").ChartsXAxisProps>, "id">[];
6
6
  yAxis?: import("../internals").MakeOptional<import("..").AxisConfig<import("..").ScaleName, any, import("..").ChartsYAxisProps>, "id">[];
7
- children?: import("react").ReactNode;
7
+ children?: React.ReactNode;
8
8
  } & {
9
9
  ref: React.ForwardedRef<unknown>;
10
10
  };
@@ -30,7 +30,7 @@ export interface ScatterChartProps extends Omit<ResponsiveChartContainerProps, '
30
30
  tooltip?: ChartsTooltipProps<'scatter'>;
31
31
  /**
32
32
  * The configuration of axes highlight.
33
- * @see See {@link https://mui.com/x/react-charts/tooltip/#highlights highlight docs} for more details.
33
+ * @see See {@link https://mui.com/x/react-charts/highlighting highlighting docs} for more details.
34
34
  * @default { x: 'none', y: 'none' }
35
35
  */
36
36
  axisHighlight?: ChartsAxisHighlightProps;
@@ -62,7 +62,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
62
62
  // ----------------------------------------------------------------------
63
63
  /**
64
64
  * The configuration of axes highlight.
65
- * @see See {@link https://mui.com/x/react-charts/tooltip/#highlights highlight docs} for more details.
65
+ * @see See {@link https://mui.com/x/react-charts/highlighting highlighting docs} for more details.
66
66
  * @default { x: 'none', y: 'none' }
67
67
  */
68
68
  axisHighlight: PropTypes.shape({
@@ -4,7 +4,7 @@ import { ChartsTooltipProps, ChartsTooltipSlotProps, ChartsTooltipSlots } from '
4
4
  import { ChartsAxisHighlightProps } from '../ChartsAxisHighlight';
5
5
  import { AxisConfig, ChartsXAxisProps, ChartsYAxisProps, ScaleName } from '../models/axis';
6
6
  import { MakeOptional } from '../models/helpers';
7
- import { LineSeriesType } from '../models/seriesType/line';
7
+ import { LineSeriesType } from '../models/seriesType';
8
8
  import { CardinalDirections } from '../models/layout';
9
9
  import { AreaPlotSlots, AreaPlotSlotProps } from '../LineChart/AreaPlot';
10
10
  import { LinePlotSlots, LinePlotSlotProps } from '../LineChart/LinePlot';
@@ -9,7 +9,7 @@ export declare const defaultizeAxis: (inAxis: MakeOptional<AxisConfig<ScaleName,
9
9
  label?: string | undefined;
10
10
  max?: (number | Date) | undefined;
11
11
  min?: (number | Date) | undefined;
12
- valueFormatter?: ((value: any, context: import("../../models/axis").AxisValueFormatterContext) => string) | undefined;
12
+ valueFormatter?: ((value: any, context: import("../../internals").AxisValueFormatterContext) => string) | undefined;
13
13
  dataKey?: string | undefined;
14
14
  sx?: import("@mui/system").SxProps | undefined;
15
15
  classes?: Partial<import("../..").ChartsAxisClasses> | undefined;
@@ -24,13 +24,13 @@ export declare const defaultizeAxis: (inAxis: MakeOptional<AxisConfig<ScaleName,
24
24
  tickLabelInterval?: ("auto" | ((value: any, index: number) => boolean)) | undefined;
25
25
  labelFontSize?: number | undefined;
26
26
  tickSize?: number | undefined;
27
- slots?: Partial<import("../../models/axis").ChartsAxisSlots> | undefined;
28
- slotProps?: Partial<import("../../models/axis").ChartsAxisSlotProps> | undefined;
27
+ slots?: Partial<import("../../internals").ChartsAxisSlots> | undefined;
28
+ slotProps?: Partial<import("../../internals").ChartsAxisSlotProps> | undefined;
29
29
  tickInterval?: ("auto" | ((value: any, index: number) => boolean) | any[]) | undefined;
30
30
  tickPlacement?: ("start" | "end" | "middle" | "extremities") | undefined;
31
31
  tickLabelPlacement?: ("middle" | "tick") | undefined;
32
32
  scaleType?: "linear" | "time" | "log" | "band" | "point" | "pow" | "sqrt" | "utc" | undefined;
33
33
  colorMap?: import("../../models/colorMapping").ContinuousColorConfig<number | Date> | import("../../models/colorMapping").PiecewiseColorConfig<number | Date> | import("../../models/colorMapping").OrdinalColorConfig<string | number | Date> | undefined;
34
34
  hideTooltip?: boolean | undefined;
35
- id: import("../../models/axis").AxisId;
35
+ id: import("../../internals").AxisId;
36
36
  }[];
@@ -37,10 +37,10 @@ export declare const defaultPlugins: ({
37
37
  radiusExtremumGetter?: ExtremumGetter<"pie"> | undefined;
38
38
  })[];
39
39
  export declare function mergePlugins(plugins?: ChartsPlugin<ChartSeriesType>[]): {
40
- seriesFormatters: SeriesFormatterConfig<keyof import("../../models/seriesType/config").ChartsSeriesConfig>;
41
- colorProcessors: ColorProcessorsConfig<keyof import("../../models/seriesType/config").ChartsSeriesConfig>;
42
- xExtremumGetters: ExtremumGettersConfig<keyof import("../../models/seriesType/config").ChartsSeriesConfig>;
43
- yExtremumGetters: ExtremumGettersConfig<keyof import("../../models/seriesType/config").ChartsSeriesConfig>;
44
- rotationExtremumGetters: ExtremumGettersConfig<keyof import("../../models/seriesType/config").ChartsSeriesConfig>;
45
- radiusExtremumGetters: ExtremumGettersConfig<keyof import("../../models/seriesType/config").ChartsSeriesConfig>;
40
+ seriesFormatters: SeriesFormatterConfig<keyof import("../../internals").ChartsSeriesConfig>;
41
+ colorProcessors: ColorProcessorsConfig<keyof import("../../internals").ChartsSeriesConfig>;
42
+ xExtremumGetters: ExtremumGettersConfig<keyof import("../../internals").ChartsSeriesConfig>;
43
+ yExtremumGetters: ExtremumGettersConfig<keyof import("../../internals").ChartsSeriesConfig>;
44
+ rotationExtremumGetters: ExtremumGettersConfig<keyof import("../../internals").ChartsSeriesConfig>;
45
+ radiusExtremumGetters: ExtremumGettersConfig<keyof import("../../internals").ChartsSeriesConfig>;
46
46
  };
@@ -24,7 +24,7 @@ function ZAxisContextProvider(props) {
24
24
  return axisConfig;
25
25
  }
26
26
  if (dataset === undefined) {
27
- throw Error('MUI X: z-axis uses `dataKey` but no `dataset` is provided.');
27
+ throw new Error('MUI X: z-axis uses `dataKey` but no `dataset` is provided.');
28
28
  }
29
29
  return _extends({}, axisConfig, {
30
30
  data: dataset.map(d => d[dataKey])
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
 
3
3
  import { useIsomorphicLayoutEffect, Globals } from '@react-spring/web';
4
- const handleMediaChange = e => {
4
+ const handleMediaChange = event => {
5
5
  Globals.assign({
6
6
  // Modification such the react-spring implementation such that this hook can remove animation but never activate animation.
7
- skipAnimation: e.matches || undefined
7
+ skipAnimation: event.matches || undefined
8
8
  });
9
9
  };
10
10
 
@@ -11,7 +11,7 @@ export declare function useSeries(): FormattedSeries;
11
11
  * The returned object contains:
12
12
  * - series: a mapping from ids to series attributes.
13
13
  * - seriesOrder: the array of series ids.
14
- * @returns { series: Record<SeriesId, DefaultizedPieSeriesType>; seriesOrder: SeriesId[]; } | undefined pieSeries
14
+ * @returns {{ series: Record<SeriesId, DefaultizedPieSeriesType>; seriesOrder: SeriesId[]; } | undefined} pieSeries
15
15
  */
16
16
  export declare function usePieSeries(): FormattedSeries['pie'];
17
17
  /**
@@ -19,7 +19,7 @@ export declare function usePieSeries(): FormattedSeries['pie'];
19
19
  * The returned object contains:
20
20
  * - series: a mapping from ids to series attributes.
21
21
  * - seriesOrder: the array of series ids.
22
- * @returns { series: Record<SeriesId, DefaultizedLineSeriesType>; seriesOrder: SeriesId[]; } | undefined lineSeries
22
+ * @returns {{ series: Record<SeriesId, DefaultizedLineSeriesType>; seriesOrder: SeriesId[]; } | undefined} lineSeries
23
23
  */
24
24
  export declare function useLineSeries(): FormattedSeries['line'];
25
25
  /**
@@ -27,7 +27,7 @@ export declare function useLineSeries(): FormattedSeries['line'];
27
27
  * The returned object contains:
28
28
  * - series: a mapping from ids to series attributes.
29
29
  * - seriesOrder: the array of series ids.
30
- * @returns { series: Record<SeriesId, DefaultizedBarSeriesType>; seriesOrder: SeriesId[]; } | undefined barSeries
30
+ * @returns {{ series: Record<SeriesId, DefaultizedBarSeriesType>; seriesOrder: SeriesId[]; } | undefined} barSeries
31
31
  */
32
32
  export declare function useBarSeries(): FormattedSeries['bar'];
33
33
  /**
@@ -35,6 +35,6 @@ export declare function useBarSeries(): FormattedSeries['bar'];
35
35
  * The returned object contains:
36
36
  * - series: a mapping from ids to series attributes.
37
37
  * - seriesOrder: the array of series ids.
38
- * @returns { series: Record<SeriesId, DefaultizedScatterSeriesType>; seriesOrder: SeriesId[]; } | undefined scatterSeries
38
+ * @returns {{ series: Record<SeriesId, DefaultizedScatterSeriesType>; seriesOrder: SeriesId[]; } | undefined} scatterSeries
39
39
  */
40
40
  export declare function useScatterSeries(): FormattedSeries['scatter'];