@tsparticles/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
- /* tsParticles v4.3.1 */
2
+ /* tsParticles 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) :
@@ -332,6 +332,9 @@
332
332
  })(exports.PixelMode || (exports.PixelMode = {}));
333
333
 
334
334
  const minRadius = 0;
335
+ function isForbiddenKey(key) {
336
+ return key === "__proto__" || key === "constructor" || key === "prototype";
337
+ }
335
338
  function hasMatchMedia() {
336
339
  return typeof matchMedia !== "undefined";
337
340
  }
@@ -407,7 +410,7 @@
407
410
  if (!hasNested) {
408
411
  const sourceDict = source, destDict = destination;
409
412
  for (const key of sourceKeys) {
410
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
413
+ if (isForbiddenKey(key)) {
411
414
  continue;
412
415
  }
413
416
  const v = sourceDict[key];
@@ -418,7 +421,7 @@
418
421
  continue;
419
422
  }
420
423
  for (const key of sourceKeys) {
421
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
424
+ if (isForbiddenKey(key)) {
422
425
  continue;
423
426
  }
424
427
  const sourceDict = source, destDict = destination, value = sourceDict[key];
@@ -877,7 +880,7 @@
877
880
  return this.#domArray;
878
881
  }
879
882
  get version() {
880
- return "4.3.1";
883
+ return "4.3.2";
881
884
  }
882
885
  addEventListener(type, listener) {
883
886
  this.#eventDispatcher.addEventListener(type, listener);
@@ -1160,7 +1163,12 @@
1160
1163
  }
1161
1164
  function loadExtendProperty(obj, key, value) {
1162
1165
  if (value !== undefined) {
1163
- obj[key] = deepExtend(obj[key] ?? {}, value);
1166
+ const keyStr = key;
1167
+ if (keyStr === "__proto__" || keyStr === "constructor" || keyStr === "prototype") {
1168
+ return;
1169
+ }
1170
+ const objRecord = obj, currentValue = Object.prototype.hasOwnProperty.call(objRecord, keyStr) ? objRecord[keyStr] : {};
1171
+ objRecord[keyStr] = deepExtend(currentValue, value);
1164
1172
  }
1165
1173
  }
1166
1174
  function loadOptionProperty(obj, key, optionClass, ...sources) {
@@ -2546,7 +2554,7 @@
2546
2554
  }
2547
2555
 
2548
2556
  async function loadBlendPlugin(engine) {
2549
- engine.checkVersion("4.3.1");
2557
+ engine.checkVersion("4.3.2");
2550
2558
  await engine.pluginManager.register(e => {
2551
2559
  e.pluginManager.addPlugin(new BlendPlugin());
2552
2560
  });
@@ -2583,7 +2591,7 @@
2583
2591
  }
2584
2592
 
2585
2593
  async function loadCircleShape(engine) {
2586
- engine.checkVersion("4.3.1");
2594
+ engine.checkVersion("4.3.2");
2587
2595
  await engine.pluginManager.register(e => {
2588
2596
  e.pluginManager.addShape(["circle"], () => {
2589
2597
  return Promise.resolve(new CircleDrawer());
@@ -2631,7 +2639,7 @@
2631
2639
  }
2632
2640
 
2633
2641
  async function loadHexColorPlugin(engine) {
2634
- engine.checkVersion("4.3.1");
2642
+ engine.checkVersion("4.3.2");
2635
2643
  await engine.pluginManager.register(e => {
2636
2644
  e.pluginManager.addColorManager("hex", new HexColorManager());
2637
2645
  });
@@ -2684,7 +2692,7 @@
2684
2692
  }
2685
2693
 
2686
2694
  async function loadHslColorPlugin(engine) {
2687
- engine.checkVersion("4.3.1");
2695
+ engine.checkVersion("4.3.2");
2688
2696
  await engine.pluginManager.register(e => {
2689
2697
  e.pluginManager.addColorManager("hsl", new HslColorManager());
2690
2698
  });
@@ -2708,7 +2716,7 @@
2708
2716
  }
2709
2717
 
2710
2718
  async function loadMovePlugin(engine) {
2711
- engine.checkVersion("4.3.1");
2719
+ engine.checkVersion("4.3.2");
2712
2720
  await engine.pluginManager.register(e => {
2713
2721
  const moveEngine = e, movePluginManager = moveEngine.pluginManager;
2714
2722
  movePluginManager.initializers.pathGenerators ??= new Map();
@@ -2924,7 +2932,7 @@
2924
2932
  }
2925
2933
 
2926
2934
  async function loadOpacityUpdater(engine) {
2927
- engine.checkVersion("4.3.1");
2935
+ engine.checkVersion("4.3.2");
2928
2936
  await engine.pluginManager.register(e => {
2929
2937
  e.pluginManager.addParticleUpdater("opacity", container => {
2930
2938
  return Promise.resolve(new OpacityUpdater(container));
@@ -3269,7 +3277,7 @@
3269
3277
  }
3270
3278
 
3271
3279
  async function loadOutModesUpdater(engine) {
3272
- engine.checkVersion("4.3.1");
3280
+ engine.checkVersion("4.3.2");
3273
3281
  await engine.pluginManager.register(e => {
3274
3282
  e.pluginManager.addParticleUpdater("outModes", container => {
3275
3283
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -3340,7 +3348,7 @@
3340
3348
  }
3341
3349
 
3342
3350
  async function loadPaintUpdater(engine) {
3343
- engine.checkVersion("4.3.1");
3351
+ engine.checkVersion("4.3.2");
3344
3352
  await engine.pluginManager.register(e => {
3345
3353
  e.pluginManager.addParticleUpdater("paint", container => {
3346
3354
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -3395,7 +3403,7 @@
3395
3403
  }
3396
3404
 
3397
3405
  async function loadRgbColorPlugin(engine) {
3398
- engine.checkVersion("4.3.1");
3406
+ engine.checkVersion("4.3.2");
3399
3407
  await engine.pluginManager.register(e => {
3400
3408
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
3401
3409
  });
@@ -3480,7 +3488,7 @@
3480
3488
  }
3481
3489
 
3482
3490
  async function loadSizeUpdater(engine) {
3483
- engine.checkVersion("4.3.1");
3491
+ engine.checkVersion("4.3.2");
3484
3492
  await engine.pluginManager.register(e => {
3485
3493
  e.pluginManager.addParticleUpdater("size", container => {
3486
3494
  return Promise.resolve(new SizeUpdater(container));
@@ -3489,7 +3497,7 @@
3489
3497
  }
3490
3498
 
3491
3499
  async function loadBasic(engine) {
3492
- engine.checkVersion("4.3.1");
3500
+ engine.checkVersion("4.3.2");
3493
3501
  await engine.pluginManager.register(async (e) => {
3494
3502
  await Promise.all([
3495
3503
  loadBlendPlugin(e),
@@ -3820,7 +3828,7 @@
3820
3828
  }
3821
3829
 
3822
3830
  async function loadDestroyUpdater(engine) {
3823
- engine.checkVersion("4.3.1");
3831
+ engine.checkVersion("4.3.2");
3824
3832
  await engine.pluginManager.register(e => {
3825
3833
  e.pluginManager.addParticleUpdater("destroy", container => {
3826
3834
  return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
@@ -4051,7 +4059,7 @@
4051
4059
  })(EmitterClickMode || (EmitterClickMode = {}));
4052
4060
 
4053
4061
  async function loadEmittersPluginSimple(engine) {
4054
- engine.checkVersion("4.3.1");
4062
+ engine.checkVersion("4.3.2");
4055
4063
  await engine.pluginManager.register(async (e) => {
4056
4064
  const instancesManager = await getEmittersInstancesManager(e);
4057
4065
  await addEmittersShapesManager(e);
@@ -4139,7 +4147,7 @@
4139
4147
  }
4140
4148
 
4141
4149
  async function loadEmittersShapeSquare(engine) {
4142
- engine.checkVersion("4.3.1");
4150
+ engine.checkVersion("4.3.2");
4143
4151
  await engine.pluginManager.register((e) => {
4144
4152
  ensureEmittersPluginLoaded(e);
4145
4153
  e.pluginManager.addEmitterShapeGenerator?.("square", new EmittersSquareShapeGenerator());
@@ -4283,7 +4291,7 @@
4283
4291
  }
4284
4292
 
4285
4293
  async function loadLifeUpdater(engine) {
4286
- engine.checkVersion("4.3.1");
4294
+ engine.checkVersion("4.3.2");
4287
4295
  await engine.pluginManager.register(e => {
4288
4296
  e.pluginManager.addParticleUpdater("life", container => {
4289
4297
  return Promise.resolve(new LifeUpdater(container));
@@ -4309,7 +4317,7 @@
4309
4317
  }
4310
4318
 
4311
4319
  async function loadLineShape(engine) {
4312
- engine.checkVersion("4.3.1");
4320
+ engine.checkVersion("4.3.2");
4313
4321
  await engine.pluginManager.register(e => {
4314
4322
  e.pluginManager.addShape(["line"], () => Promise.resolve(new LineDrawer()));
4315
4323
  });
@@ -4413,7 +4421,7 @@
4413
4421
  }
4414
4422
 
4415
4423
  async function loadRotateUpdater(engine) {
4416
- engine.checkVersion("4.3.1");
4424
+ engine.checkVersion("4.3.2");
4417
4425
  await engine.pluginManager.register(e => {
4418
4426
  e.pluginManager.addParticleUpdater("rotate", container => {
4419
4427
  return Promise.resolve(new RotateUpdater(container));
@@ -4729,7 +4737,7 @@
4729
4737
  }
4730
4738
 
4731
4739
  async function loadSoundsPlugin(engine) {
4732
- engine.checkVersion("4.3.1");
4740
+ engine.checkVersion("4.3.2");
4733
4741
  await engine.pluginManager.register(e => {
4734
4742
  e.pluginManager.addPlugin(new SoundsPlugin(e));
4735
4743
  });
@@ -4737,7 +4745,7 @@
4737
4745
 
4738
4746
  let initPromise = null;
4739
4747
  async function doInitPlugins(engine) {
4740
- engine.checkVersion("4.3.1");
4748
+ engine.checkVersion("4.3.2");
4741
4749
  await engine.pluginManager.register(async (e) => {
4742
4750
  const loadEmittersForFireworks = async (e) => {
4743
4751
  await loadEmittersPluginSimple(e);
@@ -4784,7 +4792,7 @@
4784
4792
  fireworks.init = async () => {
4785
4793
  await initPlugins(tsParticles);
4786
4794
  };
4787
- fireworks.version = "4.3.1";
4795
+ fireworks.version = "4.3.2";
4788
4796
  globalThis.fireworks = fireworks;
4789
4797
 
4790
4798
  const globalObject = globalThis;