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

24 lines
487 B
Java

/**
* @ignore
* 坐标移动动画
* @param shape 图形
* @param animateCfg
* @param cfg
*/
export function positionUpdate(shape, animateCfg, cfg) {
var toAttrs = cfg.toAttrs;
// @ts-ignore
var x = toAttrs.x;
// @ts-ignore
var y = toAttrs.y;
// @ts-ignore
delete toAttrs.x;
// @ts-ignore
delete toAttrs.y;
shape.attr(toAttrs);
shape.animate({
x: x,
y: y,
}, animateCfg);
}
//# sourceMappingURL=position-update.js.map