antvis / Graphin

A React toolkit for graph visualization based on G6
https://graphin.antv.antgroup.com
MIT License
980 stars 263 forks source link

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

Open fhmt2014 opened 5 months ago

fhmt2014 commented 5 months ago

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

Additional context

No response