@tsparticles/preset-confetti-explosions 4.1.2 → 4.1.3

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.1.2 */
2
+ /* Preset v4.1.3 */
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) :
@@ -1018,7 +1018,7 @@
1018
1018
  return this.#domArray;
1019
1019
  }
1020
1020
  get version() {
1021
- return "4.1.2";
1021
+ return "4.1.3";
1022
1022
  }
1023
1023
  addEventListener(type, listener) {
1024
1024
  this.#eventDispatcher.addEventListener(type, listener);
@@ -2811,7 +2811,7 @@
2811
2811
  }
2812
2812
 
2813
2813
  async function loadBlendPlugin(engine) {
2814
- engine.checkVersion("4.1.2");
2814
+ engine.checkVersion("4.1.3");
2815
2815
  await engine.pluginManager.register(e => {
2816
2816
  e.pluginManager.addPlugin(new BlendPlugin());
2817
2817
  });
@@ -2848,7 +2848,7 @@
2848
2848
  }
2849
2849
 
2850
2850
  async function loadCircleShape(engine) {
2851
- engine.checkVersion("4.1.2");
2851
+ engine.checkVersion("4.1.3");
2852
2852
  await engine.pluginManager.register(e => {
2853
2853
  e.pluginManager.addShape(["circle"], () => {
2854
2854
  return Promise.resolve(new CircleDrawer());
@@ -2896,7 +2896,7 @@
2896
2896
  }
2897
2897
 
2898
2898
  async function loadHexColorPlugin(engine) {
2899
- engine.checkVersion("4.1.2");
2899
+ engine.checkVersion("4.1.3");
2900
2900
  await engine.pluginManager.register(e => {
2901
2901
  e.pluginManager.addColorManager("hex", new HexColorManager());
2902
2902
  });
@@ -2949,7 +2949,7 @@
2949
2949
  }
2950
2950
 
2951
2951
  async function loadHslColorPlugin(engine) {
2952
- engine.checkVersion("4.1.2");
2952
+ engine.checkVersion("4.1.3");
2953
2953
  await engine.pluginManager.register(e => {
2954
2954
  e.pluginManager.addColorManager("hsl", new HslColorManager());
2955
2955
  });
@@ -2973,7 +2973,7 @@
2973
2973
  }
2974
2974
 
2975
2975
  async function loadMovePlugin(engine) {
2976
- engine.checkVersion("4.1.2");
2976
+ engine.checkVersion("4.1.3");
2977
2977
  await engine.pluginManager.register(e => {
2978
2978
  const moveEngine = e, movePluginManager = moveEngine.pluginManager;
2979
2979
  movePluginManager.initializers.pathGenerators ??= new Map();
@@ -3080,7 +3080,7 @@
3080
3080
  }
3081
3081
 
3082
3082
  async function loadOpacityUpdater(engine) {
3083
- engine.checkVersion("4.1.2");
3083
+ engine.checkVersion("4.1.3");
3084
3084
  await engine.pluginManager.register(e => {
3085
3085
  e.pluginManager.addParticleUpdater("opacity", container => {
3086
3086
  return Promise.resolve(new OpacityUpdater(container));
@@ -3427,7 +3427,7 @@
3427
3427
  }
3428
3428
 
3429
3429
  async function loadOutModesUpdater(engine) {
3430
- engine.checkVersion("4.1.2");
3430
+ engine.checkVersion("4.1.3");
3431
3431
  await engine.pluginManager.register(e => {
3432
3432
  e.pluginManager.addParticleUpdater("outModes", container => {
3433
3433
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -3498,7 +3498,7 @@
3498
3498
  }
3499
3499
 
3500
3500
  async function loadPaintUpdater(engine) {
3501
- engine.checkVersion("4.1.2");
3501
+ engine.checkVersion("4.1.3");
3502
3502
  await engine.pluginManager.register(e => {
3503
3503
  e.pluginManager.addParticleUpdater("paint", container => {
3504
3504
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -3553,7 +3553,7 @@
3553
3553
  }
3554
3554
 
3555
3555
  async function loadRgbColorPlugin(engine) {
3556
- engine.checkVersion("4.1.2");
3556
+ engine.checkVersion("4.1.3");
3557
3557
  await engine.pluginManager.register(e => {
3558
3558
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
3559
3559
  });
@@ -3652,7 +3652,7 @@
3652
3652
  }
3653
3653
 
3654
3654
  async function loadSizeUpdater(engine) {
3655
- engine.checkVersion("4.1.2");
3655
+ engine.checkVersion("4.1.3");
3656
3656
  await engine.pluginManager.register(e => {
3657
3657
  e.pluginManager.addParticleUpdater("size", container => {
3658
3658
  return Promise.resolve(new SizeUpdater(container));
@@ -3661,7 +3661,7 @@
3661
3661
  }
3662
3662
 
3663
3663
  async function loadBasic(engine) {
3664
- engine.checkVersion("4.1.2");
3664
+ engine.checkVersion("4.1.3");
3665
3665
  await engine.pluginManager.register(async (e) => {
3666
3666
  await Promise.all([
3667
3667
  loadBlendPlugin(e),
@@ -3976,7 +3976,7 @@
3976
3976
  })(EmitterClickMode || (EmitterClickMode = {}));
3977
3977
 
3978
3978
  async function loadEmittersPluginSimple(engine) {
3979
- engine.checkVersion("4.1.2");
3979
+ engine.checkVersion("4.1.3");
3980
3980
  await engine.pluginManager.register(async (e) => {
3981
3981
  const instancesManager = await getEmittersInstancesManager(e);
3982
3982
  await addEmittersShapesManager(e);
@@ -4044,7 +4044,7 @@
4044
4044
  }
4045
4045
 
4046
4046
  async function loadMotionPlugin(engine) {
4047
- engine.checkVersion("4.1.2");
4047
+ engine.checkVersion("4.1.3");
4048
4048
  await engine.pluginManager.register(e => {
4049
4049
  e.pluginManager.addPlugin(new MotionPlugin());
4050
4050
  });
@@ -4201,7 +4201,7 @@
4201
4201
  }
4202
4202
 
4203
4203
  async function loadRollUpdater(engine) {
4204
- engine.checkVersion("4.1.2");
4204
+ engine.checkVersion("4.1.3");
4205
4205
  await engine.pluginManager.register(e => {
4206
4206
  e.pluginManager.addParticleUpdater("roll", () => {
4207
4207
  return Promise.resolve(new RollUpdater(e.pluginManager));
@@ -4335,7 +4335,7 @@
4335
4335
  }
4336
4336
 
4337
4337
  async function loadRotateUpdater(engine) {
4338
- engine.checkVersion("4.1.2");
4338
+ engine.checkVersion("4.1.3");
4339
4339
  await engine.pluginManager.register(e => {
4340
4340
  e.pluginManager.addParticleUpdater("rotate", container => {
4341
4341
  return Promise.resolve(new RotateUpdater(container));
@@ -4359,7 +4359,7 @@
4359
4359
  }
4360
4360
 
4361
4361
  async function loadSquareShape(engine) {
4362
- engine.checkVersion("4.1.2");
4362
+ engine.checkVersion("4.1.3");
4363
4363
  await engine.pluginManager.register(e => {
4364
4364
  e.pluginManager.addShape(["edge", "square"], () => Promise.resolve(new SquareDrawer()));
4365
4365
  });
@@ -4496,7 +4496,7 @@
4496
4496
  }
4497
4497
 
4498
4498
  async function loadTiltUpdater(engine) {
4499
- engine.checkVersion("4.1.2");
4499
+ engine.checkVersion("4.1.3");
4500
4500
  await engine.pluginManager.register(e => {
4501
4501
  e.pluginManager.addParticleUpdater("tilt", container => {
4502
4502
  return Promise.resolve(new TiltUpdater(container));
@@ -4618,7 +4618,7 @@
4618
4618
  }
4619
4619
 
4620
4620
  async function loadWobbleUpdater(engine) {
4621
- engine.checkVersion("4.1.2");
4621
+ engine.checkVersion("4.1.3");
4622
4622
  await engine.pluginManager.register(e => {
4623
4623
  e.pluginManager.addParticleUpdater("wobble", container => {
4624
4624
  return Promise.resolve(new WobbleUpdater(container));
@@ -5696,19 +5696,25 @@
5696
5696
  this.shape = itemFromSingleOrMultiple(shapeType, this.id, reduceDuplicates);
5697
5697
  const effectOptions = particlesOptions.effect, shapeOptions = particlesOptions.shape;
5698
5698
  if (overrideOptions) {
5699
- if (overrideOptions.effect?.type && overrideOptions.effect.type !== this.effect) {
5700
- const overrideEffectType = overrideOptions.effect.type, effect = itemFromSingleOrMultiple(overrideEffectType, this.id, reduceDuplicates);
5701
- if (effect) {
5702
- this.effect = effect;
5703
- effectOptions.load(overrideOptions.effect);
5699
+ if (overrideOptions.effect) {
5700
+ const overrideEffectType = overrideOptions.effect.type;
5701
+ if (overrideEffectType && overrideEffectType !== this.effect) {
5702
+ const effect = itemFromSingleOrMultiple(overrideEffectType, this.id, reduceDuplicates);
5703
+ if (effect) {
5704
+ this.effect = effect;
5705
+ }
5704
5706
  }
5705
- }
5706
- if (overrideOptions.shape?.type && overrideOptions.shape.type !== this.shape) {
5707
- const overrideShapeType = overrideOptions.shape.type, shape = itemFromSingleOrMultiple(overrideShapeType, this.id, reduceDuplicates);
5708
- if (shape) {
5709
- this.shape = shape;
5710
- shapeOptions.load(overrideOptions.shape);
5707
+ effectOptions.load(overrideOptions.effect);
5708
+ }
5709
+ if (overrideOptions.shape) {
5710
+ const overrideShapeType = overrideOptions.shape.type;
5711
+ if (overrideShapeType && overrideShapeType !== this.shape) {
5712
+ const shape = itemFromSingleOrMultiple(overrideShapeType, this.id, reduceDuplicates);
5713
+ if (shape) {
5714
+ this.shape = shape;
5715
+ }
5711
5716
  }
5717
+ shapeOptions.load(overrideOptions.shape);
5712
5718
  }
5713
5719
  }
5714
5720
  if (this.effect === randomColorValue) {