tsparticles 2.0.4 → 2.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.
package/tsparticles.js CHANGED
@@ -4,29 +4,22 @@
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
- * v2.0.4
7
+ * v2.1.0
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
11
- module.exports = factory(require("tsparticles-plugin-absorbers"), require("tsparticles-plugin-emitters"), require("tsparticles-interaction-external-trail"), require("tsparticles-plugin-polygon-mask"), require("tsparticles-updater-roll"), require("tsparticles-slim"), require("tsparticles-updater-tilt"), require("tsparticles-engine"), require("tsparticles-updater-wobble"));
11
+ module.exports = factory(require("tsparticles-plugin-absorbers"), require("tsparticles-plugin-emitters"), require("tsparticles-interaction-external-trail"), require("tsparticles-plugin-polygon-mask"), require("tsparticles-updater-roll"), require("tsparticles-slim"), require("tsparticles-updater-tilt"), require("tsparticles-updater-twinkle"), require("tsparticles-updater-wobble"));
12
12
  else if(typeof define === 'function' && define.amd)
13
- define(["tsparticles-plugin-absorbers", "tsparticles-plugin-emitters", "tsparticles-interaction-external-trail", "tsparticles-plugin-polygon-mask", "tsparticles-updater-roll", "tsparticles-slim", "tsparticles-updater-tilt", "tsparticles-engine", "tsparticles-updater-wobble"], factory);
13
+ define(["tsparticles-plugin-absorbers", "tsparticles-plugin-emitters", "tsparticles-interaction-external-trail", "tsparticles-plugin-polygon-mask", "tsparticles-updater-roll", "tsparticles-slim", "tsparticles-updater-tilt", "tsparticles-updater-twinkle", "tsparticles-updater-wobble"], factory);
14
14
  else {
15
- var a = typeof exports === 'object' ? factory(require("tsparticles-plugin-absorbers"), require("tsparticles-plugin-emitters"), require("tsparticles-interaction-external-trail"), require("tsparticles-plugin-polygon-mask"), require("tsparticles-updater-roll"), require("tsparticles-slim"), require("tsparticles-updater-tilt"), require("tsparticles-engine"), require("tsparticles-updater-wobble")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
15
+ var a = typeof exports === 'object' ? factory(require("tsparticles-plugin-absorbers"), require("tsparticles-plugin-emitters"), require("tsparticles-interaction-external-trail"), require("tsparticles-plugin-polygon-mask"), require("tsparticles-updater-roll"), require("tsparticles-slim"), require("tsparticles-updater-tilt"), require("tsparticles-updater-twinkle"), require("tsparticles-updater-wobble")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
16
16
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
17
17
  }
18
- })(this, function(__WEBPACK_EXTERNAL_MODULE__502__, __WEBPACK_EXTERNAL_MODULE__949__, __WEBPACK_EXTERNAL_MODULE__165__, __WEBPACK_EXTERNAL_MODULE__742__, __WEBPACK_EXTERNAL_MODULE__281__, __WEBPACK_EXTERNAL_MODULE__208__, __WEBPACK_EXTERNAL_MODULE__950__, __WEBPACK_EXTERNAL_MODULE__818__, __WEBPACK_EXTERNAL_MODULE__304__) {
18
+ })(this, (__WEBPACK_EXTERNAL_MODULE__502__, __WEBPACK_EXTERNAL_MODULE__949__, __WEBPACK_EXTERNAL_MODULE__165__, __WEBPACK_EXTERNAL_MODULE__742__, __WEBPACK_EXTERNAL_MODULE__281__, __WEBPACK_EXTERNAL_MODULE__208__, __WEBPACK_EXTERNAL_MODULE__950__, __WEBPACK_EXTERNAL_MODULE__30__, __WEBPACK_EXTERNAL_MODULE__304__) => {
19
19
  return /******/ (() => { // webpackBootstrap
20
20
  /******/ "use strict";
21
21
  /******/ var __webpack_modules__ = ({
22
22
 
23
- /***/ 818:
24
- /***/ ((module) => {
25
-
26
- module.exports = __WEBPACK_EXTERNAL_MODULE__818__;
27
-
28
- /***/ }),
29
-
30
23
  /***/ 165:
31
24
  /***/ ((module) => {
32
25
 
@@ -76,6 +69,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__950__;
76
69
 
77
70
  /***/ }),
78
71
 
72
+ /***/ 30:
73
+ /***/ ((module) => {
74
+
75
+ module.exports = __WEBPACK_EXTERNAL_MODULE__30__;
76
+
77
+ /***/ }),
78
+
79
79
  /***/ 304:
80
80
  /***/ ((module) => {
81
81
 
@@ -110,6 +110,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__304__;
110
110
  /******/ }
111
111
  /******/
112
112
  /************************************************************************/
113
+ /******/ /* webpack/runtime/compat get default export */
114
+ /******/ (() => {
115
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
116
+ /******/ __webpack_require__.n = (module) => {
117
+ /******/ var getter = module && module.__esModule ?
118
+ /******/ () => (module['default']) :
119
+ /******/ () => (module);
120
+ /******/ __webpack_require__.d(getter, { a: getter });
121
+ /******/ return getter;
122
+ /******/ };
123
+ /******/ })();
124
+ /******/
113
125
  /******/ /* webpack/runtime/define property getters */
114
126
  /******/ (() => {
115
127
  /******/ // define getter functions for harmony exports
@@ -142,153 +154,47 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__304__;
142
154
  var __webpack_exports__ = {};
143
155
  // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
144
156
  (() => {
145
- // ESM COMPAT FLAG
146
157
  __webpack_require__.r(__webpack_exports__);
147
-
148
- // EXPORTS
149
- __webpack_require__.d(__webpack_exports__, {
150
- "loadFull": () => (/* binding */ loadFull)
151
- });
152
-
153
- // EXTERNAL MODULE: external {"commonjs":"tsparticles-plugin-absorbers","commonjs2":"tsparticles-plugin-absorbers","amd":"tsparticles-plugin-absorbers","root":"window"}
154
- var external_commonjs_tsparticles_plugin_absorbers_commonjs2_tsparticles_plugin_absorbers_amd_tsparticles_plugin_absorbers_root_window_ = __webpack_require__(502);
155
- // EXTERNAL MODULE: external {"commonjs":"tsparticles-plugin-emitters","commonjs2":"tsparticles-plugin-emitters","amd":"tsparticles-plugin-emitters","root":"window"}
156
- var external_commonjs_tsparticles_plugin_emitters_commonjs2_tsparticles_plugin_emitters_amd_tsparticles_plugin_emitters_root_window_ = __webpack_require__(949);
157
- // EXTERNAL MODULE: external {"commonjs":"tsparticles-interaction-external-trail","commonjs2":"tsparticles-interaction-external-trail","amd":"tsparticles-interaction-external-trail","root":"window"}
158
- var external_commonjs_tsparticles_interaction_external_trail_commonjs2_tsparticles_interaction_external_trail_amd_tsparticles_interaction_external_trail_root_window_ = __webpack_require__(165);
159
- // EXTERNAL MODULE: external {"commonjs":"tsparticles-plugin-polygon-mask","commonjs2":"tsparticles-plugin-polygon-mask","amd":"tsparticles-plugin-polygon-mask","root":"window"}
160
- var external_commonjs_tsparticles_plugin_polygon_mask_commonjs2_tsparticles_plugin_polygon_mask_amd_tsparticles_plugin_polygon_mask_root_window_ = __webpack_require__(742);
161
- // EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-roll","commonjs2":"tsparticles-updater-roll","amd":"tsparticles-updater-roll","root":"window"}
162
- var external_commonjs_tsparticles_updater_roll_commonjs2_tsparticles_updater_roll_amd_tsparticles_updater_roll_root_window_ = __webpack_require__(281);
163
- // EXTERNAL MODULE: external {"commonjs":"tsparticles-slim","commonjs2":"tsparticles-slim","amd":"tsparticles-slim","root":"window"}
164
- var external_commonjs_tsparticles_slim_commonjs2_tsparticles_slim_amd_tsparticles_slim_root_window_ = __webpack_require__(208);
165
- // EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-tilt","commonjs2":"tsparticles-updater-tilt","amd":"tsparticles-updater-tilt","root":"window"}
166
- var external_commonjs_tsparticles_updater_tilt_commonjs2_tsparticles_updater_tilt_amd_tsparticles_updater_tilt_root_window_ = __webpack_require__(950);
167
- // EXTERNAL MODULE: external {"commonjs":"tsparticles-engine","commonjs2":"tsparticles-engine","amd":"tsparticles-engine","root":"window"}
168
- var external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_ = __webpack_require__(818);
169
- ;// CONCATENATED MODULE: ../../updaters/twinkle/dist/TwinkleUpdater.js
170
-
171
- class TwinkleUpdater {
172
- getColorStyles(particle, context, radius, opacity) {
173
- const pOptions = particle.options,
174
- twinkle = pOptions.twinkle.particles,
175
- twinkling = twinkle.enable && Math.random() < twinkle.frequency,
176
- zIndexOptions = particle.options.zIndex,
177
- zOpacityFactor = Math.pow(1 - particle.zIndexFactor, zIndexOptions.opacityRate),
178
- twinklingOpacity = twinkling ? (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.getRangeValue)(twinkle.opacity) * zOpacityFactor : opacity,
179
- twinkleRgb = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.colorToHsl)(twinkle.color),
180
- twinkleStyle = twinkleRgb ? (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.getStyleFromHsl)(twinkleRgb, twinklingOpacity) : undefined,
181
- res = {},
182
- needsTwinkle = twinkling && twinkleStyle;
183
- res.fill = needsTwinkle ? twinkleStyle : undefined;
184
- res.stroke = needsTwinkle ? twinkleStyle : undefined;
185
- return res;
186
- }
187
-
188
- init() {}
189
-
190
- isEnabled(particle) {
191
- return particle.options.twinkle.particles.enable;
192
- }
193
-
194
- update() {}
195
-
196
- }
197
- ;// CONCATENATED MODULE: ../../updaters/twinkle/dist/index.js
198
- var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
199
- function adopt(value) {
200
- return value instanceof P ? value : new P(function (resolve) {
201
- resolve(value);
202
- });
203
- }
204
-
205
- return new (P || (P = Promise))(function (resolve, reject) {
206
- function fulfilled(value) {
207
- try {
208
- step(generator.next(value));
209
- } catch (e) {
210
- reject(e);
211
- }
212
- }
213
-
214
- function rejected(value) {
215
- try {
216
- step(generator["throw"](value));
217
- } catch (e) {
218
- reject(e);
219
- }
220
- }
221
-
222
- function step(result) {
223
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
224
- }
225
-
226
- step((generator = generator.apply(thisArg, _arguments || [])).next());
227
- });
228
- };
229
-
230
-
231
- function loadTwinkleUpdater(engine) {
232
- return __awaiter(this, void 0, void 0, function* () {
233
- yield engine.addParticleUpdater("twinkle", () => new TwinkleUpdater());
234
- });
235
- }
236
- // EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-wobble","commonjs2":"tsparticles-updater-wobble","amd":"tsparticles-updater-wobble","root":"window"}
237
- var external_commonjs_tsparticles_updater_wobble_commonjs2_tsparticles_updater_wobble_amd_tsparticles_updater_wobble_root_window_ = __webpack_require__(304);
238
- ;// CONCATENATED MODULE: ./dist/index.js
239
- var dist_awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
240
- function adopt(value) {
241
- return value instanceof P ? value : new P(function (resolve) {
242
- resolve(value);
243
- });
244
- }
245
-
246
- return new (P || (P = Promise))(function (resolve, reject) {
247
- function fulfilled(value) {
248
- try {
249
- step(generator.next(value));
250
- } catch (e) {
251
- reject(e);
252
- }
253
- }
254
-
255
- function rejected(value) {
256
- try {
257
- step(generator["throw"](value));
258
- } catch (e) {
259
- reject(e);
260
- }
261
- }
262
-
263
- function step(result) {
264
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
265
- }
266
-
267
- step((generator = generator.apply(thisArg, _arguments || [])).next());
268
- });
269
- };
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
- function loadFull(engine) {
281
- return dist_awaiter(this, void 0, void 0, function* () {
282
- yield (0,external_commonjs_tsparticles_slim_commonjs2_tsparticles_slim_amd_tsparticles_slim_root_window_.loadSlim)(engine);
283
- yield (0,external_commonjs_tsparticles_updater_roll_commonjs2_tsparticles_updater_roll_amd_tsparticles_updater_roll_root_window_.loadRollUpdater)(engine);
284
- yield (0,external_commonjs_tsparticles_updater_tilt_commonjs2_tsparticles_updater_tilt_amd_tsparticles_updater_tilt_root_window_.loadTiltUpdater)(engine);
285
- yield loadTwinkleUpdater(engine);
286
- yield (0,external_commonjs_tsparticles_updater_wobble_commonjs2_tsparticles_updater_wobble_amd_tsparticles_updater_wobble_root_window_.loadWobbleUpdater)(engine);
287
- yield (0,external_commonjs_tsparticles_interaction_external_trail_commonjs2_tsparticles_interaction_external_trail_amd_tsparticles_interaction_external_trail_root_window_.loadExternalTrailInteraction)(engine);
288
- yield (0,external_commonjs_tsparticles_plugin_absorbers_commonjs2_tsparticles_plugin_absorbers_amd_tsparticles_plugin_absorbers_root_window_.loadAbsorbersPlugin)(engine);
289
- yield (0,external_commonjs_tsparticles_plugin_emitters_commonjs2_tsparticles_plugin_emitters_amd_tsparticles_plugin_emitters_root_window_.loadEmittersPlugin)(engine);
290
- yield (0,external_commonjs_tsparticles_plugin_polygon_mask_commonjs2_tsparticles_plugin_polygon_mask_amd_tsparticles_plugin_polygon_mask_root_window_.loadPolygonMaskPlugin)(engine);
291
- });
158
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
159
+ /* harmony export */ "loadFull": () => (/* binding */ loadFull)
160
+ /* harmony export */ });
161
+ /* harmony import */ var tsparticles_plugin_absorbers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(502);
162
+ /* harmony import */ var tsparticles_plugin_absorbers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(tsparticles_plugin_absorbers__WEBPACK_IMPORTED_MODULE_0__);
163
+ /* harmony import */ var tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(949);
164
+ /* harmony import */ var tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_1__);
165
+ /* harmony import */ var tsparticles_interaction_external_trail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(165);
166
+ /* harmony import */ var tsparticles_interaction_external_trail__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(tsparticles_interaction_external_trail__WEBPACK_IMPORTED_MODULE_2__);
167
+ /* harmony import */ var tsparticles_plugin_polygon_mask__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(742);
168
+ /* harmony import */ var tsparticles_plugin_polygon_mask__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(tsparticles_plugin_polygon_mask__WEBPACK_IMPORTED_MODULE_3__);
169
+ /* harmony import */ var tsparticles_updater_roll__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(281);
170
+ /* harmony import */ var tsparticles_updater_roll__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(tsparticles_updater_roll__WEBPACK_IMPORTED_MODULE_4__);
171
+ /* harmony import */ var tsparticles_slim__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(208);
172
+ /* harmony import */ var tsparticles_slim__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(tsparticles_slim__WEBPACK_IMPORTED_MODULE_5__);
173
+ /* harmony import */ var tsparticles_updater_tilt__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(950);
174
+ /* harmony import */ var tsparticles_updater_tilt__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(tsparticles_updater_tilt__WEBPACK_IMPORTED_MODULE_6__);
175
+ /* harmony import */ var tsparticles_updater_twinkle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(30);
176
+ /* harmony import */ var tsparticles_updater_twinkle__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(tsparticles_updater_twinkle__WEBPACK_IMPORTED_MODULE_7__);
177
+ /* harmony import */ var tsparticles_updater_wobble__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(304);
178
+ /* harmony import */ var tsparticles_updater_wobble__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(tsparticles_updater_wobble__WEBPACK_IMPORTED_MODULE_8__);
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+ async function loadFull(engine) {
189
+ await (0,tsparticles_slim__WEBPACK_IMPORTED_MODULE_5__.loadSlim)(engine);
190
+ await (0,tsparticles_updater_roll__WEBPACK_IMPORTED_MODULE_4__.loadRollUpdater)(engine);
191
+ await (0,tsparticles_updater_tilt__WEBPACK_IMPORTED_MODULE_6__.loadTiltUpdater)(engine);
192
+ await (0,tsparticles_updater_twinkle__WEBPACK_IMPORTED_MODULE_7__.loadTwinkleUpdater)(engine);
193
+ await (0,tsparticles_updater_wobble__WEBPACK_IMPORTED_MODULE_8__.loadWobbleUpdater)(engine);
194
+ await (0,tsparticles_interaction_external_trail__WEBPACK_IMPORTED_MODULE_2__.loadExternalTrailInteraction)(engine);
195
+ await (0,tsparticles_plugin_absorbers__WEBPACK_IMPORTED_MODULE_0__.loadAbsorbersPlugin)(engine);
196
+ await (0,tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_1__.loadEmittersPlugin)(engine);
197
+ await (0,tsparticles_plugin_polygon_mask__WEBPACK_IMPORTED_MODULE_3__.loadPolygonMaskPlugin)(engine);
292
198
  }
293
199
  })();
294
200
 
@@ -1,2 +1,2 @@
1
- /*! tsParticles v2.0.4 by Matteo Bruni */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-plugin-absorbers"),require("tsparticles-plugin-emitters"),require("tsparticles-interaction-external-trail"),require("tsparticles-plugin-polygon-mask"),require("tsparticles-updater-roll"),require("tsparticles-slim"),require("tsparticles-updater-tilt"),require("tsparticles-engine"),require("tsparticles-updater-wobble"));else if("function"==typeof define&&define.amd)define(["tsparticles-plugin-absorbers","tsparticles-plugin-emitters","tsparticles-interaction-external-trail","tsparticles-plugin-polygon-mask","tsparticles-updater-roll","tsparticles-slim","tsparticles-updater-tilt","tsparticles-engine","tsparticles-updater-wobble"],t);else{var r="object"==typeof exports?t(require("tsparticles-plugin-absorbers"),require("tsparticles-plugin-emitters"),require("tsparticles-interaction-external-trail"),require("tsparticles-plugin-polygon-mask"),require("tsparticles-updater-roll"),require("tsparticles-slim"),require("tsparticles-updater-tilt"),require("tsparticles-engine"),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 i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,(function(e,t,r,i,o,n,l,a,s){return(()=>{"use strict";var p={818:e=>{e.exports=a},165:e=>{e.exports=r},502:t=>{t.exports=e},949:e=>{e.exports=t},742:e=>{e.exports=i},208:e=>{e.exports=n},281:e=>{e.exports=o},950:e=>{e.exports=l},304:e=>{e.exports=s}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return p[e](r,r.exports,c),r.exports}c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{c.r(d),c.d(d,{loadFull:()=>y});var e=c(502),t=c(949),r=c(165),i=c(742),o=c(281),n=c(208),l=c(950),a=c(818);class s{getColorStyles(e,t,r,i){const o=e.options.twinkle.particles,n=o.enable&&Math.random()<o.frequency,l=e.options.zIndex,s=Math.pow(1-e.zIndexFactor,l.opacityRate),p=n?(0,a.getRangeValue)(o.opacity)*s:i,u=(0,a.colorToHsl)(o.color),c=u?(0,a.getStyleFromHsl)(u,p):void 0,d={},f=n&&c;return d.fill=f?c:void 0,d.stroke=f?c:void 0,d}init(){}isEnabled(e){return e.options.twinkle.particles.enable}update(){}}var p=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function l(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,a)}s((i=i.apply(e,t||[])).next())}))};var u=c(304),f=function(e,t,r,i){return new(r||(r=Promise))((function(o,n){function l(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(l,a)}s((i=i.apply(e,t||[])).next())}))};function y(a){return f(this,void 0,void 0,(function*(){yield(0,n.loadSlim)(a),yield(0,o.loadRollUpdater)(a),yield(0,l.loadTiltUpdater)(a),yield function(e){return p(this,void 0,void 0,(function*(){yield e.addParticleUpdater("twinkle",(()=>new s))}))}(a),yield(0,u.loadWobbleUpdater)(a),yield(0,r.loadExternalTrailInteraction)(a),yield(0,e.loadAbsorbersPlugin)(a),yield(0,t.loadEmittersPlugin)(a),yield(0,i.loadPolygonMaskPlugin)(a)}))}})(),d})()}));
1
+ /*! tsParticles v2.1.0 by Matteo Bruni */
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-plugin-absorbers"),require("tsparticles-plugin-emitters"),require("tsparticles-interaction-external-trail"),require("tsparticles-plugin-polygon-mask"),require("tsparticles-updater-roll"),require("tsparticles-slim"),require("tsparticles-updater-tilt"),require("tsparticles-updater-twinkle"),require("tsparticles-updater-wobble"));else if("function"==typeof define&&define.amd)define(["tsparticles-plugin-absorbers","tsparticles-plugin-emitters","tsparticles-interaction-external-trail","tsparticles-plugin-polygon-mask","tsparticles-updater-roll","tsparticles-slim","tsparticles-updater-tilt","tsparticles-updater-twinkle","tsparticles-updater-wobble"],t);else{var r="object"==typeof exports?t(require("tsparticles-plugin-absorbers"),require("tsparticles-plugin-emitters"),require("tsparticles-interaction-external-trail"),require("tsparticles-plugin-polygon-mask"),require("tsparticles-updater-roll"),require("tsparticles-slim"),require("tsparticles-updater-tilt"),require("tsparticles-updater-twinkle"),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 i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,((e,t,r,i,a,l,s,o,p)=>(()=>{"use strict";var n={165:e=>{e.exports=r},502:t=>{t.exports=e},949:e=>{e.exports=t},742:e=>{e.exports=i},208:e=>{e.exports=l},281:e=>{e.exports=a},950:e=>{e.exports=s},30:e=>{e.exports=o},304:e=>{e.exports=p}},u={};function d(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return n[e](r,r.exports,d),r.exports}d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{d.r(c),d.d(c,{loadFull:()=>n});var e=d(502),t=d(949),r=d(165),i=d(742),a=d(281),l=d(208),s=d(950),o=d(30),p=d(304);async function n(n){await(0,l.loadSlim)(n),await(0,a.loadRollUpdater)(n),await(0,s.loadTiltUpdater)(n),await(0,o.loadTwinkleUpdater)(n),await(0,p.loadWobbleUpdater)(n),await(0,r.loadExternalTrailInteraction)(n),await(0,e.loadAbsorbersPlugin)(n),await(0,t.loadEmittersPlugin)(n),await(0,i.loadPolygonMaskPlugin)(n)}})(),c})()));
File without changes
File without changes
package/umd/bundle.js ADDED
@@ -0,0 +1,33 @@
1
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2
+ if (k2 === undefined) k2 = k;
3
+ var desc = Object.getOwnPropertyDescriptor(m, k);
4
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5
+ desc = { enumerable: true, get: function() { return m[k]; } };
6
+ }
7
+ Object.defineProperty(o, k2, desc);
8
+ }) : (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ o[k2] = m[k];
11
+ }));
12
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
13
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
14
+ };
15
+ (function (factory) {
16
+ if (typeof module === "object" && typeof module.exports === "object") {
17
+ var v = factory(require, exports);
18
+ if (v !== undefined) module.exports = v;
19
+ }
20
+ else if (typeof define === "function" && define.amd) {
21
+ define(["require", "exports", ".", "tsparticles-engine", "tsparticles-slim", "tsparticles-engine"], factory);
22
+ }
23
+ })(function (require, exports) {
24
+ "use strict";
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.loadFull = void 0;
27
+ const _1 = require(".");
28
+ Object.defineProperty(exports, "loadFull", { enumerable: true, get: function () { return _1.loadFull; } });
29
+ const tsparticles_engine_1 = require("tsparticles-engine");
30
+ (0, _1.loadFull)(tsparticles_engine_1.tsParticles);
31
+ __exportStar(require("tsparticles-slim"), exports);
32
+ __exportStar(require("tsparticles-engine"), exports);
33
+ });
package/umd/index.js ADDED
@@ -0,0 +1,34 @@
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", "tsparticles-plugin-absorbers", "tsparticles-plugin-emitters", "tsparticles-interaction-external-trail", "tsparticles-plugin-polygon-mask", "tsparticles-updater-roll", "tsparticles-slim", "tsparticles-updater-tilt", "tsparticles-updater-twinkle", "tsparticles-updater-wobble"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.loadFull = void 0;
13
+ const tsparticles_plugin_absorbers_1 = require("tsparticles-plugin-absorbers");
14
+ const tsparticles_plugin_emitters_1 = require("tsparticles-plugin-emitters");
15
+ const tsparticles_interaction_external_trail_1 = require("tsparticles-interaction-external-trail");
16
+ const tsparticles_plugin_polygon_mask_1 = require("tsparticles-plugin-polygon-mask");
17
+ const tsparticles_updater_roll_1 = require("tsparticles-updater-roll");
18
+ const tsparticles_slim_1 = require("tsparticles-slim");
19
+ const tsparticles_updater_tilt_1 = require("tsparticles-updater-tilt");
20
+ const tsparticles_updater_twinkle_1 = require("tsparticles-updater-twinkle");
21
+ const tsparticles_updater_wobble_1 = require("tsparticles-updater-wobble");
22
+ async function loadFull(engine) {
23
+ await (0, tsparticles_slim_1.loadSlim)(engine);
24
+ await (0, tsparticles_updater_roll_1.loadRollUpdater)(engine);
25
+ await (0, tsparticles_updater_tilt_1.loadTiltUpdater)(engine);
26
+ await (0, tsparticles_updater_twinkle_1.loadTwinkleUpdater)(engine);
27
+ await (0, tsparticles_updater_wobble_1.loadWobbleUpdater)(engine);
28
+ await (0, tsparticles_interaction_external_trail_1.loadExternalTrailInteraction)(engine);
29
+ await (0, tsparticles_plugin_absorbers_1.loadAbsorbersPlugin)(engine);
30
+ await (0, tsparticles_plugin_emitters_1.loadEmittersPlugin)(engine);
31
+ await (0, tsparticles_plugin_polygon_mask_1.loadPolygonMaskPlugin)(engine);
32
+ }
33
+ exports.loadFull = loadFull;
34
+ });