@tsparticles/particles 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.
- package/browser/bundle.js +2 -1
- package/browser/particles.js +2 -2
- package/browser/particles.lazy.js +2 -2
- package/cjs/bundle.js +2 -1
- package/cjs/particles.js +2 -2
- package/cjs/particles.lazy.js +2 -2
- package/esm/bundle.js +2 -1
- package/esm/particles.js +2 -2
- package/esm/particles.lazy.js +2 -2
- package/package.json +6 -6
- package/report.html +1 -1
- package/tsparticles.particles.bundle.js +19 -19
- package/tsparticles.particles.bundle.min.js +1 -1
- package/tsparticles.particles.js +3 -3
- package/tsparticles.particles.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.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.
|
|
1121
|
+
return "4.1.2";
|
|
1122
1122
|
}
|
|
1123
1123
|
addEventListener(type, listener) {
|
|
1124
1124
|
this.#eventDispatcher.addEventListener(type, listener);
|
|
@@ -3034,7 +3034,7 @@
|
|
|
3034
3034
|
}
|
|
3035
3035
|
|
|
3036
3036
|
async function loadBlendPlugin(engine) {
|
|
3037
|
-
engine.checkVersion("4.1.
|
|
3037
|
+
engine.checkVersion("4.1.2");
|
|
3038
3038
|
await engine.pluginManager.register(e => {
|
|
3039
3039
|
e.pluginManager.addPlugin(new BlendPlugin());
|
|
3040
3040
|
});
|
|
@@ -3071,7 +3071,7 @@
|
|
|
3071
3071
|
}
|
|
3072
3072
|
|
|
3073
3073
|
async function loadCircleShape(engine) {
|
|
3074
|
-
engine.checkVersion("4.1.
|
|
3074
|
+
engine.checkVersion("4.1.2");
|
|
3075
3075
|
await engine.pluginManager.register(e => {
|
|
3076
3076
|
e.pluginManager.addShape(["circle"], () => {
|
|
3077
3077
|
return Promise.resolve(new CircleDrawer());
|
|
@@ -3119,7 +3119,7 @@
|
|
|
3119
3119
|
}
|
|
3120
3120
|
|
|
3121
3121
|
async function loadHexColorPlugin(engine) {
|
|
3122
|
-
engine.checkVersion("4.1.
|
|
3122
|
+
engine.checkVersion("4.1.2");
|
|
3123
3123
|
await engine.pluginManager.register(e => {
|
|
3124
3124
|
e.pluginManager.addColorManager("hex", new HexColorManager());
|
|
3125
3125
|
});
|
|
@@ -3172,7 +3172,7 @@
|
|
|
3172
3172
|
}
|
|
3173
3173
|
|
|
3174
3174
|
async function loadHslColorPlugin(engine) {
|
|
3175
|
-
engine.checkVersion("4.1.
|
|
3175
|
+
engine.checkVersion("4.1.2");
|
|
3176
3176
|
await engine.pluginManager.register(e => {
|
|
3177
3177
|
e.pluginManager.addColorManager("hsl", new HslColorManager());
|
|
3178
3178
|
});
|
|
@@ -3196,7 +3196,7 @@
|
|
|
3196
3196
|
}
|
|
3197
3197
|
|
|
3198
3198
|
async function loadMovePlugin(engine) {
|
|
3199
|
-
engine.checkVersion("4.1.
|
|
3199
|
+
engine.checkVersion("4.1.2");
|
|
3200
3200
|
await engine.pluginManager.register(e => {
|
|
3201
3201
|
const moveEngine = e, movePluginManager = moveEngine.pluginManager;
|
|
3202
3202
|
movePluginManager.initializers.pathGenerators ??= new Map();
|
|
@@ -3303,7 +3303,7 @@
|
|
|
3303
3303
|
}
|
|
3304
3304
|
|
|
3305
3305
|
async function loadOpacityUpdater(engine) {
|
|
3306
|
-
engine.checkVersion("4.1.
|
|
3306
|
+
engine.checkVersion("4.1.2");
|
|
3307
3307
|
await engine.pluginManager.register(e => {
|
|
3308
3308
|
e.pluginManager.addParticleUpdater("opacity", container => {
|
|
3309
3309
|
return Promise.resolve(new OpacityUpdater(container));
|
|
@@ -3650,7 +3650,7 @@
|
|
|
3650
3650
|
}
|
|
3651
3651
|
|
|
3652
3652
|
async function loadOutModesUpdater(engine) {
|
|
3653
|
-
engine.checkVersion("4.1.
|
|
3653
|
+
engine.checkVersion("4.1.2");
|
|
3654
3654
|
await engine.pluginManager.register(e => {
|
|
3655
3655
|
e.pluginManager.addParticleUpdater("outModes", container => {
|
|
3656
3656
|
return Promise.resolve(new OutOfCanvasUpdater(container));
|
|
@@ -3721,7 +3721,7 @@
|
|
|
3721
3721
|
}
|
|
3722
3722
|
|
|
3723
3723
|
async function loadPaintUpdater(engine) {
|
|
3724
|
-
engine.checkVersion("4.1.
|
|
3724
|
+
engine.checkVersion("4.1.2");
|
|
3725
3725
|
await engine.pluginManager.register(e => {
|
|
3726
3726
|
e.pluginManager.addParticleUpdater("paint", container => {
|
|
3727
3727
|
return Promise.resolve(new PaintUpdater(e.pluginManager, container));
|
|
@@ -3776,7 +3776,7 @@
|
|
|
3776
3776
|
}
|
|
3777
3777
|
|
|
3778
3778
|
async function loadRgbColorPlugin(engine) {
|
|
3779
|
-
engine.checkVersion("4.1.
|
|
3779
|
+
engine.checkVersion("4.1.2");
|
|
3780
3780
|
await engine.pluginManager.register(e => {
|
|
3781
3781
|
e.pluginManager.addColorManager("rgb", new RgbColorManager());
|
|
3782
3782
|
});
|
|
@@ -3875,7 +3875,7 @@
|
|
|
3875
3875
|
}
|
|
3876
3876
|
|
|
3877
3877
|
async function loadSizeUpdater(engine) {
|
|
3878
|
-
engine.checkVersion("4.1.
|
|
3878
|
+
engine.checkVersion("4.1.2");
|
|
3879
3879
|
await engine.pluginManager.register(e => {
|
|
3880
3880
|
e.pluginManager.addParticleUpdater("size", container => {
|
|
3881
3881
|
return Promise.resolve(new SizeUpdater(container));
|
|
@@ -3884,7 +3884,7 @@
|
|
|
3884
3884
|
}
|
|
3885
3885
|
|
|
3886
3886
|
async function loadBasic(engine) {
|
|
3887
|
-
engine.checkVersion("4.1.
|
|
3887
|
+
engine.checkVersion("4.1.2");
|
|
3888
3888
|
await engine.pluginManager.register(async (e) => {
|
|
3889
3889
|
await Promise.all([
|
|
3890
3890
|
loadBlendPlugin(e),
|
|
@@ -4122,7 +4122,7 @@
|
|
|
4122
4122
|
const clickEvent = "click", mouseDownEvent = "pointerdown", mouseUpEvent = "pointerup", mouseLeaveEvent = "pointerleave", mouseMoveEvent = "pointermove", touchStartEvent = "touchstart", touchEndEvent = "touchend", touchMoveEvent = "touchmove", touchCancelEvent = "touchcancel";
|
|
4123
4123
|
|
|
4124
4124
|
async function loadInteractivityPlugin(engine) {
|
|
4125
|
-
engine.checkVersion("4.1.
|
|
4125
|
+
engine.checkVersion("4.1.2");
|
|
4126
4126
|
await engine.pluginManager.register(e => {
|
|
4127
4127
|
const interactivityEngine = e, interactivityPluginManager = interactivityEngine.pluginManager;
|
|
4128
4128
|
interactivityPluginManager.addPlugin(new InteractivityPlugin(interactivityPluginManager));
|
|
@@ -4386,7 +4386,7 @@
|
|
|
4386
4386
|
}
|
|
4387
4387
|
|
|
4388
4388
|
async function loadParticlesCollisionsInteraction(engine) {
|
|
4389
|
-
engine.checkVersion("4.1.
|
|
4389
|
+
engine.checkVersion("4.1.2");
|
|
4390
4390
|
await engine.pluginManager.register((e) => {
|
|
4391
4391
|
ensureInteractivityPluginLoaded(e);
|
|
4392
4392
|
e.pluginManager.addPlugin(new OverlapPlugin());
|
|
@@ -4689,7 +4689,7 @@
|
|
|
4689
4689
|
}
|
|
4690
4690
|
|
|
4691
4691
|
async function loadParticlesLinksInteraction(engine) {
|
|
4692
|
-
engine.checkVersion("4.1.
|
|
4692
|
+
engine.checkVersion("4.1.2");
|
|
4693
4693
|
await engine.pluginManager.register((e) => {
|
|
4694
4694
|
const pluginManager = e.pluginManager;
|
|
4695
4695
|
ensureInteractivityPluginLoaded(e);
|
|
@@ -4702,7 +4702,7 @@
|
|
|
4702
4702
|
|
|
4703
4703
|
let initPromise = null;
|
|
4704
4704
|
async function doInitPlugins(engine) {
|
|
4705
|
-
engine.checkVersion("4.1.
|
|
4705
|
+
engine.checkVersion("4.1.2");
|
|
4706
4706
|
await engine.pluginManager.register(async (e) => {
|
|
4707
4707
|
const loadParticlesInteractivity = async (e) => {
|
|
4708
4708
|
await loadInteractivityPlugin(e);
|
|
@@ -4745,12 +4745,12 @@
|
|
|
4745
4745
|
particles.init = async () => {
|
|
4746
4746
|
await initPlugins(tsParticles);
|
|
4747
4747
|
};
|
|
4748
|
-
particles.version = "4.1.
|
|
4748
|
+
particles.version = "4.1.2";
|
|
4749
4749
|
globalThis.particles = particles;
|
|
4750
4750
|
|
|
4751
4751
|
const globalObject = globalThis;
|
|
4752
|
-
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4753
4752
|
globalObject.particles = particles;
|
|
4753
|
+
globalObject.tsParticles = tsParticles;
|
|
4754
4754
|
|
|
4755
4755
|
const fColorIndex = 0, sColorIndex = 1;
|
|
4756
4756
|
function setTransformValue(factor, newFactor, key) {
|