Files
ETB/ETB-FrontEnd/node_modules/@mui/x-charts/hooks/animation/useAnimateLine.d.ts
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

14 lines
699 B
TypeScript

import * as React from 'react';
import type { AnimatedLineProps } from "../../LineChart/index.js";
type UseAnimateLineParams = Pick<AnimatedLineProps, 'd' | 'skipAnimation'> & {
ref?: React.Ref<SVGPathElement>;
};
type UseAnimatedReturnValue = {
ref: React.Ref<SVGPathElement>;
d: string;
};
/** Animates a line of a line chart using a `path` element.
* The props object also accepts a `ref` which will be merged with the ref returned from this hook. This means you can
* pass the ref returned by this hook to the `path` element and the `ref` provided as argument will also be called. */
export declare function useAnimateLine(props: UseAnimateLineParams): UseAnimatedReturnValue;
export {};