In the comboCombined layout, after the dagre direction is changed from rankdir: 'LR' to rankdir: 'TB', and then the combo node is expanded, the position of the combo expansion is still the previous position?
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug / 问题描述
comboCombined 布局中, dagre方向由 rankdir: 'LR' 切换为 rankdir: 'TB' 后,再展开combo节点,此时combo展开的位置还是之前的位置:
期望:combo展开的位置与折叠状态的位置一致,而不是切换方向前的位置;
```
const graph = new G6.Graph({
container: 'container',
width,
height,
layout: {
animate: true,
type: 'comboCombined',
sortByCombo: false,
collapsed: true,
innerLayout: new G6.Layout.grid({
collapsed: true,
}),
minZoom: 1,
maxZoom: 1,
outerLayout: new G6.Layout.dagre({
nodesep: 30, // 节点间距
ranksep: 60, // 层间距
nodeSize: 30,
minZoom: 1,
maxZoom: 2.5,
rankdir: 'LR',
linkDistance: 50,
controlPoints: true, // 可选
preventOverlap: false,
}),
comboPadding: 20,
},
});
```

### Reproduction link / 重现链接
https://codesandbox.io/p/sandbox/musing-herschel-r2dk4x
### Steps to Reproduce the Bug or Issue / 重现步骤
1. 切换dagre的方向
2. 点击combo展开
3. 此时可看到combo位置不对
### G6 Version / G6 版本
4.x
### Operating System / 操作系统
macOS
### Browser / 浏览器
Chrome
### Additional context / 补充说明
G6版本:
"@antv/g6": "^4.8.23"
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked CodeSandbox reproduction using G6 4.x, then inspect the comboCombined layout and its dagre outerLayout when rankdir changes from LR to TB. Reproduce the direction switch and combo expansion before tracing how expansion positions are calculated. Done means the expanded combo remains aligned with its collapsed position after the direction change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100