Skip to content

Conversation

@mynk2611
Copy link
Contributor

@mynk2611 mynk2611 commented Oct 17, 2025

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Fixes an unwanted visual glitch where the effect symbol briefly reverses direction at the endpoint when using unidirectional looping animation in series-lines

Fixed issues

#20216

Details

Before: What was the problem?

In unidirectional loop mode (roundTrip: false), the symbol (arrow) briefly flipped its direction backward for a single frame upon reaching the end of the path (t=1), creating an unwanted visual 'flash' before resetting to the origin.

Screen.Recording.2025-10-17.at.2.27.46.PM.mov

After: How does it behave after the fixing?

The symbol now maintains its forward direction and rotation smoothly until the loop resets, eliminating the brief directional flip and ensuring a consistent unidirectional animation.

Screen.Recording.2025-10-17.at.2.37.08.PM.mov

Document Info

One of the following should be checked.

  • This PR doesn't relate to document changes
  • The document should be updated later
  • The document changes have been made in apache/echarts-doc#xxx

Misc

ZRender Changes

  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

N.A.

Others

Merging options

  • Please squash the commits into a single one when merging.

Other information

@echarts-bot
Copy link

echarts-bot bot commented Oct 17, 2025

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

@Justin-ZS
Copy link
Contributor

you should not change the code style.(indentation)

…p' into fix-20216

fix(effectLine): fix symbol flicker at the ends when roundTrip is not enabled (resolves apache#20216)
@plainheart plainheart changed the title fix(lines): Fix lines effect symbol flip on unidirectional loop end. close #20216 fix(effectLine): fix symbol flip on unidirectional loop end when roundTrip is not enabled Oct 24, 2025
@plainheart plainheart added this to the 6.0.1 milestone Oct 24, 2025
@plainheart plainheart changed the title fix(effectLine): fix symbol flip on unidirectional loop end when roundTrip is not enabled fix(lines): fix effect symbol flip on unidirectional loop end when roundTrip is not enabled Oct 24, 2025
@mynk2611
Copy link
Contributor Author

you should not change the code style.(indentation)

sorry about that, my editor auto-formatted the file. i'll make sure to avoid next time.

@plainheart plainheart merged commit 51ae58d into apache:master Oct 24, 2025
@echarts-bot
Copy link

echarts-bot bot commented Oct 24, 2025

Congratulations! Your PR has been merged. Thanks for your contribution! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] echarts lines effect 5.3版本显示正常,5.4开始循环时运动结束会闪烁一下

3 participants