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

tsparticles-preset-fireworks

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsparticles-preset-fireworks - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

26

package.json
{
"name": "tsparticles-preset-fireworks",
"version": "2.1.0",
"version": "2.1.1",
"description": "tsParticles fireworks preset",

@@ -84,15 +84,15 @@ "homepage": "https://particles.js.org/",

"dependencies": {
"tsparticles-engine": "^2.1.0",
"tsparticles-move-base": "^2.1.0",
"tsparticles-plugin-emitters": "^2.1.0",
"tsparticles-shape-circle": "^2.1.0",
"tsparticles-shape-line": "^2.1.0",
"tsparticles-updater-angle": "^2.1.0",
"tsparticles-updater-color": "^2.1.0",
"tsparticles-updater-life": "^2.1.0",
"tsparticles-updater-opacity": "^2.1.0",
"tsparticles-updater-out-modes": "^2.1.0",
"tsparticles-updater-size": "^2.1.0",
"tsparticles-updater-stroke-color": "^2.1.0"
"tsparticles-engine": "^2.1.1",
"tsparticles-move-base": "^2.1.1",
"tsparticles-plugin-emitters": "^2.1.1",
"tsparticles-shape-circle": "^2.1.1",
"tsparticles-shape-line": "^2.1.1",
"tsparticles-updater-angle": "^2.1.1",
"tsparticles-updater-color": "^2.1.1",
"tsparticles-updater-life": "^2.1.1",
"tsparticles-updater-opacity": "^2.1.1",
"tsparticles-updater-out-modes": "^2.1.1",
"tsparticles-updater-size": "^2.1.1",
"tsparticles-updater-stroke-color": "^2.1.1"
}
}

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

* How to use? : Check the GitHub README
* v2.1.0
* v2.1.1
*/

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

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

/*! tsParticles Fireworks Preset v2.1.0 by Matteo Bruni */
/*! tsParticles Fireworks Preset v2.1.1 by Matteo Bruni */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-updater-angle"),require("tsparticles-move-base"),require("tsparticles-shape-circle"),require("tsparticles-updater-color"),require("tsparticles-plugin-emitters"),require("tsparticles-updater-life"),require("tsparticles-shape-line"),require("tsparticles-updater-opacity"),require("tsparticles-updater-out-modes"),require("tsparticles-updater-size"),require("tsparticles-engine"));else if("function"==typeof define&&define.amd)define(["tsparticles-updater-angle","tsparticles-move-base","tsparticles-shape-circle","tsparticles-updater-color","tsparticles-plugin-emitters","tsparticles-updater-life","tsparticles-shape-line","tsparticles-updater-opacity","tsparticles-updater-out-modes","tsparticles-updater-size","tsparticles-engine"],t);else{var o="object"==typeof exports?t(require("tsparticles-updater-angle"),require("tsparticles-move-base"),require("tsparticles-shape-circle"),require("tsparticles-updater-color"),require("tsparticles-plugin-emitters"),require("tsparticles-updater-life"),require("tsparticles-shape-line"),require("tsparticles-updater-opacity"),require("tsparticles-updater-out-modes"),require("tsparticles-updater-size"),require("tsparticles-engine")):t(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 o)("object"==typeof exports?exports:e)[i]=o[i]}}(this,(function(e,t,o,i,r,a,n,s,l,u,c){return function(){"use strict";var d={818:function(e){e.exports=c},919:function(e){e.exports=t},949:function(e){e.exports=r},941:function(e){e.exports=o},45:function(e){e.exports=n},1:function(t){t.exports=e},841:function(e){e.exports=i},489:function(e){e.exports=a},838:function(e){e.exports=s},364:function(e){e.exports=l},328:function(e){e.exports=u}},p={};function v(e){var t=p[e];if(void 0!==t)return t.exports;var o=p[e]={exports:{}};return d[e](o,o.exports,v),o.exports}v.d=function(e,t){for(var o in t)v.o(t,o)&&!v.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},v.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};return function(){v.r(f),v.d(f,{loadFireworksPreset:function(){return y}});var e=v(1),t=v(919),o=v(941),i=v(841),r=v(949),a=v(489),n=v(45),s=v(838),l=v(364),u=v(328),c=v(818);function d(e,t,o,i,r){var a,n;const s=t;if(!s||!s.enable)return;const l=(0,c.randomInRange)(o.offset),u=(null!==(a=t.velocity)&&void 0!==a?a:0)*e.factor+3.6*l,d=null!==(n=t.decay)&&void 0!==n?n:1;r&&0!==s.status?(s.value-=u,s.value<0&&(s.status=0,s.value+=s.value)):(s.value+=u,r&&s.value>i&&(s.status=1,s.value-=s.value%i)),s.velocity&&1!==d&&(s.velocity*=d),s.value>i&&(s.value%=i)}class p{constructor(e){this.container=e}init(e){var t,o;const i=this.container;e.stroke=e.options.stroke instanceof Array?(0,c.itemFromArray)(e.options.stroke,e.id,e.options.reduceDuplicates):e.options.stroke,e.strokeWidth=e.stroke.width*i.retina.pixelRatio;const r=null!==(t=(0,c.rangeColorToHsl)(e.stroke.color))&&void 0!==t?t:e.getFillColor();r&&(e.strokeColor=(0,c.getHslAnimationFromHsl)(r,null===(o=e.stroke.color)||void 0===o?void 0:o.animation,i.retina.reduceFactor))}isEnabled(e){var t,o,i,r;const a=null===(t=e.stroke)||void 0===t?void 0:t.color;return!e.destroyed&&!e.spawning&&!!a&&(void 0!==(null===(o=e.strokeColor)||void 0===o?void 0:o.h.value)&&a.animation.h.enable||void 0!==(null===(i=e.strokeColor)||void 0===i?void 0:i.s.value)&&a.animation.s.enable||void 0!==(null===(r=e.strokeColor)||void 0===r?void 0:r.l.value)&&a.animation.l.enable)}update(e,t){this.isEnabled(e)&&function(e,t){var o,i,r,a,n,s,l,u,c,p;if(!(null===(o=e.stroke)||void 0===o?void 0:o.color))return;const v=e.stroke.color.animation,f=null!==(r=null===(i=e.strokeColor)||void 0===i?void 0:i.h)&&void 0!==r?r:null===(a=e.color)||void 0===a?void 0:a.h;f&&d(t,f,v.h,360,!1);const m=null!==(s=null===(n=e.strokeColor)||void 0===n?void 0:n.s)&&void 0!==s?s:null===(l=e.color)||void 0===l?void 0:l.s;m&&d(t,m,v.s,100,!0);const w=null!==(c=null===(u=e.strokeColor)||void 0===u?void 0:u.l)&&void 0!==c?c:null===(p=e.color)||void 0===p?void 0:p.l;w&&d(t,w,v.l,100,!0)}(e,t)}}const m=(e,t,o)=>{const i=e.max>o?e.max-o:0;let r=(0,c.setRangeValue)(e);i&&(r=(0,c.setRangeValue)(e.min-i,o));const a=e.min<t?e.min:0;return a&&(r=(0,c.setRangeValue)(0,e.max+a)),r},w={detectRetina:!0,background:{color:"#000"},fpsLimit:120,emitters:{direction:"top",life:{count:0,duration:.1,delay:.1},rate:{delay:.25,quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},destroy:{mode:"split",split:{count:1,factor:{value:.333333},rate:{value:200},particles:["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"].map((e=>{const t=(0,c.stringToRgb)(e);if(!t)return;const o=(0,c.rgbToHsl)(t),i=m({min:o.s-20,max:o.s+20},0,100),r=m({min:o.l-20,max:o.l+20},0,100);return{color:{value:{h:o.h,s:i,l:r}},stroke:{width:0},number:{value:0},collisions:{enable:!1},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:.7,sync:!1,startValue:"max",destroy:"min"}},shape:{type:"circle"},size:{value:2,animation:{enable:!1}},life:{count:1,duration:{value:{min:1,max:2}}},move:{enable:!0,gravity:{enable:!1},speed:2,direction:"none",random:!0,straight:!1,outModes:"destroy"}}})).filter((e=>void 0!==e))}},life:{count:1},shape:{type:"line"},size:{value:{min:.1,max:50},animation:{enable:!0,sync:!0,speed:90,startValue:"max",destroy:"min"}},stroke:{color:{value:"#ffffff"},width:1},rotate:{path:!0},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:"destroy",top:"none"},trail:{fillColor:"#000",enable:!0,length:10}}}};async function y(c){await(0,t.loadBaseMover)(c),await(0,r.loadEmittersPlugin)(c),await(0,o.loadCircleShape)(c),await(0,n.loadLineShape)(c),await(0,e.loadAngleUpdater)(c),await(0,i.loadColorUpdater)(c),await(0,a.loadLifeUpdater)(c),await(0,s.loadOpacityUpdater)(c),await(0,l.loadOutModesUpdater)(c),await(0,u.loadSizeUpdater)(c),await async function(e){await e.addParticleUpdater("strokeColor",(e=>new p(e)))}(c),await c.addPreset("fireworks",w)}}(),f}()}));

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