wxDraw
wxDraw copied to clipboard
销毁图形BUG
trafficstars
大神,那个销毁图形(destroy)的BUG还修复吗?现在就卡在那里了,跪求给个答复~~
https://github.com/bobiscool/wxDraw/releases 请问是使用最新的版本吗?
是的哦。单个销毁好像是没问题,但是我用数组循环创建图形的时候,要销毁就会有BUG(会销毁其他图形)
我也遇到这个问题,看了下源码,改成这样了
destroy: function destroy(index,shapeid) { index = this.store.store.findIndex(item => item.Shapeid == shapeid); this.store.store.splice(index, 1); },
在销毁图像之前,将图像层级调至最高