atomic-spinner
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -24,8 +24,7 @@ "use strict"; | ||
return (React.createElement(React.Fragment, { key: `particle-${rotationAngle}` }, | ||
effectiveBorderWidth > 0 && i === particleCount - 1 && (React.createElement("mask", { id: `bottom-particle` }, | ||
effectiveBorderWidth > 0 && i === 0 && (React.createElement("mask", { id: `bottom-particle` }, | ||
React.createElement("rect", { x: "0", y: "0", width: "100", height: "100", fill: "white" }), | ||
React.createElement("circle", Object.assign({}, particleDimensions, { r: particleSize + effectiveBorderWidth / 2 })))), | ||
React.createElement("circle", Object.assign({}, particleDimensions, { r: particleSize, fill: particleFillColor, stroke: particleBorderColor, strokeWidth: effectiveBorderWidth, mask: i < Math.floor(particleCount / 2) ? `url('#bottom-particle')` : undefined })))); | ||
React.createElement("circle", Object.assign({}, particleDimensions, { r: particleSize, fill: particleFillColor, stroke: particleBorderColor, strokeWidth: effectiveBorderWidth, mask: i > Math.floor(particleCount / 2) ? `url('#bottom-particle')` : undefined })))); | ||
}); | ||
particles.sort(({ key }) => (Number(key) % (particleCount / 3) ? 1 : -1)); | ||
return (React.createElement("g", null, | ||
@@ -32,0 +31,0 @@ React.createElement("animateTransform", { attributeName: "transform", begin: "0s", dur: `${orbitTime}s`, type: "rotate", from: "0 50 50", to: "360 50 50", repeatCount: "indefinite" }), |
{ | ||
"name": "atomic-spinner", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"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
14645
201