@tsparticles/preset-fireworks 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) :
@@ -308,6 +308,9 @@
308
308
  })(PixelMode || (PixelMode = {}));
309
309
 
310
310
  const minRadius = 0;
311
+ function isForbiddenKey(key) {
312
+ return key === "__proto__" || key === "constructor" || key === "prototype";
313
+ }
311
314
  function hasMatchMedia() {
312
315
  return typeof matchMedia !== "undefined";
313
316
  }
@@ -383,7 +386,7 @@
383
386
  if (!hasNested) {
384
387
  const sourceDict = source, destDict = destination;
385
388
  for (const key of sourceKeys) {
386
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
389
+ if (isForbiddenKey(key)) {
387
390
  continue;
388
391
  }
389
392
  const v = sourceDict[key];
@@ -394,7 +397,7 @@
394
397
  continue;
395
398
  }
396
399
  for (const key of sourceKeys) {
397
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
400
+ if (isForbiddenKey(key)) {
398
401
  continue;
399
402
  }
400
403
  const sourceDict = source, destDict = destination, value = sourceDict[key];
@@ -810,7 +813,7 @@
810
813
  return this.#domArray;
811
814
  }
812
815
  get version() {
813
- return "4.3.1";
816
+ return "4.3.2";
814
817
  }
815
818
  addEventListener(type, listener) {
816
819
  this.#eventDispatcher.addEventListener(type, listener);
@@ -2370,7 +2373,7 @@
2370
2373
  }
2371
2374
 
2372
2375
  async function loadBlendPlugin(engine) {
2373
- engine.checkVersion("4.3.1");
2376
+ engine.checkVersion("4.3.2");
2374
2377
  await engine.pluginManager.register(e => {
2375
2378
  e.pluginManager.addPlugin(new BlendPlugin());
2376
2379
  });
@@ -2407,7 +2410,7 @@
2407
2410
  }
2408
2411
 
2409
2412
  async function loadCircleShape(engine) {
2410
- engine.checkVersion("4.3.1");
2413
+ engine.checkVersion("4.3.2");
2411
2414
  await engine.pluginManager.register(e => {
2412
2415
  e.pluginManager.addShape(["circle"], () => {
2413
2416
  return Promise.resolve(new CircleDrawer());
@@ -2455,7 +2458,7 @@
2455
2458
  }
2456
2459
 
2457
2460
  async function loadHexColorPlugin(engine) {
2458
- engine.checkVersion("4.3.1");
2461
+ engine.checkVersion("4.3.2");
2459
2462
  await engine.pluginManager.register(e => {
2460
2463
  e.pluginManager.addColorManager("hex", new HexColorManager());
2461
2464
  });
@@ -2508,7 +2511,7 @@
2508
2511
  }
2509
2512
 
2510
2513
  async function loadHslColorPlugin(engine) {
2511
- engine.checkVersion("4.3.1");
2514
+ engine.checkVersion("4.3.2");
2512
2515
  await engine.pluginManager.register(e => {
2513
2516
  e.pluginManager.addColorManager("hsl", new HslColorManager());
2514
2517
  });
@@ -2532,7 +2535,7 @@
2532
2535
  }
2533
2536
 
2534
2537
  async function loadMovePlugin(engine) {
2535
- engine.checkVersion("4.3.1");
2538
+ engine.checkVersion("4.3.2");
2536
2539
  await engine.pluginManager.register(e => {
2537
2540
  const moveEngine = e, movePluginManager = moveEngine.pluginManager;
2538
2541
  movePluginManager.initializers.pathGenerators ??= new Map();
@@ -2748,7 +2751,7 @@
2748
2751
  }
2749
2752
 
2750
2753
  async function loadOpacityUpdater(engine) {
2751
- engine.checkVersion("4.3.1");
2754
+ engine.checkVersion("4.3.2");
2752
2755
  await engine.pluginManager.register(e => {
2753
2756
  e.pluginManager.addParticleUpdater("opacity", container => {
2754
2757
  return Promise.resolve(new OpacityUpdater(container));
@@ -3093,7 +3096,7 @@
3093
3096
  }
3094
3097
 
3095
3098
  async function loadOutModesUpdater(engine) {
3096
- engine.checkVersion("4.3.1");
3099
+ engine.checkVersion("4.3.2");
3097
3100
  await engine.pluginManager.register(e => {
3098
3101
  e.pluginManager.addParticleUpdater("outModes", container => {
3099
3102
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -3164,7 +3167,7 @@
3164
3167
  }
3165
3168
 
3166
3169
  async function loadPaintUpdater(engine) {
3167
- engine.checkVersion("4.3.1");
3170
+ engine.checkVersion("4.3.2");
3168
3171
  await engine.pluginManager.register(e => {
3169
3172
  e.pluginManager.addParticleUpdater("paint", container => {
3170
3173
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -3219,7 +3222,7 @@
3219
3222
  }
3220
3223
 
3221
3224
  async function loadRgbColorPlugin(engine) {
3222
- engine.checkVersion("4.3.1");
3225
+ engine.checkVersion("4.3.2");
3223
3226
  await engine.pluginManager.register(e => {
3224
3227
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
3225
3228
  });
@@ -3304,7 +3307,7 @@
3304
3307
  }
3305
3308
 
3306
3309
  async function loadSizeUpdater(engine) {
3307
- engine.checkVersion("4.3.1");
3310
+ engine.checkVersion("4.3.2");
3308
3311
  await engine.pluginManager.register(e => {
3309
3312
  e.pluginManager.addParticleUpdater("size", container => {
3310
3313
  return Promise.resolve(new SizeUpdater(container));
@@ -3313,7 +3316,7 @@
3313
3316
  }
3314
3317
 
3315
3318
  async function loadBasic(engine) {
3316
- engine.checkVersion("4.3.1");
3319
+ engine.checkVersion("4.3.2");
3317
3320
  await engine.pluginManager.register(async (e) => {
3318
3321
  await Promise.all([
3319
3322
  loadBlendPlugin(e),
@@ -3644,7 +3647,7 @@
3644
3647
  }
3645
3648
 
3646
3649
  async function loadDestroyUpdater(engine) {
3647
- engine.checkVersion("4.3.1");
3650
+ engine.checkVersion("4.3.2");
3648
3651
  await engine.pluginManager.register(e => {
3649
3652
  e.pluginManager.addParticleUpdater("destroy", container => {
3650
3653
  return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
@@ -3875,7 +3878,7 @@
3875
3878
  })(EmitterClickMode || (EmitterClickMode = {}));
3876
3879
 
3877
3880
  async function loadEmittersPluginSimple(engine) {
3878
- engine.checkVersion("4.3.1");
3881
+ engine.checkVersion("4.3.2");
3879
3882
  await engine.pluginManager.register(async (e) => {
3880
3883
  const instancesManager = await getEmittersInstancesManager(e);
3881
3884
  await addEmittersShapesManager(e);
@@ -3963,7 +3966,7 @@
3963
3966
  }
3964
3967
 
3965
3968
  async function loadEmittersShapeSquare(engine) {
3966
- engine.checkVersion("4.3.1");
3969
+ engine.checkVersion("4.3.2");
3967
3970
  await engine.pluginManager.register((e) => {
3968
3971
  ensureEmittersPluginLoaded(e);
3969
3972
  e.pluginManager.addEmitterShapeGenerator?.("square", new EmittersSquareShapeGenerator());
@@ -4107,7 +4110,7 @@
4107
4110
  }
4108
4111
 
4109
4112
  async function loadLifeUpdater(engine) {
4110
- engine.checkVersion("4.3.1");
4113
+ engine.checkVersion("4.3.2");
4111
4114
  await engine.pluginManager.register(e => {
4112
4115
  e.pluginManager.addParticleUpdater("life", container => {
4113
4116
  return Promise.resolve(new LifeUpdater(container));
@@ -4133,7 +4136,7 @@
4133
4136
  }
4134
4137
 
4135
4138
  async function loadLineShape(engine) {
4136
- engine.checkVersion("4.3.1");
4139
+ engine.checkVersion("4.3.2");
4137
4140
  await engine.pluginManager.register(e => {
4138
4141
  e.pluginManager.addShape(["line"], () => Promise.resolve(new LineDrawer()));
4139
4142
  });
@@ -4237,7 +4240,7 @@
4237
4240
  }
4238
4241
 
4239
4242
  async function loadRotateUpdater(engine) {
4240
- engine.checkVersion("4.3.1");
4243
+ engine.checkVersion("4.3.2");
4241
4244
  await engine.pluginManager.register(e => {
4242
4245
  e.pluginManager.addParticleUpdater("rotate", container => {
4243
4246
  return Promise.resolve(new RotateUpdater(container));
@@ -4553,7 +4556,7 @@
4553
4556
  }
4554
4557
 
4555
4558
  async function loadSoundsPlugin(engine) {
4556
- engine.checkVersion("4.3.1");
4559
+ engine.checkVersion("4.3.2");
4557
4560
  await engine.pluginManager.register(e => {
4558
4561
  e.pluginManager.addPlugin(new SoundsPlugin(e));
4559
4562
  });
@@ -4669,7 +4672,7 @@
4669
4672
  }
4670
4673
 
4671
4674
  async function loadTrailEffect(engine) {
4672
- engine.checkVersion("4.3.1");
4675
+ engine.checkVersion("4.3.2");
4673
4676
  await engine.pluginManager.register(e => {
4674
4677
  e.pluginManager.addEffect("trail", container => {
4675
4678
  return Promise.resolve(new TrailDrawer(container));