antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

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

dxchen00 posted onGitHub

问题描述

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

<img width="554" alt="image" src="https://github.com/antvis/G6/assets/15138901/7ba95196-acba-4a9a-b60e-cc030b00e565"> <img width="583" alt="image" src="https://github.com/antvis/G6/assets/15138901/02ebe221-aea9-41a1-b6fc-200718413bff">

重现链接

重现步骤

预期行为

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

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests