antvis/G6

边动画和节点动画. 无法共存; #5873

cjcj5438 posted onGitHub

Describe the bug / 问题描述

官方示例节点动画: https://g6.antv.antgroup.com/zh/examples/scatter/customAnimate/#position 官方示例边动画: https://g6.antv.antgroup.com/zh/examples/scatter/edge/#arrowAnimate 把官方的这两个demo, 合并在一起. 发现无法运行动画.

https://codesandbox.io/p/sandbox/quirky-danny-65j4ss?file=%2Findex.js%3A118%2C4

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

在实际项目中遇到了这样的情况. 只要添加了 animate: true, 全局动画. 局部线动画就会报错. 然后用官方demo也会有问题;

代码大部分逻辑没有改. 只是将两个动画demo ,放在一起, 就会报错; 要么有边动画. 要么有自定义节点动画;

G6 Version / G6 版本

4.x

Operating System / 操作系统

Windows

Browser / 浏览器

Chrome

Additional context / 补充说明

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] 5 months ago

Fund this Issue

$0.00
Funded

Pull requests