react-snowfall
Advanced tools
Comparing version 1.1.0-alpha.2 to 1.1.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [1.1.0](https://github.com/cahilfoley/react-snowfall/compare/v1.0.2...v1.1.0) (2021-02-23) | ||
### Features | ||
* **SnowflakeConfig:** allow additional snowflake properties to be overridden via the Snowfall props ([5d7b3f5](https://github.com/cahilfoley/react-snowfall/commit/5d7b3f53bc64f7724c77afcaba2c1f224611bc0a)) | ||
### [1.0.2](https://github.com/cahilfoley/react-snowfall/compare/v1.0.1...v1.0.2) (2019-06-09) | ||
@@ -7,0 +14,0 @@ |
@@ -81,5 +81,3 @@ "use strict"; | ||
_this.params.x = (x + wind * framesPassed) % canvas.offsetWidth; | ||
if (wind < 0 && _this.params.x < 0) _this.params.x = canvas.offsetWidth + 10; | ||
_this.params.y = (y + speed * framesPassed) % canvas.offsetHeight; | ||
if (speed < 0 && _this.params.y < 0) _this.params.y = canvas.offsetHeight + 10; // Update the wind and speed towards the desired values | ||
_this.params.y = (y + speed * framesPassed) % canvas.offsetHeight; // Update the wind and speed towards the desired values | ||
@@ -86,0 +84,0 @@ _this.params.speed = (0, _utils.lerp)(speed, nextSpeed, 0.01); |
{ | ||
"name": "react-snowfall", | ||
"version": "1.1.0-alpha.2", | ||
"version": "1.1.0", | ||
"description": "A react component that creates a snowfall effect", | ||
@@ -62,2 +62,2 @@ "main": "./lib/Snowfall.js", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
125528
1483