antvis/G6

拖拽节点,其他节点没有跟着被拖拽节点的运动轨迹走 #4150

gongpingwa00 posted onGitHub

问题描述

https://g6.antv.antgroup.com/zh/examples/net/forceDirected#basicForceDirectedDragFix image 拖拽0节点,其他节点没有跟着0节点移动,而是向着反方向跑,固定每条边长度linkDistance也不行. 怎么样才能实现其他节点总是在被拖拽节点的周围边长距离的位置

重现链接

https://g6.antv.antgroup.com/zh/examples/net/forceDirected#basicForceDirectedDragFix

重现步骤

进入示例 image

预期行为

我期望看到:其他节点总是在被拖拽节点的周围边长距离的位置,比如边长固定150,其他节点总是在被拖拽节点150的地方,均匀散布在周围,但是目前其他节点都都朝着反方向走,边长设置的150都没效果

平台

  • 操作系统: [ Windows]
  • 网页浏览器: [Google Chrome]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


Fund this Issue

$0.00
Funded

Pull requests