I'm using react-konva
(Konva) and I need to prevent rotating the shape(rectangle) by clicking on corner point and dragging it over diagonal corner point. That will rotate the rectangle by 180 or -180 deg. Setting rotation=0
works only if you do 180deg rotation, otherwise, the shape is misplaced after you finish dragging.
How can I disable shape transformation and not allow dragging any point over another shape's point?