@tsparticles/preset-links 4.3.0 → 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.0 */
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) :
@@ -295,6 +295,9 @@
295
295
  })(PixelMode || (PixelMode = {}));
296
296
 
297
297
  const minRadius = 0;
298
+ function isForbiddenKey(key) {
299
+ return key === "__proto__" || key === "constructor" || key === "prototype";
300
+ }
298
301
  function hasMatchMedia() {
299
302
  return typeof matchMedia !== "undefined";
300
303
  }
@@ -370,7 +373,7 @@
370
373
  if (!hasNested) {
371
374
  const sourceDict = source, destDict = destination;
372
375
  for (const key of sourceKeys) {
373
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
376
+ if (isForbiddenKey(key)) {
374
377
  continue;
375
378
  }
376
379
  const v = sourceDict[key];
@@ -381,7 +384,7 @@
381
384
  continue;
382
385
  }
383
386
  for (const key of sourceKeys) {
384
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
387
+ if (isForbiddenKey(key)) {
385
388
  continue;
386
389
  }
387
390
  const sourceDict = source, destDict = destination, value = sourceDict[key];
@@ -797,7 +800,7 @@
797
800
  return this.#domArray;
798
801
  }
799
802
  get version() {
800
- return "4.3.0";
803
+ return "4.3.2";
801
804
  }
802
805
  addEventListener(type, listener) {
803
806
  this.#eventDispatcher.addEventListener(type, listener);
@@ -2158,7 +2161,7 @@
2158
2161
  }
2159
2162
 
2160
2163
  async function loadBlendPlugin(engine) {
2161
- engine.checkVersion("4.3.0");
2164
+ engine.checkVersion("4.3.2");
2162
2165
  await engine.pluginManager.register(e => {
2163
2166
  e.pluginManager.addPlugin(new BlendPlugin());
2164
2167
  });
@@ -2195,7 +2198,7 @@
2195
2198
  }
2196
2199
 
2197
2200
  async function loadCircleShape(engine) {
2198
- engine.checkVersion("4.3.0");
2201
+ engine.checkVersion("4.3.2");
2199
2202
  await engine.pluginManager.register(e => {
2200
2203
  e.pluginManager.addShape(["circle"], () => {
2201
2204
  return Promise.resolve(new CircleDrawer());
@@ -2243,7 +2246,7 @@
2243
2246
  }
2244
2247
 
2245
2248
  async function loadHexColorPlugin(engine) {
2246
- engine.checkVersion("4.3.0");
2249
+ engine.checkVersion("4.3.2");
2247
2250
  await engine.pluginManager.register(e => {
2248
2251
  e.pluginManager.addColorManager("hex", new HexColorManager());
2249
2252
  });
@@ -2296,7 +2299,7 @@
2296
2299
  }
2297
2300
 
2298
2301
  async function loadHslColorPlugin(engine) {
2299
- engine.checkVersion("4.3.0");
2302
+ engine.checkVersion("4.3.2");
2300
2303
  await engine.pluginManager.register(e => {
2301
2304
  e.pluginManager.addColorManager("hsl", new HslColorManager());
2302
2305
  });
@@ -2320,7 +2323,7 @@
2320
2323
  }
2321
2324
 
2322
2325
  async function loadMovePlugin(engine) {
2323
- engine.checkVersion("4.3.0");
2326
+ engine.checkVersion("4.3.2");
2324
2327
  await engine.pluginManager.register(e => {
2325
2328
  const moveEngine = e, movePluginManager = moveEngine.pluginManager;
2326
2329
  movePluginManager.initializers.pathGenerators ??= new Map();
@@ -2530,7 +2533,7 @@
2530
2533
  }
2531
2534
 
2532
2535
  async function loadOpacityUpdater(engine) {
2533
- engine.checkVersion("4.3.0");
2536
+ engine.checkVersion("4.3.2");
2534
2537
  await engine.pluginManager.register(e => {
2535
2538
  e.pluginManager.addParticleUpdater("opacity", container => {
2536
2539
  return Promise.resolve(new OpacityUpdater(container));
@@ -2875,7 +2878,7 @@
2875
2878
  }
2876
2879
 
2877
2880
  async function loadOutModesUpdater(engine) {
2878
- engine.checkVersion("4.3.0");
2881
+ engine.checkVersion("4.3.2");
2879
2882
  await engine.pluginManager.register(e => {
2880
2883
  e.pluginManager.addParticleUpdater("outModes", container => {
2881
2884
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -2946,7 +2949,7 @@
2946
2949
  }
2947
2950
 
2948
2951
  async function loadPaintUpdater(engine) {
2949
- engine.checkVersion("4.3.0");
2952
+ engine.checkVersion("4.3.2");
2950
2953
  await engine.pluginManager.register(e => {
2951
2954
  e.pluginManager.addParticleUpdater("paint", container => {
2952
2955
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -3001,7 +3004,7 @@
3001
3004
  }
3002
3005
 
3003
3006
  async function loadRgbColorPlugin(engine) {
3004
- engine.checkVersion("4.3.0");
3007
+ engine.checkVersion("4.3.2");
3005
3008
  await engine.pluginManager.register(e => {
3006
3009
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
3007
3010
  });
@@ -3086,7 +3089,7 @@
3086
3089
  }
3087
3090
 
3088
3091
  async function loadSizeUpdater(engine) {
3089
- engine.checkVersion("4.3.0");
3092
+ engine.checkVersion("4.3.2");
3090
3093
  await engine.pluginManager.register(e => {
3091
3094
  e.pluginManager.addParticleUpdater("size", container => {
3092
3095
  return Promise.resolve(new SizeUpdater(container));
@@ -3095,7 +3098,7 @@
3095
3098
  }
3096
3099
 
3097
3100
  async function loadBasic(engine) {
3098
- engine.checkVersion("4.3.0");
3101
+ engine.checkVersion("4.3.2");
3099
3102
  await engine.pluginManager.register(async (e) => {
3100
3103
  await Promise.all([
3101
3104
  loadBlendPlugin(e),
@@ -3296,7 +3299,7 @@
3296
3299
  const clickEvent = "click", mouseDownEvent = "pointerdown", mouseUpEvent = "pointerup", mouseLeaveEvent = "pointerleave", mouseMoveEvent = "pointermove", touchStartEvent = "touchstart", touchEndEvent = "touchend", touchMoveEvent = "touchmove", touchCancelEvent = "touchcancel";
3297
3300
 
3298
3301
  async function loadInteractivityPlugin(engine) {
3299
- engine.checkVersion("4.3.0");
3302
+ engine.checkVersion("4.3.2");
3300
3303
  await engine.pluginManager.register(e => {
3301
3304
  const interactivityEngine = e, interactivityPluginManager = interactivityEngine.pluginManager;
3302
3305
  interactivityPluginManager.addPlugin(new InteractivityPlugin(interactivityPluginManager));
@@ -3573,7 +3576,7 @@
3573
3576
  }
3574
3577
 
3575
3578
  async function loadParticlesLinksInteraction(engine) {
3576
- engine.checkVersion("4.3.0");
3579
+ engine.checkVersion("4.3.2");
3577
3580
  await engine.pluginManager.register((e) => {
3578
3581
  const pluginManager = e.pluginManager;
3579
3582
  ensureInteractivityPluginLoaded(e);