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

基于butterfly-dag最新版,采用数据驱动渲染初始连线偏移,节点移动之后正常 #931

Open
acpplife opened this issue Mar 7, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@acpplife
Copy link

acpplife commented Mar 7, 2023

The current behavior

希望通过数据流驱动的渲染方式,在初始化之后,保存canvas实例。然后监听nodes以及edges的变化,在变化时对比画布上的节点和当前数据源的节点,来实现创建和删除的功能。
但是有个问题是初始化时连线存在整体偏移,当节点拖拽之后又正常了。
image

但是如果是命令式的就是监听节点拖入,然后执行addNode是正常的。
所以这块怎么可以排查解决吗?谢谢

The expected behavior

通过数据驱动的方式也可以渲染正常。

Your environment(such as: Butterfly version、Browser version、OS and so on)

Butterfly version:
基础版butterfly-dag:4.3.18
Browser version:
Chrome最新版 110.0.5481
OS:
mac os

@acpplife acpplife added the bug Something isn't working label Mar 7, 2023
@acpplife
Copy link
Author

acpplife commented Mar 7, 2023

@noonnightstorm 大佬如果有时间麻烦帮忙看下,非常感谢~

@acpplife
Copy link
Author

acpplife commented Mar 7, 2023

尝试了下加setTimeout 0之后就正常了。请问initButterfly这个过程是同步的吗,有加载完成的事件吗,文档里面好像没有提到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant