antv-dagre layout, after resetting the data and rendering, the node order is not as expected
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug / 问题描述
动态添加了一个节点,然后重新设置布局,给出了nodeOrder顺序,但是没有按照预期顺序自上而下排列,预期节点顺序是44在4上面,如果是destroy之后重新初始化,是没问题的。
### Reproduction link / 重现链接
https://codesandbox.io/p/sandbox/red-rgb-wzszl5
### Steps to Reproduce the Bug or Issue / 重现步骤
_No response_
### G6 Version / G6 版本
🆕 5.x
### Operating System / 操作系统
macOS
### Browser / 浏览器
Chrome
### Additional context / 补充说明
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked CodeSandbox reproduction and inspect the antv-dagre layout path used after data is reset and rendered. Done means the supplied nodeOrder places node 44 above node 4 after resetting data, without destroying and reinitializing the graph.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100