graphin 2.7 版本 使用graphin-force 实现节点关系扩散时,节点和连线出现错位,没有对齐问题
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
graphin 2.7 版本 使用graphin-force 实现节点关系扩散时,节点和连线出现错位,没有对齐问题

### Your Example Website or App
无
### Steps to Reproduce the Bug or Issue
//扩散
setState((prevState) => {
return {
...prevState,
data: {
nodes: [...prevState.data.nodes, ...e.data.nodes],
edges: [...prevState.data.edges, ...e.data.edges],
},
}
});
### Expected behavior

### Screenshots or Videos
_No response_
### Platform
- OS: Windows
- Browser: Chrome
### Additional context
_No response_
Contributor guide
Research direction
Start by reproducing the issue in Graphin 2.7 with the supplied graphin-force layout configuration and the shown state update that appends nodes and edges. Compare the node and edge positions before and after expansion in Chrome on Windows; done means the expanded graph remains aligned as shown in the expected screenshot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100