tsparticles-preset-fireworks
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "tsparticles-preset-fireworks", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "tsParticles fireworks preset", | ||
@@ -57,15 +57,15 @@ "homepage": "https://particles.js.org/", | ||
"dependencies": { | ||
"tsparticles-engine": "^2.0.1", | ||
"tsparticles-move-base": "^2.0.1", | ||
"tsparticles-plugin-emitters": "^2.0.1", | ||
"tsparticles-shape-circle": "^2.0.1", | ||
"tsparticles-shape-line": "^2.0.1", | ||
"tsparticles-updater-angle": "^2.0.1", | ||
"tsparticles-updater-color": "^2.0.1", | ||
"tsparticles-updater-life": "^2.0.1", | ||
"tsparticles-updater-opacity": "^2.0.1", | ||
"tsparticles-updater-out-modes": "^2.0.1", | ||
"tsparticles-updater-size": "^2.0.1", | ||
"tsparticles-updater-stroke-color": "^2.0.1" | ||
"tsparticles-engine": "^2.0.2", | ||
"tsparticles-move-base": "^2.0.2", | ||
"tsparticles-plugin-emitters": "^2.0.2", | ||
"tsparticles-shape-circle": "^2.0.2", | ||
"tsparticles-shape-line": "^2.0.2", | ||
"tsparticles-updater-angle": "^2.0.2", | ||
"tsparticles-updater-color": "^2.0.2", | ||
"tsparticles-updater-life": "^2.0.2", | ||
"tsparticles-updater-opacity": "^2.0.2", | ||
"tsparticles-updater-out-modes": "^2.0.2", | ||
"tsparticles-updater-size": "^2.0.2", | ||
"tsparticles-updater-stroke-color": "^2.0.2" | ||
} | ||
} |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v2.0.1 | ||
* v2.0.2 | ||
*/ | ||
@@ -10,0 +10,0 @@ (function webpackUniversalModuleDefinition(root, factory) { |
@@ -1,2 +0,2 @@ | ||
/*! tsParticles Fireworks Preset v2.0.1 by Matteo Bruni */ | ||
/*! tsParticles Fireworks Preset v2.0.2 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,n,a,l,s,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=a},1:function(t){t.exports=e},841:function(e){e.exports=i},489:function(e){e.exports=n},838:function(e){e.exports=l},364:function(e){e.exports=s},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 w}});var e=v(1),t=v(919),o=v(941),i=v(841),r=v(949),n=v(489),a=v(45),l=v(838),s=v(364),u=v(328),c=v(818);function d(e,t,o,i,r){var n;const a=t;if(!a||!a.enable)return;const l=(0,c.randomInRange)(o.offset),s=(null!==(n=t.velocity)&&void 0!==n?n:0)*e.factor+3.6*l;r&&0!==a.status?(a.value-=s,a.value<0&&(a.status=0,a.value+=a.value)):(a.value+=s,r&&a.value>i&&(a.status=1,a.value-=a.value%i)),a.value>i&&(a.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.colorToHsl)(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 n=null===(t=e.stroke)||void 0===t?void 0:t.color;return!e.destroyed&&!e.spawning&&!!n&&(void 0!==(null===(o=e.strokeColor)||void 0===o?void 0:o.h.value)&&n.animation.h.enable||void 0!==(null===(i=e.strokeColor)||void 0===i?void 0:i.s.value)&&n.animation.s.enable||void 0!==(null===(r=e.strokeColor)||void 0===r?void 0:r.l.value)&&n.animation.l.enable)}update(e,t){this.isEnabled(e)&&function(e,t){var o,i,r,n,a,l,s,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===(n=e.color)||void 0===n?void 0:n.h;f&&d(t,f,v.h,360,!1);const y=null!==(l=null===(a=e.strokeColor)||void 0===a?void 0:a.s)&&void 0!==l?l:null===(s=e.color)||void 0===s?void 0:s.s;y&&d(t,y,v.s,100,!0);const m=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;m&&d(t,m,v.l,100,!0)}(e,t)}}var y=function(e,t,o,i){return new(o||(o=Promise))((function(r,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function l(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}s((i=i.apply(e,t||[])).next())}))};const m={detectRetina:!0,background:{color:"#000"},fpsLimit:120,emitters:{direction:"top",life:{count:0,duration:.1,delay:.1},rate:{delay:.5,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:100},particles:{color:{value:["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"]},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"}}}},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}}}};var h=function(e,t,o,i){return new(o||(o=Promise))((function(r,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function l(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}s((i=i.apply(e,t||[])).next())}))};function w(c){return h(this,void 0,void 0,(function*(){yield(0,t.loadBaseMover)(c),yield(0,r.loadEmittersPlugin)(c),yield(0,o.loadCircleShape)(c),yield(0,a.loadLineShape)(c),yield(0,e.loadAngleUpdater)(c),yield(0,i.loadColorUpdater)(c),yield(0,n.loadLifeUpdater)(c),yield(0,l.loadOpacityUpdater)(c),yield(0,s.loadOutModesUpdater)(c),yield(0,u.loadSizeUpdater)(c),yield function(e){return y(this,void 0,void 0,(function*(){yield e.addParticleUpdater("strokeColor",(e=>new p(e)))}))}(c),yield c.addPreset("fireworks",m)}))}}(),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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
828263
9410
Updatedtsparticles-engine@^2.0.2
Updatedtsparticles-move-base@^2.0.2