Socket
Socket
Sign inDemoInstall

tsparticles-updater-stroke-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-stroke-color - npm Package Compare versions

Comparing version 2.0.0-alpha.5 to 2.0.0-alpha.6

4

package.json
{
"name": "tsparticles-updater-stroke-color",
"version": "2.0.0-alpha.5",
"version": "2.0.0-alpha.6",
"description": "tsParticles particles stroke color updater",

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

"dependencies": {
"tsparticles-engine": "^2.0.0-alpha.5"
"tsparticles-engine": "^2.0.0-alpha.6"
}
}

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

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

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

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

/*! tsParticles Stroke Color Updater v2.0.0-alpha.5 by Matteo Bruni */
/*! tsParticles Stroke Color Updater v2.0.0-alpha.6 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,(function(o){return(()=>{"use strict";var e={971:(o,e,t)=>{t.r(e),t.d(e,{loadStrokeColorUpdater:()=>i});var r=t(414);class l{constructor(o){this.container=o}isEnabled(o){var e,t,r;const l=o.stroke.color;return!o.destroyed&&!o.spawning&&void 0!==l&&(void 0!==(null===(e=o.strokeColor)||void 0===e?void 0:e.h.value)&&l.animation.h.enable||void 0!==(null===(t=o.strokeColor)||void 0===t?void 0:t.s.value)&&l.animation.s.enable||void 0!==(null===(r=o.strokeColor)||void 0===r?void 0:r.l.value)&&l.animation.l.enable)}update(o,e){var t,r,l,i,n,d,a,s,u,v,c,p;if(!this.isEnabled(o))return;const f=o.stroke.color.animation,b=f;if(void 0!==b.enable){const i=null!==(r=null===(t=o.strokeColor)||void 0===t?void 0:t.h)&&void 0!==r?r:null===(l=o.color)||void 0===l?void 0:l.h;i&&this.updateValue(o,e,i,b,360)}else{const t=f,r=null!==(n=null===(i=o.strokeColor)||void 0===i?void 0:i.h)&&void 0!==n?n:null===(d=o.color)||void 0===d?void 0:d.h;r&&this.updateValue(o,e,r,t.h,360);const l=null!==(s=null===(a=o.strokeColor)||void 0===a?void 0:a.s)&&void 0!==s?s:null===(u=o.color)||void 0===u?void 0:u.s;l&&this.updateValue(o,e,l,t.s,100);const b=null!==(c=null===(v=o.strokeColor)||void 0===v?void 0:v.l)&&void 0!==c?c:null===(p=o.color)||void 0===p?void 0:p.l;b&&this.updateValue(o,e,b,t.l,100)}}updateValue(o,e,t,l,i){var n;const d=t;if(!d)return;const a=(0,r.randomInRange)(l.offset);d.value+=(null!==(n=t.velocity)&&void 0!==n?n:0)*e.factor+3.6*a,d.value>i&&(d.value%=i)}}function i(o){o.addParticleUpdater("strokeColor",(o=>new l(o)))}},414:e=>{e.exports=o}},t={};function r(o){if(t[o])return t[o].exports;var l=t[o]={exports:{}};return e[o](l,l.exports,r),l.exports}return 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})},r(971)})()}));

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