@tsparticles/preset-fountain 4.3.1 → 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.1 */
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.1";
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.1");
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.1");
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.1");
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.1");
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.1");
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();
@@ -2483,7 +2486,7 @@
2483
2486
  }
2484
2487
 
2485
2488
  async function loadOpacityUpdater(engine) {
2486
- engine.checkVersion("4.3.1");
2489
+ engine.checkVersion("4.3.2");
2487
2490
  await engine.pluginManager.register(e => {
2488
2491
  e.pluginManager.addParticleUpdater("opacity", container => {
2489
2492
  return Promise.resolve(new OpacityUpdater(container));
@@ -2828,7 +2831,7 @@
2828
2831
  }
2829
2832
 
2830
2833
  async function loadOutModesUpdater(engine) {
2831
- engine.checkVersion("4.3.1");
2834
+ engine.checkVersion("4.3.2");
2832
2835
  await engine.pluginManager.register(e => {
2833
2836
  e.pluginManager.addParticleUpdater("outModes", container => {
2834
2837
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -2899,7 +2902,7 @@
2899
2902
  }
2900
2903
 
2901
2904
  async function loadPaintUpdater(engine) {
2902
- engine.checkVersion("4.3.1");
2905
+ engine.checkVersion("4.3.2");
2903
2906
  await engine.pluginManager.register(e => {
2904
2907
  e.pluginManager.addParticleUpdater("paint", container => {
2905
2908
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -2954,7 +2957,7 @@
2954
2957
  }
2955
2958
 
2956
2959
  async function loadRgbColorPlugin(engine) {
2957
- engine.checkVersion("4.3.1");
2960
+ engine.checkVersion("4.3.2");
2958
2961
  await engine.pluginManager.register(e => {
2959
2962
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
2960
2963
  });
@@ -3039,7 +3042,7 @@
3039
3042
  }
3040
3043
 
3041
3044
  async function loadSizeUpdater(engine) {
3042
- engine.checkVersion("4.3.1");
3045
+ engine.checkVersion("4.3.2");
3043
3046
  await engine.pluginManager.register(e => {
3044
3047
  e.pluginManager.addParticleUpdater("size", container => {
3045
3048
  return Promise.resolve(new SizeUpdater(container));
@@ -3048,7 +3051,7 @@
3048
3051
  }
3049
3052
 
3050
3053
  async function loadBasic(engine) {
3051
- engine.checkVersion("4.3.1");
3054
+ engine.checkVersion("4.3.2");
3052
3055
  await engine.pluginManager.register(async (e) => {
3053
3056
  await Promise.all([
3054
3057
  loadBlendPlugin(e),
@@ -3379,7 +3382,7 @@
3379
3382
  }
3380
3383
 
3381
3384
  async function loadDestroyUpdater(engine) {
3382
- engine.checkVersion("4.3.1");
3385
+ engine.checkVersion("4.3.2");
3383
3386
  await engine.pluginManager.register(e => {
3384
3387
  e.pluginManager.addParticleUpdater("destroy", container => {
3385
3388
  return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
@@ -3593,7 +3596,7 @@
3593
3596
  })(EmitterClickMode || (EmitterClickMode = {}));
3594
3597
 
3595
3598
  async function loadEmittersPluginSimple(engine) {
3596
- engine.checkVersion("4.3.1");
3599
+ engine.checkVersion("4.3.2");
3597
3600
  await engine.pluginManager.register(async (e) => {
3598
3601
  const instancesManager = await getEmittersInstancesManager(e);
3599
3602
  await addEmittersShapesManager(e);
@@ -3657,7 +3660,7 @@
3657
3660
  }
3658
3661
 
3659
3662
  async function loadTrailPlugin(engine) {
3660
- engine.checkVersion("4.3.1");
3663
+ engine.checkVersion("4.3.2");
3661
3664
  await engine.pluginManager.register(e => {
3662
3665
  e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
3663
3666
  });