Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
h3110w0r1d-y opened this issue Sep 9, 2024 · 3 comments
Labels

Comments

@h3110w0r1d-y
Copy link

Describe the bug / 问题描述

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

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

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

Reproduction link / 重现链接

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

@github-actions github-actions bot changed the title [V5] Mindmap布局,添加子节点时过度动画错误、调用layout无法布局 [V5] Mindmap layout, excessive animation error when adding child nodes, and layout cannot be called layout Sep 9, 2024
@Aarebecca
Copy link
Contributor

你提供的 demo 链接无法访问

@h3110w0r1d-y
Copy link
Author

你提供的 demo 链接无法访问

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

@Aarebecca Aarebecca added the v5 label Sep 10, 2024
@Aarebecca
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants