atomic-spinner
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -16,4 +16,4 @@ "use strict"; | ||
const rotationAngle = startingAngle + i * ((2 * Math.PI) / particleCount); | ||
const offsetX = distanceFromCenter * Math.cos(rotationAngle); | ||
const offsetY = distanceFromCenter * Math.sin(rotationAngle); | ||
const offsetX = particleCount > 1 ? distanceFromCenter * Math.cos(rotationAngle) : 0; | ||
const offsetY = particleCount > 1 ? distanceFromCenter * Math.sin(rotationAngle) : 0; | ||
return (React.createElement("g", { key: `particle-${rotationAngle}` }, | ||
@@ -20,0 +20,0 @@ React.createElement("circle", { cx: 50 + offsetX, cy: 50 + offsetY, r: particleSize, fill: particleFillColor, stroke: particleBorderColor, strokeWidth: 0.3 }))); |
{ | ||
"name": "atomic-spinner", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "Loading spinner that looks like an atom", | ||
@@ -5,0 +5,0 @@ "author": "David Lounsbrough", |
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
13267