// 测试tweenceshiTween(){const position ={x:0,y:10}const arr =[{x:10,y:20},{x:20,y:30},{x:30,y:40},{x:40,y:50},{x:50,y:60},{x:60,y:70},{x:70,y:80},{x:80,y:90},{x:90,y:100}]const data ={x:100}let t =newDate().getTime()this.tweenAnimation =newTWEEN.Tween(data).to({x:200},5000).onUpdate(val=>{
console.log(val.x);}).start()const b =newTWEEN.Tween(data).to({x:0}).onUpdate(val=>{
console.log(val);})this.tweenAnimation.chain(b)}