@tsparticles/preset-fireworks 4.0.0-beta.0 → 4.0.0-beta.15
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.
- package/browser/browser.js +5 -0
- package/browser/bundle.js +4 -0
- package/browser/index.js +11 -12
- package/browser/index.lazy.js +31 -0
- package/browser/options.js +1 -1
- package/cjs/browser.js +5 -0
- package/cjs/bundle.js +4 -0
- package/cjs/index.js +11 -12
- package/cjs/index.lazy.js +31 -0
- package/cjs/options.js +1 -1
- package/esm/browser.js +5 -0
- package/esm/bundle.js +4 -0
- package/esm/index.js +11 -12
- package/esm/index.lazy.js +31 -0
- package/esm/options.js +1 -1
- package/package.json +19 -12
- package/report.html +4949 -94
- package/tsparticles.preset.fireworks.bundle.js +8538 -967
- package/tsparticles.preset.fireworks.bundle.min.js +1 -2
- package/tsparticles.preset.fireworks.js +294 -437
- package/tsparticles.preset.fireworks.min.js +1 -2
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/1200.min.js +0 -1
- package/1361.min.js +0 -1
- package/1467.min.js +0 -1
- package/188.min.js +0 -1
- package/2086.min.js +0 -1
- package/2220.min.js +0 -1
- package/2902.min.js +0 -1
- package/2921.min.js +0 -1
- package/3010.min.js +0 -1
- package/3048.min.js +0 -1
- package/3072.min.js +0 -1
- package/311.min.js +0 -1
- package/3153.min.js +0 -1
- package/3172.min.js +0 -1
- package/3326.min.js +0 -1
- package/361.min.js +0 -1
- package/3659.min.js +0 -1
- package/3784.min.js +0 -1
- package/3805.min.js +0 -1
- package/383.min.js +0 -33
- package/4244.min.js +0 -1
- package/4750.min.js +0 -1
- package/4925.min.js +0 -1
- package/4957.min.js +0 -1
- package/5074.min.js +0 -1
- package/5647.min.js +0 -1
- package/5824.min.js +0 -1
- package/5857.min.js +0 -1
- package/6592.min.js +0 -1
- package/6700.min.js +0 -1
- package/6714.min.js +0 -1
- package/6895.min.js +0 -1
- package/7063.min.js +0 -1
- package/7072.min.js +0 -1
- package/7260.min.js +0 -1
- package/7404.min.js +0 -1
- package/7430.min.js +0 -1
- package/7632.min.js +0 -1
- package/7856.min.js +0 -1
- package/8304.min.js +0 -1
- package/8619.min.js +0 -1
- package/8738.min.js +0 -1
- package/8778.min.js +0 -1
- package/892.min.js +0 -1
- package/8998.min.js +0 -1
- package/915.min.js +0 -1
- package/9245.min.js +0 -1
- package/9358.min.js +0 -1
- package/9392.min.js +0 -1
- package/9719.min.js +0 -1
- package/9976.min.js +0 -1
- package/dist_browser_options_js.js +0 -30
- package/node_modules_pnpm_tsparticles_basic_4_0_0-beta_11_node_modules_tsparticles_basic_browser_index_js.js +0 -30
- package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-8a5947.js +0 -30
- package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-cb9e7e.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-beta_11__tsparticles_engine_-85b81e.js +0 -100
- package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-beta_11__tsparticles_engine_-8b05f0.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-09a57e.js +0 -100
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-65b417.js +0 -80
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-74f6c1.js +0 -50
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7e9977.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f13fa.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-b6bb50.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-cf6e0a.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-daf8cd.js +0 -100
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-5e0ff2.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-b0d0ee.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-060416.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-a6d106.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_4_0_0-be-47e198.js +0 -120
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_4_0_0-be-710e43.js +0 -70
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-3a792b.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-e1bc4b.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-d9836d.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-f22022.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-3d7d15.js +0 -30
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-7552ae.js +0 -40
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-b06fc7.js +0 -30
- package/node_modules_pnpm_tsparticles_shape-line_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_node-06caa0.js +0 -40
- package/node_modules_pnpm_tsparticles_shape-line_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_node-8f1b2c.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-destroy_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f9f4b.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-9cea59.js +0 -70
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a724a4.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-8f9e09.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-da77ce.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_-df7144.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-589482.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-b1f330.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-03eda6.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-6626aa.js +0 -50
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a47b81.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-d2508a.js +0 -30
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_11_node_modules_tsparticles_engine_br-ca098e.js +0 -100
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-6e84d5.js +0 -30
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-f34432.js +0 -210
- package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_-32e86c.js +0 -50
- package/vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-bet-5f2b78.js +0 -40
- package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_11__tsparticles_engine_4_0_0-b-2693cf.js +0 -130
- package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_11__tsparticles_engine_4_0_0-b-9529dd.js +0 -40
- package/vendors-node_modules_pnpm_tsparticles_updater-destroy_4_0_0-beta_11__tsparticles_engine_4_0_0-194b6c.js +0 -100
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0-09fa1a.js +0 -80
|
@@ -1,437 +1,294 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
/******/ }
|
|
296
|
-
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
297
|
-
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
298
|
-
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
299
|
-
/******/ needAttach && document.head.appendChild(script);
|
|
300
|
-
/******/ };
|
|
301
|
-
/******/ })();
|
|
302
|
-
/******/
|
|
303
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
304
|
-
/******/ (() => {
|
|
305
|
-
/******/ // define __esModule on exports
|
|
306
|
-
/******/ __webpack_require__.r = (exports) => {
|
|
307
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
308
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
309
|
-
/******/ }
|
|
310
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
311
|
-
/******/ };
|
|
312
|
-
/******/ })();
|
|
313
|
-
/******/
|
|
314
|
-
/******/ /* webpack/runtime/publicPath */
|
|
315
|
-
/******/ (() => {
|
|
316
|
-
/******/ var scriptUrl;
|
|
317
|
-
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
318
|
-
/******/ var document = __webpack_require__.g.document;
|
|
319
|
-
/******/ if (!scriptUrl && document) {
|
|
320
|
-
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
|
|
321
|
-
/******/ scriptUrl = document.currentScript.src;
|
|
322
|
-
/******/ if (!scriptUrl) {
|
|
323
|
-
/******/ var scripts = document.getElementsByTagName("script");
|
|
324
|
-
/******/ if(scripts.length) {
|
|
325
|
-
/******/ var i = scripts.length - 1;
|
|
326
|
-
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
327
|
-
/******/ }
|
|
328
|
-
/******/ }
|
|
329
|
-
/******/ }
|
|
330
|
-
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
331
|
-
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
332
|
-
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
333
|
-
/******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
334
|
-
/******/ __webpack_require__.p = scriptUrl;
|
|
335
|
-
/******/ })();
|
|
336
|
-
/******/
|
|
337
|
-
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
338
|
-
/******/ (() => {
|
|
339
|
-
/******/ // no baseURI
|
|
340
|
-
/******/
|
|
341
|
-
/******/ // object to store loaded and loading chunks
|
|
342
|
-
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
343
|
-
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
344
|
-
/******/ var installedChunks = {
|
|
345
|
-
/******/ "tsparticles.preset.fireworks": 0
|
|
346
|
-
/******/ };
|
|
347
|
-
/******/
|
|
348
|
-
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
349
|
-
/******/ // JSONP chunk loading for javascript
|
|
350
|
-
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
351
|
-
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
352
|
-
/******/
|
|
353
|
-
/******/ // a Promise means "currently loading".
|
|
354
|
-
/******/ if(installedChunkData) {
|
|
355
|
-
/******/ promises.push(installedChunkData[2]);
|
|
356
|
-
/******/ } else {
|
|
357
|
-
/******/ if(true) { // all chunks have JS
|
|
358
|
-
/******/ // setup Promise in chunk cache
|
|
359
|
-
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
360
|
-
/******/ promises.push(installedChunkData[2] = promise);
|
|
361
|
-
/******/
|
|
362
|
-
/******/ // start chunk loading
|
|
363
|
-
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
364
|
-
/******/ // create error before stack unwound to get useful stacktrace later
|
|
365
|
-
/******/ var error = new Error();
|
|
366
|
-
/******/ var loadingEnded = (event) => {
|
|
367
|
-
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
368
|
-
/******/ installedChunkData = installedChunks[chunkId];
|
|
369
|
-
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
370
|
-
/******/ if(installedChunkData) {
|
|
371
|
-
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
372
|
-
/******/ var realSrc = event && event.target && event.target.src;
|
|
373
|
-
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
374
|
-
/******/ error.name = 'ChunkLoadError';
|
|
375
|
-
/******/ error.type = errorType;
|
|
376
|
-
/******/ error.request = realSrc;
|
|
377
|
-
/******/ installedChunkData[1](error);
|
|
378
|
-
/******/ }
|
|
379
|
-
/******/ }
|
|
380
|
-
/******/ };
|
|
381
|
-
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
382
|
-
/******/ }
|
|
383
|
-
/******/ }
|
|
384
|
-
/******/ }
|
|
385
|
-
/******/ };
|
|
386
|
-
/******/
|
|
387
|
-
/******/ // no prefetching
|
|
388
|
-
/******/
|
|
389
|
-
/******/ // no preloaded
|
|
390
|
-
/******/
|
|
391
|
-
/******/ // no HMR
|
|
392
|
-
/******/
|
|
393
|
-
/******/ // no HMR manifest
|
|
394
|
-
/******/
|
|
395
|
-
/******/ // no on chunks loaded
|
|
396
|
-
/******/
|
|
397
|
-
/******/ // install a JSONP callback for chunk loading
|
|
398
|
-
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
399
|
-
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
400
|
-
/******/ // add "moreModules" to the modules object,
|
|
401
|
-
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
402
|
-
/******/ var moduleId, chunkId, i = 0;
|
|
403
|
-
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
404
|
-
/******/ for(moduleId in moreModules) {
|
|
405
|
-
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
406
|
-
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
407
|
-
/******/ }
|
|
408
|
-
/******/ }
|
|
409
|
-
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
410
|
-
/******/ }
|
|
411
|
-
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
412
|
-
/******/ for(;i < chunkIds.length; i++) {
|
|
413
|
-
/******/ chunkId = chunkIds[i];
|
|
414
|
-
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
415
|
-
/******/ installedChunks[chunkId][0]();
|
|
416
|
-
/******/ }
|
|
417
|
-
/******/ installedChunks[chunkId] = 0;
|
|
418
|
-
/******/ }
|
|
419
|
-
/******/
|
|
420
|
-
/******/ }
|
|
421
|
-
/******/
|
|
422
|
-
/******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || [];
|
|
423
|
-
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
424
|
-
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
425
|
-
/******/ })();
|
|
426
|
-
/******/
|
|
427
|
-
/************************************************************************/
|
|
428
|
-
/******/
|
|
429
|
-
/******/ // startup
|
|
430
|
-
/******/ // Load entry module and return exports
|
|
431
|
-
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
432
|
-
/******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
|
|
433
|
-
/******/
|
|
434
|
-
/******/ return __webpack_exports__;
|
|
435
|
-
/******/ })()
|
|
436
|
-
;
|
|
437
|
-
});
|
|
1
|
+
(function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
|
|
2
|
+
/* Preset v4.0.0-beta.15 */
|
|
3
|
+
(function (global, factory) {
|
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/engine'), require('@tsparticles/basic'), require('@tsparticles/updater-destroy'), require('@tsparticles/plugin-emitters/plugin'), require('@tsparticles/plugin-emitters-shape-square'), require('@tsparticles/updater-life'), require('@tsparticles/shape-line'), require('@tsparticles/updater-rotate'), require('@tsparticles/plugin-sounds'), require('@tsparticles/effect-trail')) :
|
|
5
|
+
typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/engine', '@tsparticles/basic', '@tsparticles/updater-destroy', '@tsparticles/plugin-emitters/plugin', '@tsparticles/plugin-emitters-shape-square', '@tsparticles/updater-life', '@tsparticles/shape-line', '@tsparticles/updater-rotate', '@tsparticles/plugin-sounds', '@tsparticles/effect-trail'], factory) :
|
|
6
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.presets = global.__tsParticlesInternals.presets || {}, global.__tsParticlesInternals.presets.fireworks = global.__tsParticlesInternals.presets.fireworks || {}), global.__tsParticlesInternals.engine, global.__tsParticlesInternals.bundles.basic, global.__tsParticlesInternals.updaters.destroy, global.__tsParticlesInternals.plugins["emitters/plugin"], global.__tsParticlesInternals.plugins.emittersShapes.square, global.__tsParticlesInternals.updaters.life, global.__tsParticlesInternals.shapes.line, global.__tsParticlesInternals.updaters.rotate, global.__tsParticlesInternals.plugins.sounds, global.__tsParticlesInternals.effects.trail));
|
|
7
|
+
})(this, (function (exports, engine, basic, updaterDestroy, plugin, pluginEmittersShapeSquare, updaterLife, shapeLine, updaterRotate, pluginSounds, effectTrail) { 'use strict';
|
|
8
|
+
|
|
9
|
+
function initOptions() {
|
|
10
|
+
const explodeSoundCheck = (args) => {
|
|
11
|
+
const data = args.data;
|
|
12
|
+
return data.particle.options.move.gravity.inverse;
|
|
13
|
+
}, fixRange = (value, min, max) => {
|
|
14
|
+
const minValue = 0, diffSMax = value.max > max ? value.max - max : minValue;
|
|
15
|
+
let res = engine.setRangeValue(value);
|
|
16
|
+
if (diffSMax) {
|
|
17
|
+
res = engine.setRangeValue(value.min - diffSMax, max);
|
|
18
|
+
}
|
|
19
|
+
const diffSMin = value.min < min ? value.min : minValue;
|
|
20
|
+
if (diffSMin) {
|
|
21
|
+
res = engine.setRangeValue(minValue, value.max + diffSMin);
|
|
22
|
+
}
|
|
23
|
+
return res;
|
|
24
|
+
}, hexToRgba = (hex) => {
|
|
25
|
+
let hexValue = hex;
|
|
26
|
+
const shortRegex = /^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;
|
|
27
|
+
if (shortRegex.test(hexValue)) {
|
|
28
|
+
hexValue = hexValue.replace(shortRegex, (_m, r, g, b, a) => r + r + g + g + b + b + (a ? a + a : ""));
|
|
29
|
+
}
|
|
30
|
+
const regex = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, result = regex.exec(hexValue);
|
|
31
|
+
if (!result) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
result.shift();
|
|
35
|
+
const indexes = {
|
|
36
|
+
a: 3,
|
|
37
|
+
b: 2,
|
|
38
|
+
g: 1,
|
|
39
|
+
r: 0,
|
|
40
|
+
}, values = {
|
|
41
|
+
a: result[indexes.a],
|
|
42
|
+
b: result[indexes.b],
|
|
43
|
+
g: result[indexes.g],
|
|
44
|
+
r: result[indexes.r],
|
|
45
|
+
}, hexRadix = 16;
|
|
46
|
+
return {
|
|
47
|
+
r: values.r ? Number.parseInt(values.r, hexRadix) : engine.none,
|
|
48
|
+
g: values.g ? Number.parseInt(values.g, hexRadix) : engine.none,
|
|
49
|
+
b: values.b ? Number.parseInt(values.b, hexRadix) : engine.none,
|
|
50
|
+
a: values.a ? Number.parseInt(values.a, hexRadix) : engine.defaultAlpha,
|
|
51
|
+
};
|
|
52
|
+
}, fireworksOptions = [
|
|
53
|
+
"#FF0000",
|
|
54
|
+
"#FF8000",
|
|
55
|
+
"#FFFF00",
|
|
56
|
+
"#00FF00",
|
|
57
|
+
"#00FFFF",
|
|
58
|
+
"#0000FF",
|
|
59
|
+
"#FF00FF",
|
|
60
|
+
]
|
|
61
|
+
.map(color => {
|
|
62
|
+
const rgb = hexToRgba(color);
|
|
63
|
+
if (!rgb) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
const hsl = engine.rgbToHsl(rgb), sOffset = 30, lOffset = 30, sBounds = {
|
|
67
|
+
min: 0,
|
|
68
|
+
max: 100,
|
|
69
|
+
}, lBounds = {
|
|
70
|
+
min: 0,
|
|
71
|
+
max: 100,
|
|
72
|
+
}, sRange = fixRange({ min: hsl.s - sOffset, max: hsl.s + sOffset }, sBounds.min, sBounds.max), lRange = fixRange({ min: hsl.l - lOffset, max: hsl.l + lOffset }, lBounds.min, lBounds.max);
|
|
73
|
+
return {
|
|
74
|
+
paint: {
|
|
75
|
+
fill: {
|
|
76
|
+
color: {
|
|
77
|
+
value: {
|
|
78
|
+
h: hsl.h,
|
|
79
|
+
s: sRange,
|
|
80
|
+
l: lRange,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
enable: true,
|
|
84
|
+
},
|
|
85
|
+
stroke: {
|
|
86
|
+
width: 0,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
number: {
|
|
90
|
+
value: 0,
|
|
91
|
+
},
|
|
92
|
+
opacity: {
|
|
93
|
+
value: {
|
|
94
|
+
min: 0.1,
|
|
95
|
+
max: 1,
|
|
96
|
+
},
|
|
97
|
+
animation: {
|
|
98
|
+
enable: true,
|
|
99
|
+
speed: 0.7,
|
|
100
|
+
sync: false,
|
|
101
|
+
startValue: engine.StartValueType.max,
|
|
102
|
+
destroy: engine.DestroyType.min,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
shape: {
|
|
106
|
+
type: "circle",
|
|
107
|
+
},
|
|
108
|
+
effect: {
|
|
109
|
+
type: "trail",
|
|
110
|
+
options: {
|
|
111
|
+
trail: {
|
|
112
|
+
length: {
|
|
113
|
+
min: 5,
|
|
114
|
+
max: 10,
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
size: {
|
|
120
|
+
value: { min: 1, max: 2 },
|
|
121
|
+
animation: {
|
|
122
|
+
enable: true,
|
|
123
|
+
speed: 5,
|
|
124
|
+
count: 1,
|
|
125
|
+
sync: false,
|
|
126
|
+
startValue: engine.StartValueType.min,
|
|
127
|
+
destroy: engine.DestroyType.none,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
life: {
|
|
131
|
+
count: 1,
|
|
132
|
+
duration: {
|
|
133
|
+
value: {
|
|
134
|
+
min: 1,
|
|
135
|
+
max: 2,
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
move: {
|
|
140
|
+
decay: { min: 0.075, max: 0.1 },
|
|
141
|
+
enable: true,
|
|
142
|
+
gravity: {
|
|
143
|
+
enable: true,
|
|
144
|
+
inverse: false,
|
|
145
|
+
acceleration: 5,
|
|
146
|
+
},
|
|
147
|
+
speed: { min: 5, max: 15 },
|
|
148
|
+
direction: engine.MoveDirection.none,
|
|
149
|
+
outModes: engine.OutMode.destroy,
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
})
|
|
153
|
+
.filter(t => t !== undefined);
|
|
154
|
+
return {
|
|
155
|
+
detectRetina: true,
|
|
156
|
+
background: {
|
|
157
|
+
color: "#000",
|
|
158
|
+
},
|
|
159
|
+
fpsLimit: 120,
|
|
160
|
+
emitters: {
|
|
161
|
+
direction: engine.MoveDirection.top,
|
|
162
|
+
rate: {
|
|
163
|
+
delay: 0.3,
|
|
164
|
+
quantity: 1,
|
|
165
|
+
},
|
|
166
|
+
size: {
|
|
167
|
+
width: 100,
|
|
168
|
+
height: 0,
|
|
169
|
+
},
|
|
170
|
+
position: {
|
|
171
|
+
y: 100,
|
|
172
|
+
x: 50,
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
particles: {
|
|
176
|
+
number: {
|
|
177
|
+
value: 0,
|
|
178
|
+
},
|
|
179
|
+
destroy: {
|
|
180
|
+
mode: "split",
|
|
181
|
+
bounds: {
|
|
182
|
+
top: { min: 15, max: 35 },
|
|
183
|
+
},
|
|
184
|
+
split: {
|
|
185
|
+
sizeOffset: false,
|
|
186
|
+
count: 1,
|
|
187
|
+
factor: {
|
|
188
|
+
value: 0.333333,
|
|
189
|
+
},
|
|
190
|
+
rate: {
|
|
191
|
+
value: { min: 75, max: 150 },
|
|
192
|
+
},
|
|
193
|
+
particles: fireworksOptions,
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
life: {
|
|
197
|
+
count: 1,
|
|
198
|
+
},
|
|
199
|
+
shape: {
|
|
200
|
+
type: "circle",
|
|
201
|
+
},
|
|
202
|
+
effect: {
|
|
203
|
+
type: "trail",
|
|
204
|
+
options: {
|
|
205
|
+
trail: {
|
|
206
|
+
length: {
|
|
207
|
+
min: 5,
|
|
208
|
+
max: 15,
|
|
209
|
+
},
|
|
210
|
+
minWidth: 1,
|
|
211
|
+
maxWidth: 1,
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
size: {
|
|
216
|
+
value: 1,
|
|
217
|
+
},
|
|
218
|
+
paint: {
|
|
219
|
+
stroke: {
|
|
220
|
+
color: {
|
|
221
|
+
value: "#ffffff",
|
|
222
|
+
},
|
|
223
|
+
width: 1,
|
|
224
|
+
},
|
|
225
|
+
fill: {
|
|
226
|
+
enable: false,
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
move: {
|
|
230
|
+
enable: true,
|
|
231
|
+
gravity: {
|
|
232
|
+
acceleration: 15,
|
|
233
|
+
enable: true,
|
|
234
|
+
inverse: true,
|
|
235
|
+
maxSpeed: 100,
|
|
236
|
+
},
|
|
237
|
+
speed: {
|
|
238
|
+
min: 10,
|
|
239
|
+
max: 20,
|
|
240
|
+
},
|
|
241
|
+
outModes: {
|
|
242
|
+
default: engine.OutMode.destroy,
|
|
243
|
+
top: engine.OutMode.none,
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
sounds: {
|
|
248
|
+
enable: true,
|
|
249
|
+
events: [
|
|
250
|
+
{
|
|
251
|
+
event: engine.EventType.particleRemoved,
|
|
252
|
+
filter: explodeSoundCheck,
|
|
253
|
+
audio: [
|
|
254
|
+
"https://particles.js.org/audio/explosion0.mp3",
|
|
255
|
+
"https://particles.js.org/audio/explosion1.mp3",
|
|
256
|
+
"https://particles.js.org/audio/explosion2.mp3",
|
|
257
|
+
],
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
volume: 50,
|
|
261
|
+
},
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
const presetName = "fireworks";
|
|
266
|
+
async function loadFireworksPreset(engine) {
|
|
267
|
+
await engine.pluginManager.register(async (e) => {
|
|
268
|
+
const loadEmittersForFireworks = async (e) => {
|
|
269
|
+
await plugin.loadEmittersPluginSimple(e);
|
|
270
|
+
await pluginEmittersShapeSquare.loadEmittersShapeSquare(e);
|
|
271
|
+
};
|
|
272
|
+
await Promise.all([
|
|
273
|
+
basic.loadBasic(e),
|
|
274
|
+
loadEmittersForFireworks(e),
|
|
275
|
+
effectTrail.loadTrailEffect(e),
|
|
276
|
+
pluginSounds.loadSoundsPlugin(e),
|
|
277
|
+
shapeLine.loadLineShape(e),
|
|
278
|
+
updaterRotate.loadRotateUpdater(e),
|
|
279
|
+
updaterDestroy.loadDestroyUpdater(e),
|
|
280
|
+
updaterLife.loadLifeUpdater(e),
|
|
281
|
+
]);
|
|
282
|
+
e.pluginManager.addPreset(presetName, initOptions(), false);
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
const globalObject = globalThis;
|
|
287
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
288
|
+
globalObject.loadFireworksPreset = loadFireworksPreset;
|
|
289
|
+
|
|
290
|
+
exports.loadFireworksPreset = loadFireworksPreset;
|
|
291
|
+
|
|
292
|
+
}));
|
|
293
|
+
Object.assign(globalThis.window || globalThis, { loadFireworksPreset: (globalThis.__tsParticlesInternals.presets.fireworks || {}).loadFireworksPreset });
|
|
294
|
+
delete (globalThis.window || globalThis).tsparticlesInternalExports;
|