antvis/G6

Do you want to work on this issue?

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

G6 TreeGraph 树图左右布局设置父节点x y 偏移量,出现重复父节点??? #5801

MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM posted onGitHub

问题描述

树图 设置父节点x y 偏移量后,渲染出两个父节点,这是为啥? 如下图所示 父节点位置正常是蓝色模块,设置完偏移量后,又多出个黄色的色块,黄色的色块应该是右侧子节点的色块

1717232903106

rect = group.addShape('rect', { attrs: { x: 10, // x 轴移动距离 y: 10, // y 轴移动距离 width: size[0],// 宽 height: 40,// 高 fill: _this.cardColor[0], stroke: _this.cardColor[0],// 边框色 fontSize: 10, fontWeight: 400, radius: 4 }, name: 'rect-shape', });

重现链接

重现步骤

预期行为

为啥会出现重复节点?

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests