react-resizable-rotatable-draggable
Advanced tools
Comparing version
@@ -121,4 +121,5 @@ "use strict"; | ||
minWidth = _this$props.minWidth, | ||
minHeight = _this$props.minHeight; | ||
var beta = alpha - (0, _utils.degToRadian)(rotateAngle); | ||
minHeight = _this$props.minHeight, | ||
parentRotateAngle = _this$props.parentRotateAngle; | ||
var beta = alpha - (0, _utils.degToRadian)(rotateAngle + parentRotateAngle); | ||
var deltaW = length * Math.cos(beta); | ||
@@ -177,2 +178,3 @@ var deltaH = length * Math.sin(beta); | ||
rotateAngle: _propTypes.default.number, | ||
parentRotateAngle: _propTypes.default.number, | ||
zoomable: _propTypes.default.string, | ||
@@ -192,2 +194,3 @@ minWidth: _propTypes.default.number, | ||
}), "defaultProps", { | ||
parentRotateAngle: 0, | ||
rotateAngle: 0, | ||
@@ -194,0 +197,0 @@ rotatable: true, |
{ | ||
"name": "react-resizable-rotatable-draggable", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A rectangle react component which can be resized and rotated", | ||
@@ -5,0 +5,0 @@ "author": "MockingBot", |
36224
0.42%664
0.45%