Socket
Socket
Sign inDemoInstall

tsparticles-slim

Package Overview
Dependencies
30
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.4 to 2.2.0

LICENSE

64

package.json
{
"name": "tsparticles-slim",
"version": "2.1.4",
"version": "2.2.0",
"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.",
"homepage": "https://particles.js.org/",
"homepage": "https://particles.js.org",
"repository": {

@@ -72,32 +72,32 @@ "type": "git",

"dependencies": {
"tsparticles-engine": "^2.1.4",
"tsparticles-interaction-external-attract": "^2.1.4",
"tsparticles-interaction-external-bounce": "^2.1.4",
"tsparticles-interaction-external-bubble": "^2.1.4",
"tsparticles-interaction-external-connect": "^2.1.4",
"tsparticles-interaction-external-grab": "^2.1.4",
"tsparticles-interaction-external-pause": "^2.1.4",
"tsparticles-interaction-external-push": "^2.1.4",
"tsparticles-interaction-external-remove": "^2.1.4",
"tsparticles-interaction-external-repulse": "^2.1.4",
"tsparticles-interaction-particles-attract": "^2.1.4",
"tsparticles-interaction-particles-collisions": "^2.1.4",
"tsparticles-interaction-particles-links": "^2.1.4",
"tsparticles-move-base": "^2.1.4",
"tsparticles-move-parallax": "^2.1.4",
"tsparticles-particles.js": "^2.1.4",
"tsparticles-shape-circle": "^2.1.4",
"tsparticles-shape-image": "^2.1.4",
"tsparticles-shape-line": "^2.1.4",
"tsparticles-shape-polygon": "^2.1.4",
"tsparticles-shape-square": "^2.1.4",
"tsparticles-shape-star": "^2.1.4",
"tsparticles-shape-text": "^2.1.4",
"tsparticles-updater-angle": "^2.1.4",
"tsparticles-updater-color": "^2.1.4",
"tsparticles-updater-life": "^2.1.4",
"tsparticles-updater-opacity": "^2.1.4",
"tsparticles-updater-out-modes": "^2.1.4",
"tsparticles-updater-size": "^2.1.4",
"tsparticles-updater-stroke-color": "^2.1.4"
"tsparticles-engine": "^2.2.0",
"tsparticles-interaction-external-attract": "^2.2.0",
"tsparticles-interaction-external-bounce": "^2.2.0",
"tsparticles-interaction-external-bubble": "^2.2.0",
"tsparticles-interaction-external-connect": "^2.2.0",
"tsparticles-interaction-external-grab": "^2.2.0",
"tsparticles-interaction-external-pause": "^2.2.0",
"tsparticles-interaction-external-push": "^2.2.0",
"tsparticles-interaction-external-remove": "^2.2.0",
"tsparticles-interaction-external-repulse": "^2.2.0",
"tsparticles-interaction-particles-attract": "^2.2.0",
"tsparticles-interaction-particles-collisions": "^2.2.0",
"tsparticles-interaction-particles-links": "^2.2.0",
"tsparticles-move-base": "^2.2.0",
"tsparticles-move-parallax": "^2.2.0",
"tsparticles-particles.js": "^2.2.0",
"tsparticles-shape-circle": "^2.2.0",
"tsparticles-shape-image": "^2.2.0",
"tsparticles-shape-line": "^2.2.0",
"tsparticles-shape-polygon": "^2.2.0",
"tsparticles-shape-square": "^2.2.0",
"tsparticles-shape-star": "^2.2.0",
"tsparticles-shape-text": "^2.2.0",
"tsparticles-updater-angle": "^2.2.0",
"tsparticles-updater-color": "^2.2.0",
"tsparticles-updater-life": "^2.2.0",
"tsparticles-updater-opacity": "^2.2.0",
"tsparticles-updater-out-modes": "^2.2.0",
"tsparticles-updater-size": "^2.2.0",
"tsparticles-updater-stroke-color": "^2.2.0"
},

@@ -104,0 +104,0 @@ "main": "cjs/index.js",

@@ -5,3 +5,3 @@ [![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org)

[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-slim/badge)](https://www.jsdelivr.com/package/npm/tsparticles-slim) [![npmjs](https://badge.fury.io/js/tsparticles-slim.svg)](https://www.npmjs.com/package/tsparticles-slim) [![npmjs](https://img.shields.io/npm/dt/tsparticles-slim)](https://www.npmjs.com/package/tsparticles-slim)
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-slim/badge)](https://www.jsdelivr.com/package/npm/tsparticles-slim) [![npmjs](https://badge.fury.io/js/tsparticles-slim.svg)](https://www.npmjs.com/package/tsparticles-slim) [![npmjs](https://img.shields.io/npm/dt/tsparticles-slim)](https://www.npmjs.com/package/tsparticles-slim) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)

@@ -8,0 +8,0 @@ [tsParticles](https://github.com/matteobruni/tsparticles) slim bundle loads some of the most used features to

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

* How to use? : Check the GitHub README
* v2.1.4
* v2.2.0
*/

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

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

/*! tsParticles Slim v2.1.4 by Matteo Bruni */
/*! For license information please see tsparticles.slim.min.js.LICENSE.txt */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-particles.js"),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-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-engine"),require("tsparticles-shape-text"));else if("function"==typeof define&&define.amd)define(["tsparticles-particles.js","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-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-engine","tsparticles-shape-text"],t);else{var r="object"==typeof exports?t(require("tsparticles-particles.js"),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-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-engine"),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);for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}}(this,((e,t,r,a,i,o,s,l,n,c,p,u,d,w,x,v,q,h,b,f,m,y,g,k,S,C,I,P,j)=>(()=>{"use strict";var E={818:e=>{e.exports=P},174:e=>{e.exports=o},544:e=>{e.exports=s},923:e=>{e.exports=l},364:e=>{e.exports=n},602:e=>{e.exports=c},999:e=>{e.exports=p},639:e=>{e.exports=u},394:e=>{e.exports=d},813:e=>{e.exports=w},966:e=>{e.exports=m},260:e=>{e.exports=y},955:e=>{e.exports=g},919:e=>{e.exports=r},387:e=>{e.exports=f},995:t=>{t.exports=e},941:e=>{e.exports=a},662:e=>{e.exports=x},45:e=>{e.exports=q},722:e=>{e.exports=k},295:e=>{e.exports=C},110:e=>{e.exports=I},922:e=>{e.exports=j},1:e=>{e.exports=t},841:e=>{e.exports=i},489:e=>{e.exports=v},838:e=>{e.exports=h},405:e=>{e.exports=b},328:e=>{e.exports=S}},O={};function U(e){var t=O[e];if(void 0!==t)return t.exports;var r=O[e]={exports:{}};return E[e](r,r.exports,U),r.exports}U.d=(e,t)=>{for(var r in t)U.o(t,r)&&!U.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},U.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),U.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var A={};return(()=>{U.r(A),U.d(A,{loadSlim:()=>M});var e=U(995),t=U(1),r=U(919),a=U(941),i=U(841),o=U(174),s=U(544),l=U(923),n=U(364),c=U(602),p=U(999),u=U(639),d=U(394),w=U(813),x=U(662),v=U(489),q=U(45),h=U(838),b=U(405),f=U(387),m=U(966),y=U(260),g=U(955),k=U(722),S=U(328),C=U(295),I=U(110),P=U(818);function j(e,t,r,a,i){var o,s;const l=t;if(!l||!l.enable)return;const n=(0,P.randomInRange)(r.offset),c=(null!==(o=t.velocity)&&void 0!==o?o:0)*e.factor+3.6*n,p=null!==(s=t.decay)&&void 0!==s?s:1;i&&0!==l.status?(l.value-=c,l.value<0&&(l.status=0,l.value+=l.value)):(l.value+=c,i&&l.value>a&&(l.status=1,l.value-=l.value%a)),l.velocity&&1!==p&&(l.velocity*=p),l.value>a&&(l.value%=a)}class E{constructor(e){this.container=e}init(e){var t,r;const a=this.container;e.stroke=e.options.stroke instanceof Array?(0,P.itemFromArray)(e.options.stroke,e.id,e.options.reduceDuplicates):e.options.stroke,e.strokeWidth=e.stroke.width*a.retina.pixelRatio;const i=null!==(t=(0,P.rangeColorToHsl)(e.stroke.color))&&void 0!==t?t:e.getFillColor();i&&(e.strokeColor=(0,P.getHslAnimationFromHsl)(i,null===(r=e.stroke.color)||void 0===r?void 0:r.animation,a.retina.reduceFactor))}isEnabled(e){var t,r,a,i;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===(a=e.strokeColor)||void 0===a?void 0:a.s.value)&&o.animation.s.enable||void 0!==(null===(i=e.strokeColor)||void 0===i?void 0:i.l.value)&&o.animation.l.enable)}update(e,t){this.isEnabled(e)&&function(e,t){var r,a,i,o,s,l,n,c,p,u;if(!(null===(r=e.stroke)||void 0===r?void 0:r.color))return;const d=e.stroke.color.animation,w=null!==(i=null===(a=e.strokeColor)||void 0===a?void 0:a.h)&&void 0!==i?i:null===(o=e.color)||void 0===o?void 0:o.h;w&&j(t,w,d.h,360,!1);const x=null!==(l=null===(s=e.strokeColor)||void 0===s?void 0:s.s)&&void 0!==l?l:null===(n=e.color)||void 0===n?void 0:n.s;x&&j(t,x,d.s,100,!0);const v=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;v&&j(t,v,d.l,100,!0)}(e,t)}}var O=U(922);async function M(P){await(0,r.loadBaseMover)(P),await(0,f.loadParallaxMover)(P),await(0,o.loadExternalAttractInteraction)(P),await(0,s.loadExternalBounceInteraction)(P),await(0,l.loadExternalBubbleInteraction)(P),await(0,n.loadExternalConnectInteraction)(P),await(0,c.loadExternalGrabInteraction)(P),await(0,p.loadExternalPauseInteraction)(P),await(0,u.loadExternalPushInteraction)(P),await(0,d.loadExternalRemoveInteraction)(P),await(0,w.loadExternalRepulseInteraction)(P),await(0,m.loadParticlesAttractInteraction)(P),await(0,y.loadParticlesCollisionsInteraction)(P),await(0,g.loadParticlesLinksInteraction)(P),await(0,a.loadCircleShape)(P),await(0,x.loadImageShape)(P),await(0,q.loadLineShape)(P),await(0,k.loadPolygonShape)(P),await(0,C.loadSquareShape)(P),await(0,I.loadStarShape)(P),await(0,O.loadTextShape)(P),await(0,v.loadLifeUpdater)(P),await(0,h.loadOpacityUpdater)(P),await(0,S.loadSizeUpdater)(P),await(0,t.loadAngleUpdater)(P),await(0,i.loadColorUpdater)(P),await async function(e){await e.addParticleUpdater("strokeColor",(e=>new E(e)))}(P),await(0,b.loadOutModesUpdater)(P),await(0,e.initPjs)(P)}})(),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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc