Skip to content

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

@fhmt2014

Description

@fhmt2014

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions