@tsparticles/particles 4.3.2 → 4.5.0
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 -2
- package/browser/particles.js +2 -2
- package/browser/particles.lazy.js +2 -2
- package/cjs/bundle.js +2 -2
- package/cjs/particles.js +2 -2
- package/cjs/particles.lazy.js +2 -2
- package/esm/bundle.js +2 -2
- package/esm/particles.js +2 -2
- package/esm/particles.lazy.js +2 -2
- package/package.json +9 -9
- package/report.html +388 -33
- package/tsparticles.particles.bundle.js +1311 -723
- package/tsparticles.particles.bundle.min.js +1 -1
- package/tsparticles.particles.js +12 -11
- package/tsparticles.particles.min.js +1 -1
- package/types/bundle.d.ts +1 -1
package/tsparticles.particles.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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);
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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);})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
|
|
2
|
+
(function (g) {
|
|
3
|
+
/* tsParticles v4.5.0 */
|
|
4
|
+
g.__tsParticlesInternals = g.__tsParticlesInternals || {};
|
|
5
|
+
g.__tsParticlesInternals.bundles = g.__tsParticlesInternals.bundles || {};
|
|
6
|
+
(function (exports, engine, basic, pluginInteractivity, interactionParticlesCollisions, interactionParticlesLinks) {
|
|
7
|
+
'use strict';
|
|
8
8
|
|
|
9
9
|
const instances = new Map();
|
|
10
10
|
function deleteParticlesInstance(id) {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
|
|
75
75
|
let initPromise = null;
|
|
76
76
|
async function doInitPlugins(engine) {
|
|
77
|
-
engine.checkVersion("4.
|
|
77
|
+
engine.checkVersion("4.5.0");
|
|
78
78
|
await engine.pluginManager.register(async (e) => {
|
|
79
79
|
const loadParticlesInteractivity = async (e) => {
|
|
80
80
|
await pluginInteractivity.loadInteractivityPlugin(e);
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
particles.init = async () => {
|
|
118
118
|
await initPlugins(engine.tsParticles);
|
|
119
119
|
};
|
|
120
|
-
particles.version = "4.
|
|
120
|
+
particles.version = "4.5.0";
|
|
121
121
|
globalThis.particles = particles;
|
|
122
122
|
|
|
123
123
|
const globalObject = globalThis;
|
|
@@ -156,9 +156,10 @@
|
|
|
156
156
|
|
|
157
157
|
exports.particles = particles;
|
|
158
158
|
|
|
159
|
-
}));
|
|
159
|
+
})(g.__tsParticlesInternals.bundles.particles = g.__tsParticlesInternals.bundles.particles || {}, g.__tsParticlesInternals.engine, g.__tsParticlesInternals.bundles.basic, g.__tsParticlesInternals.plugins.interactivity, g.__tsParticlesInternals.interactions.particlesCollisions, g.__tsParticlesInternals.interactions.particlesLinks);
|
|
160
|
+
})(typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : self);
|
|
161
|
+
|
|
160
162
|
globalThis.__tsParticlesInternals = globalThis.__tsParticlesInternals || {};
|
|
161
163
|
if (!globalThis.__tsParticlesInternals.engine || !globalThis.__tsParticlesInternals.engine.tsParticles) {
|
|
162
164
|
globalThis.__tsParticlesInternals.engine = globalThis.__tsParticlesInternals.bundles.particles || {};
|
|
163
165
|
}
|
|
164
|
-
delete (globalThis.window || globalThis).tsparticlesInternalExports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(
|
|
1
|
+
!function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.bundles=s.__tsParticlesInternals.bundles||{},s.__tsParticlesInternals.effects=s.__tsParticlesInternals.effects||{},s.__tsParticlesInternals.engine=s.__tsParticlesInternals.engine||{},s.__tsParticlesInternals.interactions=s.__tsParticlesInternals.interactions||{},s.__tsParticlesInternals.palettes=s.__tsParticlesInternals.palettes||{},s.__tsParticlesInternals.paths=s.__tsParticlesInternals.paths||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.emittersShapes=s.__tsParticlesInternals.plugins.emittersShapes||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.updaters=s.__tsParticlesInternals.updaters||{},s.__tsParticlesInternals.utils=s.__tsParticlesInternals.utils||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas.utils=s.__tsParticlesInternals.canvas.utils||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path.utils=s.__tsParticlesInternals.path.utils||{};var t="undefined"!=typeof Proxy?function(s){return new Proxy(s,{get:function(s,t){return t in s||(s[t]={}),s[t]}})}:function(s){return s};s.__tsParticlesInternals.bundles=t(s.__tsParticlesInternals.bundles),s.__tsParticlesInternals.effects=t(s.__tsParticlesInternals.effects),s.__tsParticlesInternals.interactions=t(s.__tsParticlesInternals.interactions),s.__tsParticlesInternals.palettes=t(s.__tsParticlesInternals.palettes),s.__tsParticlesInternals.paths=t(s.__tsParticlesInternals.paths),s.__tsParticlesInternals.plugins=t(s.__tsParticlesInternals.plugins),s.__tsParticlesInternals.plugins.emittersShapes=t(s.__tsParticlesInternals.plugins.emittersShapes),s.__tsParticlesInternals.presets=t(s.__tsParticlesInternals.presets),s.__tsParticlesInternals.shapes=t(s.__tsParticlesInternals.shapes),s.__tsParticlesInternals.updaters=t(s.__tsParticlesInternals.updaters),s.__tsParticlesInternals.utils=t(s.__tsParticlesInternals.utils),s.__tsParticlesInternals.canvas=t(s.__tsParticlesInternals.canvas),s.__tsParticlesInternals.path=t(s.__tsParticlesInternals.path)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.bundles=s.__tsParticlesInternals.bundles||{},function(s,t,e,n,a,l){"use strict";const r=new Map;async function i(s,t,e,n){const a=r.get(t);if(a instanceof Promise)return a;if(a){if(!a.destroyed)return a;r.delete(t)}const l=(async()=>{const a=function(s,t){return{fullScreen:{enable:!t},particles:{number:{value:s.count??80},color:{value:s.color??"#fff"},links:{enable:s.links??!1,color:s.linksColor??"#fff",distance:s.linksLength??100},collisions:{enable:s.collisions??!1},move:{enable:!0,speed:s.speed??3},opacity:{value:s.opacity??1},shape:{type:s.shape??"circle"},size:{value:s.radius??3}}}}(e,n),l=await s.load({id:t,element:n,options:a});if(!l)return void r.delete(t);const{ParticlesInstance:i}=await Promise.resolve().then(function(){return I}),c=new i(l,t);return r.set(t,c),c})();return r.set(t,l),l}let c=null;async function _(s){return c||(c=async function(s){s.checkVersion("4.5.0"),await s.pluginManager.register(async s=>{await Promise.all([e.loadBasic(s),(async s=>{await n.loadInteractivityPlugin(s),await Promise.all([a.loadParticlesCollisionsInteraction(s),l.loadParticlesLinksInteraction(s)])})(s)])})}(s),c)}async function o(s,e){let n,a;return await _(t.tsParticles),t.isString(s)?(n=s,a=e??{}):(n="particles",a=s??{}),i(t.tsParticles,n,a)}o.create=async(s,e)=>{await _(t.tsParticles);const n=s?.id??"particles";return i(t.tsParticles,n,e??{},s??void 0)},o.init=async()=>{await _(t.tsParticles)},o.version="4.5.0",globalThis.particles=o;const P=globalThis;P.__tsParticlesInternals=P.__tsParticlesInternals??{},P.particles=o;var I=Object.freeze({__proto__:null,ParticlesInstance:class{#s;#t;constructor(s,t){this.#s=s,this.#t=t}get destroyed(){return this.#s.destroyed}destroy(){var s;this.#s.destroy(),s=this.#t,r.delete(s)}pause(){this.#s.pause()}play(){this.#s.play()}stop(){this.#s.stop()}}});s.particles=o}(s.__tsParticlesInternals.bundles.particles=s.__tsParticlesInternals.bundles.particles||{},s.__tsParticlesInternals.engine,s.__tsParticlesInternals.bundles.basic,s.__tsParticlesInternals.plugins.interactivity,s.__tsParticlesInternals.interactions.particlesCollisions,s.__tsParticlesInternals.interactions.particlesLinks)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:self),globalThis.__tsParticlesInternals=globalThis.__tsParticlesInternals||{},globalThis.__tsParticlesInternals.engine&&globalThis.__tsParticlesInternals.engine.tsParticles||(globalThis.__tsParticlesInternals.engine=globalThis.__tsParticlesInternals.bundles.particles||{});
|
package/types/bundle.d.ts
CHANGED