UNPKG

619 BTypeScriptView Raw
1import { IGroup, IShape } from '../../dependents';
2import { GAnimateCfg } from '../../interface';
3import { AnimateExtraCfg } from '../interface';
4declare type Animation = (element: IGroup | IShape, animateCfg: GAnimateCfg, cfg: AnimateExtraCfg) => void;
5/**
6 * 根据名称获取对应的动画执行函数
7 * @param type 动画函数名称
8 */
9export declare function getAnimation(type: string): Animation;
10/**
11 * 注册动画执行函数
12 * @param type 动画执行函数名称
13 * @param animation 动画执行函数
14 */
15export declare function registerAnimation(type: string, animation: Animation): void;
16export {};