antvis/G2


The issue has been closed
自定义action在销毁时取不到view等上下文信息 #3544
xiaoke-1 posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
动态移除交互时,action在销毁时需要执行一些操作,比如移除element的状态等,但是在调用action的destroy方法前,content下的view已经被置空了,context的destroy方法截图
When dynamically removing an interaction, the action performs some actions such as removing an element's state, but before calling the action's destroy method, the view under the content is already empty
What does the proposed API look like?
先执行action的destroy,在置空view等上下文的信息
First execute the action's destroy, in the context of the null view
<!-- generated by antv-issue-helper. DO NOT REMOVE -->