@tsparticles/configs 3.0.0-beta.4 → 3.0.0-beta.5

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.
Files changed (46) hide show
  1. package/browser/h/hollowknight.js +5 -2
  2. package/browser/i/imagesDirections.js +5 -2
  3. package/browser/l/localPolygonMask.js +5 -2
  4. package/browser/m/multiplePolygonMasks.js +5 -2
  5. package/browser/p/pathPolygonMask.js +5 -2
  6. package/browser/p/polygonMask.js +5 -2
  7. package/browser/s/index.js +2 -0
  8. package/browser/s/shapeEmoji.js +184 -0
  9. package/browser/t/themes.js +0 -1
  10. package/cjs/h/hollowknight.js +5 -2
  11. package/cjs/i/imagesDirections.js +5 -2
  12. package/cjs/l/localPolygonMask.js +5 -2
  13. package/cjs/m/multiplePolygonMasks.js +5 -2
  14. package/cjs/p/pathPolygonMask.js +5 -2
  15. package/cjs/p/polygonMask.js +5 -2
  16. package/cjs/s/index.js +2 -0
  17. package/cjs/s/shapeEmoji.js +186 -0
  18. package/cjs/t/themes.js +0 -1
  19. package/esm/h/hollowknight.js +5 -2
  20. package/esm/i/imagesDirections.js +5 -2
  21. package/esm/l/localPolygonMask.js +5 -2
  22. package/esm/m/multiplePolygonMasks.js +5 -2
  23. package/esm/p/pathPolygonMask.js +5 -2
  24. package/esm/p/polygonMask.js +5 -2
  25. package/esm/s/index.js +2 -0
  26. package/esm/s/shapeEmoji.js +184 -0
  27. package/esm/t/themes.js +0 -1
  28. package/package.json +2 -2
  29. package/report.html +3 -3
  30. package/tsparticles.configs.bundle.js +1 -1
  31. package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
  32. package/tsparticles.configs.js +214 -15
  33. package/tsparticles.configs.min.js +1 -1
  34. package/tsparticles.configs.min.js.LICENSE.txt +1 -1
  35. package/types/index.d.ts +1 -0
  36. package/types/s/index.d.ts +1 -0
  37. package/types/s/shapeEmoji.d.ts +3 -0
  38. package/umd/h/hollowknight.js +5 -2
  39. package/umd/i/imagesDirections.js +5 -2
  40. package/umd/l/localPolygonMask.js +5 -2
  41. package/umd/m/multiplePolygonMasks.js +5 -2
  42. package/umd/p/pathPolygonMask.js +5 -2
  43. package/umd/p/polygonMask.js +5 -2
  44. package/umd/s/index.js +3 -1
  45. package/umd/s/shapeEmoji.js +196 -0
  46. package/umd/t/themes.js +0 -1
package/esm/s/index.js CHANGED
@@ -2,6 +2,7 @@ import seaAnemone from "./seaAnemone.js";
2
2
  import shadow from "./shadow.js";
3
3
  import shapeArrow from "./shapeArrow.js";
4
4
  import shapeCog from "./shapeCog.js";
5
+ import shapeEmoji from "./shapeEmoji.js";
5
6
  import shapeHeart from "./shapeHeart.js";
6
7
  import shapeMultilineText from "./shapeMultilineText.js";
7
8
  import shapeOptions from "./shapeOptions.js";
@@ -27,6 +28,7 @@ export default {
27
28
  shadow,
28
29
  shapeArrow,
29
30
  shapeCog,
31
+ shapeEmoji,
30
32
  shapeHeart,
31
33
  shapeMultilineText,
32
34
  shapeOptions,
@@ -0,0 +1,184 @@
1
+ const emitterRate = {
2
+ delay: 0.1,
3
+ quantity: 2,
4
+ }, options = {
5
+ name: "Shape Emoji",
6
+ particles: {
7
+ opacity: {
8
+ value: 1,
9
+ },
10
+ size: {
11
+ value: {
12
+ min: 16,
13
+ max: 32,
14
+ },
15
+ },
16
+ move: {
17
+ enable: true,
18
+ gravity: {
19
+ enable: true,
20
+ },
21
+ speed: 15,
22
+ outModes: {
23
+ default: "destroy",
24
+ top: "none",
25
+ },
26
+ },
27
+ rotate: {
28
+ value: {
29
+ min: 0,
30
+ max: 360,
31
+ },
32
+ direction: "random",
33
+ move: true,
34
+ animation: {
35
+ enable: true,
36
+ speed: 60,
37
+ },
38
+ },
39
+ tilt: {
40
+ direction: "random",
41
+ enable: true,
42
+ move: true,
43
+ value: {
44
+ min: 0,
45
+ max: 360,
46
+ },
47
+ animation: {
48
+ enable: true,
49
+ speed: 60,
50
+ },
51
+ },
52
+ roll: {
53
+ darken: {
54
+ enable: true,
55
+ value: 30,
56
+ },
57
+ enlighten: {
58
+ enable: true,
59
+ value: 30,
60
+ },
61
+ enable: true,
62
+ mode: "both",
63
+ speed: {
64
+ min: 15,
65
+ max: 25,
66
+ },
67
+ },
68
+ wobble: {
69
+ distance: 30,
70
+ enable: true,
71
+ move: true,
72
+ speed: {
73
+ min: -15,
74
+ max: 15,
75
+ },
76
+ },
77
+ },
78
+ background: {
79
+ color: "#000000",
80
+ },
81
+ emitters: [
82
+ {
83
+ position: {
84
+ x: 0,
85
+ y: 33,
86
+ },
87
+ rate: emitterRate,
88
+ particles: {
89
+ move: {
90
+ direction: "top-right",
91
+ },
92
+ shape: {
93
+ type: "emoji",
94
+ options: {
95
+ emoji: {
96
+ value: "🦄",
97
+ },
98
+ },
99
+ },
100
+ },
101
+ },
102
+ {
103
+ position: {
104
+ x: 0,
105
+ y: 66,
106
+ },
107
+ rate: emitterRate,
108
+ particles: {
109
+ move: {
110
+ direction: "top-right",
111
+ },
112
+ shape: {
113
+ type: "emoji",
114
+ options: {
115
+ emoji: {
116
+ value: "🌈",
117
+ },
118
+ },
119
+ },
120
+ },
121
+ },
122
+ {
123
+ position: {
124
+ x: 100,
125
+ y: 33,
126
+ },
127
+ rate: emitterRate,
128
+ particles: {
129
+ move: {
130
+ direction: "top-left",
131
+ },
132
+ shape: {
133
+ type: "emoji",
134
+ options: {
135
+ emoji: {
136
+ value: "🎉",
137
+ },
138
+ },
139
+ },
140
+ },
141
+ },
142
+ {
143
+ position: {
144
+ x: 100,
145
+ y: 66,
146
+ },
147
+ rate: emitterRate,
148
+ particles: {
149
+ move: {
150
+ direction: "top-left",
151
+ },
152
+ shape: {
153
+ type: "emoji",
154
+ options: {
155
+ emoji: {
156
+ value: "🤡",
157
+ },
158
+ },
159
+ },
160
+ },
161
+ },
162
+ {
163
+ position: {
164
+ x: 50,
165
+ y: 50,
166
+ },
167
+ rate: emitterRate,
168
+ particles: {
169
+ move: {
170
+ direction: "top",
171
+ },
172
+ shape: {
173
+ type: "emoji",
174
+ options: {
175
+ emoji: {
176
+ value: "👻",
177
+ },
178
+ },
179
+ },
180
+ },
181
+ },
182
+ ],
183
+ };
184
+ export default options;
package/esm/t/themes.js CHANGED
@@ -162,7 +162,6 @@ const options = {
162
162
  enable: true,
163
163
  mode: "push",
164
164
  },
165
- resize: true,
166
165
  },
167
166
  },
168
167
  detectRetina: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/configs",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.5",
4
4
  "description": "tsParticles demo configurations",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -99,7 +99,7 @@
99
99
  "./package.json": "./package.json"
100
100
  },
101
101
  "dependencies": {
102
- "@tsparticles/engine": "^3.0.0-beta.4"
102
+ "@tsparticles/engine": "^3.0.0-beta.5"
103
103
  },
104
104
  "publishConfig": {
105
105
  "access": "public"