UNPKG

703 BJavaScriptView Raw
1/*! For license information please see 344.min.js.LICENSE.txt */
2(this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[344],{344:(e,i,s)=>{s.d(i,{SizeUpdater:()=>t});var a=s(5540);class t{init(e){const i=e.container,s=e.options.size.animation;s.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??i.retina.sizeAnimationSpeed)/a.a5*i.retina.reduceFactor,s.sync||(e.size.velocity*=(0,a.G0)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}update(e,i){this.isEnabled(e)&&(0,a.UC)(e,e.size,!0,e.options.size.animation.destroy,i)}}}}]);
\No newline at end of file