wxDraw icon indicating copy to clipboard operation
wxDraw copied to clipboard

销毁图形BUG

Open JaneXX0207 opened this issue 7 years ago • 4 comments
trafficstars

大神,那个销毁图形(destroy)的BUG还修复吗?现在就卡在那里了,跪求给个答复~~

JaneXX0207 avatar May 08 '18 06:05 JaneXX0207

https://github.com/bobiscool/wxDraw/releases 请问是使用最新的版本吗?

bobiscool avatar May 08 '18 07:05 bobiscool

是的哦。单个销毁好像是没问题,但是我用数组循环创建图形的时候,要销毁就会有BUG(会销毁其他图形)

JaneXX0207 avatar May 08 '18 08:05 JaneXX0207

我也遇到这个问题,看了下源码,改成这样了 destroy: function destroy(index,shapeid) { index = this.store.store.findIndex(item => item.Shapeid == shapeid); this.store.store.splice(index, 1); },

JackieGuan avatar May 20 '18 07:05 JackieGuan

在销毁图像之前,将图像层级调至最高

wangherb avatar May 30 '19 03:05 wangherb