New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-resizable-rotatable-draggable

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-resizable-rotatable-draggable - npm Package Compare versions

Comparing version

to
0.1.4

7

lib/ResizableRect.js

@@ -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",