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

draw跟redraw的渲染问题 #955

Open
asreday opened this issue Jun 25, 2023 · 3 comments
Open

draw跟redraw的渲染问题 #955

asreday opened this issue Jun 25, 2023 · 3 comments

Comments

@asreday
Copy link

asreday commented Jun 25, 2023

我发现每次调用redraw的时候都会屏闪,如果有每个几秒读取数据的需求的话,每次redraw都会重新删除节点后再新增,有没有啥方式能让其平滑更新节点状态,用butterfly-vue,节点渲染也有问题,直接this.data.nodes = [],视图并未更新,用this.$set(this.data,'nodes',[])也不行,一定要用push这种塞节点的方式才能更新吗?

@asreday
Copy link
Author

asreday commented Jun 25, 2023

chrome-capture-2023-5-25
这个只能通过更新zoom才没那么闪

@noonnightstorm
Copy link
Collaborator

@Zt448143356 帮忙看看

@Zt448143356
Copy link
Contributor

如果,你对性能要求高的话。就不推荐你使用vue版本了。
原生的butterfly-dag更加合适你。

关于渲染部分。你可以参看
https://github.com/alibaba/butterfly/blob/master/vue/example/src/page/base/base.vue
这个文件

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

3 participants