this.zr = zrender.init(this.$refs.finger);
let circle1 = new zrender.Rect({
rotation: 0,
origin: [80, 80],
shape: {
x: 30,
y: 30,
width: 100,
height: 100
},
style: {
fill: "#FF6EBE",
stroke: "#FF6EBE"
},
silent: true
});
circle1.animateTo({
rotation: Math.PI * 2
}, 1000, 0)
circle1.animate('rotation',true)
.when(1000, 2)
.start()
this.zr.add(circle1);
第一个 animateTo 可以正常运行,第二个animate就会报错
回复 (0)
暂无回复,成为第一个参与讨论的人。
参与回复
登录后即可参与回复。登录