UNPKG

@antv/f-lottie

Version:

FEngine for Lottie

36 lines (35 loc) 783 B
import { Component, Ref, AnimationProps } from '@antv/f-engine'; interface LottieProps { data: any; options?: { loop?: number | boolean; autoplay?: boolean; }; style?: { width?: number; height?: number; x?: number; y?: number; }; play?: { speed?: number; start?: number; end?: number; }; animation?: AnimationProps; } declare class Lottie extends Component<LottieProps> { size: { width: number; height: number; }; ref: Ref; animation: any; constructor(props: any); didMount(): void; willUpdate(): void; addLottie: () => void; updateSize: () => void; render(): import("@antv/f-engine").JSX.Element; } export default Lottie;