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

@tsparticles/updater-opacity

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsparticles/updater-opacity - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

3

cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadOpacityUpdater = void 0;
exports.loadOpacityUpdater = loadOpacityUpdater;
const OpacityUpdater_js_1 = require("./OpacityUpdater.js");

@@ -10,2 +10,1 @@ async function loadOpacityUpdater(engine, refresh = true) {

}
exports.loadOpacityUpdater = loadOpacityUpdater;
{
"name": "@tsparticles/updater-opacity",
"version": "3.4.0",
"version": "3.5.0",
"description": "tsParticles particles opacity updater",

@@ -90,3 +90,3 @@ "homepage": "https://particles.js.org",

"dependencies": {
"@tsparticles/engine": "^3.4.0"
"@tsparticles/engine": "^3.5.0"
},

@@ -93,0 +93,0 @@ "publishConfig": {

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

* How to use? : Check the GitHub README
* v3.4.0
* v3.5.0
*/

@@ -10,0 +10,0 @@ /*

/*! For license information please see tsparticles.updater.opacity.min.js.LICENSE.txt */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],t);else{var o="object"==typeof exports?t(require("@tsparticles/engine")):t(e.window);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(this,(e=>(()=>{var t={303:t=>{t.exports=e}},o={};function i(e){var a=o[e];if(void 0!==a)return a.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{loadOpacityUpdater:()=>o});var e=i(303);class t{constructor(e){this.container=e}init(t){const o=t.options.opacity;t.opacity=(0,e.initParticleNumericAnimationValue)(o,1);const i=o.animation;i.enable&&(t.opacity.velocity=(0,e.getRangeValue)(i.speed)/e.percentDenominator*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=(0,e.getRandom)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(t,o){this.isEnabled(t)&&t.opacity&&(0,e.updateAnimation)(t,t.opacity,!0,t.options.opacity.animation.destroy,o)}}async function o(e,o=!0){await e.addParticleUpdater("opacity",(e=>Promise.resolve(new t(e))),o)}})(),a})()));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],t);else{var o="object"==typeof exports?t(require("@tsparticles/engine")):t(e.window);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(this,(e=>(()=>{var t={303:t=>{t.exports=e}},o={};function i(e){var a=o[e];if(void 0!==a)return a.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};i.r(a),i.d(a,{loadOpacityUpdater:()=>p});var r=i(303);class n{constructor(e){this.container=e}init(e){const t=e.options.opacity;e.opacity=(0,r.initParticleNumericAnimationValue)(t,1);const o=t.animation;o.enable&&(e.opacity.velocity=(0,r.getRangeValue)(o.speed)/r.percentDenominator*this.container.retina.reduceFactor,o.sync||(e.opacity.velocity*=(0,r.getRandom)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,t){this.isEnabled(e)&&e.opacity&&(0,r.updateAnimation)(e,e.opacity,!0,e.options.opacity.animation.destroy,t)}}async function p(e,t=!0){await e.addParticleUpdater("opacity",(e=>Promise.resolve(new n(e))),t)}return a})()));

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

/*! tsParticles Opacity Updater v3.4.0 by Matteo Bruni */
/*! tsParticles Opacity Updater v3.5.0 by Matteo Bruni */

@@ -12,3 +12,3 @@ (function (factory) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.loadOpacityUpdater = void 0;
exports.loadOpacityUpdater = loadOpacityUpdater;
const OpacityUpdater_js_1 = require("./OpacityUpdater.js");

@@ -20,3 +20,2 @@ async function loadOpacityUpdater(engine, refresh = true) {

}
exports.loadOpacityUpdater = loadOpacityUpdater;
});

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