@tsparticles/configs 3.3.0 → 3.4.0

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 (92) hide show
  1. package/browser/c/clickConfetti.js +0 -1
  2. package/browser/e/effectTrailTransform.js +57 -0
  3. package/browser/e/emitterSpawnColor.js +6 -5
  4. package/browser/e/index.js +2 -0
  5. package/browser/f/fireworks.js +3 -1
  6. package/browser/f/fireworks2.js +2 -1
  7. package/browser/g/gradients.js +9 -8
  8. package/browser/i/imagesDirections.js +3 -2
  9. package/browser/m/mouseTrailNoise.js +0 -1
  10. package/browser/p/pop.js +2 -1
  11. package/browser/r/index.js +2 -0
  12. package/browser/r/randomShapes.js +417 -0
  13. package/browser/s/index.js +2 -0
  14. package/browser/s/shapeEmoji.js +6 -6
  15. package/browser/s/shapeInfinity.js +88 -0
  16. package/browser/t/tilt.js +0 -4
  17. package/browser/w/index.js +2 -0
  18. package/browser/w/wobble.js +0 -1
  19. package/browser/w/wobbleBig.js +139 -0
  20. package/cjs/c/clickConfetti.js +0 -1
  21. package/cjs/e/effectTrailTransform.js +59 -0
  22. package/cjs/e/emitterSpawnColor.js +6 -5
  23. package/cjs/e/index.js +2 -0
  24. package/cjs/f/fireworks.js +3 -1
  25. package/cjs/f/fireworks2.js +2 -1
  26. package/cjs/g/gradients.js +9 -8
  27. package/cjs/i/imagesDirections.js +3 -2
  28. package/cjs/m/mouseTrailNoise.js +0 -1
  29. package/cjs/p/pop.js +2 -1
  30. package/cjs/r/index.js +2 -0
  31. package/cjs/r/randomShapes.js +419 -0
  32. package/cjs/s/index.js +2 -0
  33. package/cjs/s/shapeEmoji.js +6 -6
  34. package/cjs/s/shapeInfinity.js +90 -0
  35. package/cjs/t/tilt.js +0 -4
  36. package/cjs/w/index.js +2 -0
  37. package/cjs/w/wobble.js +0 -1
  38. package/cjs/w/wobbleBig.js +141 -0
  39. package/esm/c/clickConfetti.js +0 -1
  40. package/esm/e/effectTrailTransform.js +57 -0
  41. package/esm/e/emitterSpawnColor.js +6 -5
  42. package/esm/e/index.js +2 -0
  43. package/esm/f/fireworks.js +3 -1
  44. package/esm/f/fireworks2.js +2 -1
  45. package/esm/g/gradients.js +9 -8
  46. package/esm/i/imagesDirections.js +3 -2
  47. package/esm/m/mouseTrailNoise.js +0 -1
  48. package/esm/p/pop.js +2 -1
  49. package/esm/r/index.js +2 -0
  50. package/esm/r/randomShapes.js +417 -0
  51. package/esm/s/index.js +2 -0
  52. package/esm/s/shapeEmoji.js +6 -6
  53. package/esm/s/shapeInfinity.js +88 -0
  54. package/esm/t/tilt.js +0 -4
  55. package/esm/w/index.js +2 -0
  56. package/esm/w/wobble.js +0 -1
  57. package/esm/w/wobbleBig.js +139 -0
  58. package/package.json +2 -2
  59. package/report.html +1 -1
  60. package/tsparticles.configs.bundle.js +1 -1
  61. package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
  62. package/tsparticles.configs.js +55 -15
  63. package/tsparticles.configs.min.js +1 -1
  64. package/tsparticles.configs.min.js.LICENSE.txt +1 -1
  65. package/types/e/effectTrailTransform.d.ts +3 -0
  66. package/types/e/index.d.ts +1 -0
  67. package/types/index.d.ts +4 -0
  68. package/types/r/index.d.ts +1 -0
  69. package/types/r/randomShapes.d.ts +3 -0
  70. package/types/s/index.d.ts +1 -0
  71. package/types/s/shapeInfinity.d.ts +3 -0
  72. package/types/w/index.d.ts +1 -0
  73. package/types/w/wobbleBig.d.ts +3 -0
  74. package/umd/c/clickConfetti.js +0 -1
  75. package/umd/e/effectTrailTransform.js +69 -0
  76. package/umd/e/emitterSpawnColor.js +7 -6
  77. package/umd/e/index.js +3 -1
  78. package/umd/f/fireworks.js +4 -2
  79. package/umd/f/fireworks2.js +3 -2
  80. package/umd/g/gradients.js +10 -9
  81. package/umd/i/imagesDirections.js +4 -3
  82. package/umd/m/mouseTrailNoise.js +0 -1
  83. package/umd/p/pop.js +3 -2
  84. package/umd/r/index.js +3 -1
  85. package/umd/r/randomShapes.js +429 -0
  86. package/umd/s/index.js +3 -1
  87. package/umd/s/shapeEmoji.js +7 -7
  88. package/umd/s/shapeInfinity.js +100 -0
  89. package/umd/t/tilt.js +0 -4
  90. package/umd/w/index.js +3 -1
  91. package/umd/w/wobble.js +0 -1
  92. package/umd/w/wobbleBig.js +151 -0
@@ -0,0 +1,139 @@
1
+ const options = {
2
+ key: "wobbleBig",
3
+ name: "Wobble Big",
4
+ background: {
5
+ color: "#000000",
6
+ },
7
+ particles: {
8
+ bounce: {
9
+ vertical: {
10
+ value: 0,
11
+ },
12
+ horizontal: {
13
+ value: 0,
14
+ },
15
+ },
16
+ color: {
17
+ value: ["#1E00FF", "#FF0061", "#E1FF00", "#00FF9E"],
18
+ animation: {
19
+ enable: true,
20
+ speed: 30,
21
+ },
22
+ },
23
+ move: {
24
+ decay: {
25
+ min: 0.05,
26
+ max: 0.15,
27
+ },
28
+ direction: "top",
29
+ enable: true,
30
+ gravity: {
31
+ acceleration: 9.81,
32
+ enable: true,
33
+ maxSpeed: 200,
34
+ },
35
+ outModes: {
36
+ top: "none",
37
+ default: "destroy",
38
+ },
39
+ speed: {
40
+ min: 50,
41
+ max: 150,
42
+ },
43
+ },
44
+ number: {
45
+ value: 0,
46
+ limit: { value: 300 },
47
+ },
48
+ opacity: {
49
+ value: 1,
50
+ animation: {
51
+ enable: false,
52
+ startValue: "max",
53
+ destroy: "min",
54
+ speed: 0.3,
55
+ sync: true,
56
+ },
57
+ },
58
+ rotate: {
59
+ value: {
60
+ min: 0,
61
+ max: 360,
62
+ },
63
+ direction: "random",
64
+ move: true,
65
+ animation: {
66
+ enable: true,
67
+ speed: 60,
68
+ },
69
+ },
70
+ tilt: {
71
+ direction: "random",
72
+ enable: true,
73
+ value: {
74
+ min: 0,
75
+ max: 360,
76
+ },
77
+ animation: {
78
+ enable: true,
79
+ speed: 60,
80
+ },
81
+ },
82
+ shape: {
83
+ type: ["circle", "square", "polygon"],
84
+ options: {
85
+ polygon: [
86
+ {
87
+ sides: 5,
88
+ },
89
+ {
90
+ sides: 6,
91
+ },
92
+ ],
93
+ },
94
+ },
95
+ size: {
96
+ value: 30,
97
+ },
98
+ roll: {
99
+ darken: {
100
+ enable: true,
101
+ value: 30,
102
+ },
103
+ enlighten: {
104
+ enable: true,
105
+ value: 30,
106
+ },
107
+ enable: true,
108
+ mode: "both",
109
+ speed: {
110
+ min: 15,
111
+ max: 25,
112
+ },
113
+ },
114
+ wobble: {
115
+ distance: 30,
116
+ enable: true,
117
+ move: true,
118
+ speed: {
119
+ min: -15,
120
+ max: 15,
121
+ },
122
+ },
123
+ },
124
+ emitters: {
125
+ position: {
126
+ x: 50,
127
+ y: 100,
128
+ },
129
+ size: {
130
+ width: 0,
131
+ height: 0,
132
+ },
133
+ rate: {
134
+ quantity: 10,
135
+ delay: 0.2,
136
+ },
137
+ },
138
+ };
139
+ export default options;
@@ -130,7 +130,6 @@ const options = {
130
130
  tilt: {
131
131
  direction: "random",
132
132
  enable: true,
133
- move: true,
134
133
  value: {
135
134
  min: 0,
136
135
  max: 360,
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const options = {
4
+ key: "effectTrailTransform",
5
+ name: "Effect Trail Transform",
6
+ particles: {
7
+ number: {
8
+ value: 80,
9
+ density: {
10
+ enable: true,
11
+ },
12
+ },
13
+ color: {
14
+ value: "#ff0000",
15
+ animation: {
16
+ enable: true,
17
+ speed: 360,
18
+ sync: true,
19
+ },
20
+ },
21
+ effect: {
22
+ type: "trail",
23
+ options: {
24
+ trail: {
25
+ fade: true,
26
+ length: {
27
+ min: 10,
28
+ max: 30,
29
+ },
30
+ transform: true,
31
+ },
32
+ },
33
+ },
34
+ shape: {
35
+ type: "square",
36
+ },
37
+ size: {
38
+ value: 10,
39
+ },
40
+ move: {
41
+ enable: true,
42
+ speed: { min: 6, max: 15 },
43
+ },
44
+ tilt: {
45
+ direction: "random",
46
+ enable: true,
47
+ value: { min: 0, max: 360 },
48
+ animation: {
49
+ enable: true,
50
+ speed: 60,
51
+ sync: true,
52
+ },
53
+ },
54
+ },
55
+ background: {
56
+ color: "#000000",
57
+ },
58
+ };
59
+ exports.default = options;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const engine_1 = require("@tsparticles/engine");
3
4
  const emitterRate = {
4
5
  delay: 0.1,
5
6
  quantity: 2,
@@ -39,7 +40,7 @@ const emitterRate = {
39
40
  rate: emitterRate,
40
41
  particles: {
41
42
  move: {
42
- direction: "bottom-right",
43
+ direction: engine_1.MoveDirection.bottomRight,
43
44
  },
44
45
  },
45
46
  spawnColor: {
@@ -60,7 +61,7 @@ const emitterRate = {
60
61
  rate: emitterRate,
61
62
  particles: {
62
63
  move: {
63
- direction: "top-right",
64
+ direction: engine_1.MoveDirection.topRight,
64
65
  },
65
66
  },
66
67
  spawnColor: {
@@ -85,7 +86,7 @@ const emitterRate = {
85
86
  rate: emitterRate,
86
87
  particles: {
87
88
  move: {
88
- direction: "bottom-left",
89
+ direction: engine_1.MoveDirection.bottomLeft,
89
90
  },
90
91
  },
91
92
  spawnColor: {
@@ -110,7 +111,7 @@ const emitterRate = {
110
111
  rate: emitterRate,
111
112
  particles: {
112
113
  move: {
113
- direction: "top-left",
114
+ direction: engine_1.MoveDirection.topLeft,
114
115
  },
115
116
  },
116
117
  spawnColor: {
@@ -139,7 +140,7 @@ const emitterRate = {
139
140
  rate: emitterRate,
140
141
  particles: {
141
142
  move: {
142
- direction: "none",
143
+ direction: engine_1.MoveDirection.none,
143
144
  },
144
145
  },
145
146
  spawnColor: {
package/cjs/e/index.js CHANGED
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const effectBubble_js_1 = __importDefault(require("./effectBubble.js"));
7
7
  const effectTrail_js_1 = __importDefault(require("./effectTrail.js"));
8
+ const effectTrailTransform_js_1 = __importDefault(require("./effectTrailTransform.js"));
8
9
  const emitter_js_1 = __importDefault(require("./emitter.js"));
9
10
  const emitterAbsorber_js_1 = __importDefault(require("./emitterAbsorber.js"));
10
11
  const emitterAngled_js_1 = __importDefault(require("./emitterAngled.js"));
@@ -18,6 +19,7 @@ const emitterTextStrokeShape_js_1 = __importDefault(require("./emitterTextStroke
18
19
  exports.default = {
19
20
  effectBubble: effectBubble_js_1.default,
20
21
  effectTrail: effectTrail_js_1.default,
22
+ effectTrailTransform: effectTrailTransform_js_1.default,
21
23
  emitter: emitter_js_1.default,
22
24
  emitterAbsorber: emitterAbsorber_js_1.default,
23
25
  emitterAngled: emitterAngled_js_1.default,
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const engine_1 = require("@tsparticles/engine");
3
4
  const options = {
4
5
  key: "fireworks",
5
6
  name: "Fireworks",
@@ -139,6 +140,7 @@ const options = {
139
140
  width: 1,
140
141
  },
141
142
  rotate: {
143
+ enable: true,
142
144
  path: true,
143
145
  },
144
146
  move: {
@@ -168,7 +170,7 @@ const options = {
168
170
  enable: true,
169
171
  events: [
170
172
  {
171
- event: "particleRemoved",
173
+ event: engine_1.EventType.particleRemoved,
172
174
  filter: (args) => args.data.particle.options.move.gravity.inverse,
173
175
  audio: [
174
176
  "https://particles.js.org/audio/explosion0.mp3",
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const engine_1 = require("@tsparticles/engine");
3
4
  const options = {
4
5
  key: "fireworks2",
5
6
  name: "Fireworks 2",
@@ -181,7 +182,7 @@ const options = {
181
182
  enable: true,
182
183
  events: [
183
184
  {
184
- event: "particleRemoved",
185
+ event: engine_1.EventType.particleRemoved,
185
186
  filter: (args) => args.data.particle.options.move.gravity.inverse,
186
187
  audio: [
187
188
  "https://particles.js.org/audio/explosion0.mp3",
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const engine_1 = require("@tsparticles/engine");
3
4
  const options = {
4
5
  key: "gradients",
5
6
  name: "Gradients",
@@ -9,7 +10,7 @@ const options = {
9
10
  },
10
11
  gradient: [
11
12
  {
12
- type: "radial",
13
+ type: engine_1.GradientType.radial,
13
14
  colors: [
14
15
  {
15
16
  stop: 0.25,
@@ -23,7 +24,7 @@ const options = {
23
24
  ],
24
25
  },
25
26
  {
26
- type: "radial",
27
+ type: engine_1.GradientType.radial,
27
28
  colors: [
28
29
  {
29
30
  stop: 0.25,
@@ -37,7 +38,7 @@ const options = {
37
38
  ],
38
39
  },
39
40
  {
40
- type: "radial",
41
+ type: engine_1.GradientType.radial,
41
42
  colors: [
42
43
  {
43
44
  stop: 0.25,
@@ -51,7 +52,7 @@ const options = {
51
52
  ],
52
53
  },
53
54
  {
54
- type: "radial",
55
+ type: engine_1.GradientType.radial,
55
56
  colors: [
56
57
  {
57
58
  stop: 0.25,
@@ -65,7 +66,7 @@ const options = {
65
66
  ],
66
67
  },
67
68
  {
68
- type: "radial",
69
+ type: engine_1.GradientType.radial,
69
70
  colors: [
70
71
  {
71
72
  stop: 0.25,
@@ -79,7 +80,7 @@ const options = {
79
80
  ],
80
81
  },
81
82
  {
82
- type: "radial",
83
+ type: engine_1.GradientType.radial,
83
84
  colors: [
84
85
  {
85
86
  stop: 0.25,
@@ -122,10 +123,10 @@ const options = {
122
123
  ],
123
124
  },
124
125
  {
125
- type: "linear",
126
+ type: engine_1.GradientType.linear,
126
127
  angle: {
127
128
  value: 0,
128
- direction: "random",
129
+ direction: engine_1.RotateDirection.random,
129
130
  animation: {
130
131
  enable: true,
131
132
  speed: 60,
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const engine_1 = require("@tsparticles/engine");
3
4
  const options = {
4
5
  key: "imagesDirections",
5
6
  name: "Images with Custom Directions",
@@ -63,7 +64,7 @@ const options = {
63
64
  height: 32,
64
65
  particles: {
65
66
  move: {
66
- direction: "top",
67
+ direction: engine_1.MoveDirection.top,
67
68
  },
68
69
  },
69
70
  },
@@ -73,7 +74,7 @@ const options = {
73
74
  height: 32,
74
75
  particles: {
75
76
  move: {
76
- direction: "bottom",
77
+ direction: engine_1.MoveDirection.bottom,
77
78
  },
78
79
  },
79
80
  },
@@ -65,7 +65,6 @@ const options = {
65
65
  tilt: {
66
66
  direction: "random",
67
67
  enable: true,
68
- move: true,
69
68
  value: {
70
69
  min: 0,
71
70
  max: 360,
package/cjs/p/pop.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const engine_1 = require("@tsparticles/engine");
3
4
  const options = {
4
5
  key: "pop",
5
6
  name: "Pop",
@@ -7,7 +8,7 @@ const options = {
7
8
  number: {
8
9
  limit: {
9
10
  value: 80,
10
- mode: "wait",
11
+ mode: engine_1.LimitMode.wait,
11
12
  },
12
13
  value: 80,
13
14
  },
package/cjs/r/index.js CHANGED
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const random_js_1 = __importDefault(require("./random.js"));
7
+ const randomShapes_js_1 = __importDefault(require("./randomShapes.js"));
7
8
  const reactBubbles_js_1 = __importDefault(require("./reactBubbles.js"));
8
9
  const reactDefaults_js_1 = __importDefault(require("./reactDefaults.js"));
9
10
  const reactMultipleImages_js_1 = __importDefault(require("./reactMultipleImages.js"));
@@ -24,6 +25,7 @@ const responsive_js_1 = __importDefault(require("./responsive.js"));
24
25
  const ring_js_1 = __importDefault(require("./ring.js"));
25
26
  exports.default = {
26
27
  random: random_js_1.default,
28
+ randomShapes: randomShapes_js_1.default,
27
29
  reactBubbles: reactBubbles_js_1.default,
28
30
  reactDefaults: reactDefaults_js_1.default,
29
31
  reactMultipleImages: reactMultipleImages_js_1.default,