@tsparticles/slim 3.0.0-alpha.1 → 3.0.0-beta.1
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 +36 -37
- package/browser/index.js +31 -39
- package/browser/package.json +1 -0
- package/cjs/index.js +31 -50
- package/cjs/package.json +1 -0
- package/esm/index.js +31 -39
- package/esm/package.json +1 -0
- package/package.json +66 -42
- package/report.html +4 -4
- package/tsparticles.slim.bundle.js +5428 -4774
- package/tsparticles.slim.bundle.min.js +1 -1
- package/tsparticles.slim.bundle.min.js.LICENSE.txt +1 -8
- package/tsparticles.slim.js +438 -150
- package/tsparticles.slim.min.js +1 -1
- package/tsparticles.slim.min.js.LICENSE.txt +1 -8
- package/types/index.d.ts +1 -1
- package/umd/index.js +32 -40
package/tsparticles.slim.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.slim.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/pjs"),require("@tsparticles/updater-angle"),require("@tsparticles/move-base"),require("@tsparticles/shape-circle"),require("@tsparticles/updater-color"),require("@tsparticles/interaction-external-attract"),require("@tsparticles/interaction-external-bounce"),require("@tsparticles/interaction-external-bubble"),require("@tsparticles/interaction-external-connect"),require("@tsparticles/interaction-external-grab"),require("@tsparticles/interaction-external-pause"),require("@tsparticles/interaction-external-push"),require("@tsparticles/interaction-external-remove"),require("@tsparticles/interaction-external-repulse"),require("@tsparticles/interaction-external-slow"),require("@tsparticles/shape-image"),require("@tsparticles/updater-life"),require("@tsparticles/shape-line"),require("@tsparticles/updater-opacity"),require("@tsparticles/updater-out-modes"),require("@tsparticles/move-parallax"),require("@tsparticles/interaction-particles-attract"),require("@tsparticles/interaction-particles-collisions"),require("@tsparticles/interaction-particles-links"),require("@tsparticles/shape-polygon"),require("@tsparticles/updater-size"),require("@tsparticles/shape-square"),require("@tsparticles/shape-star"),require("@tsparticles/updater-stroke-color"),require("@tsparticles/shape-text"));else if("function"==typeof define&&define.amd)define(["@tsparticles/pjs","@tsparticles/updater-angle","@tsparticles/move-base","@tsparticles/shape-circle","@tsparticles/updater-color","@tsparticles/interaction-external-attract","@tsparticles/interaction-external-bounce","@tsparticles/interaction-external-bubble","@tsparticles/interaction-external-connect","@tsparticles/interaction-external-grab","@tsparticles/interaction-external-pause","@tsparticles/interaction-external-push","@tsparticles/interaction-external-remove","@tsparticles/interaction-external-repulse","@tsparticles/interaction-external-slow","@tsparticles/shape-image","@tsparticles/updater-life","@tsparticles/shape-line","@tsparticles/updater-opacity","@tsparticles/updater-out-modes","@tsparticles/move-parallax","@tsparticles/interaction-particles-attract","@tsparticles/interaction-particles-collisions","@tsparticles/interaction-particles-links","@tsparticles/shape-polygon","@tsparticles/updater-size","@tsparticles/shape-square","@tsparticles/shape-star","@tsparticles/updater-stroke-color","@tsparticles/shape-text"],t);else{var r="object"==typeof exports?t(require("@tsparticles/pjs"),require("@tsparticles/updater-angle"),require("@tsparticles/move-base"),require("@tsparticles/shape-circle"),require("@tsparticles/updater-color"),require("@tsparticles/interaction-external-attract"),require("@tsparticles/interaction-external-bounce"),require("@tsparticles/interaction-external-bubble"),require("@tsparticles/interaction-external-connect"),require("@tsparticles/interaction-external-grab"),require("@tsparticles/interaction-external-pause"),require("@tsparticles/interaction-external-push"),require("@tsparticles/interaction-external-remove"),require("@tsparticles/interaction-external-repulse"),require("@tsparticles/interaction-external-slow"),require("@tsparticles/shape-image"),require("@tsparticles/updater-life"),require("@tsparticles/shape-line"),require("@tsparticles/updater-opacity"),require("@tsparticles/updater-out-modes"),require("@tsparticles/move-parallax"),require("@tsparticles/interaction-particles-attract"),require("@tsparticles/interaction-particles-collisions"),require("@tsparticles/interaction-particles-links"),require("@tsparticles/shape-polygon"),require("@tsparticles/updater-size"),require("@tsparticles/shape-square"),require("@tsparticles/shape-star"),require("@tsparticles/updater-stroke-color"),require("@tsparticles/shape-text")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}}(this,((e,t,r,a,i,s,o,l,n,p,c,u,d,w,x,q,h,b,f,m,v,y,g,S,I,j,P,E,k,O)=>(()=>{"use strict";var U={517:e=>{e.exports=s},201:e=>{e.exports=o},721:e=>{e.exports=l},971:e=>{e.exports=n},625:e=>{e.exports=p},591:e=>{e.exports=c},381:e=>{e.exports=u},440:e=>{e.exports=d},186:e=>{e.exports=w},165:e=>{e.exports=x},266:e=>{e.exports=y},611:e=>{e.exports=g},164:e=>{e.exports=S},619:e=>{e.exports=r},575:e=>{e.exports=v},860:t=>{t.exports=e},163:e=>{e.exports=a},885:e=>{e.exports=q},137:e=>{e.exports=b},907:e=>{e.exports=I},652:e=>{e.exports=P},960:e=>{e.exports=E},727:e=>{e.exports=O},71:e=>{e.exports=t},501:e=>{e.exports=i},84:e=>{e.exports=h},686:e=>{e.exports=f},290:e=>{e.exports=m},2:e=>{e.exports=j},204:e=>{e.exports=k}},M={};function C(e){var t=M[e];if(void 0!==t)return t.exports;var r=M[e]={exports:{}};return U[e](r,r.exports,C),r.exports}C.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return C.d(t,{a:t}),t},C.d=(e,t)=>{for(var r in t)C.o(t,r)&&!C.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},C.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),C.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var z={};return(()=>{C.r(z),C.d(z,{loadSlim:()=>U});var e=C(860),t=C(71),r=C(619),a=C(163),i=C(501),s=C(517),o=C(201),l=C(721),n=C(971),p=C(625),c=C(591),u=C(381),d=C(440),w=C(186),x=C(165),q=C(885),h=C(84),b=C(137),f=C(686),m=C(290),v=C(575),y=C(266),g=C(611),S=C(164),I=C(907),j=C(2),P=C(652),E=C(960),k=C(204),O=C(727);async function U(U){await(0,r.loadBaseMover)(U),await(0,v.loadParallaxMover)(U),await(0,s.loadExternalAttractInteraction)(U),await(0,o.loadExternalBounceInteraction)(U),await(0,l.loadExternalBubbleInteraction)(U),await(0,n.loadExternalConnectInteraction)(U),await(0,p.loadExternalGrabInteraction)(U),await(0,c.loadExternalPauseInteraction)(U),await(0,u.loadExternalPushInteraction)(U),await(0,d.loadExternalRemoveInteraction)(U),await(0,w.loadExternalRepulseInteraction)(U),await(0,x.loadExternalSlowInteraction)(U),await(0,y.loadParticlesAttractInteraction)(U),await(0,g.loadParticlesCollisionsInteraction)(U),await(0,S.loadParticlesLinksInteraction)(U),await(0,a.loadCircleShape)(U),await(0,q.loadImageShape)(U),await(0,b.loadLineShape)(U),await(0,I.loadPolygonShape)(U),await(0,P.loadSquareShape)(U),await(0,E.loadStarShape)(U),await(0,O.loadTextShape)(U),await(0,h.loadLifeUpdater)(U),await(0,f.loadOpacityUpdater)(U),await(0,j.loadSizeUpdater)(U),await(0,t.loadAngleUpdater)(U),await(0,i.loadColorUpdater)(U),await(0,k.loadStrokeColorUpdater)(U),await(0,m.loadOutModesUpdater)(U),await(0,e.initPjs)(U)}})(),z})()));
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/move-base"),require("@tsparticles/shape-circle"),require("@tsparticles/updater-color"),require("@tsparticles/updater-opacity"),require("@tsparticles/updater-out-modes"),require("@tsparticles/updater-size"),require("@tsparticles/plugin-easing-quad"),require("@tsparticles/interaction-external-attract"),require("@tsparticles/interaction-external-bounce"),require("@tsparticles/interaction-external-bubble"),require("@tsparticles/interaction-external-connect"),require("@tsparticles/interaction-external-grab"),require("@tsparticles/interaction-external-pause"),require("@tsparticles/interaction-external-push"),require("@tsparticles/interaction-external-remove"),require("@tsparticles/interaction-external-repulse"),require("@tsparticles/interaction-external-slow"),require("@tsparticles/shape-image"),require("@tsparticles/updater-life"),require("@tsparticles/shape-line"),require("@tsparticles/move-parallax"),require("@tsparticles/interaction-particles-attract"),require("@tsparticles/interaction-particles-collisions"),require("@tsparticles/interaction-particles-links"),require("@tsparticles/shape-polygon"),require("@tsparticles/shape-square"),require("@tsparticles/shape-star"),require("@tsparticles/updater-stroke-color"),require("@tsparticles/shape-text"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/move-base","@tsparticles/shape-circle","@tsparticles/updater-color","@tsparticles/updater-opacity","@tsparticles/updater-out-modes","@tsparticles/updater-size","@tsparticles/plugin-easing-quad","@tsparticles/interaction-external-attract","@tsparticles/interaction-external-bounce","@tsparticles/interaction-external-bubble","@tsparticles/interaction-external-connect","@tsparticles/interaction-external-grab","@tsparticles/interaction-external-pause","@tsparticles/interaction-external-push","@tsparticles/interaction-external-remove","@tsparticles/interaction-external-repulse","@tsparticles/interaction-external-slow","@tsparticles/shape-image","@tsparticles/updater-life","@tsparticles/shape-line","@tsparticles/move-parallax","@tsparticles/interaction-particles-attract","@tsparticles/interaction-particles-collisions","@tsparticles/interaction-particles-links","@tsparticles/shape-polygon","@tsparticles/shape-square","@tsparticles/shape-star","@tsparticles/updater-stroke-color","@tsparticles/shape-text"],t);else{var a="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/move-base"),require("@tsparticles/shape-circle"),require("@tsparticles/updater-color"),require("@tsparticles/updater-opacity"),require("@tsparticles/updater-out-modes"),require("@tsparticles/updater-size"),require("@tsparticles/plugin-easing-quad"),require("@tsparticles/interaction-external-attract"),require("@tsparticles/interaction-external-bounce"),require("@tsparticles/interaction-external-bubble"),require("@tsparticles/interaction-external-connect"),require("@tsparticles/interaction-external-grab"),require("@tsparticles/interaction-external-pause"),require("@tsparticles/interaction-external-push"),require("@tsparticles/interaction-external-remove"),require("@tsparticles/interaction-external-repulse"),require("@tsparticles/interaction-external-slow"),require("@tsparticles/shape-image"),require("@tsparticles/updater-life"),require("@tsparticles/shape-line"),require("@tsparticles/move-parallax"),require("@tsparticles/interaction-particles-attract"),require("@tsparticles/interaction-particles-collisions"),require("@tsparticles/interaction-particles-links"),require("@tsparticles/shape-polygon"),require("@tsparticles/shape-square"),require("@tsparticles/shape-star"),require("@tsparticles/updater-stroke-color"),require("@tsparticles/shape-text")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(this,((e,t,a,r,i,s,o,n,l,c,p,u,d,w,x,h,q,m,v,b,y,f,g,S,P,k,I,E,R,O)=>(()=>{"use strict";var j={533:t=>{t.exports=e},517:e=>{e.exports=l},201:e=>{e.exports=c},721:e=>{e.exports=p},971:e=>{e.exports=u},625:e=>{e.exports=d},591:e=>{e.exports=w},381:e=>{e.exports=x},440:e=>{e.exports=h},186:e=>{e.exports=q},165:e=>{e.exports=m},266:e=>{e.exports=g},611:e=>{e.exports=S},164:e=>{e.exports=P},619:e=>{e.exports=t},575:e=>{e.exports=f},194:e=>{e.exports=n},163:e=>{e.exports=a},885:e=>{e.exports=v},137:e=>{e.exports=y},907:e=>{e.exports=k},652:e=>{e.exports=I},960:e=>{e.exports=E},727:e=>{e.exports=O},501:e=>{e.exports=r},84:e=>{e.exports=b},686:e=>{e.exports=i},290:e=>{e.exports=s},2:e=>{e.exports=o},204:e=>{e.exports=R}},z={};function C(e){var t=z[e];if(void 0!==t)return t.exports;var a=z[e]={exports:{}};return j[e](a,a.exports,C),a.exports}C.d=(e,t)=>{for(var a in t)C.o(t,a)&&!C.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},C.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),C.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var J={};return(()=>{C.r(J),C.d(J,{loadSlim:()=>D});var e=C(533);class t{static init(a){const r=new t,i=a.selector;if(!i)throw new Error("No selector provided");const s=document.querySelector(i);if(!s)throw new Error("No element found for selector");return e.tsParticles.load({id:i.replace(".","").replace("!",""),element:s,options:{fullScreen:{enable:!1},particles:{color:{value:a.color??"!000000"},links:{color:"random",distance:a.minDistance??120,enable:a.connectParticles??!1},move:{enable:!0,speed:a.speed??.5},number:{value:a.maxParticles??100},size:{value:{min:1,max:a.sizeVariations??3}}},responsive:a.responsive?.map((e=>({maxWidth:e.breakpoint,options:{particles:{color:{value:e.options?.color},links:{distance:e.options?.minDistance,enable:e.options?.connectParticles},number:{value:a.maxParticles},move:{enable:!0,speed:e.options?.speed},size:{value:e.options?.sizeVariations}}}})))}}).then((e=>{r._container=e})),r}destroy(){const e=this._container;e&&e.destroy()}pauseAnimation(){const e=this._container;e&&e.pause()}resumeAnimation(){const e=this._container;e&&e.play()}}const a=e=>{const{particlesJS:a,pJSDom:r}=(e=>{const t=(t,a)=>e.load({id:t,options:a});return t.load=(t,a,r)=>{e.load({id:t,url:a}).then((e=>{e&&r(e)})).catch((()=>{r(void 0)}))},t.setOnClickHandler=t=>{e.setOnClickHandler(t)},{particlesJS:t,pJSDom:e.dom()}})(e);return window.particlesJS=a,window.pJSDom=r,window.Particles=t,{particlesJS:a,pJSDom:r,Particles:t}};var r=C(619),i=C(163),s=C(501),o=C(686),n=C(290),l=C(2);var c=C(194),p=C(517),u=C(201),d=C(721),w=C(971),x=C(625),h=C(591),q=C(381),m=C(440),v=C(186),b=C(165),y=C(885),f=C(84),g=C(137),S=C(575),P=C(266),k=C(611),I=C(164),E=C(907);class R{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,e.setRangeValue)(t.speed)),void 0!==t.decay&&(this.decay=(0,e.setRangeValue)(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class O extends e.ValueWithRandom{constructor(){super(),this.animation=new R,this.direction="clockwise",this.path=!1,this.value=0}load(e){e&&(super.load(e),void 0!==e.direction&&(this.direction=e.direction),this.animation.load(e.animation),void 0!==e.path&&(this.path=e.path))}}class j{constructor(e){this.container=e}init(t){const a=t.options.rotate;if(!a)return;t.rotate={enable:a.animation.enable,value:(0,e.getRangeValue)(a.value)*Math.PI/180},t.pathRotation=a.path;let r=a.direction;if("random"===r){r=Math.floor(2*(0,e.getRandom)())>0?"counter-clockwise":"clockwise"}switch(r){case"counter-clockwise":case"counterClockwise":t.rotate.status="decreasing";break;case"clockwise":t.rotate.status="increasing"}const i=a.animation;i.enable&&(t.rotate.decay=1-(0,e.getRangeValue)(i.decay),t.rotate.velocity=(0,e.getRangeValue)(i.speed)/360*this.container.retina.reduceFactor,i.sync||(t.rotate.velocity*=(0,e.getRandom)())),t.rotation=t.rotate.value}isEnabled(e){const t=e.options.rotate;return!!t&&(!e.destroyed&&!e.spawning&&t.animation.enable&&!t.path)}loadOptions(e,...t){e.rotate||(e.rotate=new O);for(const a of t)e.rotate.load(a?.rotate)}update(e,t){this.isEnabled(e)&&(!function(e,t){const a=e.rotate,r=e.options.rotate;if(!a||!r)return;const i=r.animation,s=(a.velocity??0)*t.factor,o=2*Math.PI,n=a.decay??1;i.enable&&("increasing"===a.status?(a.value+=s,a.value>o&&(a.value-=o)):(a.value-=s,a.value<0&&(a.value+=o)),a.velocity&&1!==n&&(a.velocity*=n))}(e,t),e.rotation=e.rotate?.value??0)}}var z=C(652),M=C(960),V=C(204),U=C(727);async function D(e,t=!0){a(e),await(0,S.loadParallaxMover)(e,!1),await(0,p.loadExternalAttractInteraction)(e,!1),await(0,u.loadExternalBounceInteraction)(e,!1),await(0,d.loadExternalBubbleInteraction)(e,!1),await(0,w.loadExternalConnectInteraction)(e,!1),await(0,x.loadExternalGrabInteraction)(e,!1),await(0,h.loadExternalPauseInteraction)(e,!1),await(0,q.loadExternalPushInteraction)(e,!1),await(0,m.loadExternalRemoveInteraction)(e,!1),await(0,v.loadExternalRepulseInteraction)(e,!1),await(0,b.loadExternalSlowInteraction)(e,!1),await(0,P.loadParticlesAttractInteraction)(e,!1),await(0,k.loadParticlesCollisionsInteraction)(e,!1),await(0,I.loadParticlesLinksInteraction)(e,!1),await(0,c.loadEasingQuadPlugin)(),await(0,y.loadImageShape)(e,!1),await(0,g.loadLineShape)(e,!1),await(0,E.loadPolygonShape)(e,!1),await(0,z.loadSquareShape)(e,!1),await(0,M.loadStarShape)(e,!1),await(0,U.loadTextShape)(e,!1),await(0,f.loadLifeUpdater)(e,!1),await async function(e,t=!0){await e.addParticleUpdater("rotate",(e=>new j(e)),t)}(e,!1),await(0,V.loadStrokeColorUpdater)(e,!1),await async function(e,t=!0){await(0,r.loadBaseMover)(e,!1),await(0,i.loadCircleShape)(e,!1),await(0,s.loadColorUpdater)(e,!1),await(0,o.loadOpacityUpdater)(e,!1),await(0,n.loadOutModesUpdater)(e,!1),await(0,l.loadSizeUpdater)(e,!1),await e.refresh(t)}(e,t)}})(),J})()));
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Author : Matteo Bruni
|
|
3
|
-
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
-
* Demo / Generator : https://particles.js.org/
|
|
5
|
-
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
-
* How to use? : Check the GitHub README
|
|
7
|
-
* v3.0.0-alpha.1
|
|
8
|
-
*/
|
|
1
|
+
/*! tsParticles Slim v3.0.0-beta.1 by Matteo Bruni */
|
package/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "@tsparticles/engine";
|
|
2
|
-
export declare function loadSlim(engine: Engine): Promise<void>;
|
|
2
|
+
export declare function loadSlim(engine: Engine, refresh?: boolean): Promise<void>;
|
package/umd/index.js
CHANGED
|
@@ -4,17 +4,15 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "@tsparticles/
|
|
7
|
+
define(["require", "exports", "@tsparticles/particles.js", "@tsparticles/basic", "@tsparticles/plugin-easing-quad", "@tsparticles/interaction-external-attract", "@tsparticles/interaction-external-bounce", "@tsparticles/interaction-external-bubble", "@tsparticles/interaction-external-connect", "@tsparticles/interaction-external-grab", "@tsparticles/interaction-external-pause", "@tsparticles/interaction-external-push", "@tsparticles/interaction-external-remove", "@tsparticles/interaction-external-repulse", "@tsparticles/interaction-external-slow", "@tsparticles/shape-image", "@tsparticles/updater-life", "@tsparticles/shape-line", "@tsparticles/move-parallax", "@tsparticles/interaction-particles-attract", "@tsparticles/interaction-particles-collisions", "@tsparticles/interaction-particles-links", "@tsparticles/shape-polygon", "@tsparticles/updater-rotate", "@tsparticles/shape-square", "@tsparticles/shape-star", "@tsparticles/updater-stroke-color", "@tsparticles/shape-text"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.loadSlim = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const shape_circle_1 = require("@tsparticles/shape-circle");
|
|
17
|
-
const updater_color_1 = require("@tsparticles/updater-color");
|
|
13
|
+
const particles_js_1 = require("@tsparticles/particles.js");
|
|
14
|
+
const basic_1 = require("@tsparticles/basic");
|
|
15
|
+
const plugin_easing_quad_1 = require("@tsparticles/plugin-easing-quad");
|
|
18
16
|
const interaction_external_attract_1 = require("@tsparticles/interaction-external-attract");
|
|
19
17
|
const interaction_external_bounce_1 = require("@tsparticles/interaction-external-bounce");
|
|
20
18
|
const interaction_external_bubble_1 = require("@tsparticles/interaction-external-bubble");
|
|
@@ -28,49 +26,43 @@
|
|
|
28
26
|
const shape_image_1 = require("@tsparticles/shape-image");
|
|
29
27
|
const updater_life_1 = require("@tsparticles/updater-life");
|
|
30
28
|
const shape_line_1 = require("@tsparticles/shape-line");
|
|
31
|
-
const updater_opacity_1 = require("@tsparticles/updater-opacity");
|
|
32
|
-
const updater_out_modes_1 = require("@tsparticles/updater-out-modes");
|
|
33
29
|
const move_parallax_1 = require("@tsparticles/move-parallax");
|
|
34
30
|
const interaction_particles_attract_1 = require("@tsparticles/interaction-particles-attract");
|
|
35
31
|
const interaction_particles_collisions_1 = require("@tsparticles/interaction-particles-collisions");
|
|
36
32
|
const interaction_particles_links_1 = require("@tsparticles/interaction-particles-links");
|
|
37
33
|
const shape_polygon_1 = require("@tsparticles/shape-polygon");
|
|
38
|
-
const
|
|
34
|
+
const updater_rotate_1 = require("@tsparticles/updater-rotate");
|
|
39
35
|
const shape_square_1 = require("@tsparticles/shape-square");
|
|
40
36
|
const shape_star_1 = require("@tsparticles/shape-star");
|
|
41
37
|
const updater_stroke_color_1 = require("@tsparticles/updater-stroke-color");
|
|
42
38
|
const shape_text_1 = require("@tsparticles/shape-text");
|
|
43
|
-
async function loadSlim(engine) {
|
|
44
|
-
|
|
45
|
-
await (0, move_parallax_1.loadParallaxMover)(engine);
|
|
46
|
-
await (0, interaction_external_attract_1.loadExternalAttractInteraction)(engine);
|
|
47
|
-
await (0, interaction_external_bounce_1.loadExternalBounceInteraction)(engine);
|
|
48
|
-
await (0, interaction_external_bubble_1.loadExternalBubbleInteraction)(engine);
|
|
49
|
-
await (0, interaction_external_connect_1.loadExternalConnectInteraction)(engine);
|
|
50
|
-
await (0, interaction_external_grab_1.loadExternalGrabInteraction)(engine);
|
|
51
|
-
await (0, interaction_external_pause_1.loadExternalPauseInteraction)(engine);
|
|
52
|
-
await (0, interaction_external_push_1.loadExternalPushInteraction)(engine);
|
|
53
|
-
await (0, interaction_external_remove_1.loadExternalRemoveInteraction)(engine);
|
|
54
|
-
await (0, interaction_external_repulse_1.loadExternalRepulseInteraction)(engine);
|
|
55
|
-
await (0, interaction_external_slow_1.loadExternalSlowInteraction)(engine);
|
|
56
|
-
await (0, interaction_particles_attract_1.loadParticlesAttractInteraction)(engine);
|
|
57
|
-
await (0, interaction_particles_collisions_1.loadParticlesCollisionsInteraction)(engine);
|
|
58
|
-
await (0, interaction_particles_links_1.loadParticlesLinksInteraction)(engine);
|
|
59
|
-
await (0,
|
|
60
|
-
await (0, shape_image_1.loadImageShape)(engine);
|
|
61
|
-
await (0, shape_line_1.loadLineShape)(engine);
|
|
62
|
-
await (0, shape_polygon_1.loadPolygonShape)(engine);
|
|
63
|
-
await (0, shape_square_1.loadSquareShape)(engine);
|
|
64
|
-
await (0, shape_star_1.loadStarShape)(engine);
|
|
65
|
-
await (0, shape_text_1.loadTextShape)(engine);
|
|
66
|
-
await (0, updater_life_1.loadLifeUpdater)(engine);
|
|
67
|
-
await (0,
|
|
68
|
-
await (0,
|
|
69
|
-
await (0,
|
|
70
|
-
await (0, updater_color_1.loadColorUpdater)(engine);
|
|
71
|
-
await (0, updater_stroke_color_1.loadStrokeColorUpdater)(engine);
|
|
72
|
-
await (0, updater_out_modes_1.loadOutModesUpdater)(engine);
|
|
73
|
-
await (0, pjs_1.initPjs)(engine);
|
|
39
|
+
async function loadSlim(engine, refresh = true) {
|
|
40
|
+
(0, particles_js_1.initPjs)(engine);
|
|
41
|
+
await (0, move_parallax_1.loadParallaxMover)(engine, false);
|
|
42
|
+
await (0, interaction_external_attract_1.loadExternalAttractInteraction)(engine, false);
|
|
43
|
+
await (0, interaction_external_bounce_1.loadExternalBounceInteraction)(engine, false);
|
|
44
|
+
await (0, interaction_external_bubble_1.loadExternalBubbleInteraction)(engine, false);
|
|
45
|
+
await (0, interaction_external_connect_1.loadExternalConnectInteraction)(engine, false);
|
|
46
|
+
await (0, interaction_external_grab_1.loadExternalGrabInteraction)(engine, false);
|
|
47
|
+
await (0, interaction_external_pause_1.loadExternalPauseInteraction)(engine, false);
|
|
48
|
+
await (0, interaction_external_push_1.loadExternalPushInteraction)(engine, false);
|
|
49
|
+
await (0, interaction_external_remove_1.loadExternalRemoveInteraction)(engine, false);
|
|
50
|
+
await (0, interaction_external_repulse_1.loadExternalRepulseInteraction)(engine, false);
|
|
51
|
+
await (0, interaction_external_slow_1.loadExternalSlowInteraction)(engine, false);
|
|
52
|
+
await (0, interaction_particles_attract_1.loadParticlesAttractInteraction)(engine, false);
|
|
53
|
+
await (0, interaction_particles_collisions_1.loadParticlesCollisionsInteraction)(engine, false);
|
|
54
|
+
await (0, interaction_particles_links_1.loadParticlesLinksInteraction)(engine, false);
|
|
55
|
+
await (0, plugin_easing_quad_1.loadEasingQuadPlugin)();
|
|
56
|
+
await (0, shape_image_1.loadImageShape)(engine, false);
|
|
57
|
+
await (0, shape_line_1.loadLineShape)(engine, false);
|
|
58
|
+
await (0, shape_polygon_1.loadPolygonShape)(engine, false);
|
|
59
|
+
await (0, shape_square_1.loadSquareShape)(engine, false);
|
|
60
|
+
await (0, shape_star_1.loadStarShape)(engine, false);
|
|
61
|
+
await (0, shape_text_1.loadTextShape)(engine, false);
|
|
62
|
+
await (0, updater_life_1.loadLifeUpdater)(engine, false);
|
|
63
|
+
await (0, updater_rotate_1.loadRotateUpdater)(engine, false);
|
|
64
|
+
await (0, updater_stroke_color_1.loadStrokeColorUpdater)(engine, false);
|
|
65
|
+
await (0, basic_1.loadBasic)(engine, refresh);
|
|
74
66
|
}
|
|
75
67
|
exports.loadSlim = loadSlim;
|
|
76
68
|
});
|