1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | (function webpackUniversalModuleDefinition(root, factory) {
|
10 | if(typeof exports === 'object' && typeof module === 'object')
|
11 | module.exports = factory(require("tsparticles-engine"), require("tsparticles-updater-angle"), require("tsparticles-move-base"), require("tsparticles-shape-circle"), require("tsparticles-updater-color"), require("tsparticles-updater-destroy"), require("tsparticles-plugin-emitters"), require("tsparticles-updater-life"), require("tsparticles-shape-line"), require("tsparticles-updater-opacity"), require("tsparticles-updater-out-modes"), require("tsparticles-updater-size"), require("tsparticles-plugin-sounds"), require("tsparticles-updater-stroke-color"));
|
12 | else if(typeof define === 'function' && define.amd)
|
13 | define(["tsparticles-engine", "tsparticles-updater-angle", "tsparticles-move-base", "tsparticles-shape-circle", "tsparticles-updater-color", "tsparticles-updater-destroy", "tsparticles-plugin-emitters", "tsparticles-updater-life", "tsparticles-shape-line", "tsparticles-updater-opacity", "tsparticles-updater-out-modes", "tsparticles-updater-size", "tsparticles-plugin-sounds", "tsparticles-updater-stroke-color"], factory);
|
14 | else {
|
15 | var a = typeof exports === 'object' ? factory(require("tsparticles-engine"), require("tsparticles-updater-angle"), require("tsparticles-move-base"), require("tsparticles-shape-circle"), require("tsparticles-updater-color"), require("tsparticles-updater-destroy"), require("tsparticles-plugin-emitters"), require("tsparticles-updater-life"), require("tsparticles-shape-line"), require("tsparticles-updater-opacity"), require("tsparticles-updater-out-modes"), require("tsparticles-updater-size"), require("tsparticles-plugin-sounds"), require("tsparticles-updater-stroke-color")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
|
16 | for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
17 | }
|
18 | })(this, (__WEBPACK_EXTERNAL_MODULE__961__, __WEBPACK_EXTERNAL_MODULE__490__, __WEBPACK_EXTERNAL_MODULE__565__, __WEBPACK_EXTERNAL_MODULE__851__, __WEBPACK_EXTERNAL_MODULE__613__, __WEBPACK_EXTERNAL_MODULE__731__, __WEBPACK_EXTERNAL_MODULE__716__, __WEBPACK_EXTERNAL_MODULE__86__, __WEBPACK_EXTERNAL_MODULE__598__, __WEBPACK_EXTERNAL_MODULE__515__, __WEBPACK_EXTERNAL_MODULE__509__, __WEBPACK_EXTERNAL_MODULE__694__, __WEBPACK_EXTERNAL_MODULE__415__, __WEBPACK_EXTERNAL_MODULE__226__) => {
|
19 | return (() => {
|
20 | "use strict";
|
21 | var __webpack_modules__ = ({
|
22 |
|
23 | 961:
|
24 | ((module) => {
|
25 |
|
26 | module.exports = __WEBPACK_EXTERNAL_MODULE__961__;
|
27 |
|
28 | }),
|
29 |
|
30 | 565:
|
31 | ((module) => {
|
32 |
|
33 | module.exports = __WEBPACK_EXTERNAL_MODULE__565__;
|
34 |
|
35 | }),
|
36 |
|
37 | 716:
|
38 | ((module) => {
|
39 |
|
40 | module.exports = __WEBPACK_EXTERNAL_MODULE__716__;
|
41 |
|
42 | }),
|
43 |
|
44 | 415:
|
45 | ((module) => {
|
46 |
|
47 | module.exports = __WEBPACK_EXTERNAL_MODULE__415__;
|
48 |
|
49 | }),
|
50 |
|
51 | 851:
|
52 | ((module) => {
|
53 |
|
54 | module.exports = __WEBPACK_EXTERNAL_MODULE__851__;
|
55 |
|
56 | }),
|
57 |
|
58 | 598:
|
59 | ((module) => {
|
60 |
|
61 | module.exports = __WEBPACK_EXTERNAL_MODULE__598__;
|
62 |
|
63 | }),
|
64 |
|
65 | 490:
|
66 | ((module) => {
|
67 |
|
68 | module.exports = __WEBPACK_EXTERNAL_MODULE__490__;
|
69 |
|
70 | }),
|
71 |
|
72 | 613:
|
73 | ((module) => {
|
74 |
|
75 | module.exports = __WEBPACK_EXTERNAL_MODULE__613__;
|
76 |
|
77 | }),
|
78 |
|
79 | 731:
|
80 | ((module) => {
|
81 |
|
82 | module.exports = __WEBPACK_EXTERNAL_MODULE__731__;
|
83 |
|
84 | }),
|
85 |
|
86 | 86:
|
87 | ((module) => {
|
88 |
|
89 | module.exports = __WEBPACK_EXTERNAL_MODULE__86__;
|
90 |
|
91 | }),
|
92 |
|
93 | 515:
|
94 | ((module) => {
|
95 |
|
96 | module.exports = __WEBPACK_EXTERNAL_MODULE__515__;
|
97 |
|
98 | }),
|
99 |
|
100 | 509:
|
101 | ((module) => {
|
102 |
|
103 | module.exports = __WEBPACK_EXTERNAL_MODULE__509__;
|
104 |
|
105 | }),
|
106 |
|
107 | 694:
|
108 | ((module) => {
|
109 |
|
110 | module.exports = __WEBPACK_EXTERNAL_MODULE__694__;
|
111 |
|
112 | }),
|
113 |
|
114 | 226:
|
115 | ((module) => {
|
116 |
|
117 | module.exports = __WEBPACK_EXTERNAL_MODULE__226__;
|
118 |
|
119 | })
|
120 |
|
121 | });
|
122 |
|
123 |
|
124 | var __webpack_module_cache__ = {};
|
125 |
|
126 |
|
127 | function __webpack_require__(moduleId) {
|
128 |
|
129 | var cachedModule = __webpack_module_cache__[moduleId];
|
130 | if (cachedModule !== undefined) {
|
131 | return cachedModule.exports;
|
132 | }
|
133 |
|
134 | var module = __webpack_module_cache__[moduleId] = {
|
135 |
|
136 |
|
137 | exports: {}
|
138 | };
|
139 |
|
140 |
|
141 | __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
142 |
|
143 |
|
144 | return module.exports;
|
145 | }
|
146 |
|
147 |
|
148 |
|
149 | (() => {
|
150 |
|
151 | __webpack_require__.d = (exports, definition) => {
|
152 | for(var key in definition) {
|
153 | if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
154 | Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
155 | }
|
156 | }
|
157 | };
|
158 | })();
|
159 |
|
160 |
|
161 | (() => {
|
162 | __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
163 | })();
|
164 |
|
165 |
|
166 | (() => {
|
167 |
|
168 | __webpack_require__.r = (exports) => {
|
169 | if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
170 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
171 | }
|
172 | Object.defineProperty(exports, '__esModule', { value: true });
|
173 | };
|
174 | })();
|
175 |
|
176 |
|
177 | var __webpack_exports__ = {};
|
178 |
|
179 | (() => {
|
180 |
|
181 | __webpack_require__.r(__webpack_exports__);
|
182 |
|
183 |
|
184 | __webpack_require__.d(__webpack_exports__, {
|
185 | "fireworks": () => ( fireworks)
|
186 | });
|
187 |
|
188 |
|
189 | var external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_ = __webpack_require__(961);
|
190 | ;
|
191 |
|
192 | class FireworkOptions {
|
193 | constructor() {
|
194 | this.brightness = {
|
195 | min: -30,
|
196 | max: 30
|
197 | };
|
198 | this.colors = ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"];
|
199 | this.gravity = 5;
|
200 | this.minHeight = {
|
201 | min: 10,
|
202 | max: 30
|
203 | };
|
204 | this.rate = 20;
|
205 | this.saturation = {
|
206 | min: -30,
|
207 | max: 30
|
208 | };
|
209 | this.sounds = true;
|
210 | this.speed = {
|
211 | min: 5,
|
212 | max: 15
|
213 | };
|
214 | this.splitCount = {
|
215 | min: 75,
|
216 | max: 150
|
217 | };
|
218 | }
|
219 | load(data) {
|
220 | if (!data) {
|
221 | return;
|
222 | }
|
223 | if (data.colors !== undefined) {
|
224 | if (data.colors instanceof Array) {
|
225 | this.colors = [...data.colors];
|
226 | } else {
|
227 | this.colors = data.colors;
|
228 | }
|
229 | }
|
230 | if (data.brightness !== undefined) {
|
231 | this.brightness = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.setRangeValue)(data.brightness);
|
232 | }
|
233 | if (data.gravity !== undefined) {
|
234 | this.gravity = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.setRangeValue)(data.gravity);
|
235 | }
|
236 | if (data.minHeight !== undefined) {
|
237 | this.minHeight = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.setRangeValue)(data.minHeight);
|
238 | }
|
239 | if (data.rate !== undefined) {
|
240 | this.rate = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.setRangeValue)(data.rate);
|
241 | }
|
242 | if (data.saturation !== undefined) {
|
243 | this.saturation = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.setRangeValue)(data.saturation);
|
244 | }
|
245 | if (data.sounds !== undefined) {
|
246 | this.sounds = data.sounds;
|
247 | }
|
248 | if (data.speed !== undefined) {
|
249 | this.speed = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.setRangeValue)(data.speed);
|
250 | }
|
251 | if (data.splitCount !== undefined) {
|
252 | this.splitCount = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.setRangeValue)(data.splitCount);
|
253 | }
|
254 | }
|
255 | }
|
256 |
|
257 | var external_commonjs_tsparticles_updater_angle_commonjs2_tsparticles_updater_angle_amd_tsparticles_updater_angle_root_window_ = __webpack_require__(490);
|
258 |
|
259 | var external_commonjs_tsparticles_move_base_commonjs2_tsparticles_move_base_amd_tsparticles_move_base_root_window_ = __webpack_require__(565);
|
260 |
|
261 | var external_commonjs_tsparticles_shape_circle_commonjs2_tsparticles_shape_circle_amd_tsparticles_shape_circle_root_window_ = __webpack_require__(851);
|
262 |
|
263 | var external_commonjs_tsparticles_updater_color_commonjs2_tsparticles_updater_color_amd_tsparticles_updater_color_root_window_ = __webpack_require__(613);
|
264 |
|
265 | var external_commonjs_tsparticles_updater_destroy_commonjs2_tsparticles_updater_destroy_amd_tsparticles_updater_destroy_root_window_ = __webpack_require__(731);
|
266 |
|
267 | var external_commonjs_tsparticles_plugin_emitters_commonjs2_tsparticles_plugin_emitters_amd_tsparticles_plugin_emitters_root_window_ = __webpack_require__(716);
|
268 |
|
269 | var external_commonjs_tsparticles_updater_life_commonjs2_tsparticles_updater_life_amd_tsparticles_updater_life_root_window_ = __webpack_require__(86);
|
270 |
|
271 | var external_commonjs_tsparticles_shape_line_commonjs2_tsparticles_shape_line_amd_tsparticles_shape_line_root_window_ = __webpack_require__(598);
|
272 |
|
273 | var external_commonjs_tsparticles_updater_opacity_commonjs2_tsparticles_updater_opacity_amd_tsparticles_updater_opacity_root_window_ = __webpack_require__(515);
|
274 |
|
275 | var external_commonjs_tsparticles_updater_out_modes_commonjs2_tsparticles_updater_out_modes_amd_tsparticles_updater_out_modes_root_window_ = __webpack_require__(509);
|
276 |
|
277 | var external_commonjs_tsparticles_updater_size_commonjs2_tsparticles_updater_size_amd_tsparticles_updater_size_root_window_ = __webpack_require__(694);
|
278 |
|
279 | var external_commonjs_tsparticles_plugin_sounds_commonjs2_tsparticles_plugin_sounds_amd_tsparticles_plugin_sounds_root_window_ = __webpack_require__(415);
|
280 |
|
281 | var external_commonjs_tsparticles_updater_stroke_color_commonjs2_tsparticles_updater_stroke_color_amd_tsparticles_updater_stroke_color_root_window_ = __webpack_require__(226);
|
282 | ;
|
283 |
|
284 |
|
285 |
|
286 |
|
287 |
|
288 |
|
289 |
|
290 |
|
291 |
|
292 |
|
293 |
|
294 |
|
295 |
|
296 |
|
297 |
|
298 | let initialized = false;
|
299 | let initializing = false;
|
300 | const explodeSoundCheck = args => {
|
301 | const data = args.data;
|
302 | return data.particle.shape === "line";
|
303 | };
|
304 | class FireworksInstance {
|
305 | constructor(container) {
|
306 | this._container = container;
|
307 | }
|
308 | pause() {
|
309 | this._container.pause();
|
310 | }
|
311 | play() {
|
312 | this._container.play();
|
313 | }
|
314 | stop() {
|
315 | this._container.stop();
|
316 | }
|
317 | }
|
318 | async function initPlugins() {
|
319 | if (initialized) {
|
320 | return;
|
321 | }
|
322 | if (initializing) {
|
323 | return new Promise(resolve => {
|
324 | const interval = setInterval(() => {
|
325 | if (initialized) {
|
326 | clearInterval(interval);
|
327 | resolve();
|
328 | }
|
329 | }, 100);
|
330 | });
|
331 | }
|
332 | initializing = true;
|
333 | await (0,external_commonjs_tsparticles_move_base_commonjs2_tsparticles_move_base_amd_tsparticles_move_base_root_window_.loadBaseMover)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
334 | await (0,external_commonjs_tsparticles_plugin_emitters_commonjs2_tsparticles_plugin_emitters_amd_tsparticles_plugin_emitters_root_window_.loadEmittersPlugin)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
335 | await (0,external_commonjs_tsparticles_plugin_sounds_commonjs2_tsparticles_plugin_sounds_amd_tsparticles_plugin_sounds_root_window_.loadSoundsPlugin)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
336 | await (0,external_commonjs_tsparticles_shape_circle_commonjs2_tsparticles_shape_circle_amd_tsparticles_shape_circle_root_window_.loadCircleShape)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
337 | await (0,external_commonjs_tsparticles_shape_line_commonjs2_tsparticles_shape_line_amd_tsparticles_shape_line_root_window_.loadLineShape)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
338 | await (0,external_commonjs_tsparticles_updater_angle_commonjs2_tsparticles_updater_angle_amd_tsparticles_updater_angle_root_window_.loadAngleUpdater)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
339 | await (0,external_commonjs_tsparticles_updater_color_commonjs2_tsparticles_updater_color_amd_tsparticles_updater_color_root_window_.loadColorUpdater)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
340 | await (0,external_commonjs_tsparticles_updater_destroy_commonjs2_tsparticles_updater_destroy_amd_tsparticles_updater_destroy_root_window_.loadDestroyUpdater)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
341 | await (0,external_commonjs_tsparticles_updater_life_commonjs2_tsparticles_updater_life_amd_tsparticles_updater_life_root_window_.loadLifeUpdater)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
342 | await (0,external_commonjs_tsparticles_updater_opacity_commonjs2_tsparticles_updater_opacity_amd_tsparticles_updater_opacity_root_window_.loadOpacityUpdater)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
343 | await (0,external_commonjs_tsparticles_updater_out_modes_commonjs2_tsparticles_updater_out_modes_amd_tsparticles_updater_out_modes_root_window_.loadOutModesUpdater)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
344 | await (0,external_commonjs_tsparticles_updater_size_commonjs2_tsparticles_updater_size_amd_tsparticles_updater_size_root_window_.loadSizeUpdater)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
345 | await (0,external_commonjs_tsparticles_updater_stroke_color_commonjs2_tsparticles_updater_stroke_color_amd_tsparticles_updater_stroke_color_root_window_.loadStrokeColorUpdater)(external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles);
|
346 | initializing = false;
|
347 | initialized = true;
|
348 | }
|
349 | async function fireworks(idOrOptions, sourceOptions) {
|
350 | await initPlugins();
|
351 | let id;
|
352 | const options = new FireworkOptions();
|
353 | if (typeof idOrOptions === "string") {
|
354 | id = idOrOptions;
|
355 | options.load(sourceOptions);
|
356 | } else {
|
357 | id = "fireworks";
|
358 | options.load(idOrOptions);
|
359 | }
|
360 | const particlesOptions = {
|
361 | detectRetina: true,
|
362 | background: {
|
363 | color: "#000"
|
364 | },
|
365 | fpsLimit: 120,
|
366 | emitters: {
|
367 | direction: "top",
|
368 | life: {
|
369 | count: 0,
|
370 | duration: 0.1,
|
371 | delay: 0.1
|
372 | },
|
373 | rate: {
|
374 | delay: typeof options.rate === "number" ? 1 / options.rate : {
|
375 | min: 1 / (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.getRangeMin)(options.rate),
|
376 | max: 1 / (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.getRangeMax)(options.rate)
|
377 | },
|
378 | quantity: 1
|
379 | },
|
380 | size: {
|
381 | width: 100,
|
382 | height: 0
|
383 | },
|
384 | position: {
|
385 | y: 100,
|
386 | x: 50
|
387 | }
|
388 | },
|
389 | particles: {
|
390 | number: {
|
391 | value: 0
|
392 | },
|
393 | color: {
|
394 | value: options.colors
|
395 | },
|
396 | destroy: {
|
397 | mode: "split",
|
398 | bounds: {
|
399 | top: (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.setRangeValue)(options.minHeight)
|
400 | },
|
401 | split: {
|
402 | sizeOffset: false,
|
403 | count: 1,
|
404 | factor: {
|
405 | value: 0.333333
|
406 | },
|
407 | rate: {
|
408 | value: options.splitCount
|
409 | },
|
410 | colorOffset: {
|
411 | s: options.saturation,
|
412 | l: options.brightness
|
413 | },
|
414 | particles: {
|
415 | stroke: {
|
416 | width: 0
|
417 | },
|
418 | number: {
|
419 | value: 0
|
420 | },
|
421 | opacity: {
|
422 | value: {
|
423 | min: 0.1,
|
424 | max: 1
|
425 | },
|
426 | animation: {
|
427 | enable: true,
|
428 | speed: 0.7,
|
429 | sync: false,
|
430 | startValue: "max",
|
431 | destroy: "min"
|
432 | }
|
433 | },
|
434 | shape: {
|
435 | type: "circle"
|
436 | },
|
437 | size: {
|
438 | value: {
|
439 | min: 1,
|
440 | max: 2
|
441 | },
|
442 | animation: {
|
443 | enable: true,
|
444 | speed: 5,
|
445 | count: 1,
|
446 | sync: false,
|
447 | startValue: "min",
|
448 | destroy: "none"
|
449 | }
|
450 | },
|
451 | life: {
|
452 | count: 1,
|
453 | duration: {
|
454 | value: {
|
455 | min: 0.25,
|
456 | max: 0.5
|
457 | }
|
458 | }
|
459 | },
|
460 | move: {
|
461 | decay: {
|
462 | min: 0.05,
|
463 | max: 0.1
|
464 | },
|
465 | enable: true,
|
466 | gravity: {
|
467 | enable: true,
|
468 | inverse: false,
|
469 | acceleration: (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.setRangeValue)(options.gravity)
|
470 | },
|
471 | speed: (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.setRangeValue)(options.speed),
|
472 | direction: "none",
|
473 | outModes: "destroy"
|
474 | }
|
475 | }
|
476 | }
|
477 | },
|
478 | life: {
|
479 | count: 1
|
480 | },
|
481 | shape: {
|
482 | type: "line"
|
483 | },
|
484 | size: {
|
485 | value: {
|
486 | min: 0.1,
|
487 | max: 50
|
488 | },
|
489 | animation: {
|
490 | enable: true,
|
491 | sync: true,
|
492 | speed: 90,
|
493 | startValue: "max",
|
494 | destroy: "min"
|
495 | }
|
496 | },
|
497 | stroke: {
|
498 | color: {
|
499 | value: "#ffffff"
|
500 | },
|
501 | width: 0.5
|
502 | },
|
503 | rotate: {
|
504 | path: true
|
505 | },
|
506 | move: {
|
507 | enable: true,
|
508 | gravity: {
|
509 | acceleration: 15,
|
510 | enable: true,
|
511 | inverse: true,
|
512 | maxSpeed: 100
|
513 | },
|
514 | speed: {
|
515 | min: 10,
|
516 | max: 20
|
517 | },
|
518 | outModes: {
|
519 | default: "destroy",
|
520 | top: "none"
|
521 | },
|
522 | trail: {
|
523 | fillColor: "#000",
|
524 | enable: true,
|
525 | length: 10
|
526 | }
|
527 | }
|
528 | },
|
529 | sounds: {
|
530 | enable: options.sounds,
|
531 | events: [{
|
532 | event: "particleRemoved",
|
533 | filter: explodeSoundCheck,
|
534 | audio: ["https://particles.js.org/audio/explosion0.mp3", "https://particles.js.org/audio/explosion1.mp3", "https://particles.js.org/audio/explosion2.mp3"]
|
535 | }],
|
536 | volume: 50
|
537 | }
|
538 | };
|
539 | const container = await external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.tsParticles.load(id, particlesOptions);
|
540 | if (!container) {
|
541 | return;
|
542 | }
|
543 | return new FireworksInstance(container);
|
544 | }
|
545 | ;
|
546 |
|
547 | })();
|
548 |
|
549 | return __webpack_exports__;
|
550 | })()
|
551 | ;
|
552 | }); |
\ | No newline at end of file |