antvis/G6


The issue has been closed
树布局中如何在getWidth中获取节点的宽高 #6061
warriorhj posted onGitHub
Describe the bug / 问题描述
在layout初始化当中getWidth方法只能获取如下信息
我的目的是为了解决自定义节点时,不同节点具有不同宽度,在渲染后不会重叠
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
4.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response