自定义布局的问题 #5232
Labels
good first issue
Outdate
This issue is too old to be resolved
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
问题描述
需求:第1层级横向排列,从第2层级开始纵向排列
实现方式:整体紧凑树布局,从第2层级开始使用缩进树布局的自定义布局
问题:缩进树布局的节点起始位置不对
重现链接
暂无
重现步骤
预期行为
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
代码参考了#5062 中的 https://codesandbox.io/s/ecstatic-phoebe-95kxjg
附上layout部分代码
` layout: ((d: any) => {
const compactBoxConfig = {
type: 'compactBox',
direction: 'TB',
getId: function getId(d: any) {
return d.id;
},
getHeight: function getHeight() {
return 84;
},
getWidth: function getWidth() {
return 233;
},
getVGap: function getVGap() {
return 20;
},
getHGap: function getHGap() {
return 20;
},
};
const layoutData = Hierarchy[compactBoxConfig.type](
d,
compactBoxConfig,
);
The text was updated successfully, but these errors were encountered: