Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fhmt2014 opened this issue Dec 15, 2023 · 0 comments

Comments

@fhmt2014
Copy link

Describe the bug

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

1702621328998

Your Example Website or App

Steps to Reproduce the Bug or Issue

<Graphin
layout={{
type: "graphin-force",
animation: false,
preset: {
type: "concentric"
},
defSpringLen
}} data={data} >
//扩散
setState((prevState) => {
return {
...prevState,
data: {
nodes: [...prevState.data.nodes, ...e.data.nodes],
edges: [...prevState.data.edges, ...e.data.edges],
},
}
});

Expected behavior

1702621328998

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Chrome

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant