-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
给graph增加一个销毁画布的功能 #4290
Comments
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
this.graph.dispose(); 这个 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
功能描述
需求:在调用X6进行绘制图形的时候,有时会需要销毁画布并重新生成一个画布
应用场景:在同一个组件中需要根据不同的配置创建不同的图形,如流程图,架构图,泳道图,ER图等等,每一个图形在新生成的时候都要加载自己不同的配置和方法,这个时候就需要把上一个实例化的graph销毁掉,然后重新new一个出来,在实际调用时发现官方并未提供该方法,所以导致必须将每一个都提前实例化出来,导致性能浪费,而且有很多效果无法实现!
期望解决方案
希望可以给graph增加一个destory()方法用于销毁掉之前实例化出来的graph
The text was updated successfully, but these errors were encountered: