javascript - PaperJs Adjusting width and height after rotation -


I have an item that has been rotated and I want to change width and height base without rotation.

When I change the item width and height altogether and again the shape direction resides in north and south.

How does it ensure that the width is updated based on the new rotation

is there a setting that I need to change or knows any math formula , I can use the new shape to calculate the basis on the rotation.

Any help or reference is much appreciated Thanks.

path Bounds property is the limit of the object, even if it is rotating. It prepares directly what you have prepared.

  & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.9.22/paper-full.min.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Canvas ID = "Mykives" resizing & gt; & Lt; / Canvas & gt; & Lt; / Body & gt; & Lt; / Html & gt;  


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -