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.0.0-alpha.1 to 2.0.0-alpha.2

2

package.json
{
"name": "tsparticles-updater-color",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "tsParticles particles color updater",

@@ -5,0 +5,0 @@ "homepage": "https://particles.matteobruni.it/",

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

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

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

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

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

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