@tsparticles/preset-hyperspace 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) :
@@ -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.0";
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.0");
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.0");
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.0");
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.0");
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.0");
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.0");
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.0");
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.0");
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.0");
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.0");
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.0");
3054
+ engine.checkVersion("4.3.2");
3052
3055
  await engine.pluginManager.register(async (e) => {
3053
3056
  await Promise.all([
3054
3057
  loadBlendPlugin(e),
@@ -3288,7 +3291,7 @@
3288
3291
  })(EmitterClickMode || (EmitterClickMode = {}));
3289
3292
 
3290
3293
  async function loadEmittersPluginSimple(engine) {
3291
- engine.checkVersion("4.3.0");
3294
+ engine.checkVersion("4.3.2");
3292
3295
  await engine.pluginManager.register(async (e) => {
3293
3296
  const instancesManager = await getEmittersInstancesManager(e);
3294
3297
  await addEmittersShapesManager(e);
@@ -3376,7 +3379,7 @@
3376
3379
  }
3377
3380
 
3378
3381
  async function loadEmittersShapeSquare(engine) {
3379
- engine.checkVersion("4.3.0");
3382
+ engine.checkVersion("4.3.2");
3380
3383
  await engine.pluginManager.register((e) => {
3381
3384
  ensureEmittersPluginLoaded(e);
3382
3385
  e.pluginManager.addEmitterShapeGenerator?.("square", new EmittersSquareShapeGenerator());
@@ -3520,7 +3523,7 @@
3520
3523
  }
3521
3524
 
3522
3525
  async function loadLifeUpdater(engine) {
3523
- engine.checkVersion("4.3.0");
3526
+ engine.checkVersion("4.3.2");
3524
3527
  await engine.pluginManager.register(e => {
3525
3528
  e.pluginManager.addParticleUpdater("life", container => {
3526
3529
  return Promise.resolve(new LifeUpdater(container));
@@ -3584,7 +3587,7 @@
3584
3587
  }
3585
3588
 
3586
3589
  async function loadTrailPlugin(engine) {
3587
- engine.checkVersion("4.3.0");
3590
+ engine.checkVersion("4.3.2");
3588
3591
  await engine.pluginManager.register(e => {
3589
3592
  e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
3590
3593
  });