Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsparticles-updater-color

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsparticles-updater-color - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

4

package.json
{
"name": "tsparticles-updater-color",
"version": "2.1.3",
"version": "2.1.4",
"description": "tsParticles particles color updater",

@@ -75,4 +75,4 @@ "homepage": "https://particles.js.org/",

"dependencies": {
"tsparticles-engine": "^2.1.3"
"tsparticles-engine": "^2.1.4"
}
}

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

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

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

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

/*! tsParticles Color Updater v2.1.3 by Matteo Bruni */
/*! tsParticles Color Updater v2.1.4 by Matteo Bruni */
!function(o,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("tsparticles-engine"));else if("function"==typeof define&&define.amd)define(["tsparticles-engine"],e);else{var t="object"==typeof exports?e(require("tsparticles-engine")):e(o.window);for(var r in t)("object"==typeof exports?exports:o)[r]=t[r]}}(this,(o=>(()=>{"use strict";var e={818:e=>{e.exports=o}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,r),l.exports}r.d=(o,e)=>{for(var t in e)r.o(e,t)&&!r.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:e[t]})},r.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),r.r=o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{loadColorUpdater:()=>l});var o=r(818);function e(e,t,r,n,l){var i,a;const s=t;if(!s||!r.enable)return;const c=(0,o.randomInRange)(r.offset),d=(null!==(i=t.velocity)&&void 0!==i?i:0)*e.factor+3.6*c,u=null!==(a=t.decay)&&void 0!==a?a:1;l&&0!==s.status?(s.value-=d,s.value<0&&(s.status=0,s.value+=s.value)):(s.value+=d,l&&s.value>n&&(s.status=1,s.value-=s.value%n)),s.velocity&&1!==u&&(s.velocity*=u),s.value>n&&(s.value%=n)}class t{constructor(o){this.container=o}init(e){const t=(0,o.rangeColorToHsl)(e.options.color,e.id,e.options.reduceDuplicates);t&&(e.color=(0,o.getHslAnimationFromHsl)(t,e.options.color.animation,this.container.retina.reduceFactor))}isEnabled(o){var e,t,r;const n=o.options.color.animation;return!o.destroyed&&!o.spawning&&(void 0!==(null===(e=o.color)||void 0===e?void 0:e.h.value)&&n.h.enable||void 0!==(null===(t=o.color)||void 0===t?void 0:t.s.value)&&n.s.enable||void 0!==(null===(r=o.color)||void 0===r?void 0:r.l.value)&&n.l.enable)}update(o,t){!function(o,t){var r,n,l;const i=o.options.color.animation;void 0!==(null===(r=o.color)||void 0===r?void 0:r.h)&&e(t,o.color.h,i.h,360,!1),void 0!==(null===(n=o.color)||void 0===n?void 0:n.s)&&e(t,o.color.s,i.s,100,!0),void 0!==(null===(l=o.color)||void 0===l?void 0:l.l)&&e(t,o.color.l,i.l,100,!0)}(o,t)}}async function l(o){await o.addParticleUpdater("color",(o=>new t(o)))}})(),n})()));

Sorry, the diff of this file is not supported yet

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