antvis/G6

Do you want to work on this issue?

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

[V5] Mindmap layout, excessive animation error when adding child nodes, and layout cannot be called layout #6302

h3110w0r1d-y posted onGitHub

Describe the bug / 问题描述

添加节点后调用layout,仅在固定位置绘制出了子节点,未触发过度动画; 再次添加节点并调用layout,第一次添加的节点动画才触发,第二次添加的节点仍添加到了固定的位置;

添加节点后调用render才可以触发动画,但节点的初始位置错误。

预期结果:添加子节点后,调用layout/render,触发expand动画,新增的子节点应从父节点位置开始过渡

https://codesandbox.io/p/sandbox/romantic-napier-f96gcs

Steps to Reproduce the Bug or Issue / 重现步骤

重现链接中写了延时操作

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Edge

Additional context / 补充说明

No response


你提供的 demo 链接无法访问

posted by Aarebecca 8 months ago

你提供的 demo 链接无法访问

抱歉忘记设置访问权限了,现在可以访问了

posted by h3110w0r1d-y 8 months ago

你反馈的问题已经确认,会优化相关更新逻辑

posted by Aarebecca 8 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests