antvis/G6




The issue has been closed
修改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