@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
@@ -95,8 +95,11 @@
95
95
  polygon: {
96
96
  draw: {
97
97
  enable: false,
98
- lineColor: "#ffffff",
99
- lineWidth: 0.5,
98
+ stroke: {
99
+ color: "#fff",
100
+ width: 0.5,
101
+ opacity: 0.2,
102
+ },
100
103
  },
101
104
  move: {
102
105
  radius: 10,
@@ -64,8 +64,11 @@
64
64
  polygon: {
65
65
  draw: {
66
66
  enable: true,
67
- lineColor: "rgba(255,255,255,1)",
68
- lineWidth: 1,
67
+ stroke: {
68
+ color: "#fff",
69
+ width: 0.5,
70
+ opacity: 0.2,
71
+ },
69
72
  },
70
73
  enable: true,
71
74
  move: {
@@ -106,8 +106,11 @@
106
106
  polygon: {
107
107
  draw: {
108
108
  enable: true,
109
- lineColor: "rgba(255,255,255,0.2)",
110
- lineWidth: 0.5,
109
+ stroke: {
110
+ color: "#fff",
111
+ width: 0.5,
112
+ opacity: 0.2,
113
+ },
111
114
  },
112
115
  enable: true,
113
116
  move: {
@@ -67,8 +67,11 @@
67
67
  polygon: {
68
68
  draw: {
69
69
  enable: true,
70
- lineColor: "rgba(255,255,255,0.2)",
71
- lineWidth: 0.5,
70
+ stroke: {
71
+ color: "#fff",
72
+ width: 0.5,
73
+ opacity: 0.2,
74
+ },
72
75
  },
73
76
  enable: true,
74
77
  move: {
@@ -106,8 +106,11 @@
106
106
  polygon: {
107
107
  draw: {
108
108
  enable: true,
109
- lineColor: "rgba(255,255,255,0.2)",
110
- lineWidth: 1,
109
+ stroke: {
110
+ color: "#fff",
111
+ width: 1,
112
+ opacity: 0.2,
113
+ },
111
114
  },
112
115
  enable: true,
113
116
  move: {
package/umd/s/index.js CHANGED
@@ -7,7 +7,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
7
7
  if (v !== undefined) module.exports = v;
8
8
  }
9
9
  else if (typeof define === "function" && define.amd) {
10
- define(["require", "exports", "./seaAnemone.js", "./shadow.js", "./shapeArrow.js", "./shapeCog.js", "./shapeHeart.js", "./shapeMultilineText.js", "./shapeOptions.js", "./shapePath.js", "./shapeRoundedPolygon.js", "./shapeRoundedRect.js", "./shapeSpiral.js", "./slow.js", "./snow.js", "./soundsAudio.js", "./soundsLoop.js", "./soundsMelodies.js", "./soundsMelodyLoop.js", "./soundsNotes.js", "./speedDecay.js", "./spin.js", "./star.js", "./strokeAnimation.js", "./style.js", "./svgReplace.js"], factory);
10
+ define(["require", "exports", "./seaAnemone.js", "./shadow.js", "./shapeArrow.js", "./shapeCog.js", "./shapeEmoji.js", "./shapeHeart.js", "./shapeMultilineText.js", "./shapeOptions.js", "./shapePath.js", "./shapeRoundedPolygon.js", "./shapeRoundedRect.js", "./shapeSpiral.js", "./slow.js", "./snow.js", "./soundsAudio.js", "./soundsLoop.js", "./soundsMelodies.js", "./soundsMelodyLoop.js", "./soundsNotes.js", "./speedDecay.js", "./spin.js", "./star.js", "./strokeAnimation.js", "./style.js", "./svgReplace.js"], factory);
11
11
  }
12
12
  })(function (require, exports) {
13
13
  "use strict";
@@ -16,6 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  const shadow_js_1 = __importDefault(require("./shadow.js"));
17
17
  const shapeArrow_js_1 = __importDefault(require("./shapeArrow.js"));
18
18
  const shapeCog_js_1 = __importDefault(require("./shapeCog.js"));
19
+ const shapeEmoji_js_1 = __importDefault(require("./shapeEmoji.js"));
19
20
  const shapeHeart_js_1 = __importDefault(require("./shapeHeart.js"));
20
21
  const shapeMultilineText_js_1 = __importDefault(require("./shapeMultilineText.js"));
21
22
  const shapeOptions_js_1 = __importDefault(require("./shapeOptions.js"));
@@ -41,6 +42,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
42
  shadow: shadow_js_1.default,
42
43
  shapeArrow: shapeArrow_js_1.default,
43
44
  shapeCog: shapeCog_js_1.default,
45
+ shapeEmoji: shapeEmoji_js_1.default,
44
46
  shapeHeart: shapeHeart_js_1.default,
45
47
  shapeMultilineText: shapeMultilineText_js_1.default,
46
48
  shapeOptions: shapeOptions_js_1.default,
@@ -0,0 +1,196 @@
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const emitterRate = {
13
+ delay: 0.1,
14
+ quantity: 2,
15
+ }, options = {
16
+ name: "Shape Emoji",
17
+ particles: {
18
+ opacity: {
19
+ value: 1,
20
+ },
21
+ size: {
22
+ value: {
23
+ min: 16,
24
+ max: 32,
25
+ },
26
+ },
27
+ move: {
28
+ enable: true,
29
+ gravity: {
30
+ enable: true,
31
+ },
32
+ speed: 15,
33
+ outModes: {
34
+ default: "destroy",
35
+ top: "none",
36
+ },
37
+ },
38
+ rotate: {
39
+ value: {
40
+ min: 0,
41
+ max: 360,
42
+ },
43
+ direction: "random",
44
+ move: true,
45
+ animation: {
46
+ enable: true,
47
+ speed: 60,
48
+ },
49
+ },
50
+ tilt: {
51
+ direction: "random",
52
+ enable: true,
53
+ move: true,
54
+ value: {
55
+ min: 0,
56
+ max: 360,
57
+ },
58
+ animation: {
59
+ enable: true,
60
+ speed: 60,
61
+ },
62
+ },
63
+ roll: {
64
+ darken: {
65
+ enable: true,
66
+ value: 30,
67
+ },
68
+ enlighten: {
69
+ enable: true,
70
+ value: 30,
71
+ },
72
+ enable: true,
73
+ mode: "both",
74
+ speed: {
75
+ min: 15,
76
+ max: 25,
77
+ },
78
+ },
79
+ wobble: {
80
+ distance: 30,
81
+ enable: true,
82
+ move: true,
83
+ speed: {
84
+ min: -15,
85
+ max: 15,
86
+ },
87
+ },
88
+ },
89
+ background: {
90
+ color: "#000000",
91
+ },
92
+ emitters: [
93
+ {
94
+ position: {
95
+ x: 0,
96
+ y: 33,
97
+ },
98
+ rate: emitterRate,
99
+ particles: {
100
+ move: {
101
+ direction: "top-right",
102
+ },
103
+ shape: {
104
+ type: "emoji",
105
+ options: {
106
+ emoji: {
107
+ value: "🦄",
108
+ },
109
+ },
110
+ },
111
+ },
112
+ },
113
+ {
114
+ position: {
115
+ x: 0,
116
+ y: 66,
117
+ },
118
+ rate: emitterRate,
119
+ particles: {
120
+ move: {
121
+ direction: "top-right",
122
+ },
123
+ shape: {
124
+ type: "emoji",
125
+ options: {
126
+ emoji: {
127
+ value: "🌈",
128
+ },
129
+ },
130
+ },
131
+ },
132
+ },
133
+ {
134
+ position: {
135
+ x: 100,
136
+ y: 33,
137
+ },
138
+ rate: emitterRate,
139
+ particles: {
140
+ move: {
141
+ direction: "top-left",
142
+ },
143
+ shape: {
144
+ type: "emoji",
145
+ options: {
146
+ emoji: {
147
+ value: "🎉",
148
+ },
149
+ },
150
+ },
151
+ },
152
+ },
153
+ {
154
+ position: {
155
+ x: 100,
156
+ y: 66,
157
+ },
158
+ rate: emitterRate,
159
+ particles: {
160
+ move: {
161
+ direction: "top-left",
162
+ },
163
+ shape: {
164
+ type: "emoji",
165
+ options: {
166
+ emoji: {
167
+ value: "🤡",
168
+ },
169
+ },
170
+ },
171
+ },
172
+ },
173
+ {
174
+ position: {
175
+ x: 50,
176
+ y: 50,
177
+ },
178
+ rate: emitterRate,
179
+ particles: {
180
+ move: {
181
+ direction: "top",
182
+ },
183
+ shape: {
184
+ type: "emoji",
185
+ options: {
186
+ emoji: {
187
+ value: "👻",
188
+ },
189
+ },
190
+ },
191
+ },
192
+ },
193
+ ],
194
+ };
195
+ exports.default = options;
196
+ });
package/umd/t/themes.js CHANGED
@@ -173,7 +173,6 @@
173
173
  enable: true,
174
174
  mode: "push",
175
175
  },
176
- resize: true,
177
176
  },
178
177
  },
179
178
  detectRetina: true,