linear-gradient-parser
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "linear-gradient-parser", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Parses a SVG linear gradient string / parsed JSON into css background image property", | ||
@@ -5,0 +5,0 @@ "author": "Oded Goldglas <odedglas@gmail.com>", |
@@ -34,3 +34,3 @@ /** | ||
// Converts angle in degrees | ||
const angleRad = Math.atan(y/x); | ||
const angleRad = Math.atan2(y, x); | ||
return (angleRad * 180 / Math.PI) + 90; | ||
@@ -37,0 +37,0 @@ }; |
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
45789