antvis/G6

配置fx,fy 节点防重叠失效 #4269

songxiaoyu321 posted onGitHub

问题描述

搜索出第一批点,动画结束后给点固定fx,fy() WechatIMG1 搜索出第二批点,动画结束后给点固定fx,fy WechatIMG2 搜索出第三批点,动画结束后给点固定fx,fy WechatIMG3 以次类推,点重叠的会越来越多 // layout 配置 export const layout = { type: 'gForce', preventOverlap: true, // 防止重叠 nodeSize: 160, // 防止重叠,必须属性 nodeSize, gravity: 50 } 发现配置了fx,fy时preventOverlap失效,如何解决呢? 因为每次搜索出来的点,新的点出来时,不希望改变之前点的位置,所以无法去掉fx,fy

重现链接

重现步骤

同问题描述

预期行为

同问题描述

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 11 months ago

Fund this Issue

$0.00
Funded

Pull requests