Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

销毁图形BUG #70

Open
JaneXX0207 opened this issue May 8, 2018 · 4 comments
Open

销毁图形BUG #70

JaneXX0207 opened this issue May 8, 2018 · 4 comments

Comments

@JaneXX0207
Copy link

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

@bobiscool
Copy link
Owner

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

@JaneXX0207
Copy link
Author

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

@JackieGuan
Copy link

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

@wangherb
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants