Ovilia opened a new pull request, #19176:
URL: https://github.com/apache/echarts/pull/19176

   <!-- Please fill in the following information to help us review your PR more 
efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
   
   Many cases were reported with sunburst's label rotation and several PRs 
trying to fix them have been merged (#18240, #18962, #19174). This PR 
refactored and simplified the related code, fixes the problem of #19127 and 
tested all reported cases and make sure the label rotation algorithm is as 
robust as possible.
   
   ### Fixed issues
   
   - #19127
   
   ## Details
   
   ### Before: What was the problem?
   
   Label align is not syncing with rotation flipping, so the text is at the 
wrong position.
   
   
![image](https://github.com/apache/echarts/assets/779050/89f0151e-2d68-4af1-8739-3ed33614f7f6)
   
   
   ### After: How does it behave after the fixing?
   
   Use `needsFlip` to make sure this logic is the same with align and rotation.
   
   
![image](https://github.com/apache/echarts/assets/779050/1477c443-daca-4021-ae48-eabc71b5bf97)
   
   Diff:
   
   
![image](https://github.com/apache/echarts/assets/779050/98b775b8-8535-4ace-bf26-04433845485f)
   
   
   ## Document Info
   
   One of the following should be checked.
   
   - [x] 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
   
   I've run the visual test with the last version 5.4.3 and the result is as 
expected. I've also tested all rotation values and clockwise values to make 
sure the text is always in the readable direction.
   
   ## Others
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merging.
   
   ### Other information
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to