@tsparticles/configs 3.0.0-beta.5 → 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.
@@ -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;
@@ -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
  };
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
  });
File without changes