@tsparticles/preset-confetti-explosions 4.3.0 → 4.3.2

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.
@@ -1,5 +1,5 @@
1
1
  (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
- /* Preset v4.3.0 */
2
+ /* Preset v4.3.2 */
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
5
5
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -305,6 +305,9 @@
305
305
  })(PixelMode || (PixelMode = {}));
306
306
 
307
307
  const minRadius = 0;
308
+ function isForbiddenKey(key) {
309
+ return key === "__proto__" || key === "constructor" || key === "prototype";
310
+ }
308
311
  function hasMatchMedia() {
309
312
  return typeof matchMedia !== "undefined";
310
313
  }
@@ -380,7 +383,7 @@
380
383
  if (!hasNested) {
381
384
  const sourceDict = source, destDict = destination;
382
385
  for (const key of sourceKeys) {
383
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
386
+ if (isForbiddenKey(key)) {
384
387
  continue;
385
388
  }
386
389
  const v = sourceDict[key];
@@ -391,7 +394,7 @@
391
394
  continue;
392
395
  }
393
396
  for (const key of sourceKeys) {
394
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
397
+ if (isForbiddenKey(key)) {
395
398
  continue;
396
399
  }
397
400
  const sourceDict = source, destDict = destination, value = sourceDict[key];
@@ -807,7 +810,7 @@
807
810
  return this.#domArray;
808
811
  }
809
812
  get version() {
810
- return "4.3.0";
813
+ return "4.3.2";
811
814
  }
812
815
  addEventListener(type, listener) {
813
816
  this.#eventDispatcher.addEventListener(type, listener);
@@ -2111,7 +2114,7 @@
2111
2114
  }
2112
2115
 
2113
2116
  async function loadBlendPlugin(engine) {
2114
- engine.checkVersion("4.3.0");
2117
+ engine.checkVersion("4.3.2");
2115
2118
  await engine.pluginManager.register(e => {
2116
2119
  e.pluginManager.addPlugin(new BlendPlugin());
2117
2120
  });
@@ -2148,7 +2151,7 @@
2148
2151
  }
2149
2152
 
2150
2153
  async function loadCircleShape(engine) {
2151
- engine.checkVersion("4.3.0");
2154
+ engine.checkVersion("4.3.2");
2152
2155
  await engine.pluginManager.register(e => {
2153
2156
  e.pluginManager.addShape(["circle"], () => {
2154
2157
  return Promise.resolve(new CircleDrawer());
@@ -2196,7 +2199,7 @@
2196
2199
  }
2197
2200
 
2198
2201
  async function loadHexColorPlugin(engine) {
2199
- engine.checkVersion("4.3.0");
2202
+ engine.checkVersion("4.3.2");
2200
2203
  await engine.pluginManager.register(e => {
2201
2204
  e.pluginManager.addColorManager("hex", new HexColorManager());
2202
2205
  });
@@ -2249,7 +2252,7 @@
2249
2252
  }
2250
2253
 
2251
2254
  async function loadHslColorPlugin(engine) {
2252
- engine.checkVersion("4.3.0");
2255
+ engine.checkVersion("4.3.2");
2253
2256
  await engine.pluginManager.register(e => {
2254
2257
  e.pluginManager.addColorManager("hsl", new HslColorManager());
2255
2258
  });
@@ -2273,7 +2276,7 @@
2273
2276
  }
2274
2277
 
2275
2278
  async function loadMovePlugin(engine) {
2276
- engine.checkVersion("4.3.0");
2279
+ engine.checkVersion("4.3.2");
2277
2280
  await engine.pluginManager.register(e => {
2278
2281
  const moveEngine = e, movePluginManager = moveEngine.pluginManager;
2279
2282
  movePluginManager.initializers.pathGenerators ??= new Map();
@@ -2489,7 +2492,7 @@
2489
2492
  }
2490
2493
 
2491
2494
  async function loadOpacityUpdater(engine) {
2492
- engine.checkVersion("4.3.0");
2495
+ engine.checkVersion("4.3.2");
2493
2496
  await engine.pluginManager.register(e => {
2494
2497
  e.pluginManager.addParticleUpdater("opacity", container => {
2495
2498
  return Promise.resolve(new OpacityUpdater(container));
@@ -2834,7 +2837,7 @@
2834
2837
  }
2835
2838
 
2836
2839
  async function loadOutModesUpdater(engine) {
2837
- engine.checkVersion("4.3.0");
2840
+ engine.checkVersion("4.3.2");
2838
2841
  await engine.pluginManager.register(e => {
2839
2842
  e.pluginManager.addParticleUpdater("outModes", container => {
2840
2843
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -2905,7 +2908,7 @@
2905
2908
  }
2906
2909
 
2907
2910
  async function loadPaintUpdater(engine) {
2908
- engine.checkVersion("4.3.0");
2911
+ engine.checkVersion("4.3.2");
2909
2912
  await engine.pluginManager.register(e => {
2910
2913
  e.pluginManager.addParticleUpdater("paint", container => {
2911
2914
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -2960,7 +2963,7 @@
2960
2963
  }
2961
2964
 
2962
2965
  async function loadRgbColorPlugin(engine) {
2963
- engine.checkVersion("4.3.0");
2966
+ engine.checkVersion("4.3.2");
2964
2967
  await engine.pluginManager.register(e => {
2965
2968
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
2966
2969
  });
@@ -3045,7 +3048,7 @@
3045
3048
  }
3046
3049
 
3047
3050
  async function loadSizeUpdater(engine) {
3048
- engine.checkVersion("4.3.0");
3051
+ engine.checkVersion("4.3.2");
3049
3052
  await engine.pluginManager.register(e => {
3050
3053
  e.pluginManager.addParticleUpdater("size", container => {
3051
3054
  return Promise.resolve(new SizeUpdater(container));
@@ -3054,7 +3057,7 @@
3054
3057
  }
3055
3058
 
3056
3059
  async function loadBasic(engine) {
3057
- engine.checkVersion("4.3.0");
3060
+ engine.checkVersion("4.3.2");
3058
3061
  await engine.pluginManager.register(async (e) => {
3059
3062
  await Promise.all([
3060
3063
  loadBlendPlugin(e),
@@ -3307,7 +3310,7 @@
3307
3310
  })(EmitterClickMode || (EmitterClickMode = {}));
3308
3311
 
3309
3312
  async function loadEmittersPluginSimple(engine) {
3310
- engine.checkVersion("4.3.0");
3313
+ engine.checkVersion("4.3.2");
3311
3314
  await engine.pluginManager.register(async (e) => {
3312
3315
  const instancesManager = await getEmittersInstancesManager(e);
3313
3316
  await addEmittersShapesManager(e);
@@ -3361,7 +3364,7 @@
3361
3364
  }
3362
3365
 
3363
3366
  async function loadMotionPlugin(engine) {
3364
- engine.checkVersion("4.3.0");
3367
+ engine.checkVersion("4.3.2");
3365
3368
  await engine.pluginManager.register(e => {
3366
3369
  e.pluginManager.addPlugin(new MotionPlugin());
3367
3370
  });
@@ -3494,7 +3497,7 @@
3494
3497
  }
3495
3498
 
3496
3499
  async function loadRollUpdater(engine) {
3497
- engine.checkVersion("4.3.0");
3500
+ engine.checkVersion("4.3.2");
3498
3501
  await engine.pluginManager.register(e => {
3499
3502
  e.pluginManager.addParticleUpdater("roll", () => {
3500
3503
  return Promise.resolve(new RollUpdater(e.pluginManager));
@@ -3600,7 +3603,7 @@
3600
3603
  }
3601
3604
 
3602
3605
  async function loadRotateUpdater(engine) {
3603
- engine.checkVersion("4.3.0");
3606
+ engine.checkVersion("4.3.2");
3604
3607
  await engine.pluginManager.register(e => {
3605
3608
  e.pluginManager.addParticleUpdater("rotate", container => {
3606
3609
  return Promise.resolve(new RotateUpdater(container));
@@ -3624,7 +3627,7 @@
3624
3627
  }
3625
3628
 
3626
3629
  async function loadSquareShape(engine) {
3627
- engine.checkVersion("4.3.0");
3630
+ engine.checkVersion("4.3.2");
3628
3631
  await engine.pluginManager.register(e => {
3629
3632
  e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
3630
3633
  });
@@ -3733,7 +3736,7 @@
3733
3736
  }
3734
3737
 
3735
3738
  async function loadTiltUpdater(engine) {
3736
- engine.checkVersion("4.3.0");
3739
+ engine.checkVersion("4.3.2");
3737
3740
  await engine.pluginManager.register(e => {
3738
3741
  e.pluginManager.addParticleUpdater("tilt", container => {
3739
3742
  return Promise.resolve(new TiltUpdater(container));
@@ -3835,7 +3838,7 @@
3835
3838
  }
3836
3839
 
3837
3840
  async function loadWobbleUpdater(engine) {
3838
- engine.checkVersion("4.3.0");
3841
+ engine.checkVersion("4.3.2");
3839
3842
  await engine.pluginManager.register(e => {
3840
3843
  e.pluginManager.addParticleUpdater("wobble", container => {
3841
3844
  return Promise.resolve(new WobbleUpdater(container));