38 lines
1.1 KiB
Java
38 lines
1.1 KiB
Java
import { doScaleAnimate } from './util';
|
|
/**
|
|
* @ignore
|
|
* 入场动画
|
|
* x 方向的生长
|
|
* @param element 执行动画的元素
|
|
* @param animateCfg 动画配置
|
|
* @param cfg 额外信息
|
|
*/
|
|
export function growInX(element, animateCfg, cfg) {
|
|
var coordinate = cfg.coordinate, minYPoint = cfg.minYPoint;
|
|
doScaleAnimate(element, animateCfg, coordinate, minYPoint, 'x');
|
|
}
|
|
/**
|
|
* @ignore
|
|
* 入场动画
|
|
* y 轴方向上的生长
|
|
* @param element 执行动画的元素
|
|
* @param animateCfg 动画配置
|
|
* @param cfg 额外信息
|
|
*/
|
|
export function growInY(element, animateCfg, cfg) {
|
|
var coordinate = cfg.coordinate, minYPoint = cfg.minYPoint;
|
|
doScaleAnimate(element, animateCfg, coordinate, minYPoint, 'y');
|
|
}
|
|
/**
|
|
* @ignore
|
|
* 入场
|
|
* 中心点的向四周的生长动画
|
|
* @param element 执行动画的元素
|
|
* @param animateCfg 动画配置
|
|
* @param cfg 额外信息
|
|
*/
|
|
export function growInXY(element, animateCfg, cfg) {
|
|
var coordinate = cfg.coordinate, minYPoint = cfg.minYPoint;
|
|
doScaleAnimate(element, animateCfg, coordinate, minYPoint, 'xy');
|
|
}
|
|
//# sourceMappingURL=grow-in.js.map |