pissang opened a new pull request #14553:
URL: https://github.com/apache/echarts/pull/14553


   <!-- Please fill in the following information to help us review your PR more 
efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [ ] bug fixing
   - [x] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   Add animation config in `ECharts#resize`
   
   ### Fixed issues
   
   https://github.com/apache/echarts/issues/13923
   
   
   ## Details
   
   ### Before: What was the problem?
   
   Resize animation is removed by default in 5.0
   
   ### After: How is it fixed in this PR?
   
   Add a config so animation can still be enabled when resizing.
   
   
   ## Usage
   
   ### Are there any API changes?
   
   - [x] The API has been changed.
   
   <!-- LIST THE API CHANGES HERE -->
   
   interface ResizeOpts {
     // other exists opts.
     
     animation: {
        duration: number
        easing: AnimationEasing
        delay: number
     }
   }
   
   ### Related test cases or examples to use the new APIs
   
   myChart.resize({
     animation: {
         duration: 300,
         easing: 'cubicInOut'
     }
   });
   
   ## Others
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merge.
   
   ### 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.

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