react-resizable-rotatable-draggable
Advanced tools
Comparing version
@@ -208,7 +208,7 @@ "use strict"; | ||
var style = { | ||
width: width, | ||
height: height, | ||
width: Math.abs(width), | ||
height: Math.abs(height), | ||
transform: "rotate(".concat(rotateAngle, "deg)"), | ||
left: centerX - width / 2, | ||
top: centerY - height / 2 | ||
left: centerX - Math.abs(width) / 2, | ||
top: centerY - Math.abs(height) / 2 | ||
}; | ||
@@ -268,3 +268,4 @@ var direction = zoomable.split(',').map(function (d) { | ||
onDrag: _propTypes.default.func, | ||
onDragEnd: _propTypes.default.func | ||
onDragEnd: _propTypes.default.func, | ||
parentRotateAngle: _propTypes.default.number | ||
}); |
{ | ||
"name": "react-resizable-rotatable-draggable", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A rectangle react component which can be resized and rotated", | ||
@@ -5,0 +5,0 @@ "author": "MockingBot", |
36501
0.24%668
0.15%