评论

拓扑topo新动效展示

采用canvas绘制拓扑电流动画

reloadimage(callback){
            let imgArrs = [];
            this.imgArray.forEach((img,index,arrs)=>{
                imgArrs[index] = new Image();
                imgArrs[index].src = require("@/assets/imgs/topo/"+img.src);
                imgArrs[index].onload = ()=>{
                    if(index >= arrs.length-1){
                        this.imgArrs = imgArrs;
                        console.log(imgArrs);
                        callback();
                    }
                }
            })
        },


最后一次编辑于  2022-08-05  
点赞 0
收藏
评论
登录 后发表内容