antvis / antvis/Graphin

graphin 2.7 版本 使用graphin-force 实现节点关系扩散时,节点和连线出现错位,没有对齐问题

Open
#525 0 comments 0 reactions 0 assignees View on GitHub
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 实现节点关系扩散时,节点和连线出现错位,没有对齐问题

![1702621328998](https://github.com/antvis/Graphin/assets/7715191/0ca36390-8dfc-40e2-95b3-bac605df6ef6)

### 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

![1702621328998](https://github.com/antvis/Graphin/assets/7715191/885c43e1-7323-419b-aa18-9c28c25fb09a)

### Screenshots or Videos

_No response_

### Platform

- OS: Windows
- Browser: Chrome

### Additional context

_No response_

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.