@tsparticles/preset-fireworks 4.0.0-alpha.0 → 4.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/125.min.js.LICENSE.txt +1 -1
  2. package/171.min.js.LICENSE.txt +1 -1
  3. package/213.min.js.LICENSE.txt +1 -1
  4. package/22.min.js.LICENSE.txt +1 -1
  5. package/226.min.js.LICENSE.txt +1 -1
  6. package/237.min.js.LICENSE.txt +1 -1
  7. package/264.min.js.LICENSE.txt +1 -1
  8. package/267.min.js.LICENSE.txt +1 -1
  9. package/280.min.js.LICENSE.txt +1 -1
  10. package/283.min.js +1 -1
  11. package/283.min.js.LICENSE.txt +1 -1
  12. package/301.min.js.LICENSE.txt +1 -1
  13. package/313.min.js.LICENSE.txt +1 -1
  14. package/319.min.js.LICENSE.txt +1 -1
  15. package/349.min.js.LICENSE.txt +1 -1
  16. package/389.min.js.LICENSE.txt +1 -1
  17. package/397.min.js.LICENSE.txt +1 -1
  18. package/418.min.js.LICENSE.txt +1 -1
  19. package/453.min.js.LICENSE.txt +1 -1
  20. package/455.min.js.LICENSE.txt +1 -1
  21. package/459.min.js.LICENSE.txt +1 -1
  22. package/477.min.js.LICENSE.txt +1 -1
  23. package/481.min.js.LICENSE.txt +1 -1
  24. package/488.min.js.LICENSE.txt +1 -1
  25. package/49.min.js.LICENSE.txt +1 -1
  26. package/509.min.js.LICENSE.txt +1 -1
  27. package/527.min.js.LICENSE.txt +1 -1
  28. package/541.min.js.LICENSE.txt +1 -1
  29. package/597.min.js.LICENSE.txt +1 -1
  30. package/633.min.js.LICENSE.txt +1 -1
  31. package/637.min.js.LICENSE.txt +1 -1
  32. package/669.min.js.LICENSE.txt +1 -1
  33. package/751.min.js.LICENSE.txt +1 -1
  34. package/802.min.js.LICENSE.txt +1 -1
  35. package/803.min.js.LICENSE.txt +1 -1
  36. package/819.min.js.LICENSE.txt +1 -1
  37. package/829.min.js.LICENSE.txt +1 -1
  38. package/890.min.js.LICENSE.txt +1 -1
  39. package/908.min.js.LICENSE.txt +1 -1
  40. package/926.min.js.LICENSE.txt +1 -1
  41. package/98.min.js.LICENSE.txt +1 -1
  42. package/browser/options.js +1 -3
  43. package/cjs/options.js +1 -3
  44. package/dist_browser_options_js.js +2 -2
  45. package/esm/options.js +1 -3
  46. package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_2_node_modules_tsparticles_basic_browser_index_js.js +1 -1
  47. package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-alpha_2_node_modules_tsparticles_effect-trai-3395e5.js +1 -1
  48. package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-alpha_2_node_modules_tsparticles_effect-trai-8c7216.js +1 -1
  49. package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-7d79eb.js +1 -1
  50. package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-fb148a.js +1 -1
  51. package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_2_node_modules_tsparti-cafd8c.js +1 -1
  52. package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_2_node_modules_tsparti-cf2f58.js +1 -1
  53. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-122a51.js +1 -1
  54. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-6bd6f8.js +1 -1
  55. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--91288b.js +1 -1
  56. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--d06b2a.js +1 -1
  57. package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--70976c.js +1 -1
  58. package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--e141e9.js +1 -1
  59. package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--60c9df.js +1 -1
  60. package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--732407.js +1 -1
  61. package/node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-alpha_2_node_modules_tsparticles_plugin-sou-6e6a34.js +1 -1
  62. package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-c98489.js +1 -1
  63. package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-ce96e8.js +1 -1
  64. package/node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_2_node_modules_tsparticles_shape-line_br-01d607.js +1 -1
  65. package/node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_2_node_modules_tsparticles_shape-line_br-eb7b65.js +1 -1
  66. package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-210bd6.js +1 -1
  67. package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-6ff909.js +1 -1
  68. package/node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_2_node_modules_tsparticles_updater--cef2d9.js +1 -1
  69. package/node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_2_node_modules_tsparticles_updater--f71d4c.js +1 -1
  70. package/node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_2_node_modules_tsparticles_updater-lif-50f821.js +1 -1
  71. package/node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_2_node_modules_tsparticles_updater-lif-dbf90f.js +1 -1
  72. package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--4e8c57.js +1 -1
  73. package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--ac14ff.js +1 -1
  74. package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticles_update-cd317f.js +1 -1
  75. package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_2_node_modules_tsparticles_updater-r-0de212.js +1 -1
  76. package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_2_node_modules_tsparticles_updater-r-e97427.js +1 -1
  77. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-53e0fe.js +1 -1
  78. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-aaa117.js +1 -1
  79. package/node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_2_node_modules_tsparticles_upd-74b323.js +1 -1
  80. package/node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_2_node_modules_tsparticles_upd-ca004c.js +1 -1
  81. package/package.json +1 -1
  82. package/report.html +1 -1
  83. package/tsparticles.preset.fireworks.bundle.js +1 -1
  84. package/tsparticles.preset.fireworks.bundle.min.js.LICENSE.txt +1 -1
  85. package/tsparticles.preset.fireworks.js +1 -1
  86. package/tsparticles.preset.fireworks.min.js.LICENSE.txt +1 -1
  87. package/umd/options.js +0 -2
  88. package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_2_node_modules_tsparticles_engine_br-9c0a0f.js +1 -1
  89. package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_-1e60b5.js +1 -1
  90. package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-alpha_2_node_modules_tsparticles_pl-a36589.js +1 -1
  91. package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticle-124574.js +1 -1
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
package/283.min.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 283.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[283],{8283(e,t,a){a.d(t,{initOptions:()=>o,presetName:()=>n});var i=a(4929);const n="fireworks";function o(){const e=(e,t,a)=>{const n=e.max>a?e.max-a:0;let o=(0,i.DT4)(e);n&&(o=(0,i.DT4)(e.min-n,a));const r=e.min<t?e.min:0;return r&&(o=(0,i.DT4)(0,e.max+r)),o},t=["#FF0000","#FF2A00","#FF5500","#FF8000","#FFAA00","#FFD400","#FFFF00","#D4FF00","#AAFF00","#80FF00","#55FF00","#2AFF00","#00FF00","#00FF2A","#00FF55","#00FF80","#00FFAA","#00FFD4","#00FFFF","#00D4FF","#00AAFF","#0080FF","#0055FF","#002AFF","#0000FF","#2A00FF","#5500FF","#8000FF","#AA00FF","#D400FF","#FF00FF","#FF00D4","#FF00AA","#FF0080","#FF0055","#FF002A"].map(t=>{const a=(e=>{let t=e;const a=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;a.test(t)&&(t=t.replace(a,(e,t,a,i,n)=>t+t+a+a+i+i+(n?n+n:"")));const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);if(!n)return;n.shift();const o=2,r=1,s=0,F={a:n[3],b:n[o],g:n[r],r:n[s]};return{r:F.r?Number.parseInt(F.r,16):i.dvp,g:F.g?Number.parseInt(F.g,16):i.dvp,b:F.b?Number.parseInt(F.b,16):i.dvp,a:F.a?Number.parseInt(F.a,16):i.aZx}})(t);if(!a)return void(0,i.tZQ)().log("color not found",t);const n=(0,i.K6u)(a),o=0,r=100,s=0,F=100,l=e({min:n.s-30,max:n.s+30},o,r),m=e({min:n.l-30,max:n.l+30},s,F);return(0,i.tZQ)().log(n.h,l,m),{color:{value:{h:n.h,s:l,l:m}},stroke:{width:0},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:.7,sync:!1,startValue:i.SKz.max,destroy:i.VKE.min}},shape:{type:"circle"},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:i.SKz.min,destroy:i.VKE.none}},life:{count:1,duration:{value:{min:1,max:2}}},move:{decay:{min:.075,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:5},speed:{min:5,max:15},direction:"none",outModes:i.Yzx.destroy}}}).filter(e=>void 0!==e);return{detectRetina:!0,background:{color:"#000"},fpsLimit:120,emitters:{direction:i.FWc.top,rate:{delay:.3,quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},destroy:{mode:"split",bounds:{top:{min:15,max:35}},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:{min:75,max:150}},particles:t}},life:{count:1},shape:{type:"circle"},effect:{type:"trail",options:{trail:{length:{min:5,max:15},minWidth:1,maxWidth:1}}},size:{value:1},stroke:{color:{value:"#ffffff"},width:1},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:i.Yzx.destroy,top:i.Yzx.none}}},sounds:{enable:!0,events:[{event:i.Bx4.particleRemoved,filter:e=>e.data.particle.options.move.gravity.inverse,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}}}}}]);
2
+ (this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[283],{8283(e,t,a){a.d(t,{initOptions:()=>r,presetName:()=>n});var i=a(4929);const n="fireworks";function r(){const e=(e,t,a)=>{const n=e.max>a?e.max-a:0;let r=(0,i.DT4)(e);n&&(r=(0,i.DT4)(e.min-n,a));const s=e.min<t?e.min:0;return s&&(r=(0,i.DT4)(0,e.max+s)),r},t=["#FF0000","#FF2A00","#FF5500","#FF8000","#FFAA00","#FFD400","#FFFF00","#D4FF00","#AAFF00","#80FF00","#55FF00","#2AFF00","#00FF00","#00FF2A","#00FF55","#00FF80","#00FFAA","#00FFD4","#00FFFF","#00D4FF","#00AAFF","#0080FF","#0055FF","#002AFF","#0000FF","#2A00FF","#5500FF","#8000FF","#AA00FF","#D400FF","#FF00FF","#FF00D4","#FF00AA","#FF0080","#FF0055","#FF002A"].map(t=>{const a=(e=>{let t=e;const a=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;a.test(t)&&(t=t.replace(a,(e,t,a,i,n)=>t+t+a+a+i+i+(n?n+n:"")));const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);if(!n)return;n.shift();const r=2,s=1,o=0,F={a:n[3],b:n[r],g:n[s],r:n[o]};return{r:F.r?Number.parseInt(F.r,16):i.dvp,g:F.g?Number.parseInt(F.g,16):i.dvp,b:F.b?Number.parseInt(F.b,16):i.dvp,a:F.a?Number.parseInt(F.a,16):i.aZx}})(t);if(!a)return;const n=(0,i.K6u)(a),r=0,s=100,o=0,F=100,l=e({min:n.s-30,max:n.s+30},r,s),m=e({min:n.l-30,max:n.l+30},o,F);return{color:{value:{h:n.h,s:l,l:m}},stroke:{width:0},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:.7,sync:!1,startValue:i.SKz.max,destroy:i.VKE.min}},shape:{type:"circle"},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:i.SKz.min,destroy:i.VKE.none}},life:{count:1,duration:{value:{min:1,max:2}}},move:{decay:{min:.075,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:5},speed:{min:5,max:15},direction:"none",outModes:i.Yzx.destroy}}}).filter(e=>void 0!==e);return{detectRetina:!0,background:{color:"#000"},fpsLimit:120,emitters:{direction:i.FWc.top,rate:{delay:.3,quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},destroy:{mode:"split",bounds:{top:{min:15,max:35}},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:{min:75,max:150}},particles:t}},life:{count:1},shape:{type:"circle"},effect:{type:"trail",options:{trail:{length:{min:5,max:15},minWidth:1,maxWidth:1}}},size:{value:1},stroke:{color:{value:"#ffffff"},width:1},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:i.Yzx.destroy,top:i.Yzx.none}}},sounds:{enable:!0,events:[{event:i.Bx4.particleRemoved,filter:e=>e.data.particle.options.move.gravity.inverse,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}}}}}]);
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -1,4 +1,4 @@
1
- import { DestroyType, EventType, MoveDirection, OutMode, StartValueType, defaultAlpha, getLogger, none, rgbToHsl, setRangeValue, } from "@tsparticles/engine";
1
+ import { DestroyType, EventType, MoveDirection, OutMode, StartValueType, defaultAlpha, none, rgbToHsl, setRangeValue, } from "@tsparticles/engine";
2
2
  export const presetName = "fireworks";
3
3
  export function initOptions() {
4
4
  const explodeSoundCheck = (args) => {
@@ -84,7 +84,6 @@ export function initOptions() {
84
84
  .map(color => {
85
85
  const rgb = hexToRgba(color);
86
86
  if (!rgb) {
87
- getLogger().log("color not found", color);
88
87
  return undefined;
89
88
  }
90
89
  const hsl = rgbToHsl(rgb), sOffset = 30, lOffset = 30, sBounds = {
@@ -94,7 +93,6 @@ export function initOptions() {
94
93
  min: 0,
95
94
  max: 100,
96
95
  }, sRange = fixRange({ min: hsl.s - sOffset, max: hsl.s + sOffset }, sBounds.min, sBounds.max), lRange = fixRange({ min: hsl.l - lOffset, max: hsl.l + lOffset }, lBounds.min, lBounds.max);
97
- getLogger().log(hsl.h, sRange, lRange);
98
96
  return {
99
97
  color: {
100
98
  value: {
package/cjs/options.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DestroyType, EventType, MoveDirection, OutMode, StartValueType, defaultAlpha, getLogger, none, rgbToHsl, setRangeValue, } from "@tsparticles/engine";
1
+ import { DestroyType, EventType, MoveDirection, OutMode, StartValueType, defaultAlpha, none, rgbToHsl, setRangeValue, } from "@tsparticles/engine";
2
2
  export const presetName = "fireworks";
3
3
  export function initOptions() {
4
4
  const explodeSoundCheck = (args) => {
@@ -84,7 +84,6 @@ export function initOptions() {
84
84
  .map(color => {
85
85
  const rgb = hexToRgba(color);
86
86
  if (!rgb) {
87
- getLogger().log("color not found", color);
88
87
  return undefined;
89
88
  }
90
89
  const hsl = rgbToHsl(rgb), sOffset = 30, lOffset = 30, sBounds = {
@@ -94,7 +93,6 @@ export function initOptions() {
94
93
  min: 0,
95
94
  max: 100,
96
95
  }, sRange = fixRange({ min: hsl.s - sOffset, max: hsl.s + sOffset }, sBounds.min, sBounds.max), lRange = fixRange({ min: hsl.l - lOffset, max: hsl.l + lOffset }, lBounds.min, lBounds.max);
97
- getLogger().log(hsl.h, sRange, lRange);
98
96
  return {
99
97
  color: {
100
98
  value: {
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -23,7 +23,7 @@
23
23
  \*********************************/
24
24
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
25
 
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ initOptions: () => (/* binding */ initOptions),\n/* harmony export */ presetName: () => (/* binding */ presetName)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-alpha.2/node_modules/@tsparticles/engine/browser/index.js\");\n\nconst presetName = \"fireworks\";\nfunction initOptions() {\n const explodeSoundCheck = args => {\n const data = args.data;\n return data.particle.options.move.gravity.inverse;\n },\n fixRange = (value, min, max) => {\n const minValue = 0,\n diffSMax = value.max > max ? value.max - max : minValue;\n let res = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(value);\n if (diffSMax) {\n res = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(value.min - diffSMax, max);\n }\n const diffSMin = value.min < min ? value.min : minValue;\n if (diffSMin) {\n res = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minValue, value.max + diffSMin);\n }\n return res;\n },\n hexToRgba = hex => {\n let hexValue = hex;\n const shortRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])([a-f\\d])?$/i;\n if (shortRegex.test(hexValue)) {\n hexValue = hexValue.replace(shortRegex, (_m, r, g, b, a) => r + r + g + g + b + b + (a ? a + a : \"\"));\n }\n const regex = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})?$/i,\n result = regex.exec(hexValue);\n if (!result) {\n return undefined;\n }\n result.shift();\n const indexes = {\n a: 3,\n b: 2,\n g: 1,\n r: 0\n },\n values = {\n a: result[indexes.a],\n b: result[indexes.b],\n g: result[indexes.g],\n r: result[indexes.r]\n },\n hexRadix = 16;\n return {\n r: values.r ? Number.parseInt(values.r, hexRadix) : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.none,\n g: values.g ? Number.parseInt(values.g, hexRadix) : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.none,\n b: values.b ? Number.parseInt(values.b, hexRadix) : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.none,\n a: values.a ? Number.parseInt(values.a, hexRadix) : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.defaultAlpha\n };\n },\n fireworksOptions = [\"#FF0000\", \"#FF2A00\", \"#FF5500\", \"#FF8000\", \"#FFAA00\", \"#FFD400\", \"#FFFF00\", \"#D4FF00\", \"#AAFF00\", \"#80FF00\", \"#55FF00\", \"#2AFF00\", \"#00FF00\", \"#00FF2A\", \"#00FF55\", \"#00FF80\", \"#00FFAA\", \"#00FFD4\", \"#00FFFF\", \"#00D4FF\", \"#00AAFF\", \"#0080FF\", \"#0055FF\", \"#002AFF\", \"#0000FF\", \"#2A00FF\", \"#5500FF\", \"#8000FF\", \"#AA00FF\", \"#D400FF\", \"#FF00FF\", \"#FF00D4\", \"#FF00AA\", \"#FF0080\", \"#FF0055\", \"#FF002A\"].map(color => {\n const rgb = hexToRgba(color);\n if (!rgb) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getLogger)().log(\"color not found\", color);\n return undefined;\n }\n const hsl = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rgbToHsl)(rgb),\n sOffset = 30,\n lOffset = 30,\n sBounds = {\n min: 0,\n max: 100\n },\n lBounds = {\n min: 0,\n max: 100\n },\n sRange = fixRange({\n min: hsl.s - sOffset,\n max: hsl.s + sOffset\n }, sBounds.min, sBounds.max),\n lRange = fixRange({\n min: hsl.l - lOffset,\n max: hsl.l + lOffset\n }, lBounds.min, lBounds.max);\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getLogger)().log(hsl.h, sRange, lRange);\n return {\n color: {\n value: {\n h: hsl.h,\n s: sRange,\n l: lRange\n }\n },\n stroke: {\n width: 0\n },\n number: {\n value: 0\n },\n opacity: {\n value: {\n min: 0.1,\n max: 1\n },\n animation: {\n enable: true,\n speed: 0.7,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.max,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.min\n }\n },\n shape: {\n type: \"circle\"\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 5,\n max: 10\n }\n }\n }\n },\n size: {\n value: {\n min: 1,\n max: 2\n },\n animation: {\n enable: true,\n speed: 5,\n count: 1,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.min,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.none\n }\n },\n life: {\n count: 1,\n duration: {\n value: {\n min: 1,\n max: 2\n }\n }\n },\n move: {\n decay: {\n min: 0.075,\n max: 0.1\n },\n enable: true,\n gravity: {\n enable: true,\n inverse: false,\n acceleration: 5\n },\n speed: {\n min: 5,\n max: 15\n },\n direction: \"none\",\n outModes: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy\n }\n };\n }).filter(t => t !== undefined);\n return {\n detectRetina: true,\n background: {\n color: \"#000\"\n },\n fpsLimit: 120,\n emitters: {\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.top,\n rate: {\n delay: 0.3,\n quantity: 1\n },\n size: {\n width: 100,\n height: 0\n },\n position: {\n y: 100,\n x: 50\n }\n },\n particles: {\n number: {\n value: 0\n },\n destroy: {\n mode: \"split\",\n bounds: {\n top: {\n min: 15,\n max: 35\n }\n },\n split: {\n sizeOffset: false,\n count: 1,\n factor: {\n value: 0.333333\n },\n rate: {\n value: {\n min: 75,\n max: 150\n }\n },\n particles: fireworksOptions\n }\n },\n life: {\n count: 1\n },\n shape: {\n type: \"circle\"\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 5,\n max: 15\n },\n minWidth: 1,\n maxWidth: 1\n }\n }\n },\n size: {\n value: 1\n },\n stroke: {\n color: {\n value: \"#ffffff\"\n },\n width: 1\n },\n move: {\n enable: true,\n gravity: {\n acceleration: 15,\n enable: true,\n inverse: true,\n maxSpeed: 100\n },\n speed: {\n min: 10,\n max: 20\n },\n outModes: {\n default: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy,\n top: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.none\n }\n }\n },\n sounds: {\n enable: true,\n events: [{\n event: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EventType.particleRemoved,\n filter: explodeSoundCheck,\n audio: [\"https://particles.js.org/audio/explosion0.mp3\", \"https://particles.js.org/audio/explosion1.mp3\", \"https://particles.js.org/audio/explosion2.mp3\"]\n }],\n volume: 50\n }\n };\n}\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/./dist/browser/options.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ initOptions: () => (/* binding */ initOptions),\n/* harmony export */ presetName: () => (/* binding */ presetName)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-alpha.2/node_modules/@tsparticles/engine/browser/index.js\");\n\nconst presetName = \"fireworks\";\nfunction initOptions() {\n const explodeSoundCheck = args => {\n const data = args.data;\n return data.particle.options.move.gravity.inverse;\n },\n fixRange = (value, min, max) => {\n const minValue = 0,\n diffSMax = value.max > max ? value.max - max : minValue;\n let res = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(value);\n if (diffSMax) {\n res = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(value.min - diffSMax, max);\n }\n const diffSMin = value.min < min ? value.min : minValue;\n if (diffSMin) {\n res = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minValue, value.max + diffSMin);\n }\n return res;\n },\n hexToRgba = hex => {\n let hexValue = hex;\n const shortRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])([a-f\\d])?$/i;\n if (shortRegex.test(hexValue)) {\n hexValue = hexValue.replace(shortRegex, (_m, r, g, b, a) => r + r + g + g + b + b + (a ? a + a : \"\"));\n }\n const regex = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})?$/i,\n result = regex.exec(hexValue);\n if (!result) {\n return undefined;\n }\n result.shift();\n const indexes = {\n a: 3,\n b: 2,\n g: 1,\n r: 0\n },\n values = {\n a: result[indexes.a],\n b: result[indexes.b],\n g: result[indexes.g],\n r: result[indexes.r]\n },\n hexRadix = 16;\n return {\n r: values.r ? Number.parseInt(values.r, hexRadix) : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.none,\n g: values.g ? Number.parseInt(values.g, hexRadix) : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.none,\n b: values.b ? Number.parseInt(values.b, hexRadix) : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.none,\n a: values.a ? Number.parseInt(values.a, hexRadix) : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.defaultAlpha\n };\n },\n fireworksOptions = [\"#FF0000\", \"#FF2A00\", \"#FF5500\", \"#FF8000\", \"#FFAA00\", \"#FFD400\", \"#FFFF00\", \"#D4FF00\", \"#AAFF00\", \"#80FF00\", \"#55FF00\", \"#2AFF00\", \"#00FF00\", \"#00FF2A\", \"#00FF55\", \"#00FF80\", \"#00FFAA\", \"#00FFD4\", \"#00FFFF\", \"#00D4FF\", \"#00AAFF\", \"#0080FF\", \"#0055FF\", \"#002AFF\", \"#0000FF\", \"#2A00FF\", \"#5500FF\", \"#8000FF\", \"#AA00FF\", \"#D400FF\", \"#FF00FF\", \"#FF00D4\", \"#FF00AA\", \"#FF0080\", \"#FF0055\", \"#FF002A\"].map(color => {\n const rgb = hexToRgba(color);\n if (!rgb) {\n return undefined;\n }\n const hsl = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rgbToHsl)(rgb),\n sOffset = 30,\n lOffset = 30,\n sBounds = {\n min: 0,\n max: 100\n },\n lBounds = {\n min: 0,\n max: 100\n },\n sRange = fixRange({\n min: hsl.s - sOffset,\n max: hsl.s + sOffset\n }, sBounds.min, sBounds.max),\n lRange = fixRange({\n min: hsl.l - lOffset,\n max: hsl.l + lOffset\n }, lBounds.min, lBounds.max);\n return {\n color: {\n value: {\n h: hsl.h,\n s: sRange,\n l: lRange\n }\n },\n stroke: {\n width: 0\n },\n number: {\n value: 0\n },\n opacity: {\n value: {\n min: 0.1,\n max: 1\n },\n animation: {\n enable: true,\n speed: 0.7,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.max,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.min\n }\n },\n shape: {\n type: \"circle\"\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 5,\n max: 10\n }\n }\n }\n },\n size: {\n value: {\n min: 1,\n max: 2\n },\n animation: {\n enable: true,\n speed: 5,\n count: 1,\n sync: false,\n startValue: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.min,\n destroy: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.none\n }\n },\n life: {\n count: 1,\n duration: {\n value: {\n min: 1,\n max: 2\n }\n }\n },\n move: {\n decay: {\n min: 0.075,\n max: 0.1\n },\n enable: true,\n gravity: {\n enable: true,\n inverse: false,\n acceleration: 5\n },\n speed: {\n min: 5,\n max: 15\n },\n direction: \"none\",\n outModes: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy\n }\n };\n }).filter(t => t !== undefined);\n return {\n detectRetina: true,\n background: {\n color: \"#000\"\n },\n fpsLimit: 120,\n emitters: {\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.top,\n rate: {\n delay: 0.3,\n quantity: 1\n },\n size: {\n width: 100,\n height: 0\n },\n position: {\n y: 100,\n x: 50\n }\n },\n particles: {\n number: {\n value: 0\n },\n destroy: {\n mode: \"split\",\n bounds: {\n top: {\n min: 15,\n max: 35\n }\n },\n split: {\n sizeOffset: false,\n count: 1,\n factor: {\n value: 0.333333\n },\n rate: {\n value: {\n min: 75,\n max: 150\n }\n },\n particles: fireworksOptions\n }\n },\n life: {\n count: 1\n },\n shape: {\n type: \"circle\"\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 5,\n max: 15\n },\n minWidth: 1,\n maxWidth: 1\n }\n }\n },\n size: {\n value: 1\n },\n stroke: {\n color: {\n value: \"#ffffff\"\n },\n width: 1\n },\n move: {\n enable: true,\n gravity: {\n acceleration: 15,\n enable: true,\n inverse: true,\n maxSpeed: 100\n },\n speed: {\n min: 10,\n max: 20\n },\n outModes: {\n default: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy,\n top: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.none\n }\n }\n },\n sounds: {\n enable: true,\n events: [{\n event: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.EventType.particleRemoved,\n filter: explodeSoundCheck,\n audio: [\"https://particles.js.org/audio/explosion0.mp3\", \"https://particles.js.org/audio/explosion1.mp3\", \"https://particles.js.org/audio/explosion2.mp3\"]\n }],\n volume: 50\n }\n };\n}\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/./dist/browser/options.js?\n}");
27
27
 
28
28
  /***/ }
29
29
 
package/esm/options.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DestroyType, EventType, MoveDirection, OutMode, StartValueType, defaultAlpha, getLogger, none, rgbToHsl, setRangeValue, } from "@tsparticles/engine";
1
+ import { DestroyType, EventType, MoveDirection, OutMode, StartValueType, defaultAlpha, none, rgbToHsl, setRangeValue, } from "@tsparticles/engine";
2
2
  export const presetName = "fireworks";
3
3
  export function initOptions() {
4
4
  const explodeSoundCheck = (args) => {
@@ -84,7 +84,6 @@ export function initOptions() {
84
84
  .map(color => {
85
85
  const rgb = hexToRgba(color);
86
86
  if (!rgb) {
87
- getLogger().log("color not found", color);
88
87
  return undefined;
89
88
  }
90
89
  const hsl = rgbToHsl(rgb), sOffset = 30, lOffset = 30, sBounds = {
@@ -94,7 +93,6 @@ export function initOptions() {
94
93
  min: 0,
95
94
  max: 100,
96
95
  }, sRange = fixRange({ min: hsl.s - sOffset, max: hsl.s + sOffset }, sBounds.min, sBounds.max), lRange = fixRange({ min: hsl.l - lOffset, max: hsl.l + lOffset }, lBounds.min, lBounds.max);
97
- getLogger().log(hsl.h, sRange, lRange);
98
96
  return {
99
97
  color: {
100
98
  value: {
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/preset-fireworks",
3
- "version": "4.0.0-alpha.0",
3
+ "version": "4.0.0-alpha.1",
4
4
  "description": "tsParticles fireworks preset",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
package/report.html CHANGED
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8"/>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
6
- <title>@tsparticles/preset-fireworks [8 Jan 2026 at 11:33]</title>
6
+ <title>@tsparticles/preset-fireworks [8 Jan 2026 at 12:35]</title>
7
7
  <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
8
8
 
9
9
  <script>
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  /*
10
10
  * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  /*
10
10
  * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
@@ -1 +1 @@
1
- /*! tsParticles Fireworks Preset v4.0.0-alpha.0 by Matteo Bruni */
1
+ /*! tsParticles Fireworks Preset v4.0.0-alpha.1 by Matteo Bruni */
package/umd/options.js CHANGED
@@ -97,7 +97,6 @@
97
97
  .map(color => {
98
98
  const rgb = hexToRgba(color);
99
99
  if (!rgb) {
100
- (0, engine_1.getLogger)().log("color not found", color);
101
100
  return undefined;
102
101
  }
103
102
  const hsl = (0, engine_1.rgbToHsl)(rgb), sOffset = 30, lOffset = 30, sBounds = {
@@ -107,7 +106,6 @@
107
106
  min: 0,
108
107
  max: 100,
109
108
  }, sRange = fixRange({ min: hsl.s - sOffset, max: hsl.s + sOffset }, sBounds.min, sBounds.max), lRange = fixRange({ min: hsl.l - lOffset, max: hsl.l + lOffset }, lBounds.min, lBounds.max);
110
- (0, engine_1.getLogger)().log(hsl.h, sRange, lRange);
111
109
  return {
112
110
  color: {
113
111
  value: {
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-alpha.0
7
+ * v4.0.0-alpha.1
8
8
  */
9
9
  "use strict";
10
10
  /*