Skip to content

Conversation

@eflynch
Copy link

@eflynch eflynch commented Jul 17, 2014

I was pretty confused by the existing rotation plugin. It makes sense of 90º rotations, but for anything else, it makes a box thats big enough to house the new image but then doesn't render it in the center. I wasn't sure if preserving the behavior of the original is important or not, so my changes add two new rotation plugins. The first, rotateSquareBox, behaves just like the original should (I think) for non 90º rotations, and for 90º rotations keeps the square-box behavior for consistency. The second, rotateBoundingBox, makes a canvas exactly as big as required to house the rotation and no larger, therefore it behaves like the original for 90º rotations and has a more intuitive behavior for other rotations.

@eflynch eflynch changed the title Added to new rotation plugins that are have more intuitive behavior Added two new rotation plugins that have more intuitive behavior Jul 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants