react-resizable-rotatable-draggable
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -79,2 +79,4 @@ "use strict"; | ||
rotateAngle = rect.rotateAngle; | ||
var widthFlag = width < 0 ? -1 : 1; | ||
var heightFlag = height < 0 ? -1 : 1; | ||
width = Math.abs(width); | ||
@@ -267,4 +269,4 @@ height = Math.abs(height); | ||
size: { | ||
width: width, | ||
height: height | ||
width: width * widthFlag, | ||
height: height * heightFlag | ||
} | ||
@@ -271,0 +273,0 @@ }; |
{ | ||
"name": "react-resizable-rotatable-draggable", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "A rectangle react component which can be resized and rotated", | ||
@@ -5,0 +5,0 @@ "author": "MockingBot", |
36660
672