tsparticles-preset-fireworks
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0-beta.2
{ | ||
"name": "tsparticles-preset-fireworks", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0-beta.2", | ||
"description": "tsParticles fireworks preset", | ||
@@ -48,14 +48,14 @@ "homepage": "https://particles.js.org/", | ||
"dependencies": { | ||
"tsparticles-engine": "^2.0.0-beta.0", | ||
"tsparticles-plugin-emitters": "^2.0.0-beta.1", | ||
"tsparticles-shape-circle": "^2.0.0-beta.1", | ||
"tsparticles-shape-line": "^2.0.0-beta.1", | ||
"tsparticles-updater-angle": "^2.0.0-beta.1", | ||
"tsparticles-updater-color": "^2.0.0-beta.1", | ||
"tsparticles-updater-life": "^2.0.0-beta.1", | ||
"tsparticles-updater-opacity": "^2.0.0-beta.1", | ||
"tsparticles-updater-out-modes": "^2.0.0-beta.1", | ||
"tsparticles-updater-size": "^2.0.0-beta.1", | ||
"tsparticles-updater-stroke-color": "^2.0.0-beta.1" | ||
"tsparticles-engine": "^2.0.0-beta.1", | ||
"tsparticles-plugin-emitters": "^2.0.0-beta.2", | ||
"tsparticles-shape-circle": "^2.0.0-beta.2", | ||
"tsparticles-shape-line": "^2.0.0-beta.2", | ||
"tsparticles-updater-angle": "^2.0.0-beta.2", | ||
"tsparticles-updater-color": "^2.0.0-beta.2", | ||
"tsparticles-updater-life": "^2.0.0-beta.2", | ||
"tsparticles-updater-opacity": "^2.0.0-beta.2", | ||
"tsparticles-updater-out-modes": "^2.0.0-beta.2", | ||
"tsparticles-updater-size": "^2.0.0-beta.2", | ||
"tsparticles-updater-stroke-color": "^2.0.0-beta.2" | ||
} | ||
} |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v2.0.0-beta.1 | ||
* v2.0.0-beta.2 | ||
*/ | ||
@@ -10,0 +10,0 @@ (function webpackUniversalModuleDefinition(root, factory) { |
@@ -1,2 +0,2 @@ | ||
/*! tsParticles Fireworks Preset v2.0.0-beta.1 by Matteo Bruni */ | ||
/*! tsParticles Fireworks Preset v2.0.0-beta.2 by Matteo Bruni */ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-engine"),require("tsparticles-shape-circle"),require("tsparticles-plugin-emitters"),require("tsparticles-updater-life"),require("tsparticles-updater-opacity"),require("tsparticles-updater-size"),require("tsparticles-shape-line"),require("tsparticles-updater-angle"),require("tsparticles-updater-out-modes"),require("tsparticles-updater-color"));else if("function"==typeof define&&define.amd)define(["tsparticles-engine","tsparticles-shape-circle","tsparticles-plugin-emitters","tsparticles-updater-life","tsparticles-updater-opacity","tsparticles-updater-size","tsparticles-shape-line","tsparticles-updater-angle","tsparticles-updater-out-modes","tsparticles-updater-color"],t);else{var o="object"==typeof exports?t(require("tsparticles-engine"),require("tsparticles-shape-circle"),require("tsparticles-plugin-emitters"),require("tsparticles-updater-life"),require("tsparticles-updater-opacity"),require("tsparticles-updater-size"),require("tsparticles-shape-line"),require("tsparticles-updater-angle"),require("tsparticles-updater-out-modes"),require("tsparticles-updater-color")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(this,(function(e,t,o,r,i,a,l,s,n,d){return(()=>{"use strict";var u={818:t=>{t.exports=e},949:e=>{e.exports=o},941:e=>{e.exports=t},45:e=>{e.exports=l},1:e=>{e.exports=s},841:e=>{e.exports=d},489:e=>{e.exports=r},838:e=>{e.exports=i},364:e=>{e.exports=n},328:e=>{e.exports=a}},p={};function c(e){var t=p[e];if(void 0!==t)return t.exports;var o=p[e]={exports:{}};return u[e](o,o.exports,c),o.exports}c.d=(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var v={};return(()=>{c.r(v),c.d(v,{loadFireworksPreset:()=>m});var e=c(818);const t={fullScreen:{enable:!0},detectRetina:!0,background:{color:"#000"},fpsLimit:60,emitters:{direction:e.MoveDirection.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:e.DestroyMode.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:e.StartValueType.max,destroy:e.DestroyType.min}},shape:{type:e.ShapeType.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,outMode:e.OutMode.destroy}}}},life:{count:1},shape:{type:"line"},size:{value:{min:.1,max:50},animation:{enable:!0,sync:!0,speed:90,startValue:e.StartValueType.max,destroy:e.DestroyType.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:e.OutMode.destroy,top:e.OutMode.none},trail:{fillColor:"#000",enable:!0,length:10}}}};var o=c(941),r=c(949),i=c(489);function a(t,o,r,i,a){var l;const s=o;if(!s||!s.enable)return;const n=(0,e.randomInRange)(r.offset),d=(null!==(l=o.velocity)&&void 0!==l?l:0)*t.factor+3.6*n;a&&s.status!==e.AnimationStatus.increasing?(s.value-=d,s.value<0&&(s.status=e.AnimationStatus.increasing,s.value+=s.value)):(s.value+=d,a&&s.value>i&&(s.status=e.AnimationStatus.decreasing,s.value-=s.value%i)),s.value>i&&(s.value%=i)}class l{constructor(e){this.container=e}init(t){var o,r;const i=this.container;t.stroke=t.options.stroke instanceof Array?(0,e.itemFromArray)(t.options.stroke,t.id,t.options.reduceDuplicates):t.options.stroke,t.strokeWidth=t.stroke.width*i.retina.pixelRatio;const a=null!==(o=(0,e.colorToHsl)(t.stroke.color))&&void 0!==o?o:t.getFillColor();a&&(t.strokeColor=(0,e.getHslAnimationFromHsl)(a,null===(r=t.stroke.color)||void 0===r?void 0:r.animation,i.retina.reduceFactor))}isEnabled(e){var t,o,r,i;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===(r=e.strokeColor)||void 0===r?void 0:r.s.value)&&a.animation.s.enable||void 0!==(null===(i=e.strokeColor)||void 0===i?void 0:i.l.value)&&a.animation.l.enable)}update(e,t){this.isEnabled(e)&&function(e,t){var o,r,i,l,s,n,d,u,p,c;if(!(null===(o=e.stroke)||void 0===o?void 0:o.color))return;const v=e.stroke.color.animation,f=null!==(i=null===(r=e.strokeColor)||void 0===r?void 0:r.h)&&void 0!==i?i:null===(l=e.color)||void 0===l?void 0:l.h;f&&a(t,f,v.h,360,!1);const m=null!==(n=null===(s=e.strokeColor)||void 0===s?void 0:s.s)&&void 0!==n?n:null===(d=e.color)||void 0===d?void 0:d.s;m&&a(t,m,v.s,100,!0);const y=null!==(p=null===(u=e.strokeColor)||void 0===u?void 0:u.l)&&void 0!==p?p:null===(c=e.color)||void 0===c?void 0:c.l;y&&a(t,y,v.l,100,!0)}(e,t)}}var s=c(838),n=c(328),d=c(45),u=c(1),p=c(364),f=c(841);function m(e){(0,r.loadEmittersPlugin)(e),(0,o.loadCircleShape)(e),(0,d.loadLineShape)(e),(0,u.loadAngleUpdater)(e),(0,f.loadColorUpdater)(e),(0,i.loadLifeUpdater)(e),(0,s.loadOpacityUpdater)(e),(0,p.loadOutModesUpdater)(e),(0,n.loadSizeUpdater)(e),function(e){e.addParticleUpdater("strokeColor",(e=>new l(e)))}(e),e.addPreset("fireworks",t)}})(),v})()})); |
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