@tsparticles/basic 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/browser/bundle.js +3 -2
- package/browser/index.js +1 -1
- package/browser/index.lazy.js +1 -1
- package/cjs/bundle.js +3 -2
- package/cjs/index.js +1 -1
- package/cjs/index.lazy.js +1 -1
- package/esm/bundle.js +3 -2
- package/esm/index.js +1 -1
- package/esm/index.lazy.js +1 -1
- package/package.json +12 -12
- package/report.html +1 -1
- package/tsparticles.basic.bundle.js +31 -25
- package/tsparticles.basic.bundle.min.js +1 -1
- package/tsparticles.basic.js +2 -2
- package/tsparticles.basic.min.js +1 -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
|
-
/* tsParticles v4.1.
|
|
2
|
+
/* tsParticles 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) :
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
return this.#domArray;
|
|
1119
1119
|
}
|
|
1120
1120
|
get version() {
|
|
1121
|
-
return "4.1.
|
|
1121
|
+
return "4.1.3";
|
|
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.
|
|
2978
|
+
engine.checkVersion("4.1.3");
|
|
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.
|
|
3015
|
+
engine.checkVersion("4.1.3");
|
|
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.
|
|
3063
|
+
engine.checkVersion("4.1.3");
|
|
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.
|
|
3116
|
+
engine.checkVersion("4.1.3");
|
|
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.
|
|
3140
|
+
engine.checkVersion("4.1.3");
|
|
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.
|
|
3247
|
+
engine.checkVersion("4.1.3");
|
|
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.
|
|
3594
|
+
engine.checkVersion("4.1.3");
|
|
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.
|
|
3665
|
+
engine.checkVersion("4.1.3");
|
|
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.
|
|
3720
|
+
engine.checkVersion("4.1.3");
|
|
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.
|
|
3819
|
+
engine.checkVersion("4.1.3");
|
|
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.
|
|
3828
|
+
engine.checkVersion("4.1.3");
|
|
3829
3829
|
await engine.pluginManager.register(async (e) => {
|
|
3830
3830
|
await Promise.all([
|
|
3831
3831
|
loadBlendPlugin(e),
|
|
@@ -3843,8 +3843,8 @@
|
|
|
3843
3843
|
}
|
|
3844
3844
|
|
|
3845
3845
|
const globalObject = globalThis;
|
|
3846
|
-
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
3847
3846
|
globalObject.loadBasic = loadBasic;
|
|
3847
|
+
globalObject.tsParticles = tsParticles;
|
|
3848
3848
|
|
|
3849
3849
|
const fColorIndex = 0, sColorIndex = 1;
|
|
3850
3850
|
function setTransformValue(factor, newFactor, key) {
|
|
@@ -4762,19 +4762,25 @@
|
|
|
4762
4762
|
this.shape = itemFromSingleOrMultiple(shapeType, this.id, reduceDuplicates);
|
|
4763
4763
|
const effectOptions = particlesOptions.effect, shapeOptions = particlesOptions.shape;
|
|
4764
4764
|
if (overrideOptions) {
|
|
4765
|
-
if (overrideOptions.effect
|
|
4766
|
-
const overrideEffectType = overrideOptions.effect.type
|
|
4767
|
-
if (effect) {
|
|
4768
|
-
|
|
4769
|
-
|
|
4765
|
+
if (overrideOptions.effect) {
|
|
4766
|
+
const overrideEffectType = overrideOptions.effect.type;
|
|
4767
|
+
if (overrideEffectType && overrideEffectType !== this.effect) {
|
|
4768
|
+
const effect = itemFromSingleOrMultiple(overrideEffectType, this.id, reduceDuplicates);
|
|
4769
|
+
if (effect) {
|
|
4770
|
+
this.effect = effect;
|
|
4771
|
+
}
|
|
4770
4772
|
}
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4773
|
+
effectOptions.load(overrideOptions.effect);
|
|
4774
|
+
}
|
|
4775
|
+
if (overrideOptions.shape) {
|
|
4776
|
+
const overrideShapeType = overrideOptions.shape.type;
|
|
4777
|
+
if (overrideShapeType && overrideShapeType !== this.shape) {
|
|
4778
|
+
const shape = itemFromSingleOrMultiple(overrideShapeType, this.id, reduceDuplicates);
|
|
4779
|
+
if (shape) {
|
|
4780
|
+
this.shape = shape;
|
|
4781
|
+
}
|
|
4777
4782
|
}
|
|
4783
|
+
shapeOptions.load(overrideOptions.shape);
|
|
4778
4784
|
}
|
|
4779
4785
|
}
|
|
4780
4786
|
if (this.effect === randomColorValue) {
|