@tsparticles/preset-confetti 3.0.2 → 3.1.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.
@@ -4,7 +4,15 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v3.0.2
7
+ * v3.1.0
8
+ */
9
+ /*
10
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
11
+ * This devtool is neither made for production nor for readable output files.
12
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
13
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
14
+ * or disable the default devtool with "devtool: false".
15
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
16
  */
9
17
  (function webpackUniversalModuleDefinition(root, factory) {
10
18
  if(typeof exports === 'object' && typeof module === 'object')
@@ -15,71 +23,118 @@
15
23
  var a = typeof exports === 'object' ? factory(require("@tsparticles/basic"), require("@tsparticles/plugin-emitters"), require("@tsparticles/updater-life"), require("@tsparticles/plugin-motion"), require("@tsparticles/updater-roll"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-square"), require("@tsparticles/updater-tilt"), require("@tsparticles/updater-wobble")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
16
24
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
17
25
  }
18
- })(this, (__WEBPACK_EXTERNAL_MODULE__574__, __WEBPACK_EXTERNAL_MODULE__68__, __WEBPACK_EXTERNAL_MODULE__84__, __WEBPACK_EXTERNAL_MODULE__82__, __WEBPACK_EXTERNAL_MODULE__734__, __WEBPACK_EXTERNAL_MODULE__59__, __WEBPACK_EXTERNAL_MODULE__652__, __WEBPACK_EXTERNAL_MODULE__448__, __WEBPACK_EXTERNAL_MODULE__83__) => {
26
+ })(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_basic__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_life__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_motion__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_roll__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_square__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_tilt__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_wobble__) => {
19
27
  return /******/ (() => { // webpackBootstrap
20
28
  /******/ "use strict";
21
29
  /******/ var __webpack_modules__ = ({
22
30
 
23
- /***/ 574:
31
+ /***/ "./dist/browser/index.js":
32
+ /*!*******************************!*\
33
+ !*** ./dist/browser/index.js ***!
34
+ \*******************************/
35
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
36
+
37
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadConfettiPreset: () => (/* binding */ loadConfettiPreset)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_basic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/basic */ \"@tsparticles/basic\");\n/* harmony import */ var _tsparticles_basic__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_basic__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tsparticles/plugin-emitters */ \"@tsparticles/plugin-emitters\");\n/* harmony import */ var _tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _tsparticles_updater_life__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tsparticles/updater-life */ \"@tsparticles/updater-life\");\n/* harmony import */ var _tsparticles_updater_life__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_updater_life__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _tsparticles_plugin_motion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tsparticles/plugin-motion */ \"@tsparticles/plugin-motion\");\n/* harmony import */ var _tsparticles_plugin_motion__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_plugin_motion__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _tsparticles_updater_roll__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tsparticles/updater-roll */ \"@tsparticles/updater-roll\");\n/* harmony import */ var _tsparticles_updater_roll__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_updater_roll__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _tsparticles_updater_rotate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\");\n/* harmony import */ var _tsparticles_updater_rotate__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_updater_rotate__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _tsparticles_shape_square__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tsparticles/shape-square */ \"@tsparticles/shape-square\");\n/* harmony import */ var _tsparticles_shape_square__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_shape_square__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _tsparticles_updater_tilt__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @tsparticles/updater-tilt */ \"@tsparticles/updater-tilt\");\n/* harmony import */ var _tsparticles_updater_tilt__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_updater_tilt__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _tsparticles_updater_wobble__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @tsparticles/updater-wobble */ \"@tsparticles/updater-wobble\");\n/* harmony import */ var _tsparticles_updater_wobble__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_updater_wobble__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _options_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./options.js */ \"./dist/browser/options.js\");\n\n\n\n\n\n\n\n\n\n\nasync function loadPreset(engine, refresh = true) {\n await (0,_tsparticles_basic__WEBPACK_IMPORTED_MODULE_0__.loadBasic)(engine, false);\n await (0,_tsparticles_shape_square__WEBPACK_IMPORTED_MODULE_6__.loadSquareShape)(engine, false);\n await (0,_tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_1__.loadEmittersPlugin)(engine, false);\n await (0,_tsparticles_plugin_motion__WEBPACK_IMPORTED_MODULE_3__.loadMotionPlugin)(engine, false);\n await (0,_tsparticles_updater_wobble__WEBPACK_IMPORTED_MODULE_8__.loadWobbleUpdater)(engine, false);\n await (0,_tsparticles_updater_roll__WEBPACK_IMPORTED_MODULE_4__.loadRollUpdater)(engine, false);\n await (0,_tsparticles_updater_rotate__WEBPACK_IMPORTED_MODULE_5__.loadRotateUpdater)(engine, false);\n await (0,_tsparticles_updater_tilt__WEBPACK_IMPORTED_MODULE_7__.loadTiltUpdater)(engine, false);\n await (0,_tsparticles_updater_life__WEBPACK_IMPORTED_MODULE_2__.loadLifeUpdater)(engine, false);\n await engine.addPreset(\"confetti\", _options_js__WEBPACK_IMPORTED_MODULE_9__.options, false);\n await engine.refresh(refresh);\n}\nasync function loadConfettiPreset(engine) {\n await loadPreset(engine);\n}\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/./dist/browser/index.js?");
38
+
39
+ /***/ }),
40
+
41
+ /***/ "./dist/browser/options.js":
42
+ /*!*********************************!*\
43
+ !*** ./dist/browser/options.js ***!
44
+ \*********************************/
45
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
46
+
47
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ options: () => (/* binding */ options)\n/* harmony export */ });\nconst lifeDurationNum = 20,\n lifeDurationFactor = 6,\n lifeDuration = lifeDurationNum / lifeDurationFactor;\nconst options = {\n fullScreen: {\n enable: true,\n zIndex: 100\n },\n fpsLimit: 120,\n particles: {\n number: {\n value: 0\n },\n color: {\n value: [\"#26ccff\", \"#a25afd\", \"#ff5e7e\", \"#88ff5a\", \"#fcff42\", \"#ffa62d\", \"#ff36ff\"]\n },\n shape: {\n type: [\"square\", \"circle\"]\n },\n opacity: {\n value: {\n min: 0,\n max: 1\n },\n animation: {\n enable: true,\n speed: 0.5,\n startValue: \"max\",\n destroy: \"min\"\n }\n },\n size: {\n value: 5\n },\n links: {\n enable: false\n },\n life: {\n duration: {\n sync: true,\n value: lifeDuration\n },\n count: 1\n },\n move: {\n angle: {\n value: 45,\n offset: 0\n },\n drift: 0,\n enable: true,\n gravity: {\n enable: true,\n acceleration: 9.81\n },\n speed: 45,\n decay: 0.1,\n direction: -90,\n random: true,\n straight: false,\n outModes: {\n default: \"none\",\n bottom: \"destroy\"\n }\n },\n rotate: {\n value: {\n min: 0,\n max: 360\n },\n direction: \"random\",\n animation: {\n enable: true,\n speed: 60\n }\n },\n tilt: {\n direction: \"random\",\n enable: true,\n value: {\n min: 0,\n max: 360\n },\n animation: {\n enable: true,\n speed: 60\n }\n },\n roll: {\n darken: {\n enable: true,\n value: 25\n },\n enable: true,\n speed: {\n min: 15,\n max: 25\n }\n },\n wobble: {\n distance: 30,\n enable: true,\n speed: {\n min: -15,\n max: 15\n }\n }\n },\n detectRetina: true,\n motion: {\n disable: true\n },\n emitters: {\n name: \"confetti\",\n startCount: 50,\n position: {\n x: 50,\n y: 50\n },\n size: {\n width: 0,\n height: 0\n },\n rate: {\n delay: 0,\n quantity: 0\n },\n life: {\n duration: 0.1,\n count: 1\n }\n }\n};\n\n//# sourceURL=webpack://@tsparticles/preset-confetti/./dist/browser/options.js?");
48
+
49
+ /***/ }),
50
+
51
+ /***/ "@tsparticles/basic":
52
+ /*!******************************************************************************************************************************!*\
53
+ !*** external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"} ***!
54
+ \******************************************************************************************************************************/
24
55
  /***/ ((module) => {
25
56
 
26
- module.exports = __WEBPACK_EXTERNAL_MODULE__574__;
57
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__;
27
58
 
28
59
  /***/ }),
29
60
 
30
- /***/ 68:
61
+ /***/ "@tsparticles/plugin-emitters":
62
+ /*!************************************************************************************************************************************************************!*\
63
+ !*** external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"} ***!
64
+ \************************************************************************************************************************************************************/
31
65
  /***/ ((module) => {
32
66
 
33
- module.exports = __WEBPACK_EXTERNAL_MODULE__68__;
67
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
34
68
 
35
69
  /***/ }),
36
70
 
37
- /***/ 82:
71
+ /***/ "@tsparticles/plugin-motion":
72
+ /*!******************************************************************************************************************************************************!*\
73
+ !*** external {"commonjs":"@tsparticles/plugin-motion","commonjs2":"@tsparticles/plugin-motion","amd":"@tsparticles/plugin-motion","root":"window"} ***!
74
+ \******************************************************************************************************************************************************/
38
75
  /***/ ((module) => {
39
76
 
40
- module.exports = __WEBPACK_EXTERNAL_MODULE__82__;
77
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_motion__;
41
78
 
42
79
  /***/ }),
43
80
 
44
- /***/ 652:
81
+ /***/ "@tsparticles/shape-square":
82
+ /*!***************************************************************************************************************************************************!*\
83
+ !*** external {"commonjs":"@tsparticles/shape-square","commonjs2":"@tsparticles/shape-square","amd":"@tsparticles/shape-square","root":"window"} ***!
84
+ \***************************************************************************************************************************************************/
45
85
  /***/ ((module) => {
46
86
 
47
- module.exports = __WEBPACK_EXTERNAL_MODULE__652__;
87
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_square__;
48
88
 
49
89
  /***/ }),
50
90
 
51
- /***/ 84:
91
+ /***/ "@tsparticles/updater-life":
92
+ /*!***************************************************************************************************************************************************!*\
93
+ !*** external {"commonjs":"@tsparticles/updater-life","commonjs2":"@tsparticles/updater-life","amd":"@tsparticles/updater-life","root":"window"} ***!
94
+ \***************************************************************************************************************************************************/
52
95
  /***/ ((module) => {
53
96
 
54
- module.exports = __WEBPACK_EXTERNAL_MODULE__84__;
97
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_life__;
55
98
 
56
99
  /***/ }),
57
100
 
58
- /***/ 734:
101
+ /***/ "@tsparticles/updater-roll":
102
+ /*!***************************************************************************************************************************************************!*\
103
+ !*** external {"commonjs":"@tsparticles/updater-roll","commonjs2":"@tsparticles/updater-roll","amd":"@tsparticles/updater-roll","root":"window"} ***!
104
+ \***************************************************************************************************************************************************/
59
105
  /***/ ((module) => {
60
106
 
61
- module.exports = __WEBPACK_EXTERNAL_MODULE__734__;
107
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_roll__;
62
108
 
63
109
  /***/ }),
64
110
 
65
- /***/ 59:
111
+ /***/ "@tsparticles/updater-rotate":
112
+ /*!*********************************************************************************************************************************************************!*\
113
+ !*** external {"commonjs":"@tsparticles/updater-rotate","commonjs2":"@tsparticles/updater-rotate","amd":"@tsparticles/updater-rotate","root":"window"} ***!
114
+ \*********************************************************************************************************************************************************/
66
115
  /***/ ((module) => {
67
116
 
68
- module.exports = __WEBPACK_EXTERNAL_MODULE__59__;
117
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__;
69
118
 
70
119
  /***/ }),
71
120
 
72
- /***/ 448:
121
+ /***/ "@tsparticles/updater-tilt":
122
+ /*!***************************************************************************************************************************************************!*\
123
+ !*** external {"commonjs":"@tsparticles/updater-tilt","commonjs2":"@tsparticles/updater-tilt","amd":"@tsparticles/updater-tilt","root":"window"} ***!
124
+ \***************************************************************************************************************************************************/
73
125
  /***/ ((module) => {
74
126
 
75
- module.exports = __WEBPACK_EXTERNAL_MODULE__448__;
127
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_tilt__;
76
128
 
77
129
  /***/ }),
78
130
 
79
- /***/ 83:
131
+ /***/ "@tsparticles/updater-wobble":
132
+ /*!*********************************************************************************************************************************************************!*\
133
+ !*** external {"commonjs":"@tsparticles/updater-wobble","commonjs2":"@tsparticles/updater-wobble","amd":"@tsparticles/updater-wobble","root":"window"} ***!
134
+ \*********************************************************************************************************************************************************/
80
135
  /***/ ((module) => {
81
136
 
82
- module.exports = __WEBPACK_EXTERNAL_MODULE__83__;
137
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_wobble__;
83
138
 
84
139
  /***/ })
85
140
 
@@ -110,6 +165,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__83__;
110
165
  /******/ }
111
166
  /******/
112
167
  /************************************************************************/
168
+ /******/ /* webpack/runtime/compat get default export */
169
+ /******/ (() => {
170
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
171
+ /******/ __webpack_require__.n = (module) => {
172
+ /******/ var getter = module && module.__esModule ?
173
+ /******/ () => (module['default']) :
174
+ /******/ () => (module);
175
+ /******/ __webpack_require__.d(getter, { a: getter });
176
+ /******/ return getter;
177
+ /******/ };
178
+ /******/ })();
179
+ /******/
113
180
  /******/ /* webpack/runtime/define property getters */
114
181
  /******/ (() => {
115
182
  /******/ // define getter functions for harmony exports
@@ -139,197 +206,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__83__;
139
206
  /******/ })();
140
207
  /******/
141
208
  /************************************************************************/
142
- var __webpack_exports__ = {};
143
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
144
- (() => {
145
- // ESM COMPAT FLAG
146
- __webpack_require__.r(__webpack_exports__);
147
-
148
- // EXPORTS
149
- __webpack_require__.d(__webpack_exports__, {
150
- loadConfettiPreset: () => (/* binding */ loadConfettiPreset)
151
- });
152
-
153
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"}
154
- var basic_root_window_ = __webpack_require__(574);
155
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"}
156
- var plugin_emitters_root_window_ = __webpack_require__(68);
157
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-life","commonjs2":"@tsparticles/updater-life","amd":"@tsparticles/updater-life","root":"window"}
158
- var updater_life_root_window_ = __webpack_require__(84);
159
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/plugin-motion","commonjs2":"@tsparticles/plugin-motion","amd":"@tsparticles/plugin-motion","root":"window"}
160
- var plugin_motion_root_window_ = __webpack_require__(82);
161
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-roll","commonjs2":"@tsparticles/updater-roll","amd":"@tsparticles/updater-roll","root":"window"}
162
- var updater_roll_root_window_ = __webpack_require__(734);
163
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-rotate","commonjs2":"@tsparticles/updater-rotate","amd":"@tsparticles/updater-rotate","root":"window"}
164
- var updater_rotate_root_window_ = __webpack_require__(59);
165
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-square","commonjs2":"@tsparticles/shape-square","amd":"@tsparticles/shape-square","root":"window"}
166
- var shape_square_root_window_ = __webpack_require__(652);
167
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-tilt","commonjs2":"@tsparticles/updater-tilt","amd":"@tsparticles/updater-tilt","root":"window"}
168
- var updater_tilt_root_window_ = __webpack_require__(448);
169
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-wobble","commonjs2":"@tsparticles/updater-wobble","amd":"@tsparticles/updater-wobble","root":"window"}
170
- var updater_wobble_root_window_ = __webpack_require__(83);
171
- ;// CONCATENATED MODULE: ./dist/browser/options.js
172
- const lifeDurationNum = 20,
173
- lifeDurationFactor = 6,
174
- lifeDuration = lifeDurationNum / lifeDurationFactor;
175
- const options = {
176
- fullScreen: {
177
- enable: true,
178
- zIndex: 100
179
- },
180
- fpsLimit: 120,
181
- particles: {
182
- number: {
183
- value: 0
184
- },
185
- color: {
186
- value: ["#26ccff", "#a25afd", "#ff5e7e", "#88ff5a", "#fcff42", "#ffa62d", "#ff36ff"]
187
- },
188
- shape: {
189
- type: ["square", "circle"]
190
- },
191
- opacity: {
192
- value: {
193
- min: 0,
194
- max: 1
195
- },
196
- animation: {
197
- enable: true,
198
- speed: 0.5,
199
- startValue: "max",
200
- destroy: "min"
201
- }
202
- },
203
- size: {
204
- value: 5
205
- },
206
- links: {
207
- enable: false
208
- },
209
- life: {
210
- duration: {
211
- sync: true,
212
- value: lifeDuration
213
- },
214
- count: 1
215
- },
216
- move: {
217
- angle: {
218
- value: 45,
219
- offset: 0
220
- },
221
- drift: 0,
222
- enable: true,
223
- gravity: {
224
- enable: true,
225
- acceleration: 9.81
226
- },
227
- speed: 45,
228
- decay: 0.1,
229
- direction: -90,
230
- random: true,
231
- straight: false,
232
- outModes: {
233
- default: "none",
234
- bottom: "destroy"
235
- }
236
- },
237
- rotate: {
238
- value: {
239
- min: 0,
240
- max: 360
241
- },
242
- direction: "random",
243
- animation: {
244
- enable: true,
245
- speed: 60
246
- }
247
- },
248
- tilt: {
249
- direction: "random",
250
- enable: true,
251
- value: {
252
- min: 0,
253
- max: 360
254
- },
255
- animation: {
256
- enable: true,
257
- speed: 60
258
- }
259
- },
260
- roll: {
261
- darken: {
262
- enable: true,
263
- value: 25
264
- },
265
- enable: true,
266
- speed: {
267
- min: 15,
268
- max: 25
269
- }
270
- },
271
- wobble: {
272
- distance: 30,
273
- enable: true,
274
- speed: {
275
- min: -15,
276
- max: 15
277
- }
278
- }
279
- },
280
- detectRetina: true,
281
- motion: {
282
- disable: true
283
- },
284
- emitters: {
285
- name: "confetti",
286
- startCount: 50,
287
- position: {
288
- x: 50,
289
- y: 50
290
- },
291
- size: {
292
- width: 0,
293
- height: 0
294
- },
295
- rate: {
296
- delay: 0,
297
- quantity: 0
298
- },
299
- life: {
300
- duration: 0.1,
301
- count: 1
302
- }
303
- }
304
- };
305
- ;// CONCATENATED MODULE: ./dist/browser/index.js
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
- async function loadPreset(engine, refresh = true) {
317
- await (0,basic_root_window_.loadBasic)(engine, false);
318
- await (0,shape_square_root_window_.loadSquareShape)(engine, false);
319
- await (0,plugin_emitters_root_window_.loadEmittersPlugin)(engine, false);
320
- await (0,plugin_motion_root_window_.loadMotionPlugin)(engine, false);
321
- await (0,updater_wobble_root_window_.loadWobbleUpdater)(engine, false);
322
- await (0,updater_roll_root_window_.loadRollUpdater)(engine, false);
323
- await (0,updater_rotate_root_window_.loadRotateUpdater)(engine, false);
324
- await (0,updater_tilt_root_window_.loadTiltUpdater)(engine, false);
325
- await (0,updater_life_root_window_.loadLifeUpdater)(engine, false);
326
- await engine.addPreset("confetti", options, refresh);
327
- }
328
- async function loadConfettiPreset(engine) {
329
- await loadPreset(engine);
330
- }
331
- })();
332
-
209
+ /******/
210
+ /******/ // startup
211
+ /******/ // Load entry module and return exports
212
+ /******/ // This entry module can't be inlined because the eval devtool is used.
213
+ /******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
214
+ /******/
333
215
  /******/ return __webpack_exports__;
334
216
  /******/ })()
335
217
  ;
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see tsparticles.preset.confetti.min.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/basic"),require("@tsparticles/plugin-emitters"),require("@tsparticles/updater-life"),require("@tsparticles/plugin-motion"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-wobble"));else if("function"==typeof define&&define.amd)define(["@tsparticles/basic","@tsparticles/plugin-emitters","@tsparticles/updater-life","@tsparticles/plugin-motion","@tsparticles/updater-roll","@tsparticles/updater-rotate","@tsparticles/shape-square","@tsparticles/updater-tilt","@tsparticles/updater-wobble"],t);else{var a="object"==typeof exports?t(require("@tsparticles/basic"),require("@tsparticles/plugin-emitters"),require("@tsparticles/updater-life"),require("@tsparticles/plugin-motion"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-wobble")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(this,((e,t,a,r,i,o,s,l,n)=>(()=>{"use strict";var p={574:t=>{t.exports=e},68:e=>{e.exports=t},82:e=>{e.exports=r},652:e=>{e.exports=s},84:e=>{e.exports=a},734:e=>{e.exports=i},59:e=>{e.exports=o},448:e=>{e.exports=l},83:e=>{e.exports=n}},d={};function u(e){var t=d[e];if(void 0!==t)return t.exports;var a=d[e]={exports:{}};return p[e](a,a.exports,u),a.exports}u.d=(e,t)=>{for(var a in t)u.o(t,a)&&!u.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{u.r(c),u.d(c,{loadConfettiPreset:()=>d});var e=u(574),t=u(68),a=u(84),r=u(82),i=u(734),o=u(59),s=u(652),l=u(448),n=u(83);const p={fullScreen:{enable:!0,zIndex:100},fpsLimit:120,particles:{number:{value:0},color:{value:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"]},shape:{type:["square","circle"]},opacity:{value:{min:0,max:1},animation:{enable:!0,speed:.5,startValue:"max",destroy:"min"}},size:{value:5},links:{enable:!1},life:{duration:{sync:!0,value:3.3333333333333335},count:1},move:{angle:{value:45,offset:0},drift:0,enable:!0,gravity:{enable:!0,acceleration:9.81},speed:45,decay:.1,direction:-90,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:{min:0,max:360},direction:"random",animation:{enable:!0,speed:60}},tilt:{direction:"random",enable:!0,value:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!0,speed:{min:15,max:25}},wobble:{distance:30,enable:!0,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:!0},emitters:{name:"confetti",startCount:50,position:{x:50,y:50},size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}};async function d(d){await async function(d,u=!0){await(0,e.loadBasic)(d,!1),await(0,s.loadSquareShape)(d,!1),await(0,t.loadEmittersPlugin)(d,!1),await(0,r.loadMotionPlugin)(d,!1),await(0,n.loadWobbleUpdater)(d,!1),await(0,i.loadRollUpdater)(d,!1),await(0,o.loadRotateUpdater)(d,!1),await(0,l.loadTiltUpdater)(d,!1),await(0,a.loadLifeUpdater)(d,!1),await d.addPreset("confetti",p,u)}(d)}})(),c})()));
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/basic"),require("@tsparticles/plugin-emitters"),require("@tsparticles/updater-life"),require("@tsparticles/plugin-motion"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-wobble"));else if("function"==typeof define&&define.amd)define(["@tsparticles/basic","@tsparticles/plugin-emitters","@tsparticles/updater-life","@tsparticles/plugin-motion","@tsparticles/updater-roll","@tsparticles/updater-rotate","@tsparticles/shape-square","@tsparticles/updater-tilt","@tsparticles/updater-wobble"],t);else{var a="object"==typeof exports?t(require("@tsparticles/basic"),require("@tsparticles/plugin-emitters"),require("@tsparticles/updater-life"),require("@tsparticles/plugin-motion"),require("@tsparticles/updater-roll"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/updater-tilt"),require("@tsparticles/updater-wobble")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(this,((e,t,a,r,i,o,s,l,n)=>(()=>{var p={145:t=>{t.exports=e},526:e=>{e.exports=t},235:e=>{e.exports=r},400:e=>{e.exports=s},75:e=>{e.exports=a},544:e=>{e.exports=i},668:e=>{e.exports=o},844:e=>{e.exports=l},238:e=>{e.exports=n}},d={};function u(e){var t=d[e];if(void 0!==t)return t.exports;var a=d[e]={exports:{}};return p[e](a,a.exports,u),a.exports}u.d=(e,t)=>{for(var a in t)u.o(t,a)&&!u.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{u.r(c),u.d(c,{loadConfettiPreset:()=>d});var e=u(145),t=u(526),a=u(75),r=u(235),i=u(544),o=u(668),s=u(400),l=u(844),n=u(238);const p={fullScreen:{enable:!0,zIndex:100},fpsLimit:120,particles:{number:{value:0},color:{value:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"]},shape:{type:["square","circle"]},opacity:{value:{min:0,max:1},animation:{enable:!0,speed:.5,startValue:"max",destroy:"min"}},size:{value:5},links:{enable:!1},life:{duration:{sync:!0,value:3.3333333333333335},count:1},move:{angle:{value:45,offset:0},drift:0,enable:!0,gravity:{enable:!0,acceleration:9.81},speed:45,decay:.1,direction:-90,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:{min:0,max:360},direction:"random",animation:{enable:!0,speed:60}},tilt:{direction:"random",enable:!0,value:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!0,speed:{min:15,max:25}},wobble:{distance:30,enable:!0,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:!0},emitters:{name:"confetti",startCount:50,position:{x:50,y:50},size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}};async function d(d){await async function(d,u=!0){await(0,e.loadBasic)(d,!1),await(0,s.loadSquareShape)(d,!1),await(0,t.loadEmittersPlugin)(d,!1),await(0,r.loadMotionPlugin)(d,!1),await(0,n.loadWobbleUpdater)(d,!1),await(0,i.loadRollUpdater)(d,!1),await(0,o.loadRotateUpdater)(d,!1),await(0,l.loadTiltUpdater)(d,!1),await(0,a.loadLifeUpdater)(d,!1),await d.addPreset("confetti",p,!1),await d.refresh(u)}(d)}})(),c})()));
@@ -1 +1 @@
1
- /*! tsParticles Confetti Preset v3.0.2 by Matteo Bruni */
1
+ /*! tsParticles Confetti Preset v3.1.0 by Matteo Bruni */
package/umd/bundle.js CHANGED
@@ -14,5 +14,4 @@
14
14
  Object.defineProperty(exports, "loadConfettiPreset", { enumerable: true, get: function () { return index_js_1.loadConfettiPreset; } });
15
15
  const engine_1 = require("@tsparticles/engine");
16
16
  Object.defineProperty(exports, "tsParticles", { enumerable: true, get: function () { return engine_1.tsParticles; } });
17
- void (0, index_js_1.loadConfettiPreset)(engine_1.tsParticles);
18
17
  });
package/umd/index.js CHANGED
@@ -30,7 +30,8 @@
30
30
  await (0, updater_rotate_1.loadRotateUpdater)(engine, false);
31
31
  await (0, updater_tilt_1.loadTiltUpdater)(engine, false);
32
32
  await (0, updater_life_1.loadLifeUpdater)(engine, false);
33
- await engine.addPreset("confetti", options_js_1.options, refresh);
33
+ await engine.addPreset("confetti", options_js_1.options, false);
34
+ await engine.refresh(refresh);
34
35
  }
35
36
  async function loadConfettiPreset(engine) {
36
37
  await loadPreset(engine);