Rotating a rectangle transform it into a non-rectangle polygon
Hello there, first of all, thanks for providing such a useful library :)
I think I'm seeing something odd with rotation. Basically, when a transform is enabled on a rectangle, after rotating it, its diagonals don't have the same distance anymore (which is one of the rule that allow to check that a polygon is a rectangle).
I made a small test app so you can see by yourself: https://leaflet-path-transform.glitch.me/
let me know if you need more information.
https://github.com/w8r/Leaflet.Path.Transform/issues/39
worked here. https://github.com/kevinsamyn/Leaflet.Path.Transform/blob/master/dist/L.Path.Transform-src.js But in this repo changed only dist file.
Hey @Groxot , thanks a lot! I tried your version at https://leaflet-path-transform.glitch.me/ It looks a lot better, but the diagonals are still not equal when rotating.