@tsparticles/preset-fountain 4.1.1 → 4.1.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.1.1 */
2
+ /* Preset v4.1.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) :
@@ -1012,7 +1012,7 @@
1012
1012
  return this.#domArray;
1013
1013
  }
1014
1014
  get version() {
1015
- return "4.1.1";
1015
+ return "4.1.2";
1016
1016
  }
1017
1017
  addEventListener(type, listener) {
1018
1018
  this.#eventDispatcher.addEventListener(type, listener);
@@ -2805,7 +2805,7 @@
2805
2805
  }
2806
2806
 
2807
2807
  async function loadBlendPlugin(engine) {
2808
- engine.checkVersion("4.1.1");
2808
+ engine.checkVersion("4.1.2");
2809
2809
  await engine.pluginManager.register(e => {
2810
2810
  e.pluginManager.addPlugin(new BlendPlugin());
2811
2811
  });
@@ -2842,7 +2842,7 @@
2842
2842
  }
2843
2843
 
2844
2844
  async function loadCircleShape(engine) {
2845
- engine.checkVersion("4.1.1");
2845
+ engine.checkVersion("4.1.2");
2846
2846
  await engine.pluginManager.register(e => {
2847
2847
  e.pluginManager.addShape(["circle"], () => {
2848
2848
  return Promise.resolve(new CircleDrawer());
@@ -2890,7 +2890,7 @@
2890
2890
  }
2891
2891
 
2892
2892
  async function loadHexColorPlugin(engine) {
2893
- engine.checkVersion("4.1.1");
2893
+ engine.checkVersion("4.1.2");
2894
2894
  await engine.pluginManager.register(e => {
2895
2895
  e.pluginManager.addColorManager("hex", new HexColorManager());
2896
2896
  });
@@ -2943,7 +2943,7 @@
2943
2943
  }
2944
2944
 
2945
2945
  async function loadHslColorPlugin(engine) {
2946
- engine.checkVersion("4.1.1");
2946
+ engine.checkVersion("4.1.2");
2947
2947
  await engine.pluginManager.register(e => {
2948
2948
  e.pluginManager.addColorManager("hsl", new HslColorManager());
2949
2949
  });
@@ -2967,7 +2967,7 @@
2967
2967
  }
2968
2968
 
2969
2969
  async function loadMovePlugin(engine) {
2970
- engine.checkVersion("4.1.1");
2970
+ engine.checkVersion("4.1.2");
2971
2971
  await engine.pluginManager.register(e => {
2972
2972
  const moveEngine = e, movePluginManager = moveEngine.pluginManager;
2973
2973
  movePluginManager.initializers.pathGenerators ??= new Map();
@@ -3074,7 +3074,7 @@
3074
3074
  }
3075
3075
 
3076
3076
  async function loadOpacityUpdater(engine) {
3077
- engine.checkVersion("4.1.1");
3077
+ engine.checkVersion("4.1.2");
3078
3078
  await engine.pluginManager.register(e => {
3079
3079
  e.pluginManager.addParticleUpdater("opacity", container => {
3080
3080
  return Promise.resolve(new OpacityUpdater(container));
@@ -3421,7 +3421,7 @@
3421
3421
  }
3422
3422
 
3423
3423
  async function loadOutModesUpdater(engine) {
3424
- engine.checkVersion("4.1.1");
3424
+ engine.checkVersion("4.1.2");
3425
3425
  await engine.pluginManager.register(e => {
3426
3426
  e.pluginManager.addParticleUpdater("outModes", container => {
3427
3427
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -3492,7 +3492,7 @@
3492
3492
  }
3493
3493
 
3494
3494
  async function loadPaintUpdater(engine) {
3495
- engine.checkVersion("4.1.1");
3495
+ engine.checkVersion("4.1.2");
3496
3496
  await engine.pluginManager.register(e => {
3497
3497
  e.pluginManager.addParticleUpdater("paint", container => {
3498
3498
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -3547,7 +3547,7 @@
3547
3547
  }
3548
3548
 
3549
3549
  async function loadRgbColorPlugin(engine) {
3550
- engine.checkVersion("4.1.1");
3550
+ engine.checkVersion("4.1.2");
3551
3551
  await engine.pluginManager.register(e => {
3552
3552
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
3553
3553
  });
@@ -3646,7 +3646,7 @@
3646
3646
  }
3647
3647
 
3648
3648
  async function loadSizeUpdater(engine) {
3649
- engine.checkVersion("4.1.1");
3649
+ engine.checkVersion("4.1.2");
3650
3650
  await engine.pluginManager.register(e => {
3651
3651
  e.pluginManager.addParticleUpdater("size", container => {
3652
3652
  return Promise.resolve(new SizeUpdater(container));
@@ -3655,7 +3655,7 @@
3655
3655
  }
3656
3656
 
3657
3657
  async function loadBasic(engine) {
3658
- engine.checkVersion("4.1.1");
3658
+ engine.checkVersion("4.1.2");
3659
3659
  await engine.pluginManager.register(async (e) => {
3660
3660
  await Promise.all([
3661
3661
  loadBlendPlugin(e),
@@ -4027,7 +4027,7 @@
4027
4027
  }
4028
4028
 
4029
4029
  async function loadDestroyUpdater(engine) {
4030
- engine.checkVersion("4.1.1");
4030
+ engine.checkVersion("4.1.2");
4031
4031
  await engine.pluginManager.register(e => {
4032
4032
  e.pluginManager.addParticleUpdater("destroy", container => {
4033
4033
  return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
@@ -4303,7 +4303,7 @@
4303
4303
  })(EmitterClickMode || (EmitterClickMode = {}));
4304
4304
 
4305
4305
  async function loadEmittersPluginSimple(engine) {
4306
- engine.checkVersion("4.1.1");
4306
+ engine.checkVersion("4.1.2");
4307
4307
  await engine.pluginManager.register(async (e) => {
4308
4308
  const instancesManager = await getEmittersInstancesManager(e);
4309
4309
  await addEmittersShapesManager(e);
@@ -4378,7 +4378,7 @@
4378
4378
  }
4379
4379
 
4380
4380
  async function loadTrailPlugin(engine) {
4381
- engine.checkVersion("4.1.1");
4381
+ engine.checkVersion("4.1.2");
4382
4382
  await engine.pluginManager.register(e => {
4383
4383
  e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
4384
4384
  });
@@ -4496,8 +4496,8 @@
4496
4496
  }
4497
4497
 
4498
4498
  const globalObject = globalThis;
4499
- globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4500
4499
  globalObject.loadFountainPreset = loadFountainPreset;
4500
+ globalObject.tsParticles = tsParticles;
4501
4501
 
4502
4502
  const fColorIndex = 0, sColorIndex = 1;
4503
4503
  function setTransformValue(factor, newFactor, key) {