antvis/G6

修改Demo中的决策树的nodeOrigin,发现连接线在展开折叠的时候不正确 #5148

H48530 posted onGitHub

问题描述

修改Demo中的决策树的nodeOrigin, 发现连接线在展开折叠的时候会先到节点的左边,然后又回到右边! const nodeOrigin = { x: 0, y: 0, };

重现链接

https://g6.antv.antgroup.com/examples/case/treeDemos#decisionTree

重现步骤

1、进入demo 2、修改nodeOrigin 3、点击展开折叠按钮,观察连接线的状态

预期行为

通过配置 getAnchorPoints() { return [ [0, 0.5], [1, 0.5], ]; }, 依然达不到很好的效果

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


hi @H48530, welcome!

posted by github-actions[bot] over 1 year ago

Hi @H48530, Please star this repo if you find it useful! Thanks :star:! 你好 @H48530。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!

posted by github-actions[bot] over 1 year ago

可以发现连接线条位置在改变 决策树

posted by H48530 over 1 year ago

This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 10 months ago

Fund this Issue

$0.00
Funded

Pull requests