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

   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   ### What does this PR do?
   
   Keep themeRiver percentage boundary gaps intact so resizing recalculates 
them for the current axis size.
   
   ### Fixed issues
   
   Fixes #21858.
   
   ## Details
   
   ### Before: What was the problem?
   
   The layout converted the series' `boundaryGap` array to pixels in place. 
Later layouts reused those pixel values after the chart dimensions changed.
   
   ### After: How does it behave after the fixing?
   
   Copy the array before resolving percentages. A resized chart now has the 
same layout as a fresh chart at the final size, for both axis orientations.
   
   ## Document Info
   
   - [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
   
   ### Security Checking
   
   - [ ] This PR uses security-sensitive Web APIs.
   
   ### ZRender Changes
   
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   Added `test/ut/spec/series/themeRiver.test.ts`. Both orientation cases fail 
on the release branch before the fix.
   
   All 228 unit tests passed. The library build, type checks, source lint, and 
license-header check passed.
   
   ### Merging options
   
   - [x] Please squash the commits into a single one when merging.


-- 
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