Socket
Socket
Sign inDemoInstall

tsparticles-slim

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsparticles-slim - npm Package Compare versions

Comparing version 2.0.0-beta.0 to 2.0.0-beta.1

60

package.json
{
"name": "tsparticles-slim",
"version": "2.0.0-beta.0",
"version": "2.0.0-beta.1",
"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.",

@@ -69,31 +69,31 @@ "homepage": "https://particles.js.org/",

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

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

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

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

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

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

/*! tsParticles Slim v2.0.0-beta.0 by Matteo Bruni */
/*! tsParticles Slim v2.0.0-beta.1 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-tilt"),require("tsparticles-updater-roll"),require("tsparticles-updater-wobble"),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-tilt","tsparticles-updater-roll","tsparticles-updater-wobble","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-tilt"),require("tsparticles-updater-roll"),require("tsparticles-updater-wobble"),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,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,s,l,n,p,c,u,d,x,v,w,q,b,h,f,m,g,y,k,S,I,C,E,P){return(()=>{"use strict";var U={818:e=>{e.exports=E},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=s},394:e=>{e.exports=l},813:e=>{e.exports=n},966:e=>{e.exports=p},260:e=>{e.exports=c},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=b},922:e=>{e.exports=h},1:e=>{e.exports=y},841:e=>{e.exports=C},489:e=>{e.exports=f},838:e=>{e.exports=m},405:e=>{e.exports=P},281:e=>{e.exports=S},328:e=>{e.exports=g},950:e=>{e.exports=k},304:e=>{e.exports=I}},A={};function j(e){var t=A[e];if(void 0!==t)return t.exports;var r=A[e]={exports:{}};return U[e](r,r.exports,j),r.exports}j.d=(e,t)=>{for(var r in t)j.o(t,r)&&!j.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},j.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var O={};return(()=>{j.r(O),j.d(O,{loadSlim:()=>R});var e=j(174),t=j(544),r=j(923),i=j(364),a=j(602),o=j(999),s=j(639),l=j(394),n=j(813),p=j(966),c=j(260),u=j(955),d=j(941),x=j(662),v=j(45),w=j(722),q=j(295),b=j(110),h=j(922),f=j(489),m=j(838),g=j(328),y=j(1),k=j(950),S=j(281),I=j(304),C=j(841),E=j(818);function P(e,t,r,i,a){var o;const s=t;if(!s||!s.enable)return;const l=(0,E.randomInRange)(r.offset),n=(null!==(o=t.velocity)&&void 0!==o?o:0)*e.factor+3.6*l;a&&s.status!==E.AnimationStatus.increasing?(s.value-=n,s.value<0&&(s.status=E.AnimationStatus.increasing,s.value+=s.value)):(s.value+=n,a&&s.value>i&&(s.status=E.AnimationStatus.decreasing,s.value-=s.value%i)),s.value>i&&(s.value%=i)}class U{constructor(e){this.container=e}init(e){var t,r;const i=this.container;e.stroke=e.options.stroke instanceof Array?(0,E.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,E.colorToHsl)(e.stroke.color))&&void 0!==t?t:e.getFillColor();a&&(e.strokeColor=(0,E.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,s,l,n,p,c,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&&P(t,x,d.h,360,!1);const v=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;v&&P(t,v,d.s,100,!0);const w=null!==(c=null===(p=e.strokeColor)||void 0===p?void 0:p.l)&&void 0!==c?c:null===(u=e.color)||void 0===u?void 0:u.l;w&&P(t,w,d.l,100,!0)}(e,t)}}var A=j(405);function R(E){(0,e.loadExternalAttractInteraction)(E),(0,t.loadExternalBounceInteraction)(E),(0,r.loadExternalBubbleInteraction)(E),(0,i.loadExternalConnectInteraction)(E),(0,a.loadExternalGrabInteraction)(E),(0,o.loadExternalPauseInteraction)(E),(0,s.loadExternalPushInteraction)(E),(0,l.loadExternalRemoveInteraction)(E),(0,n.loadExternalRepulseInteraction)(E),(0,p.loadParticlesAttractInteraction)(E),(0,c.loadParticlesCollisionsInteraction)(E),(0,u.loadParticlesLinksInteraction)(E),(0,d.loadCircleShape)(E),(0,x.loadImageShape)(E),(0,v.loadLineShape)(E),(0,w.loadPolygonShape)(E),(0,q.loadSquareShape)(E),(0,b.loadStarShape)(E),(0,h.loadTextShape)(E),(0,f.loadLifeUpdater)(E),(0,m.loadOpacityUpdater)(E),(0,g.loadSizeUpdater)(E),(0,y.loadAngleUpdater)(E),(0,k.loadTiltUpdater)(E),(0,S.loadRollUpdater)(E),(0,I.loadWobbleUpdater)(E),(0,C.loadColorUpdater)(E),function(e){e.addParticleUpdater("strokeColor",(e=>new U(e)))}(E),(0,A.loadOutModesUpdater)(E)}})(),O})()}));

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc