@tsparticles/preset-bubbles 4.1.1 → 4.1.3
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.
- package/README.md +1 -1
- package/browser/bundle.js +3 -2
- package/cjs/bundle.js +3 -2
- package/esm/bundle.js +3 -2
- package/package.json +4 -4
- package/report.html +1 -1
- package/tsparticles.preset.bubbles.bundle.js +32 -26
- package/tsparticles.preset.bubbles.bundle.min.js +1 -1
- package/tsparticles.preset.bubbles.js +1 -1
- package/types/bundle.d.ts +2 -1
|
@@ -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.1.
|
|
2
|
+
/* Preset v4.1.3 */
|
|
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) :
|
|
@@ -1012,7 +1012,7 @@
|
|
|
1012
1012
|
return this.#domArray;
|
|
1013
1013
|
}
|
|
1014
1014
|
get version() {
|
|
1015
|
-
return "4.1.
|
|
1015
|
+
return "4.1.3";
|
|
1016
1016
|
}
|
|
1017
1017
|
addEventListener(type, listener) {
|
|
1018
1018
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -2805,7 +2805,7 @@
|
|
|
2805
2805
|
}
|
|
2806
2806
|
|
|
2807
2807
|
async function loadBlendPlugin(engine) {
|
|
2808
|
-
engine.checkVersion("4.1.
|
|
2808
|
+
engine.checkVersion("4.1.3");
|
|
2809
2809
|
await engine.pluginManager.register(e => {
|
|
2810
2810
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
2811
2811
|
});
|
|
@@ -2842,7 +2842,7 @@
|
|
|
2842
2842
|
}
|
|
2843
2843
|
|
|
2844
2844
|
async function loadCircleShape(engine) {
|
|
2845
|
-
engine.checkVersion("4.1.
|
|
2845
|
+
engine.checkVersion("4.1.3");
|
|
2846
2846
|
await engine.pluginManager.register(e => {
|
|
2847
2847
|
e.pluginManager.addShape(["circle"], () => {
|
|
2848
2848
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2890,7 +2890,7 @@
|
|
|
2890
2890
|
}
|
|
2891
2891
|
|
|
2892
2892
|
async function loadHexColorPlugin(engine) {
|
|
2893
|
-
engine.checkVersion("4.1.
|
|
2893
|
+
engine.checkVersion("4.1.3");
|
|
2894
2894
|
await engine.pluginManager.register(e => {
|
|
2895
2895
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2896
2896
|
});
|
|
@@ -2943,7 +2943,7 @@
|
|
|
2943
2943
|
}
|
|
2944
2944
|
|
|
2945
2945
|
async function loadHslColorPlugin(engine) {
|
|
2946
|
-
engine.checkVersion("4.1.
|
|
2946
|
+
engine.checkVersion("4.1.3");
|
|
2947
2947
|
await engine.pluginManager.register(e => {
|
|
2948
2948
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
2949
2949
|
});
|
|
@@ -2967,7 +2967,7 @@
|
|
|
2967
2967
|
}
|
|
2968
2968
|
|
|
2969
2969
|
async function loadMovePlugin(engine) {
|
|
2970
|
-
engine.checkVersion("4.1.
|
|
2970
|
+
engine.checkVersion("4.1.3");
|
|
2971
2971
|
await engine.pluginManager.register(e => {
|
|
2972
2972
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
2973
2973
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3074,7 +3074,7 @@
|
|
|
3074
3074
|
}
|
|
3075
3075
|
|
|
3076
3076
|
async function loadOpacityUpdater(engine) {
|
|
3077
|
-
engine.checkVersion("4.1.
|
|
3077
|
+
engine.checkVersion("4.1.3");
|
|
3078
3078
|
await engine.pluginManager.register(e => {
|
|
3079
3079
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3080
3080
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3421,7 +3421,7 @@
|
|
|
3421
3421
|
}
|
|
3422
3422
|
|
|
3423
3423
|
async function loadOutModesUpdater(engine) {
|
|
3424
|
-
engine.checkVersion("4.1.
|
|
3424
|
+
engine.checkVersion("4.1.3");
|
|
3425
3425
|
await engine.pluginManager.register(e => {
|
|
3426
3426
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3427
3427
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3492,7 +3492,7 @@
|
|
|
3492
3492
|
}
|
|
3493
3493
|
|
|
3494
3494
|
async function loadPaintUpdater(engine) {
|
|
3495
|
-
engine.checkVersion("4.1.
|
|
3495
|
+
engine.checkVersion("4.1.3");
|
|
3496
3496
|
await engine.pluginManager.register(e => {
|
|
3497
3497
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3498
3498
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3547,7 +3547,7 @@
|
|
|
3547
3547
|
}
|
|
3548
3548
|
|
|
3549
3549
|
async function loadRgbColorPlugin(engine) {
|
|
3550
|
-
engine.checkVersion("4.1.
|
|
3550
|
+
engine.checkVersion("4.1.3");
|
|
3551
3551
|
await engine.pluginManager.register(e => {
|
|
3552
3552
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3553
3553
|
});
|
|
@@ -3646,7 +3646,7 @@
|
|
|
3646
3646
|
}
|
|
3647
3647
|
|
|
3648
3648
|
async function loadSizeUpdater(engine) {
|
|
3649
|
-
engine.checkVersion("4.1.
|
|
3649
|
+
engine.checkVersion("4.1.3");
|
|
3650
3650
|
await engine.pluginManager.register(e => {
|
|
3651
3651
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3652
3652
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3655,7 +3655,7 @@
|
|
|
3655
3655
|
}
|
|
3656
3656
|
|
|
3657
3657
|
async function loadBasic(engine) {
|
|
3658
|
-
engine.checkVersion("4.1.
|
|
3658
|
+
engine.checkVersion("4.1.3");
|
|
3659
3659
|
await engine.pluginManager.register(async (e) => {
|
|
3660
3660
|
await Promise.all([
|
|
3661
3661
|
loadBlendPlugin(e),
|
|
@@ -3940,7 +3940,7 @@
|
|
|
3940
3940
|
})(EmitterClickMode || (EmitterClickMode = {}));
|
|
3941
3941
|
|
|
3942
3942
|
async function loadEmittersPluginSimple(engine) {
|
|
3943
|
-
engine.checkVersion("4.1.
|
|
3943
|
+
engine.checkVersion("4.1.3");
|
|
3944
3944
|
await engine.pluginManager.register(async (e) => {
|
|
3945
3945
|
const instancesManager = await getEmittersInstancesManager(e);
|
|
3946
3946
|
await addEmittersShapesManager(e);
|
|
@@ -4014,8 +4014,8 @@
|
|
|
4014
4014
|
}
|
|
4015
4015
|
|
|
4016
4016
|
const globalObject = globalThis;
|
|
4017
|
-
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4018
4017
|
globalObject.loadBubblesPreset = loadBubblesPreset;
|
|
4018
|
+
globalObject.tsParticles = tsParticles;
|
|
4019
4019
|
|
|
4020
4020
|
const fColorIndex = 0, sColorIndex = 1;
|
|
4021
4021
|
function setTransformValue(factor, newFactor, key) {
|
|
@@ -4933,19 +4933,25 @@
|
|
|
4933
4933
|
this.shape = itemFromSingleOrMultiple(shapeType, this.id, reduceDuplicates);
|
|
4934
4934
|
const effectOptions = particlesOptions.effect, shapeOptions = particlesOptions.shape;
|
|
4935
4935
|
if (overrideOptions) {
|
|
4936
|
-
if (overrideOptions.effect
|
|
4937
|
-
const overrideEffectType = overrideOptions.effect.type
|
|
4938
|
-
if (effect) {
|
|
4939
|
-
|
|
4940
|
-
|
|
4936
|
+
if (overrideOptions.effect) {
|
|
4937
|
+
const overrideEffectType = overrideOptions.effect.type;
|
|
4938
|
+
if (overrideEffectType && overrideEffectType !== this.effect) {
|
|
4939
|
+
const effect = itemFromSingleOrMultiple(overrideEffectType, this.id, reduceDuplicates);
|
|
4940
|
+
if (effect) {
|
|
4941
|
+
this.effect = effect;
|
|
4942
|
+
}
|
|
4941
4943
|
}
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4944
|
+
effectOptions.load(overrideOptions.effect);
|
|
4945
|
+
}
|
|
4946
|
+
if (overrideOptions.shape) {
|
|
4947
|
+
const overrideShapeType = overrideOptions.shape.type;
|
|
4948
|
+
if (overrideShapeType && overrideShapeType !== this.shape) {
|
|
4949
|
+
const shape = itemFromSingleOrMultiple(overrideShapeType, this.id, reduceDuplicates);
|
|
4950
|
+
if (shape) {
|
|
4951
|
+
this.shape = shape;
|
|
4952
|
+
}
|
|
4948
4953
|
}
|
|
4954
|
+
shapeOptions.load(overrideOptions.shape);
|
|
4949
4955
|
}
|
|
4950
4956
|
}
|
|
4951
4957
|
if (this.effect === randomColorValue) {
|