NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/@antv/g2/lib/animate/animation/index.js
2023-09-14 14:47:11 +08:00

22 lines
663 B
Java

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.registerAnimation = exports.getAnimation = void 0;
var ANIMATIONS_MAP = {};
/**
* 根据名称获取对应的动画执行函数
* @param type 动画函数名称
*/
function getAnimation(type) {
return ANIMATIONS_MAP[type.toLowerCase()];
}
exports.getAnimation = getAnimation;
/**
* 注册动画执行函数
* @param type 动画执行函数名称
* @param animation 动画执行函数
*/
function registerAnimation(type, animation) {
ANIMATIONS_MAP[type.toLowerCase()] = animation;
}
exports.registerAnimation = registerAnimation;
//# sourceMappingURL=index.js.map