atomic-spinner
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -35,7 +35,10 @@ "use strict"; | ||
&& electronPaths.map(({ rotationAngle }) => (React.createElement(ElectronPath_1.default, { key: `electron-path-${rotationAngle}`, pathDefinitionId: electronPathDefinitionId, color: electronPathColor, width: electronPathWidth, rotationAngle: rotationAngle }))), | ||
electronPaths.map(({ electronCount, rotationAngle, electronOrbitTime }) => Array.from({ length: electronCount }) | ||
.map((_, i) => { | ||
const electronKey = i; | ||
return (React.createElement(Electron_1.default, { key: `electron-${electronKey}`, pathDefinitionId: electronDefinitionId, rotationAngle: rotationAngle, orbitTime: electronOrbitTime, size: electronSize, spacetimeOffset: -electronOrbitTime + i * (electronOrbitTime / (electronCount)), colorPalette: electronColorPalette })); | ||
})))); | ||
electronPaths.map(({ electronCount, rotationAngle, electronOrbitTime }) => { | ||
const randomSpacetimeShift = (-1 + Math.random() * -1) * electronOrbitTime; | ||
return Array.from({ length: electronCount }) | ||
.map((_, i) => { | ||
const electronKey = i; | ||
return (React.createElement(Electron_1.default, { key: `electron-${electronKey}`, pathDefinitionId: electronDefinitionId, rotationAngle: rotationAngle, orbitTime: electronOrbitTime, size: electronSize, spacetimeOffset: randomSpacetimeShift + i * (electronOrbitTime / (electronCount)), colorPalette: electronColorPalette })); | ||
}); | ||
}))); | ||
}; | ||
@@ -42,0 +45,0 @@ AtomicSpinner.propTypes = { |
{ | ||
"name": "atomic-spinner", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"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
14740
202