@erikwatson/snowfall 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +5 -3
- package/dist/config.d.ts +0 -0
- package/dist/defaults.d.ts +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/layer.d.ts +0 -0
- package/dist/layers/base-layer.d.ts +0 -0
- package/dist/layers/image-layer.d.ts +0 -0
- package/dist/layers/simple-layer.d.ts +0 -0
- package/dist/math.d.ts +0 -0
- package/dist/simulation.d.ts +0 -0
- package/dist/snowfall.d.ts +0 -0
- package/dist/snowflake/index.d.ts +0 -0
- package/dist/snowflake/move.d.ts +0 -0
- package/dist/snowflake/render.d.ts +0 -0
- package/dist/test/config.test.d.ts +0 -0
- package/dist/types.d.ts +0 -0
- package/dist/utils.d.ts +0 -0
- package/package.json +9 -15
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -39,7 +39,9 @@ Then, at the bottom of your page body add the following, this will run snowfall
|
|
|
39
39
|
```html
|
|
40
40
|
<script src="https://cdn.jsdelivr.net/npm/@erikwatson/snowfall@4/dist/index.min.js"></script>
|
|
41
41
|
<script>
|
|
42
|
-
snowfall.start(
|
|
42
|
+
snowfall.start({
|
|
43
|
+
layers: [{}]
|
|
44
|
+
})
|
|
43
45
|
</script>
|
|
44
46
|
```
|
|
45
47
|
|
|
@@ -51,7 +53,7 @@ Same as above but we pass a config object. Your config overrides the default set
|
|
|
51
53
|
snowfall.start({
|
|
52
54
|
layers: [
|
|
53
55
|
{
|
|
54
|
-
colour: '#
|
|
56
|
+
colour: '#8d90b7'
|
|
55
57
|
}
|
|
56
58
|
]
|
|
57
59
|
})
|
|
@@ -69,7 +71,7 @@ const userSchedule = {
|
|
|
69
71
|
snowfall.schedule(userSchedule, {
|
|
70
72
|
layers: [
|
|
71
73
|
{
|
|
72
|
-
colour: '#
|
|
74
|
+
colour: '#8d90b7'
|
|
73
75
|
}
|
|
74
76
|
]
|
|
75
77
|
})
|
package/dist/config.d.ts
CHANGED
|
File without changes
|
package/dist/defaults.d.ts
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/layer.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/math.d.ts
CHANGED
|
File without changes
|
package/dist/simulation.d.ts
CHANGED
|
File without changes
|
package/dist/snowfall.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/snowflake/move.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types.d.ts
CHANGED
|
File without changes
|
package/dist/utils.d.ts
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@erikwatson/snowfall",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "A beautiful and highly configurable snow effect for your winter themed project",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,15 +11,6 @@
|
|
|
11
11
|
"repository": "git@github.com:erikwatson/snowfall.js.git",
|
|
12
12
|
"author": "Erik Watson <erik@erikwatson.me>",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "pnpm exec webpack --config webpack.dev.js",
|
|
16
|
-
"build:production": "pnpm exec webpack --config webpack.prod.js",
|
|
17
|
-
"build:all": "pnpm run build && pnpm run build:production",
|
|
18
|
-
"build:docs": "pnpm exec typedoc --out ../snowfall-docs src/snowfall.ts --readme README.md",
|
|
19
|
-
"watch": "pnpm exec webpack --config webpack.dev.js --watch",
|
|
20
|
-
"pub": "pnpm run build:all && npm publish --access public",
|
|
21
|
-
"prepare": "husky"
|
|
22
|
-
},
|
|
23
14
|
"devDependencies": {
|
|
24
15
|
"@babel/core": "^7.25.2",
|
|
25
16
|
"@babel/preset-env": "^7.25.2",
|
|
@@ -44,7 +35,6 @@
|
|
|
44
35
|
"@tweenjs/tween.js": "^23.1.2",
|
|
45
36
|
"seedrandom": "^3.0.5"
|
|
46
37
|
},
|
|
47
|
-
"packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912",
|
|
48
38
|
"keywords": [
|
|
49
39
|
"snow",
|
|
50
40
|
"snowfall",
|
|
@@ -67,8 +57,12 @@
|
|
|
67
57
|
"types": "./dist/index.d.ts"
|
|
68
58
|
}
|
|
69
59
|
},
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "pnpm exec webpack --config webpack.dev.js",
|
|
62
|
+
"build:production": "pnpm exec webpack --config webpack.prod.js",
|
|
63
|
+
"build:all": "pnpm run build && pnpm run build:production",
|
|
64
|
+
"build:docs": "pnpm exec typedoc --out ../snowfall-docs src/snowfall.ts --readme README.md",
|
|
65
|
+
"watch": "pnpm exec webpack --config webpack.dev.js --watch",
|
|
66
|
+
"pub": "pnpm run build:all && npm publish --access public"
|
|
73
67
|
}
|
|
74
|
-
}
|
|
68
|
+
}
|