@tsparticles/preset-fireworks 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) :
@@ -1021,7 +1021,7 @@
1021
1021
  return this.#domArray;
1022
1022
  }
1023
1023
  get version() {
1024
- return "4.1.2";
1024
+ return "4.1.3";
1025
1025
  }
1026
1026
  addEventListener(type, listener) {
1027
1027
  this.#eventDispatcher.addEventListener(type, listener);
@@ -3070,7 +3070,7 @@
3070
3070
  }
3071
3071
 
3072
3072
  async function loadBlendPlugin(engine) {
3073
- engine.checkVersion("4.1.2");
3073
+ engine.checkVersion("4.1.3");
3074
3074
  await engine.pluginManager.register(e => {
3075
3075
  e.pluginManager.addPlugin(new BlendPlugin());
3076
3076
  });
@@ -3107,7 +3107,7 @@
3107
3107
  }
3108
3108
 
3109
3109
  async function loadCircleShape(engine) {
3110
- engine.checkVersion("4.1.2");
3110
+ engine.checkVersion("4.1.3");
3111
3111
  await engine.pluginManager.register(e => {
3112
3112
  e.pluginManager.addShape(["circle"], () => {
3113
3113
  return Promise.resolve(new CircleDrawer());
@@ -3155,7 +3155,7 @@
3155
3155
  }
3156
3156
 
3157
3157
  async function loadHexColorPlugin(engine) {
3158
- engine.checkVersion("4.1.2");
3158
+ engine.checkVersion("4.1.3");
3159
3159
  await engine.pluginManager.register(e => {
3160
3160
  e.pluginManager.addColorManager("hex", new HexColorManager());
3161
3161
  });
@@ -3208,7 +3208,7 @@
3208
3208
  }
3209
3209
 
3210
3210
  async function loadHslColorPlugin(engine) {
3211
- engine.checkVersion("4.1.2");
3211
+ engine.checkVersion("4.1.3");
3212
3212
  await engine.pluginManager.register(e => {
3213
3213
  e.pluginManager.addColorManager("hsl", new HslColorManager());
3214
3214
  });
@@ -3232,7 +3232,7 @@
3232
3232
  }
3233
3233
 
3234
3234
  async function loadMovePlugin(engine) {
3235
- engine.checkVersion("4.1.2");
3235
+ engine.checkVersion("4.1.3");
3236
3236
  await engine.pluginManager.register(e => {
3237
3237
  const moveEngine = e, movePluginManager = moveEngine.pluginManager;
3238
3238
  movePluginManager.initializers.pathGenerators ??= new Map();
@@ -3339,7 +3339,7 @@
3339
3339
  }
3340
3340
 
3341
3341
  async function loadOpacityUpdater(engine) {
3342
- engine.checkVersion("4.1.2");
3342
+ engine.checkVersion("4.1.3");
3343
3343
  await engine.pluginManager.register(e => {
3344
3344
  e.pluginManager.addParticleUpdater("opacity", container => {
3345
3345
  return Promise.resolve(new OpacityUpdater(container));
@@ -3686,7 +3686,7 @@
3686
3686
  }
3687
3687
 
3688
3688
  async function loadOutModesUpdater(engine) {
3689
- engine.checkVersion("4.1.2");
3689
+ engine.checkVersion("4.1.3");
3690
3690
  await engine.pluginManager.register(e => {
3691
3691
  e.pluginManager.addParticleUpdater("outModes", container => {
3692
3692
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -3757,7 +3757,7 @@
3757
3757
  }
3758
3758
 
3759
3759
  async function loadPaintUpdater(engine) {
3760
- engine.checkVersion("4.1.2");
3760
+ engine.checkVersion("4.1.3");
3761
3761
  await engine.pluginManager.register(e => {
3762
3762
  e.pluginManager.addParticleUpdater("paint", container => {
3763
3763
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -3812,7 +3812,7 @@
3812
3812
  }
3813
3813
 
3814
3814
  async function loadRgbColorPlugin(engine) {
3815
- engine.checkVersion("4.1.2");
3815
+ engine.checkVersion("4.1.3");
3816
3816
  await engine.pluginManager.register(e => {
3817
3817
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
3818
3818
  });
@@ -3911,7 +3911,7 @@
3911
3911
  }
3912
3912
 
3913
3913
  async function loadSizeUpdater(engine) {
3914
- engine.checkVersion("4.1.2");
3914
+ engine.checkVersion("4.1.3");
3915
3915
  await engine.pluginManager.register(e => {
3916
3916
  e.pluginManager.addParticleUpdater("size", container => {
3917
3917
  return Promise.resolve(new SizeUpdater(container));
@@ -3920,7 +3920,7 @@
3920
3920
  }
3921
3921
 
3922
3922
  async function loadBasic(engine) {
3923
- engine.checkVersion("4.1.2");
3923
+ engine.checkVersion("4.1.3");
3924
3924
  await engine.pluginManager.register(async (e) => {
3925
3925
  await Promise.all([
3926
3926
  loadBlendPlugin(e),
@@ -4292,7 +4292,7 @@
4292
4292
  }
4293
4293
 
4294
4294
  async function loadDestroyUpdater(engine) {
4295
- engine.checkVersion("4.1.2");
4295
+ engine.checkVersion("4.1.3");
4296
4296
  await engine.pluginManager.register(e => {
4297
4297
  e.pluginManager.addParticleUpdater("destroy", container => {
4298
4298
  return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
@@ -4585,7 +4585,7 @@
4585
4585
  })(EmitterClickMode || (EmitterClickMode = {}));
4586
4586
 
4587
4587
  async function loadEmittersPluginSimple(engine) {
4588
- engine.checkVersion("4.1.2");
4588
+ engine.checkVersion("4.1.3");
4589
4589
  await engine.pluginManager.register(async (e) => {
4590
4590
  const instancesManager = await getEmittersInstancesManager(e);
4591
4591
  await addEmittersShapesManager(e);
@@ -4673,7 +4673,7 @@
4673
4673
  }
4674
4674
 
4675
4675
  async function loadEmittersShapeSquare(engine) {
4676
- engine.checkVersion("4.1.2");
4676
+ engine.checkVersion("4.1.3");
4677
4677
  await engine.pluginManager.register((e) => {
4678
4678
  ensureEmittersPluginLoaded(e);
4679
4679
  e.pluginManager.addEmitterShapeGenerator?.("square", new EmittersSquareShapeGenerator());
@@ -4839,7 +4839,7 @@
4839
4839
  }
4840
4840
 
4841
4841
  async function loadLifeUpdater(engine) {
4842
- engine.checkVersion("4.1.2");
4842
+ engine.checkVersion("4.1.3");
4843
4843
  await engine.pluginManager.register(e => {
4844
4844
  e.pluginManager.addParticleUpdater("life", container => {
4845
4845
  return Promise.resolve(new LifeUpdater(container));
@@ -4865,7 +4865,7 @@
4865
4865
  }
4866
4866
 
4867
4867
  async function loadLineShape(engine) {
4868
- engine.checkVersion("4.1.2");
4868
+ engine.checkVersion("4.1.3");
4869
4869
  await engine.pluginManager.register(e => {
4870
4870
  e.pluginManager.addShape(["line"], () => Promise.resolve(new LineDrawer()));
4871
4871
  });
@@ -4997,7 +4997,7 @@
4997
4997
  }
4998
4998
 
4999
4999
  async function loadRotateUpdater(engine) {
5000
- engine.checkVersion("4.1.2");
5000
+ engine.checkVersion("4.1.3");
5001
5001
  await engine.pluginManager.register(e => {
5002
5002
  e.pluginManager.addParticleUpdater("rotate", container => {
5003
5003
  return Promise.resolve(new RotateUpdater(container));
@@ -5378,7 +5378,7 @@
5378
5378
  }
5379
5379
 
5380
5380
  async function loadSoundsPlugin(engine) {
5381
- engine.checkVersion("4.1.2");
5381
+ engine.checkVersion("4.1.3");
5382
5382
  await engine.pluginManager.register(e => {
5383
5383
  e.pluginManager.addPlugin(new SoundsPlugin(e));
5384
5384
  });
@@ -5494,7 +5494,7 @@
5494
5494
  }
5495
5495
 
5496
5496
  async function loadTrailEffect(engine) {
5497
- engine.checkVersion("4.1.2");
5497
+ engine.checkVersion("4.1.3");
5498
5498
  await engine.pluginManager.register(e => {
5499
5499
  e.pluginManager.addEffect("trail", container => {
5500
5500
  return Promise.resolve(new TrailDrawer(container));
@@ -6443,19 +6443,25 @@
6443
6443
  this.shape = itemFromSingleOrMultiple(shapeType, this.id, reduceDuplicates);
6444
6444
  const effectOptions = particlesOptions.effect, shapeOptions = particlesOptions.shape;
6445
6445
  if (overrideOptions) {
6446
- if (overrideOptions.effect?.type && overrideOptions.effect.type !== this.effect) {
6447
- const overrideEffectType = overrideOptions.effect.type, effect = itemFromSingleOrMultiple(overrideEffectType, this.id, reduceDuplicates);
6448
- if (effect) {
6449
- this.effect = effect;
6450
- effectOptions.load(overrideOptions.effect);
6446
+ if (overrideOptions.effect) {
6447
+ const overrideEffectType = overrideOptions.effect.type;
6448
+ if (overrideEffectType && overrideEffectType !== this.effect) {
6449
+ const effect = itemFromSingleOrMultiple(overrideEffectType, this.id, reduceDuplicates);
6450
+ if (effect) {
6451
+ this.effect = effect;
6452
+ }
6451
6453
  }
6452
- }
6453
- if (overrideOptions.shape?.type && overrideOptions.shape.type !== this.shape) {
6454
- const overrideShapeType = overrideOptions.shape.type, shape = itemFromSingleOrMultiple(overrideShapeType, this.id, reduceDuplicates);
6455
- if (shape) {
6456
- this.shape = shape;
6457
- shapeOptions.load(overrideOptions.shape);
6454
+ effectOptions.load(overrideOptions.effect);
6455
+ }
6456
+ if (overrideOptions.shape) {
6457
+ const overrideShapeType = overrideOptions.shape.type;
6458
+ if (overrideShapeType && overrideShapeType !== this.shape) {
6459
+ const shape = itemFromSingleOrMultiple(overrideShapeType, this.id, reduceDuplicates);
6460
+ if (shape) {
6461
+ this.shape = shape;
6462
+ }
6458
6463
  }
6464
+ shapeOptions.load(overrideOptions.shape);
6459
6465
  }
6460
6466
  }
6461
6467
  if (this.effect === randomColorValue) {