@tsparticles/preset-matrix 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/cjs/bundle.js +3 -2
- package/esm/bundle.js +3 -2
- package/package.json +7 -7
- package/report.html +1 -1
- package/tsparticles.preset.matrix.bundle.js +35 -29
- package/tsparticles.preset.matrix.bundle.min.js +1 -1
- package/tsparticles.preset.matrix.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) :
|
|
@@ -996,7 +996,7 @@
|
|
|
996
996
|
return this.#domArray;
|
|
997
997
|
}
|
|
998
998
|
get version() {
|
|
999
|
-
return "4.1.
|
|
999
|
+
return "4.1.3";
|
|
1000
1000
|
}
|
|
1001
1001
|
addEventListener(type, listener) {
|
|
1002
1002
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -2789,7 +2789,7 @@
|
|
|
2789
2789
|
}
|
|
2790
2790
|
|
|
2791
2791
|
async function loadBlendPlugin(engine) {
|
|
2792
|
-
engine.checkVersion("4.1.
|
|
2792
|
+
engine.checkVersion("4.1.3");
|
|
2793
2793
|
await engine.pluginManager.register(e => {
|
|
2794
2794
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
2795
2795
|
});
|
|
@@ -2826,7 +2826,7 @@
|
|
|
2826
2826
|
}
|
|
2827
2827
|
|
|
2828
2828
|
async function loadCircleShape(engine) {
|
|
2829
|
-
engine.checkVersion("4.1.
|
|
2829
|
+
engine.checkVersion("4.1.3");
|
|
2830
2830
|
await engine.pluginManager.register(e => {
|
|
2831
2831
|
e.pluginManager.addShape(["circle"], () => {
|
|
2832
2832
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -2874,7 +2874,7 @@
|
|
|
2874
2874
|
}
|
|
2875
2875
|
|
|
2876
2876
|
async function loadHexColorPlugin(engine) {
|
|
2877
|
-
engine.checkVersion("4.1.
|
|
2877
|
+
engine.checkVersion("4.1.3");
|
|
2878
2878
|
await engine.pluginManager.register(e => {
|
|
2879
2879
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
2880
2880
|
});
|
|
@@ -2927,7 +2927,7 @@
|
|
|
2927
2927
|
}
|
|
2928
2928
|
|
|
2929
2929
|
async function loadHslColorPlugin(engine) {
|
|
2930
|
-
engine.checkVersion("4.1.
|
|
2930
|
+
engine.checkVersion("4.1.3");
|
|
2931
2931
|
await engine.pluginManager.register(e => {
|
|
2932
2932
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
2933
2933
|
});
|
|
@@ -2951,7 +2951,7 @@
|
|
|
2951
2951
|
}
|
|
2952
2952
|
|
|
2953
2953
|
async function loadMovePlugin(engine) {
|
|
2954
|
-
engine.checkVersion("4.1.
|
|
2954
|
+
engine.checkVersion("4.1.3");
|
|
2955
2955
|
await engine.pluginManager.register(e => {
|
|
2956
2956
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
2957
2957
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3058,7 +3058,7 @@
|
|
|
3058
3058
|
}
|
|
3059
3059
|
|
|
3060
3060
|
async function loadOpacityUpdater(engine) {
|
|
3061
|
-
engine.checkVersion("4.1.
|
|
3061
|
+
engine.checkVersion("4.1.3");
|
|
3062
3062
|
await engine.pluginManager.register(e => {
|
|
3063
3063
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3064
3064
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3405,7 +3405,7 @@
|
|
|
3405
3405
|
}
|
|
3406
3406
|
|
|
3407
3407
|
async function loadOutModesUpdater(engine) {
|
|
3408
|
-
engine.checkVersion("4.1.
|
|
3408
|
+
engine.checkVersion("4.1.3");
|
|
3409
3409
|
await engine.pluginManager.register(e => {
|
|
3410
3410
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3411
3411
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3476,7 +3476,7 @@
|
|
|
3476
3476
|
}
|
|
3477
3477
|
|
|
3478
3478
|
async function loadPaintUpdater(engine) {
|
|
3479
|
-
engine.checkVersion("4.1.
|
|
3479
|
+
engine.checkVersion("4.1.3");
|
|
3480
3480
|
await engine.pluginManager.register(e => {
|
|
3481
3481
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3482
3482
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3531,7 +3531,7 @@
|
|
|
3531
3531
|
}
|
|
3532
3532
|
|
|
3533
3533
|
async function loadRgbColorPlugin(engine) {
|
|
3534
|
-
engine.checkVersion("4.1.
|
|
3534
|
+
engine.checkVersion("4.1.3");
|
|
3535
3535
|
await engine.pluginManager.register(e => {
|
|
3536
3536
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3537
3537
|
});
|
|
@@ -3630,7 +3630,7 @@
|
|
|
3630
3630
|
}
|
|
3631
3631
|
|
|
3632
3632
|
async function loadSizeUpdater(engine) {
|
|
3633
|
-
engine.checkVersion("4.1.
|
|
3633
|
+
engine.checkVersion("4.1.3");
|
|
3634
3634
|
await engine.pluginManager.register(e => {
|
|
3635
3635
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3636
3636
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3639,7 +3639,7 @@
|
|
|
3639
3639
|
}
|
|
3640
3640
|
|
|
3641
3641
|
async function loadBasic(engine) {
|
|
3642
|
-
engine.checkVersion("4.1.
|
|
3642
|
+
engine.checkVersion("4.1.3");
|
|
3643
3643
|
await engine.pluginManager.register(async (e) => {
|
|
3644
3644
|
await Promise.all([
|
|
3645
3645
|
loadBlendPlugin(e),
|
|
@@ -3871,7 +3871,7 @@
|
|
|
3871
3871
|
}
|
|
3872
3872
|
|
|
3873
3873
|
async function loadMatrixShape(engine) {
|
|
3874
|
-
engine.checkVersion("4.1.
|
|
3874
|
+
engine.checkVersion("4.1.3");
|
|
3875
3875
|
await engine.pluginManager.register(e => {
|
|
3876
3876
|
e.pluginManager.addShape(["matrix"], () => Promise.resolve(new MatrixDrawer()));
|
|
3877
3877
|
});
|
|
@@ -3931,7 +3931,7 @@
|
|
|
3931
3931
|
}
|
|
3932
3932
|
|
|
3933
3933
|
async function loadPoissonDiscPlugin(engine) {
|
|
3934
|
-
engine.checkVersion("4.1.
|
|
3934
|
+
engine.checkVersion("4.1.3");
|
|
3935
3935
|
await engine.pluginManager.register(e => {
|
|
3936
3936
|
e.pluginManager.addPlugin(new PoissonDiscPlugin());
|
|
3937
3937
|
});
|
|
@@ -3969,7 +3969,7 @@
|
|
|
3969
3969
|
}
|
|
3970
3970
|
|
|
3971
3971
|
async function loadShadowEffect(engine) {
|
|
3972
|
-
engine.checkVersion("4.1.
|
|
3972
|
+
engine.checkVersion("4.1.3");
|
|
3973
3973
|
await engine.pluginManager.register(e => {
|
|
3974
3974
|
e.pluginManager.addEffect("shadow", container => {
|
|
3975
3975
|
return Promise.resolve(new ShadowDrawer(e.pluginManager, container));
|
|
@@ -4044,7 +4044,7 @@
|
|
|
4044
4044
|
}
|
|
4045
4045
|
|
|
4046
4046
|
async function loadTrailPlugin(engine) {
|
|
4047
|
-
engine.checkVersion("4.1.
|
|
4047
|
+
engine.checkVersion("4.1.3");
|
|
4048
4048
|
await engine.pluginManager.register(e => {
|
|
4049
4049
|
e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
|
|
4050
4050
|
});
|
|
@@ -4143,8 +4143,8 @@
|
|
|
4143
4143
|
}
|
|
4144
4144
|
|
|
4145
4145
|
const globalObject = globalThis;
|
|
4146
|
-
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4147
4146
|
globalObject.loadMatrixPreset = loadMatrixPreset;
|
|
4147
|
+
globalObject.tsParticles = tsParticles;
|
|
4148
4148
|
|
|
4149
4149
|
const fColorIndex = 0, sColorIndex = 1;
|
|
4150
4150
|
function setTransformValue(factor, newFactor, key) {
|
|
@@ -5062,19 +5062,25 @@
|
|
|
5062
5062
|
this.shape = itemFromSingleOrMultiple(shapeType, this.id, reduceDuplicates);
|
|
5063
5063
|
const effectOptions = particlesOptions.effect, shapeOptions = particlesOptions.shape;
|
|
5064
5064
|
if (overrideOptions) {
|
|
5065
|
-
if (overrideOptions.effect
|
|
5066
|
-
const overrideEffectType = overrideOptions.effect.type
|
|
5067
|
-
if (effect) {
|
|
5068
|
-
|
|
5069
|
-
|
|
5065
|
+
if (overrideOptions.effect) {
|
|
5066
|
+
const overrideEffectType = overrideOptions.effect.type;
|
|
5067
|
+
if (overrideEffectType && overrideEffectType !== this.effect) {
|
|
5068
|
+
const effect = itemFromSingleOrMultiple(overrideEffectType, this.id, reduceDuplicates);
|
|
5069
|
+
if (effect) {
|
|
5070
|
+
this.effect = effect;
|
|
5071
|
+
}
|
|
5070
5072
|
}
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5073
|
+
effectOptions.load(overrideOptions.effect);
|
|
5074
|
+
}
|
|
5075
|
+
if (overrideOptions.shape) {
|
|
5076
|
+
const overrideShapeType = overrideOptions.shape.type;
|
|
5077
|
+
if (overrideShapeType && overrideShapeType !== this.shape) {
|
|
5078
|
+
const shape = itemFromSingleOrMultiple(overrideShapeType, this.id, reduceDuplicates);
|
|
5079
|
+
if (shape) {
|
|
5080
|
+
this.shape = shape;
|
|
5081
|
+
}
|
|
5077
5082
|
}
|
|
5083
|
+
shapeOptions.load(overrideOptions.shape);
|
|
5078
5084
|
}
|
|
5079
5085
|
}
|
|
5080
5086
|
if (this.effect === randomColorValue) {
|