@tsparticles/configs 3.0.0-beta.4 → 3.0.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 (75) hide show
  1. package/browser/e/effectTrail.js +2 -1
  2. package/browser/f/fireworks2.js +196 -0
  3. package/browser/f/index.js +2 -0
  4. package/browser/h/hollowknight.js +5 -2
  5. package/browser/i/imagesDirections.js +5 -2
  6. package/browser/l/localPolygonMask.js +5 -2
  7. package/browser/m/multiplePolygonMasks.js +5 -2
  8. package/browser/n/index.js +4 -2
  9. package/browser/n/noClear.js +98 -0
  10. package/browser/n/{noconfig.js → noConfig.js} +0 -4
  11. package/browser/p/pathPolygonMask.js +5 -2
  12. package/browser/p/polygonMask.js +5 -2
  13. package/browser/s/index.js +2 -0
  14. package/browser/s/shapeEmoji.js +184 -0
  15. package/browser/t/themes.js +0 -1
  16. package/cjs/e/effectTrail.js +2 -1
  17. package/cjs/f/fireworks2.js +198 -0
  18. package/cjs/f/index.js +2 -0
  19. package/cjs/h/hollowknight.js +5 -2
  20. package/cjs/i/imagesDirections.js +5 -2
  21. package/cjs/l/localPolygonMask.js +5 -2
  22. package/cjs/m/multiplePolygonMasks.js +5 -2
  23. package/cjs/n/index.js +4 -2
  24. package/cjs/n/noClear.js +100 -0
  25. package/cjs/n/{noconfig.js → noConfig.js} +0 -4
  26. package/cjs/p/pathPolygonMask.js +5 -2
  27. package/cjs/p/polygonMask.js +5 -2
  28. package/cjs/s/index.js +2 -0
  29. package/cjs/s/shapeEmoji.js +186 -0
  30. package/cjs/t/themes.js +0 -1
  31. package/esm/e/effectTrail.js +2 -1
  32. package/esm/f/fireworks2.js +196 -0
  33. package/esm/f/index.js +2 -0
  34. package/esm/h/hollowknight.js +5 -2
  35. package/esm/i/imagesDirections.js +5 -2
  36. package/esm/l/localPolygonMask.js +5 -2
  37. package/esm/m/multiplePolygonMasks.js +5 -2
  38. package/esm/n/index.js +4 -2
  39. package/esm/n/noClear.js +98 -0
  40. package/esm/n/{noconfig.js → noConfig.js} +0 -4
  41. package/esm/p/pathPolygonMask.js +5 -2
  42. package/esm/p/polygonMask.js +5 -2
  43. package/esm/s/index.js +2 -0
  44. package/esm/s/shapeEmoji.js +184 -0
  45. package/esm/t/themes.js +0 -1
  46. package/package.json +2 -2
  47. package/report.html +3 -3
  48. package/tsparticles.configs.bundle.js +1 -1
  49. package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
  50. package/tsparticles.configs.js +466 -24
  51. package/tsparticles.configs.min.js +1 -1
  52. package/tsparticles.configs.min.js.LICENSE.txt +1 -1
  53. package/types/f/index.d.ts +1 -0
  54. package/types/index.d.ts +4 -1
  55. package/types/n/index.d.ts +2 -1
  56. package/types/n/noClear.d.ts +3 -0
  57. package/types/n/noConfig.d.ts +3 -0
  58. package/types/s/index.d.ts +1 -0
  59. package/types/s/shapeEmoji.d.ts +3 -0
  60. package/umd/e/effectTrail.js +2 -1
  61. package/umd/f/fireworks2.js +208 -0
  62. package/umd/f/index.js +3 -1
  63. package/umd/h/hollowknight.js +5 -2
  64. package/umd/i/imagesDirections.js +5 -2
  65. package/umd/l/localPolygonMask.js +5 -2
  66. package/umd/m/multiplePolygonMasks.js +5 -2
  67. package/umd/n/index.js +5 -3
  68. package/umd/n/noClear.js +110 -0
  69. package/umd/n/{noconfig.js → noConfig.js} +0 -4
  70. package/umd/p/pathPolygonMask.js +5 -2
  71. package/umd/p/polygonMask.js +5 -2
  72. package/umd/s/index.js +3 -1
  73. package/umd/s/shapeEmoji.js +196 -0
  74. package/umd/t/themes.js +0 -1
  75. /package/types/{n/noconfig.d.ts → f/fireworks2.d.ts} +0 -0
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  nasa: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
3
- noconfig: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
3
+ noClear: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
4
+ noConfig: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
4
5
  noisePlanes: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
5
6
  nyancat: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
6
7
  nyancat2: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -0,0 +1,3 @@
1
+ import type { ISourceOptions } from "@tsparticles/engine";
2
+ declare const options: ISourceOptions;
3
+ export default options;
@@ -0,0 +1,3 @@
1
+ import type { ISourceOptions } from "@tsparticles/engine";
2
+ declare const options: ISourceOptions;
3
+ export default options;
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  shadow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
4
4
  shapeArrow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
5
5
  shapeCog: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
6
+ shapeEmoji: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
6
7
  shapeHeart: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
7
8
  shapeMultilineText: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
8
9
  shapeOptions: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -0,0 +1,3 @@
1
+ import { type ISourceOptions } from "@tsparticles/engine";
2
+ declare const options: ISourceOptions;
3
+ export default options;
@@ -30,6 +30,7 @@
30
30
  type: "trail",
31
31
  options: {
32
32
  trail: {
33
+ fade: true,
33
34
  length: {
34
35
  min: 10,
35
36
  max: 30,
@@ -54,7 +55,7 @@
54
55
  generator: "simplexNoise",
55
56
  },
56
57
  enable: true,
57
- speed: 6,
58
+ speed: { min: 6, max: 15 },
58
59
  },
59
60
  },
60
61
  background: {
@@ -0,0 +1,208 @@
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 options = {
13
+ name: "Fireworks 2",
14
+ fullScreen: {
15
+ enable: true,
16
+ },
17
+ background: {
18
+ color: "#ffffff",
19
+ image: "url('https://particles.js.org/images/background3.jpg')",
20
+ position: "50% 50%",
21
+ repeat: "no-repeat",
22
+ size: "cover",
23
+ },
24
+ backgroundMask: {
25
+ enable: true,
26
+ },
27
+ emitters: {
28
+ direction: "top",
29
+ life: {
30
+ count: 0,
31
+ duration: 0.1,
32
+ delay: 0.1,
33
+ },
34
+ rate: {
35
+ delay: 0.15,
36
+ quantity: 1,
37
+ },
38
+ size: {
39
+ width: 100,
40
+ height: 0,
41
+ },
42
+ position: {
43
+ y: 100,
44
+ x: 50,
45
+ },
46
+ },
47
+ particles: {
48
+ number: {
49
+ value: 0,
50
+ },
51
+ destroy: {
52
+ bounds: {
53
+ top: 30,
54
+ },
55
+ mode: "split",
56
+ split: {
57
+ count: 1,
58
+ factor: {
59
+ value: 0.333333,
60
+ },
61
+ rate: {
62
+ value: 100,
63
+ },
64
+ particles: {
65
+ stroke: {
66
+ width: 0,
67
+ },
68
+ color: {
69
+ value: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"],
70
+ },
71
+ number: {
72
+ value: 0,
73
+ },
74
+ collisions: {
75
+ enable: false,
76
+ },
77
+ destroy: {
78
+ bounds: {
79
+ top: 0,
80
+ },
81
+ },
82
+ opacity: {
83
+ value: {
84
+ min: 0.1,
85
+ max: 1,
86
+ },
87
+ animation: {
88
+ enable: true,
89
+ speed: 0.7,
90
+ sync: false,
91
+ startValue: "max",
92
+ destroy: "min",
93
+ },
94
+ },
95
+ effect: {
96
+ type: "trail",
97
+ options: {
98
+ trail: {
99
+ length: {
100
+ min: 5,
101
+ max: 10,
102
+ },
103
+ },
104
+ },
105
+ },
106
+ shape: {
107
+ type: "circle",
108
+ },
109
+ size: {
110
+ value: 2,
111
+ animation: {
112
+ enable: false,
113
+ },
114
+ },
115
+ life: {
116
+ count: 1,
117
+ duration: {
118
+ value: {
119
+ min: 1,
120
+ max: 2,
121
+ },
122
+ },
123
+ },
124
+ move: {
125
+ enable: true,
126
+ gravity: {
127
+ enable: true,
128
+ acceleration: 9.81,
129
+ inverse: false,
130
+ },
131
+ decay: 0.1,
132
+ speed: {
133
+ min: 10,
134
+ max: 25,
135
+ },
136
+ direction: "outside",
137
+ outModes: "destroy",
138
+ },
139
+ },
140
+ },
141
+ },
142
+ life: {
143
+ count: 1,
144
+ },
145
+ effect: {
146
+ type: "trail",
147
+ options: {
148
+ trail: {
149
+ length: {
150
+ min: 10,
151
+ max: 30,
152
+ },
153
+ minWidth: 1,
154
+ maxWidth: 1,
155
+ },
156
+ },
157
+ },
158
+ rotate: {
159
+ path: true,
160
+ },
161
+ shape: {
162
+ type: "circle",
163
+ },
164
+ size: {
165
+ value: 1,
166
+ },
167
+ stroke: {
168
+ color: {
169
+ value: "#ffffff",
170
+ },
171
+ width: 1,
172
+ },
173
+ move: {
174
+ enable: true,
175
+ gravity: {
176
+ acceleration: 15,
177
+ enable: true,
178
+ inverse: true,
179
+ maxSpeed: 100,
180
+ },
181
+ speed: {
182
+ min: 10,
183
+ max: 20,
184
+ },
185
+ outModes: {
186
+ default: "destroy",
187
+ top: "none",
188
+ },
189
+ },
190
+ },
191
+ sounds: {
192
+ enable: true,
193
+ events: [
194
+ {
195
+ event: "particleRemoved",
196
+ filter: "explodeSoundCheck",
197
+ audio: [
198
+ "https://particles.js.org/audio/explosion0.mp3",
199
+ "https://particles.js.org/audio/explosion1.mp3",
200
+ "https://particles.js.org/audio/explosion2.mp3",
201
+ ],
202
+ },
203
+ ],
204
+ volume: 50,
205
+ },
206
+ };
207
+ exports.default = options;
208
+ });
package/umd/f/index.js CHANGED
@@ -7,16 +7,18 @@ 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", "./fireworks.js", "./fontawesome.js", "./forward.js"], factory);
10
+ define(["require", "exports", "./fireworks.js", "./fireworks2.js", "./fontawesome.js", "./forward.js"], factory);
11
11
  }
12
12
  })(function (require, exports) {
13
13
  "use strict";
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const fireworks_js_1 = __importDefault(require("./fireworks.js"));
16
+ const fireworks2_js_1 = __importDefault(require("./fireworks2.js"));
16
17
  const fontawesome_js_1 = __importDefault(require("./fontawesome.js"));
17
18
  const forward_js_1 = __importDefault(require("./forward.js"));
18
19
  exports.default = {
19
20
  fireworks: fireworks_js_1.default,
21
+ fireworks2: fireworks2_js_1.default,
20
22
  fontawesome: fontawesome_js_1.default,
21
23
  forward: forward_js_1.default,
22
24
  };
@@ -100,8 +100,11 @@
100
100
  polygon: {
101
101
  draw: {
102
102
  enable: true,
103
- lineColor: "rgba(255,255,255,0.2)",
104
- lineWidth: 0.5,
103
+ stroke: {
104
+ color: "#fff",
105
+ width: 0.5,
106
+ opacity: 0.2,
107
+ },
105
108
  },
106
109
  enable: true,
107
110
  move: {
@@ -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: {
package/umd/n/index.js CHANGED
@@ -7,19 +7,21 @@ 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", "./nasa.js", "./noconfig.js", "./noisePlanes.js", "./nyancat.js", "./nyancat2.js"], factory);
10
+ define(["require", "exports", "./nasa.js", "./noClear.js", "./noConfig.js", "./noisePlanes.js", "./nyancat.js", "./nyancat2.js"], factory);
11
11
  }
12
12
  })(function (require, exports) {
13
13
  "use strict";
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const nasa_js_1 = __importDefault(require("./nasa.js"));
16
- const noconfig_js_1 = __importDefault(require("./noconfig.js"));
16
+ const noClear_js_1 = __importDefault(require("./noClear.js"));
17
+ const noConfig_js_1 = __importDefault(require("./noConfig.js"));
17
18
  const noisePlanes_js_1 = __importDefault(require("./noisePlanes.js"));
18
19
  const nyancat_js_1 = __importDefault(require("./nyancat.js"));
19
20
  const nyancat2_js_1 = __importDefault(require("./nyancat2.js"));
20
21
  exports.default = {
21
22
  nasa: nasa_js_1.default,
22
- noconfig: noconfig_js_1.default,
23
+ noClear: noClear_js_1.default,
24
+ noConfig: noConfig_js_1.default,
23
25
  noisePlanes: noisePlanes_js_1.default,
24
26
  nyancat: nyancat_js_1.default,
25
27
  nyancat2: nyancat2_js_1.default,
@@ -0,0 +1,110 @@
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 options = {
13
+ name: "No Clear",
14
+ clear: false,
15
+ interactivity: {
16
+ events: {
17
+ onHover: {
18
+ enable: true,
19
+ mode: "trail",
20
+ },
21
+ },
22
+ modes: {
23
+ trail: {
24
+ delay: 0.01,
25
+ quantity: 1,
26
+ pauseOnStop: true,
27
+ },
28
+ },
29
+ },
30
+ particles: {
31
+ color: {
32
+ value: [
33
+ "#80F31F",
34
+ "#ED8B08",
35
+ "#ED1868",
36
+ "#800CE0",
37
+ "#1274F7",
38
+ "#12E797",
39
+ "#7FF31F",
40
+ "#ED8B08",
41
+ "#ED1868",
42
+ "#800CE0",
43
+ "#1274F7",
44
+ "#12E797",
45
+ "#7FF31F",
46
+ "#ED8B08",
47
+ "#ED1868",
48
+ "#800CE0",
49
+ "#1274F7",
50
+ "#12E797",
51
+ "#7FF31F",
52
+ "#ED8B08",
53
+ "#ED1868",
54
+ "#800CE0",
55
+ "#1274F7",
56
+ "#12E797",
57
+ "#7FF31F",
58
+ "#ED8B08",
59
+ "#ED1868",
60
+ "#800CE0",
61
+ "#1274F7",
62
+ "#12E797",
63
+ "#7FF31F",
64
+ "#ED8B08",
65
+ "#ED1868",
66
+ "#800CE0",
67
+ "#1274F7",
68
+ "#12E797",
69
+ "#7FF31F",
70
+ "#ED8B08",
71
+ "#ED1868",
72
+ "#800CE0",
73
+ "#1274F7",
74
+ "#12E797",
75
+ "#7FF31F",
76
+ "#ED8B08",
77
+ "#ED1868",
78
+ "#800CE0",
79
+ "#1274F7",
80
+ "#12E797",
81
+ "#7FF31F",
82
+ "#ED8B08",
83
+ ],
84
+ },
85
+ life: {
86
+ count: 1,
87
+ duration: {
88
+ sync: true,
89
+ value: 1,
90
+ },
91
+ },
92
+ number: {
93
+ value: 500,
94
+ },
95
+ size: {
96
+ value: 50,
97
+ },
98
+ shape: {
99
+ type: "star",
100
+ },
101
+ rotate: {
102
+ value: {
103
+ min: 0,
104
+ max: 360,
105
+ },
106
+ },
107
+ },
108
+ };
109
+ exports.default = options;
110
+ });
@@ -11,10 +11,6 @@
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const options = {
13
13
  name: "No Config",
14
- fullScreen: {
15
- enable: true,
16
- zIndex: 0,
17
- },
18
14
  };
19
15
  exports.default = options;
20
16
  });
@@ -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,