Justin-ZS opened a new pull request, #21489:
URL: https://github.com/apache/echarts/pull/21489

   ## Brief Information
   
   This pull request is in the type of:
   
   - [ ] bug fixing
   - [x] new feature
   - [ ] others
   
   ### What does this PR do?
   
   Auto update `devicePixelRatio` on `resize()` to fix blurry chart after 
browser zoom.
   
   ### Fixed issues
   
   - #21386
   
   ## Details
   
   ### Before: What was the problem?
   
   When browser zoom changes, calling `chart.resize()` does not update 
`devicePixelRatio`, resulting in blurry charts.
   
   ### After: How does it behave after the fixing?
   
   `resize()` now defaults to use `window.devicePixelRatio`, so charts 
automatically become crisp after browser zoom.
   
   ## Document Info
   
   - [x] The document should be updated later
   
   ## Misc
   
   ### Security Checking
   
   - [ ] This PR uses security-sensitive Web APIs.
   
   ### ZRender Changes
   
   - [x] This PR depends on ZRender changes 
(https://github.com/ecomfe/zrender/pull/1149).
   
   ### Related test cases or examples to use the new APIs
   
   ### Merging options
   
   - [x] Please squash the commits into a single one when merging.
   
   ### Other information
   
   N.A.


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