tsparticles-preset-fireworks
Advanced tools
Comparing version 2.0.4 to 2.0.5
{ | ||
"name": "tsparticles-preset-fireworks", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "tsParticles fireworks preset", | ||
@@ -84,15 +84,15 @@ "homepage": "https://particles.js.org/", | ||
"dependencies": { | ||
"tsparticles-engine": "^2.0.4", | ||
"tsparticles-move-base": "^2.0.4", | ||
"tsparticles-plugin-emitters": "^2.0.4", | ||
"tsparticles-shape-circle": "^2.0.4", | ||
"tsparticles-shape-line": "^2.0.4", | ||
"tsparticles-updater-angle": "^2.0.4", | ||
"tsparticles-updater-color": "^2.0.4", | ||
"tsparticles-updater-life": "^2.0.4", | ||
"tsparticles-updater-opacity": "^2.0.4", | ||
"tsparticles-updater-out-modes": "^2.0.4", | ||
"tsparticles-updater-size": "^2.0.4", | ||
"tsparticles-updater-stroke-color": "^2.0.4" | ||
"tsparticles-engine": "^2.0.5", | ||
"tsparticles-move-base": "^2.0.5", | ||
"tsparticles-plugin-emitters": "^2.0.5", | ||
"tsparticles-shape-circle": "^2.0.5", | ||
"tsparticles-shape-line": "^2.0.5", | ||
"tsparticles-updater-angle": "^2.0.5", | ||
"tsparticles-updater-color": "^2.0.5", | ||
"tsparticles-updater-life": "^2.0.5", | ||
"tsparticles-updater-opacity": "^2.0.5", | ||
"tsparticles-updater-out-modes": "^2.0.5", | ||
"tsparticles-updater-size": "^2.0.5", | ||
"tsparticles-updater-stroke-color": "^2.0.5" | ||
} | ||
} |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v2.0.4 | ||
* v2.0.5 | ||
*/ | ||
@@ -10,0 +10,0 @@ (function webpackUniversalModuleDefinition(root, factory) { |
@@ -1,2 +0,2 @@ | ||
/*! tsParticles Fireworks Preset v2.0.4 by Matteo Bruni */ | ||
/*! tsParticles Fireworks Preset v2.0.5 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,d){return function(){"use strict";var c={153:function(e,t,o){var i=this&&this.__awaiter||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())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.loadFireworksPreset=void 0;const r=o(1),n=o(919),a=o(941),l=o(841),s=o(949),u=o(489),d=o(45),c=o(838),p=o(364),v=o(328),f=o(856),y=o(689);t.loadFireworksPreset=function(e){return i(this,void 0,void 0,(function*(){yield(0,n.loadBaseMover)(e),yield(0,s.loadEmittersPlugin)(e),yield(0,a.loadCircleShape)(e),yield(0,d.loadLineShape)(e),yield(0,r.loadAngleUpdater)(e),yield(0,l.loadColorUpdater)(e),yield(0,u.loadLifeUpdater)(e),yield(0,c.loadOpacityUpdater)(e),yield(0,p.loadOutModesUpdater)(e),yield(0,v.loadSizeUpdater)(e),yield(0,f.loadStrokeColorUpdater)(e),yield e.addPreset("fireworks",y.options)}))}},689:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.options=void 0,t.options={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}}}}},856:function(e,t,o){o.r(t),o.d(t,{loadStrokeColorUpdater:function(){return l}});var i=o(818);function r(e,t,o,r,n){var a;const l=t;if(!l||!l.enable)return;const s=(0,i.randomInRange)(o.offset),u=(null!==(a=t.velocity)&&void 0!==a?a:0)*e.factor+3.6*s;n&&0!==l.status?(l.value-=u,l.value<0&&(l.status=0,l.value+=l.value)):(l.value+=u,n&&l.value>r&&(l.status=1,l.value-=l.value%r)),l.value>r&&(l.value%=r)}class n{constructor(e){this.container=e}init(e){var t,o;const r=this.container;e.stroke=e.options.stroke instanceof Array?(0,i.itemFromArray)(e.options.stroke,e.id,e.options.reduceDuplicates):e.options.stroke,e.strokeWidth=e.stroke.width*r.retina.pixelRatio;const n=null!==(t=(0,i.colorToHsl)(e.stroke.color))&&void 0!==t?t:e.getFillColor();n&&(e.strokeColor=(0,i.getHslAnimationFromHsl)(n,null===(o=e.stroke.color)||void 0===o?void 0:o.animation,r.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,n,a,l,s,u,d,c,p;if(!(null===(o=e.stroke)||void 0===o?void 0:o.color))return;const v=e.stroke.color.animation,f=null!==(n=null===(i=e.strokeColor)||void 0===i?void 0:i.h)&&void 0!==n?n:null===(a=e.color)||void 0===a?void 0:a.h;f&&r(t,f,v.h,360,!1);const y=null!==(s=null===(l=e.strokeColor)||void 0===l?void 0:l.s)&&void 0!==s?s:null===(u=e.color)||void 0===u?void 0:u.s;y&&r(t,y,v.s,100,!0);const m=null!==(c=null===(d=e.strokeColor)||void 0===d?void 0:d.l)&&void 0!==c?c:null===(p=e.color)||void 0===p?void 0:p.l;m&&r(t,m,v.l,100,!0)}(e,t)}}var a=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 l(e){return a(this,void 0,void 0,(function*(){yield e.addParticleUpdater("strokeColor",(e=>new n(e)))}))}},818:function(e){e.exports=d},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 c[e].call(o.exports,o,o.exports,v),o.exports}return 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})},v(153)}()})); |
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
875881
31
10502
Updatedtsparticles-engine@^2.0.5
Updatedtsparticles-move-base@^2.0.5