@tsparticles/ribbons 4.1.0 → 4.1.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.1.0 */
2
+ /* tsParticles v4.1.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) :
@@ -1118,7 +1118,7 @@
1118
1118
  return this.#domArray;
1119
1119
  }
1120
1120
  get version() {
1121
- return "4.1.0";
1121
+ return "4.1.2";
1122
1122
  }
1123
1123
  addEventListener(type, listener) {
1124
1124
  this.#eventDispatcher.addEventListener(type, listener);
@@ -2975,7 +2975,7 @@
2975
2975
  }
2976
2976
 
2977
2977
  async function loadBlendPlugin(engine) {
2978
- engine.checkVersion("4.1.0");
2978
+ engine.checkVersion("4.1.2");
2979
2979
  await engine.pluginManager.register(e => {
2980
2980
  e.pluginManager.addPlugin(new BlendPlugin());
2981
2981
  });
@@ -3012,7 +3012,7 @@
3012
3012
  }
3013
3013
 
3014
3014
  async function loadCircleShape(engine) {
3015
- engine.checkVersion("4.1.0");
3015
+ engine.checkVersion("4.1.2");
3016
3016
  await engine.pluginManager.register(e => {
3017
3017
  e.pluginManager.addShape(["circle"], () => {
3018
3018
  return Promise.resolve(new CircleDrawer());
@@ -3060,7 +3060,7 @@
3060
3060
  }
3061
3061
 
3062
3062
  async function loadHexColorPlugin(engine) {
3063
- engine.checkVersion("4.1.0");
3063
+ engine.checkVersion("4.1.2");
3064
3064
  await engine.pluginManager.register(e => {
3065
3065
  e.pluginManager.addColorManager("hex", new HexColorManager());
3066
3066
  });
@@ -3113,7 +3113,7 @@
3113
3113
  }
3114
3114
 
3115
3115
  async function loadHslColorPlugin(engine) {
3116
- engine.checkVersion("4.1.0");
3116
+ engine.checkVersion("4.1.2");
3117
3117
  await engine.pluginManager.register(e => {
3118
3118
  e.pluginManager.addColorManager("hsl", new HslColorManager());
3119
3119
  });
@@ -3137,7 +3137,7 @@
3137
3137
  }
3138
3138
 
3139
3139
  async function loadMovePlugin(engine) {
3140
- engine.checkVersion("4.1.0");
3140
+ engine.checkVersion("4.1.2");
3141
3141
  await engine.pluginManager.register(e => {
3142
3142
  const moveEngine = e, movePluginManager = moveEngine.pluginManager;
3143
3143
  movePluginManager.initializers.pathGenerators ??= new Map();
@@ -3244,7 +3244,7 @@
3244
3244
  }
3245
3245
 
3246
3246
  async function loadOpacityUpdater(engine) {
3247
- engine.checkVersion("4.1.0");
3247
+ engine.checkVersion("4.1.2");
3248
3248
  await engine.pluginManager.register(e => {
3249
3249
  e.pluginManager.addParticleUpdater("opacity", container => {
3250
3250
  return Promise.resolve(new OpacityUpdater(container));
@@ -3591,7 +3591,7 @@
3591
3591
  }
3592
3592
 
3593
3593
  async function loadOutModesUpdater(engine) {
3594
- engine.checkVersion("4.1.0");
3594
+ engine.checkVersion("4.1.2");
3595
3595
  await engine.pluginManager.register(e => {
3596
3596
  e.pluginManager.addParticleUpdater("outModes", container => {
3597
3597
  return Promise.resolve(new OutOfCanvasUpdater(container));
@@ -3662,7 +3662,7 @@
3662
3662
  }
3663
3663
 
3664
3664
  async function loadPaintUpdater(engine) {
3665
- engine.checkVersion("4.1.0");
3665
+ engine.checkVersion("4.1.2");
3666
3666
  await engine.pluginManager.register(e => {
3667
3667
  e.pluginManager.addParticleUpdater("paint", container => {
3668
3668
  return Promise.resolve(new PaintUpdater(e.pluginManager, container));
@@ -3717,7 +3717,7 @@
3717
3717
  }
3718
3718
 
3719
3719
  async function loadRgbColorPlugin(engine) {
3720
- engine.checkVersion("4.1.0");
3720
+ engine.checkVersion("4.1.2");
3721
3721
  await engine.pluginManager.register(e => {
3722
3722
  e.pluginManager.addColorManager("rgb", new RgbColorManager());
3723
3723
  });
@@ -3816,7 +3816,7 @@
3816
3816
  }
3817
3817
 
3818
3818
  async function loadSizeUpdater(engine) {
3819
- engine.checkVersion("4.1.0");
3819
+ engine.checkVersion("4.1.2");
3820
3820
  await engine.pluginManager.register(e => {
3821
3821
  e.pluginManager.addParticleUpdater("size", container => {
3822
3822
  return Promise.resolve(new SizeUpdater(container));
@@ -3825,7 +3825,7 @@
3825
3825
  }
3826
3826
 
3827
3827
  async function loadBasic(engine) {
3828
- engine.checkVersion("4.1.0");
3828
+ engine.checkVersion("4.1.2");
3829
3829
  await engine.pluginManager.register(async (e) => {
3830
3830
  await Promise.all([
3831
3831
  loadBlendPlugin(e),
@@ -4127,7 +4127,7 @@
4127
4127
  })(EmitterClickMode || (EmitterClickMode = {}));
4128
4128
 
4129
4129
  async function loadEmittersPluginSimple(engine) {
4130
- engine.checkVersion("4.1.0");
4130
+ engine.checkVersion("4.1.2");
4131
4131
  await engine.pluginManager.register(async (e) => {
4132
4132
  const instancesManager = await getEmittersInstancesManager(e);
4133
4133
  await addEmittersShapesManager(e);
@@ -4215,7 +4215,7 @@
4215
4215
  }
4216
4216
 
4217
4217
  async function loadEmittersShapeSquare(engine) {
4218
- engine.checkVersion("4.1.0");
4218
+ engine.checkVersion("4.1.2");
4219
4219
  await engine.pluginManager.register((e) => {
4220
4220
  ensureEmittersPluginLoaded(e);
4221
4221
  e.pluginManager.addEmitterShapeGenerator?.("square", new EmittersSquareShapeGenerator());
@@ -4381,7 +4381,7 @@
4381
4381
  }
4382
4382
 
4383
4383
  async function loadLifeUpdater(engine) {
4384
- engine.checkVersion("4.1.0");
4384
+ engine.checkVersion("4.1.2");
4385
4385
  await engine.pluginManager.register(e => {
4386
4386
  e.pluginManager.addParticleUpdater("life", container => {
4387
4387
  return Promise.resolve(new LifeUpdater(container));
@@ -4449,7 +4449,7 @@
4449
4449
  }
4450
4450
 
4451
4451
  async function loadMotionPlugin(engine) {
4452
- engine.checkVersion("4.1.0");
4452
+ engine.checkVersion("4.1.2");
4453
4453
  await engine.pluginManager.register(e => {
4454
4454
  e.pluginManager.addPlugin(new MotionPlugin());
4455
4455
  });
@@ -4856,7 +4856,7 @@
4856
4856
  }
4857
4857
 
4858
4858
  async function loadRibbonShape(engine) {
4859
- engine.checkVersion("4.1.0");
4859
+ engine.checkVersion("4.1.2");
4860
4860
  await engine.pluginManager.register(e => {
4861
4861
  e.pluginManager.addShape(["ribbon"], (container) => Promise.resolve(new RibbonDrawer(container.hdr)));
4862
4862
  });
@@ -5197,7 +5197,7 @@
5197
5197
 
5198
5198
  let initPromise = null;
5199
5199
  async function doInitPlugins(engine) {
5200
- engine.checkVersion("4.1.0");
5200
+ engine.checkVersion("4.1.2");
5201
5201
  await engine.pluginManager.register(async (e) => {
5202
5202
  const emittersRegister = async (engine) => {
5203
5203
  await loadEmittersPluginSimple(engine);
@@ -5264,11 +5264,12 @@
5264
5264
  ribbons.init = async () => {
5265
5265
  await initPlugins(tsParticles);
5266
5266
  };
5267
- ribbons.version = "4.1.0";
5267
+ ribbons.version = "4.1.2";
5268
5268
  globalThis.ribbons = ribbons;
5269
5269
 
5270
5270
  const globalObject = globalThis;
5271
5271
  globalObject.ribbons = ribbons;
5272
+ globalObject.tsParticles = tsParticles;
5272
5273
 
5273
5274
  const fColorIndex = 0, sColorIndex = 1;
5274
5275
  function setTransformValue(factor, newFactor, key) {