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

dagre布局中使用graph.updateLayout()方法切换controlPoints无效 #5799

Open
dxchen00 opened this issue May 31, 2024 · 0 comments
Open
Labels
layout Issue about layout v4

Comments

@dxchen00
Copy link

问题描述

dagre布局,连线是polyline类型,通过graph.updateLayout()方法切换controlPoints的值,只会将controlPoints切换成true和false,如下:
graph.updateLayout({
controlPoints: true,
});
调用完updateLayout方法后连线的控制点没有改变,希望看到有控制点和无控制点两种情况,如下图:

image image

重现链接

重现步骤

预期行为

希望调用graph.updateLayout()方法后可立即切换连线样式,不希望重新创建图的实例来实现目标

平台

  • 操作系统: [macOS]
  • 网页浏览器: [Google Chrome]
  • G6 版本: [4.8.24]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@yvonneyx yvonneyx added v4 layout Issue about layout labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
layout Issue about layout v4
Projects
None yet
Development

No branches or pull requests

2 participants