tsparticles 2.0.5 → 2.0.6

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,7 +4,7 @@
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.5
7
+ * v2.0.6
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
@@ -15,7 +15,7 @@
15
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"]);
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__818__, __WEBPACK_EXTERNAL_MODULE__304__) => {
19
19
  return /******/ (() => { // webpackBootstrap
20
20
  /******/ "use strict";
21
21
  /******/ var __webpack_modules__ = ({
@@ -166,7 +166,7 @@ var external_commonjs_tsparticles_slim_commonjs2_tsparticles_slim_amd_tsparticle
166
166
  var external_commonjs_tsparticles_updater_tilt_commonjs2_tsparticles_updater_tilt_amd_tsparticles_updater_tilt_root_window_ = __webpack_require__(950);
167
167
  // EXTERNAL MODULE: external {"commonjs":"tsparticles-engine","commonjs2":"tsparticles-engine","amd":"tsparticles-engine","root":"window"}
168
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
169
+ ;// CONCATENATED MODULE: ../../updaters/twinkle/dist/esm/TwinkleUpdater.js
170
170
 
171
171
  class TwinkleUpdater {
172
172
  getColorStyles(particle, context, radius, opacity) {
@@ -174,7 +174,7 @@ class TwinkleUpdater {
174
174
  twinkle = pOptions.twinkle.particles,
175
175
  twinkling = twinkle.enable && Math.random() < twinkle.frequency,
176
176
  zIndexOptions = particle.options.zIndex,
177
- zOpacityFactor = Math.pow(1 - particle.zIndexFactor, zIndexOptions.opacityRate),
177
+ zOpacityFactor = (1 - particle.zIndexFactor) ** zIndexOptions.opacityRate,
178
178
  twinklingOpacity = twinkling ? (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.getRangeValue)(twinkle.opacity) * zOpacityFactor : opacity,
179
179
  twinkleRgb = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.colorToHsl)(twinkle.color),
180
180
  twinkleStyle = twinkleRgb ? (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.getStyleFromHsl)(twinkleRgb, twinklingOpacity) : undefined,
@@ -194,80 +194,14 @@ class TwinkleUpdater {
194
194
  update() {}
195
195
 
196
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
- }
197
+ ;// CONCATENATED MODULE: ../../updaters/twinkle/dist/esm/index.js
204
198
 
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
- });
199
+ async function loadTwinkleUpdater(engine) {
200
+ await engine.addParticleUpdater("twinkle", () => new TwinkleUpdater());
235
201
  }
236
202
  // EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-wobble","commonjs2":"tsparticles-updater-wobble","amd":"tsparticles-updater-wobble","root":"window"}
237
203
  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
-
204
+ ;// CONCATENATED MODULE: ./dist/browser/index.js
271
205
 
272
206
 
273
207
 
@@ -277,18 +211,16 @@ var dist_awaiter = undefined && undefined.__awaiter || function (thisArg, _argum
277
211
 
278
212
 
279
213
 
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
- });
214
+ async function loadFull(engine) {
215
+ await (0,external_commonjs_tsparticles_slim_commonjs2_tsparticles_slim_amd_tsparticles_slim_root_window_.loadSlim)(engine);
216
+ await (0,external_commonjs_tsparticles_updater_roll_commonjs2_tsparticles_updater_roll_amd_tsparticles_updater_roll_root_window_.loadRollUpdater)(engine);
217
+ await (0,external_commonjs_tsparticles_updater_tilt_commonjs2_tsparticles_updater_tilt_amd_tsparticles_updater_tilt_root_window_.loadTiltUpdater)(engine);
218
+ await loadTwinkleUpdater(engine);
219
+ await (0,external_commonjs_tsparticles_updater_wobble_commonjs2_tsparticles_updater_wobble_amd_tsparticles_updater_wobble_root_window_.loadWobbleUpdater)(engine);
220
+ await (0,external_commonjs_tsparticles_interaction_external_trail_commonjs2_tsparticles_interaction_external_trail_amd_tsparticles_interaction_external_trail_root_window_.loadExternalTrailInteraction)(engine);
221
+ await (0,external_commonjs_tsparticles_plugin_absorbers_commonjs2_tsparticles_plugin_absorbers_amd_tsparticles_plugin_absorbers_root_window_.loadAbsorbersPlugin)(engine);
222
+ await (0,external_commonjs_tsparticles_plugin_emitters_commonjs2_tsparticles_plugin_emitters_amd_tsparticles_plugin_emitters_root_window_.loadEmittersPlugin)(engine);
223
+ await (0,external_commonjs_tsparticles_plugin_polygon_mask_commonjs2_tsparticles_plugin_polygon_mask_amd_tsparticles_plugin_polygon_mask_root_window_.loadPolygonMaskPlugin)(engine);
292
224
  }
293
225
  })();
294
226
 
@@ -1,2 +1,2 @@
1
- /*! tsParticles v2.0.5 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.0.6 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,((e,t,r,i,a,o,l,s,n)=>(()=>{"use strict";var p={818:e=>{e.exports=s},165:e=>{e.exports=r},502:t=>{t.exports=e},949:e=>{e.exports=t},742:e=>{e.exports=i},208:e=>{e.exports=o},281:e=>{e.exports=a},950:e=>{e.exports=l},304:e=>{e.exports=n}},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:()=>u});var e=c(502),t=c(949),r=c(165),i=c(742),a=c(281),o=c(208),l=c(950),s=c(818);class n{getColorStyles(e,t,r,i){const a=e.options.twinkle.particles,o=a.enable&&Math.random()<a.frequency,l=e.options.zIndex,n=(1-e.zIndexFactor)**l.opacityRate,p=o?(0,s.getRangeValue)(a.opacity)*n:i,u=(0,s.colorToHsl)(a.color),c=u?(0,s.getStyleFromHsl)(u,p):void 0,d={},w=o&&c;return d.fill=w?c:void 0,d.stroke=w?c:void 0,d}init(){}isEnabled(e){return e.options.twinkle.particles.enable}update(){}}var p=c(304);async function u(s){await(0,o.loadSlim)(s),await(0,a.loadRollUpdater)(s),await(0,l.loadTiltUpdater)(s),await async function(e){await e.addParticleUpdater("twinkle",(()=>new n))}(s),await(0,p.loadWobbleUpdater)(s),await(0,r.loadExternalTrailInteraction)(s),await(0,e.loadAbsorbersPlugin)(s),await(0,t.loadEmittersPlugin)(s),await(0,i.loadPolygonMaskPlugin)(s)}})(),d})()));
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
+ });
package/index.js DELETED
@@ -1,31 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { loadAbsorbersPlugin } from "tsparticles-plugin-absorbers";
11
- import { loadEmittersPlugin } from "tsparticles-plugin-emitters";
12
- import { loadExternalTrailInteraction } from "tsparticles-interaction-external-trail";
13
- import { loadPolygonMaskPlugin } from "tsparticles-plugin-polygon-mask";
14
- import { loadRollUpdater } from "tsparticles-updater-roll";
15
- import { loadSlim } from "tsparticles-slim";
16
- import { loadTiltUpdater } from "tsparticles-updater-tilt";
17
- import { loadTwinkleUpdater } from "tsparticles-updater-twinkle";
18
- import { loadWobbleUpdater } from "tsparticles-updater-wobble";
19
- export function loadFull(engine) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- yield loadSlim(engine);
22
- yield loadRollUpdater(engine);
23
- yield loadTiltUpdater(engine);
24
- yield loadTwinkleUpdater(engine);
25
- yield loadWobbleUpdater(engine);
26
- yield loadExternalTrailInteraction(engine);
27
- yield loadAbsorbersPlugin(engine);
28
- yield loadEmittersPlugin(engine);
29
- yield loadPolygonMaskPlugin(engine);
30
- });
31
- }