The angle at which js rotates the rectangle will its left and top change?

imitate processON, to do a small example of mouse drag, you can press and hold the four corners to change the size, you can rotate
after rotation, I calculate the new width and height, based on the matrix matrix of transform, because I see that the rotation above the processON will recalculate the width and height, and then give the div to become the following dynamic picture, is there anything missing?
do I need to change left and top after rotation?

Sep.06,2021
The operations of

transform are all calculated by matrix, and your left and top are unchanged, but visually changed. You can use the getComoputedStyle method to get the real changes in the data


Hello, how do you make the rectangular control around the ellipse?

Menu