title: How to maintain rounded corner of Rect when scaling in fabric js
body: <p>I am using fabric js version 1.7.22.</p>
  
  <p>Original Object:</p>
  
  <p><a href="https://i.stack.imgur.com/cjHAD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cjHAD.png" alt="enter image description here"></a> </p>
  
  <p>Current result : </p>
  
  <p><a href="https://i.stack.imgur.com/nmrZA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nmrZA.png" alt="enter image description here"></a></p>
  
  <p>Expected result : </p>
  
  <p><a href="https://i.stack.imgur.com/3D9f4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3D9f4.png" alt="enter image description here"></a></p>