how to calculate left and top in rotation after getting the matrix?
<div style="width:100px;height:50px;">
</div>
div.style.transform = `rotateZ(45deg)`
//
let transform = window.getComputedStyle(div)["transform"],
matrix = transform.slice(7, -1).split(",")