Socket
Socket
Sign inDemoInstall

tsparticles-slim

Package Overview
Dependencies
27
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-beta.3 to 2.0.0-beta.4

56

package.json
{
"name": "tsparticles-slim",
"version": "2.0.0-beta.3",
"version": "2.0.0-beta.4",
"description": "Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.",

@@ -63,29 +63,29 @@ "homepage": "https://particles.js.org/",

"dependencies": {
"tsparticles-engine": "^2.0.0-beta.2",
"tsparticles-interaction-external-attract": "^2.0.0-beta.3",
"tsparticles-interaction-external-bounce": "^2.0.0-beta.3",
"tsparticles-interaction-external-bubble": "^2.0.0-beta.3",
"tsparticles-interaction-external-connect": "^2.0.0-beta.3",
"tsparticles-interaction-external-grab": "^2.0.0-beta.3",
"tsparticles-interaction-external-pause": "^2.0.0-beta.3",
"tsparticles-interaction-external-push": "^2.0.0-beta.3",
"tsparticles-interaction-external-remove": "^2.0.0-beta.3",
"tsparticles-interaction-external-repulse": "^2.0.0-beta.3",
"tsparticles-interaction-particles-attract": "^2.0.0-beta.3",
"tsparticles-interaction-particles-collisions": "^2.0.0-beta.3",
"tsparticles-interaction-particles-links": "^2.0.0-beta.3",
"tsparticles-shape-circle": "^2.0.0-beta.3",
"tsparticles-shape-image": "^2.0.0-beta.3",
"tsparticles-shape-line": "^2.0.0-beta.3",
"tsparticles-shape-polygon": "^2.0.0-beta.3",
"tsparticles-shape-square": "^2.0.0-beta.3",
"tsparticles-shape-star": "^2.0.0-beta.3",
"tsparticles-shape-text": "^2.0.0-beta.3",
"tsparticles-updater-angle": "^2.0.0-beta.3",
"tsparticles-updater-color": "^2.0.0-beta.3",
"tsparticles-updater-life": "^2.0.0-beta.3",
"tsparticles-updater-opacity": "^2.0.0-beta.3",
"tsparticles-updater-out-modes": "^2.0.0-beta.3",
"tsparticles-updater-size": "^2.0.0-beta.3",
"tsparticles-updater-stroke-color": "^2.0.0-beta.3"
"tsparticles-engine": "^2.0.0-beta.3",
"tsparticles-interaction-external-attract": "^2.0.0-beta.4",
"tsparticles-interaction-external-bounce": "^2.0.0-beta.4",
"tsparticles-interaction-external-bubble": "^2.0.0-beta.4",
"tsparticles-interaction-external-connect": "^2.0.0-beta.4",
"tsparticles-interaction-external-grab": "^2.0.0-beta.4",
"tsparticles-interaction-external-pause": "^2.0.0-beta.4",
"tsparticles-interaction-external-push": "^2.0.0-beta.4",
"tsparticles-interaction-external-remove": "^2.0.0-beta.4",
"tsparticles-interaction-external-repulse": "^2.0.0-beta.4",
"tsparticles-interaction-particles-attract": "^2.0.0-beta.4",
"tsparticles-interaction-particles-collisions": "^2.0.0-beta.4",
"tsparticles-interaction-particles-links": "^2.0.0-beta.4",
"tsparticles-shape-circle": "^2.0.0-beta.4",
"tsparticles-shape-image": "^2.0.0-beta.4",
"tsparticles-shape-line": "^2.0.0-beta.4",
"tsparticles-shape-polygon": "^2.0.0-beta.4",
"tsparticles-shape-square": "^2.0.0-beta.4",
"tsparticles-shape-star": "^2.0.0-beta.4",
"tsparticles-shape-text": "^2.0.0-beta.4",
"tsparticles-updater-angle": "^2.0.0-beta.4",
"tsparticles-updater-color": "^2.0.0-beta.4",
"tsparticles-updater-life": "^2.0.0-beta.4",
"tsparticles-updater-opacity": "^2.0.0-beta.4",
"tsparticles-updater-out-modes": "^2.0.0-beta.4",
"tsparticles-updater-size": "^2.0.0-beta.4",
"tsparticles-updater-stroke-color": "^2.0.0-beta.4"
},

@@ -92,0 +92,0 @@ "main": "index.js",

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v2.0.0-beta.3
* v2.0.0-beta.4
*/

@@ -10,0 +10,0 @@ (function webpackUniversalModuleDefinition(root, factory) {

@@ -1,2 +0,2 @@

/*! tsParticles Slim v2.0.0-beta.3 by Matteo Bruni */
/*! tsParticles Slim v2.0.0-beta.4 by Matteo Bruni */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(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-particles-attract"),require("tsparticles-interaction-particles-collisions"),require("tsparticles-interaction-particles-links"),require("tsparticles-shape-circle"),require("tsparticles-shape-image"),require("tsparticles-shape-line"),require("tsparticles-shape-polygon"),require("tsparticles-shape-square"),require("tsparticles-shape-star"),require("tsparticles-shape-text"),require("tsparticles-updater-life"),require("tsparticles-updater-opacity"),require("tsparticles-updater-size"),require("tsparticles-updater-angle"),require("tsparticles-updater-color"),require("tsparticles-engine"),require("tsparticles-updater-out-modes"));else if("function"==typeof define&&define.amd)define(["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-particles-attract","tsparticles-interaction-particles-collisions","tsparticles-interaction-particles-links","tsparticles-shape-circle","tsparticles-shape-image","tsparticles-shape-line","tsparticles-shape-polygon","tsparticles-shape-square","tsparticles-shape-star","tsparticles-shape-text","tsparticles-updater-life","tsparticles-updater-opacity","tsparticles-updater-size","tsparticles-updater-angle","tsparticles-updater-color","tsparticles-engine","tsparticles-updater-out-modes"],t);else{var r="object"==typeof exports?t(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-particles-attract"),require("tsparticles-interaction-particles-collisions"),require("tsparticles-interaction-particles-links"),require("tsparticles-shape-circle"),require("tsparticles-shape-image"),require("tsparticles-shape-line"),require("tsparticles-shape-polygon"),require("tsparticles-shape-square"),require("tsparticles-shape-star"),require("tsparticles-shape-text"),require("tsparticles-updater-life"),require("tsparticles-updater-opacity"),require("tsparticles-updater-size"),require("tsparticles-updater-angle"),require("tsparticles-updater-color"),require("tsparticles-engine"),require("tsparticles-updater-out-modes")):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);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,(function(e,t,r,i,a,o,n,s,l,c,p,u,d,x,v,w,q,h,f,y,b,m,g,k,S,I){return(()=>{"use strict";var C={818:e=>{e.exports=S},174:t=>{t.exports=e},544:e=>{e.exports=t},923:e=>{e.exports=r},364:e=>{e.exports=i},602:e=>{e.exports=a},999:e=>{e.exports=o},639:e=>{e.exports=n},394:e=>{e.exports=s},813:e=>{e.exports=l},966:e=>{e.exports=c},260:e=>{e.exports=p},955:e=>{e.exports=u},941:e=>{e.exports=d},662:e=>{e.exports=x},45:e=>{e.exports=v},722:e=>{e.exports=w},295:e=>{e.exports=q},110:e=>{e.exports=h},922:e=>{e.exports=f},1:e=>{e.exports=g},841:e=>{e.exports=k},489:e=>{e.exports=y},838:e=>{e.exports=b},405:e=>{e.exports=I},328:e=>{e.exports=m}},P={};function E(e){var t=P[e];if(void 0!==t)return t.exports;var r=P[e]={exports:{}};return C[e](r,r.exports,E),r.exports}E.d=(e,t)=>{for(var r in t)E.o(t,r)&&!E.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},E.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),E.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var A={};return(()=>{E.r(A),E.d(A,{loadSlim:()=>U});var e=E(174),t=E(544),r=E(923),i=E(364),a=E(602),o=E(999),n=E(639),s=E(394),l=E(813),c=E(966),p=E(260),u=E(955),d=E(941),x=E(662),v=E(45),w=E(722),q=E(295),h=E(110),f=E(922),y=E(489),b=E(838),m=E(328),g=E(1),k=E(841),S=E(818);function I(e,t,r,i,a){var o;const n=t;if(!n||!n.enable)return;const s=(0,S.randomInRange)(r.offset),l=(null!==(o=t.velocity)&&void 0!==o?o:0)*e.factor+3.6*s;a&&n.status!==S.AnimationStatus.increasing?(n.value-=l,n.value<0&&(n.status=S.AnimationStatus.increasing,n.value+=n.value)):(n.value+=l,a&&n.value>i&&(n.status=S.AnimationStatus.decreasing,n.value-=n.value%i)),n.value>i&&(n.value%=i)}class C{constructor(e){this.container=e}init(e){var t,r;const i=this.container;e.stroke=e.options.stroke instanceof Array?(0,S.itemFromArray)(e.options.stroke,e.id,e.options.reduceDuplicates):e.options.stroke,e.strokeWidth=e.stroke.width*i.retina.pixelRatio;const a=null!==(t=(0,S.colorToHsl)(e.stroke.color))&&void 0!==t?t:e.getFillColor();a&&(e.strokeColor=(0,S.getHslAnimationFromHsl)(a,null===(r=e.stroke.color)||void 0===r?void 0:r.animation,i.retina.reduceFactor))}isEnabled(e){var t,r,i,a;const o=null===(t=e.stroke)||void 0===t?void 0:t.color;return!e.destroyed&&!e.spawning&&!!o&&(void 0!==(null===(r=e.strokeColor)||void 0===r?void 0:r.h.value)&&o.animation.h.enable||void 0!==(null===(i=e.strokeColor)||void 0===i?void 0:i.s.value)&&o.animation.s.enable||void 0!==(null===(a=e.strokeColor)||void 0===a?void 0:a.l.value)&&o.animation.l.enable)}update(e,t){this.isEnabled(e)&&function(e,t){var r,i,a,o,n,s,l,c,p,u;if(!(null===(r=e.stroke)||void 0===r?void 0:r.color))return;const d=e.stroke.color.animation,x=null!==(a=null===(i=e.strokeColor)||void 0===i?void 0:i.h)&&void 0!==a?a:null===(o=e.color)||void 0===o?void 0:o.h;x&&I(t,x,d.h,360,!1);const v=null!==(s=null===(n=e.strokeColor)||void 0===n?void 0:n.s)&&void 0!==s?s:null===(l=e.color)||void 0===l?void 0:l.s;v&&I(t,v,d.s,100,!0);const w=null!==(p=null===(c=e.strokeColor)||void 0===c?void 0:c.l)&&void 0!==p?p:null===(u=e.color)||void 0===u?void 0:u.l;w&&I(t,w,d.l,100,!0)}(e,t)}}var P=function(e,t,r,i){return new(r||(r=Promise))((function(a,o){function n(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(n,s)}l((i=i.apply(e,t||[])).next())}))};var j=E(405),O=function(e,t,r,i){return new(r||(r=Promise))((function(a,o){function n(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(n,s)}l((i=i.apply(e,t||[])).next())}))};function U(S){return O(this,void 0,void 0,(function*(){yield(0,e.loadExternalAttractInteraction)(S),yield(0,t.loadExternalBounceInteraction)(S),yield(0,r.loadExternalBubbleInteraction)(S),yield(0,i.loadExternalConnectInteraction)(S),yield(0,a.loadExternalGrabInteraction)(S),yield(0,o.loadExternalPauseInteraction)(S),yield(0,n.loadExternalPushInteraction)(S),yield(0,s.loadExternalRemoveInteraction)(S),yield(0,l.loadExternalRepulseInteraction)(S),yield(0,c.loadParticlesAttractInteraction)(S),yield(0,p.loadParticlesCollisionsInteraction)(S),yield(0,u.loadParticlesLinksInteraction)(S),yield(0,d.loadCircleShape)(S),yield(0,x.loadImageShape)(S),yield(0,v.loadLineShape)(S),yield(0,w.loadPolygonShape)(S),yield(0,q.loadSquareShape)(S),yield(0,h.loadStarShape)(S),yield(0,f.loadTextShape)(S),(0,y.loadLifeUpdater)(S),(0,b.loadOpacityUpdater)(S),(0,m.loadSizeUpdater)(S),(0,g.loadAngleUpdater)(S),(0,k.loadColorUpdater)(S),function(e){P(this,void 0,void 0,(function*(){yield e.addParticleUpdater("strokeColor",(e=>new C(e)))}))}(S),(0,j.loadOutModesUpdater)(S)}))}})(),A})()}));

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc