Skip to content

[Bug] custom 系列的过度动画 enterAnimation 在执行过程中,切换图例选中状态,会导致动画出错 #17280

@jiao1187875445

Description

@jiao1187875445

Version

5.3.2

Link to Minimal Reproduction

https://jsfiddle.net/jyx118/92ymjves/23/

Steps to Reproduce

打开上面 jsfiddle 链接后:
1.点击页面左上角按钮 "Run";
2.在误差线的入场动画未执行完之前,连续点击两次图例即可复现

Current Behavior

经历上述过程后,会发现,误差线原本应该是在折线图拐点的上下相邻位置,但是由于动画未执行完成时切换图例导致动画中断,此时再选中刚才取消的图例,会发现 custom 系列的入场动画的 y 属性停留在之前入场动画终止的位置。

Expected Behavior

预期结果是,无论如何切换图例,入场动画都能完全执行完成,保证动画执行完成后 custom 系列的自定义图形位置正确。

Environment

- OS: macOS Monterey
- Browser: Chrome 92.0.4515.131
- Framework: Vue@2

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions