antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

force2 布局的小问题 #4723

MysticTraveller posted onGitHub

问题描述

在从 force 迁移至 force2 时,发现了俩个问题,官网案例可复现 https://g6.antv.antgroup.com/zh/examples/net/forceDirected/#basicForce2:

  1. 首次加载时,布局会闪烁抖动。
  2. 拖拽节点时,布局也会闪烁抖动。

重现链接

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

重现步骤

  1. 首次加载时,布局会闪烁抖动。
  2. 拖拽节点时,布局也会闪烁抖动。

预期行为

我期望布局变化的更平滑。

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


@MysticTraveller 版本太低了,升级到最新版本的 G6 问题就解决了

posted by pomelo-nwu almost 2 years ago

是说布局快结束的时候吗?可以调整 minMovement 大一些,这样可以减少 swing。比如:minMovement: 1,

posted by Yanyan-Wang almost 2 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests