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