@uiw/react-color-wheel
Advanced tools
Comparing version 0.0.34 to 0.1.0
@@ -100,4 +100,4 @@ "use strict"; | ||
else if (direction === 'clockwise') angle = 360 - wheelAngle + angle; // inverted and anticlockwise | ||
else if (invert && direction === 'anticlockwise') angle = wheelAngle + 180 - angle; // anticlockwise (input handling) | ||
else if (direction === 'anticlockwise') angle = wheelAngle - angle; | ||
else if (invert && direction === 'anticlockwise') angle = wheelAngle + 180 - angle; // anticlockwise (input handling) | ||
else if (direction === 'anticlockwise') angle = wheelAngle - angle; | ||
return mod(angle, 360); | ||
@@ -131,2 +131,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy50cyJdLCJuYW1lcyI6WyJUQVUiLCJNYXRoIiwiUEkiLCJtb2QiLCJhIiwibiIsImRpc3QiLCJ4IiwieSIsInNxcnQiLCJnZXRXaGVlbERpbWVuc2lvbnMiLCJ3aWR0aCIsInIiLCJyYWRpdXMiLCJjeCIsImN5IiwiaXNJbnB1dEluc2lkZVdoZWVsIiwicHJvcHMiLCJnZXRXaGVlbEhhbmRsZVBvc2l0aW9uIiwiaHN2IiwiaGFuZGxlUmFuZ2UiLCJnZXRIYW5kbGVSYW5nZSIsImhhbmRsZUFuZ2xlIiwidHJhbnNsYXRlV2hlZWxBbmdsZSIsImgiLCJoYW5kbGVEaXN0IiwicyIsImRpcmVjdGlvbiIsImNvcyIsInNpbiIsImFuZ2xlIiwiaW52ZXJ0Iiwid2hlZWxBbmdsZSIsImdldFdoZWVsVmFsdWVGcm9tSW5wdXQiLCJodWUiLCJhdGFuMiIsIm1pbiIsInJvdW5kIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFHQSxJQUFNQSxHQUFHLEdBQUdDLElBQUksQ0FBQ0MsRUFBTCxHQUFVLENBQXRCO0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBQ08sSUFBT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wb2ludCdzIGRpc3RhbmNlIGZyb20gdGhlIGNlbnRlciBvZiB0aGUgd2hlZWxcbiAgLy8gVGhpcyBpcyB1c2VkIHRvIHNob3cgdGhlIHNhdHVyYXRpb24gbGV2ZWxcbiAgY29uc3QgaGFuZGxlRGlzdCA9IE1hdGgubWluKGRpc3QoeCwgeSksIGhhbmRsZVJhbmdlKTtcbiAgcmV0dXJuIHtcbiAgICBoOiBNYXRoLnJvdW5kKGh1ZSksXG4gICAgczogTWF0aC5yb3VuZCgoMTAwIC8gaGFuZGxlUmFuZ2UpICogaGFuZGxlRGlzdCksXG4gIH07XG59XG4iXX0= |
@@ -81,4 +81,4 @@ var TAU = Math.PI * 2; | ||
else if (direction === 'clockwise') angle = 360 - wheelAngle + angle; // inverted and anticlockwise | ||
else if (invert && direction === 'anticlockwise') angle = wheelAngle + 180 - angle; // anticlockwise (input handling) | ||
else if (direction === 'anticlockwise') angle = wheelAngle - angle; | ||
else if (invert && direction === 'anticlockwise') angle = wheelAngle + 180 - angle; // anticlockwise (input handling) | ||
else if (direction === 'anticlockwise') angle = wheelAngle - angle; | ||
return mod(angle, 360); | ||
@@ -111,2 +111,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy50cyJdLCJuYW1lcyI6WyJUQVUiLCJNYXRoIiwiUEkiLCJtb2QiLCJhIiwibiIsImRpc3QiLCJ4IiwieSIsInNxcnQiLCJnZXRXaGVlbERpbWVuc2lvbnMiLCJ3aWR0aCIsInIiLCJyYWRpdXMiLCJjeCIsImN5IiwiaXNJbnB1dEluc2lkZVdoZWVsIiwicHJvcHMiLCJnZXRXaGVlbEhhbmRsZVBvc2l0aW9uIiwiaHN2IiwiaGFuZGxlUmFuZ2UiLCJnZXRIYW5kbGVSYW5nZSIsImhhbmRsZUFuZ2xlIiwidHJhbnNsYXRlV2hlZWxBbmdsZSIsImgiLCJoYW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gY29uc3QgaGFuZGxlUmFuZ2UgPSBnZXRIYW5kbGVSYW5nZShwcm9wcyk7XG4gIHggPSBjeCAtIHg7XG4gIHkgPSBjeSAtIHk7XG4gIC8vIENhbGN1bGF0ZSB0aGUgaHVlIGJ5IGNvbnZlcnRpbmcgdGhlIGFuZ2xlIHRvIHJhZGlhbnNcbiAgY29uc3QgaHVlID0gdHJhbnNsYXRlV2hlZWxBbmdsZShwcm9wcywgTWF0aC5hdGFuMigteSwgLXgpICogKDM2MCAvIFRBVSkpO1xuICAvLyBGaW5kIHRoZSBwb2ludCdzIGRpc3RhbmNlIGZyb20gdGhlIGNlbnRlciBvZiB0aGUgd2hlZWxcbiAgLy8gVGhpcyBpcyB1c2VkIHRvIHNob3cgdGhlIHNhdHVyYXRpb24gbGV2ZWxcbiAgY29uc3QgaGFuZGxlRGlzdCA9IE1hdGgubWluKGRpc3QoeCwgeSksIGhhbmRsZVJhbmdlKTtcbiAgcmV0dXJuIHtcbiAgICBoOiBNYXRoLnJvdW5kKGh1ZSksXG4gICAgczogTWF0aC5yb3VuZCgoMTAwIC8gaGFuZGxlUmFuZ2UpICogaGFuZGxlRGlzdCksXG4gIH07XG59XG4iXX0= |
{ | ||
"name": "@uiw/react-color-wheel", | ||
"version": "0.0.34", | ||
"version": "0.1.0", | ||
"description": "Color wheel", | ||
@@ -33,4 +33,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"@babel/runtime": "7.14.6", | ||
"@uiw/color-convert": "^0.0.34", | ||
"@uiw/react-drag-event-interactive": "^0.0.34" | ||
"@uiw/color-convert": "^0.1.0", | ||
"@uiw/react-drag-event-interactive": "^0.1.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78224
+ Added@uiw/color-convert@0.1.0(transitive)
+ Added@uiw/react-drag-event-interactive@0.1.0(transitive)
- Removed@uiw/color-convert@0.0.34(transitive)
- Removed@uiw/react-drag-event-interactive@0.0.34(transitive)
Updated@uiw/color-convert@^0.1.0