@tsparticles/fireworks 4.0.0-beta.8 → 4.0.0

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 (141) hide show
  1. package/README.md +98 -45
  2. package/browser/browser.js +5 -0
  3. package/browser/bundle.js +4 -0
  4. package/browser/fireworks.js +32 -216
  5. package/browser/fireworks.lazy.js +64 -0
  6. package/browser/index.lazy.js +1 -0
  7. package/browser/types.js +1 -0
  8. package/browser/utils.js +195 -0
  9. package/cjs/browser.js +5 -0
  10. package/cjs/bundle.js +4 -0
  11. package/cjs/fireworks.js +32 -216
  12. package/cjs/fireworks.lazy.js +64 -0
  13. package/cjs/index.lazy.js +1 -0
  14. package/cjs/types.js +1 -0
  15. package/cjs/utils.js +195 -0
  16. package/esm/browser.js +5 -0
  17. package/esm/bundle.js +4 -0
  18. package/esm/fireworks.js +32 -216
  19. package/esm/fireworks.lazy.js +64 -0
  20. package/esm/index.lazy.js +1 -0
  21. package/esm/types.js +1 -0
  22. package/esm/utils.js +195 -0
  23. package/package.json +19 -12
  24. package/report.html +4949 -94
  25. package/tsparticles.fireworks.bundle.js +9132 -977
  26. package/tsparticles.fireworks.bundle.min.js +1 -2
  27. package/tsparticles.fireworks.js +395 -467
  28. package/tsparticles.fireworks.min.js +1 -2
  29. package/types/browser.d.ts +1 -0
  30. package/types/fireworks.d.ts +3 -6
  31. package/types/fireworks.lazy.d.ts +17 -0
  32. package/types/index.lazy.d.ts +4 -0
  33. package/types/types.d.ts +6 -0
  34. package/types/utils.d.ts +6 -0
  35. package/1241.min.js +0 -1
  36. package/1581.min.js +0 -1
  37. package/2049.min.js +0 -1
  38. package/2066.min.js +0 -1
  39. package/2127.min.js +0 -1
  40. package/218.min.js +0 -1
  41. package/2191.min.js +0 -1
  42. package/2270.min.js +0 -1
  43. package/2556.min.js +0 -1
  44. package/2602.min.js +0 -1
  45. package/2760.min.js +0 -1
  46. package/2865.min.js +0 -33
  47. package/3047.min.js +0 -1
  48. package/3073.min.js +0 -1
  49. package/3384.min.js +0 -1
  50. package/3443.min.js +0 -1
  51. package/3583.min.js +0 -1
  52. package/374.min.js +0 -1
  53. package/382.min.js +0 -1
  54. package/4068.min.js +0 -1
  55. package/4186.min.js +0 -1
  56. package/4217.min.js +0 -1
  57. package/4427.min.js +0 -1
  58. package/4519.min.js +0 -1
  59. package/4626.min.js +0 -1
  60. package/5048.min.js +0 -1
  61. package/5218.min.js +0 -1
  62. package/5294.min.js +0 -1
  63. package/5344.min.js +0 -1
  64. package/5445.min.js +0 -1
  65. package/5492.min.js +0 -1
  66. package/5629.min.js +0 -1
  67. package/5675.min.js +0 -1
  68. package/6055.min.js +0 -1
  69. package/6067.min.js +0 -1
  70. package/6099.min.js +0 -1
  71. package/6171.min.js +0 -1
  72. package/648.min.js +0 -1
  73. package/6602.min.js +0 -1
  74. package/6943.min.js +0 -1
  75. package/6996.min.js +0 -1
  76. package/7162.min.js +0 -1
  77. package/7698.min.js +0 -1
  78. package/7711.min.js +0 -1
  79. package/7757.min.js +0 -1
  80. package/7792.min.js +0 -1
  81. package/8272.min.js +0 -1
  82. package/8386.min.js +0 -1
  83. package/8529.min.js +0 -1
  84. package/8607.min.js +0 -1
  85. package/8656.min.js +0 -1
  86. package/8731.min.js +0 -1
  87. package/9407.min.js +0 -1
  88. package/9674.min.js +0 -1
  89. package/basic_dist_browser_index_js.js +0 -30
  90. package/dist_browser_FireworksInstance_js.js +0 -30
  91. package/engine_dist_browser_Core_Container_js.js +0 -100
  92. package/plugins_blend_dist_browser_BlendPluginInstance_js.js +0 -30
  93. package/plugins_blend_dist_browser_BlendPlugin_js.js +0 -40
  94. package/plugins_blend_dist_browser_index_js.js +0 -30
  95. package/plugins_colors_hex_dist_browser_HexColorManager_js.js +0 -30
  96. package/plugins_colors_hex_dist_browser_index_js.js +0 -30
  97. package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +0 -30
  98. package/plugins_colors_hsl_dist_browser_index_js.js +0 -30
  99. package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +0 -30
  100. package/plugins_colors_rgb_dist_browser_index_js.js +0 -30
  101. package/plugins_emittersShapes_square_dist_browser_EmittersSquareShapeGenerator_js.js +0 -100
  102. package/plugins_emittersShapes_square_dist_browser_index_js.js +0 -30
  103. package/plugins_emitters_dist_browser_EmitterInstance_js.js +0 -30
  104. package/plugins_emitters_dist_browser_EmittersInstancesManager_js.js +0 -100
  105. package/plugins_emitters_dist_browser_EmittersInteractor_js.js +0 -210
  106. package/plugins_emitters_dist_browser_EmittersPluginInstance_js.js +0 -30
  107. package/plugins_emitters_dist_browser_EmittersPlugin_js.js +0 -100
  108. package/plugins_emitters_dist_browser_ShapeManager_js.js +0 -30
  109. package/plugins_emitters_dist_browser_addEmittersShapesManager_js.js +0 -30
  110. package/plugins_emitters_dist_browser_getEmittersInstancesManager_js.js +0 -30
  111. package/plugins_emitters_dist_browser_index_js.js +0 -80
  112. package/plugins_emitters_dist_browser_plugin_js.js +0 -50
  113. package/plugins_interactivity_dist_browser_InteractivityPluginInstance_js.js +0 -50
  114. package/plugins_interactivity_dist_browser_InteractivityPlugin_js.js +0 -70
  115. package/plugins_interactivity_dist_browser_index_js.js +0 -120
  116. package/plugins_move_dist_browser_MovePluginInstance_js.js +0 -40
  117. package/plugins_move_dist_browser_MovePlugin_js.js +0 -30
  118. package/plugins_move_dist_browser_index_js.js +0 -30
  119. package/plugins_sounds_dist_browser_SoundsPluginInstance_js.js +0 -40
  120. package/plugins_sounds_dist_browser_SoundsPlugin_js.js +0 -130
  121. package/plugins_sounds_dist_browser_index_js.js +0 -30
  122. package/shapes_circle_dist_browser_CircleDrawer_js.js +0 -40
  123. package/shapes_circle_dist_browser_index_js.js +0 -30
  124. package/shapes_line_dist_browser_LineDrawer_js.js +0 -40
  125. package/shapes_line_dist_browser_index_js.js +0 -30
  126. package/updaters_destroy_dist_browser_DestroyUpdater_js.js +0 -100
  127. package/updaters_destroy_dist_browser_index_js.js +0 -30
  128. package/updaters_fillColor_dist_browser_FillColorUpdater_js.js +0 -30
  129. package/updaters_fillColor_dist_browser_index_js.js +0 -30
  130. package/updaters_life_dist_browser_LifeUpdater_js.js +0 -70
  131. package/updaters_life_dist_browser_index_js.js +0 -30
  132. package/updaters_opacity_dist_browser_OpacityUpdater_js.js +0 -30
  133. package/updaters_opacity_dist_browser_index_js.js +0 -30
  134. package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +0 -80
  135. package/updaters_outModes_dist_browser_index_js.js +0 -30
  136. package/updaters_rotate_dist_browser_RotateUpdater_js.js +0 -50
  137. package/updaters_rotate_dist_browser_index_js.js +0 -30
  138. package/updaters_size_dist_browser_SizeUpdater_js.js +0 -30
  139. package/updaters_size_dist_browser_index_js.js +0 -30
  140. package/updaters_strokeColor_dist_browser_StrokeColorUpdater_js.js +0 -30
  141. package/updaters_strokeColor_dist_browser_index_js.js +0 -30
@@ -1,50 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v4.0.0-beta.8
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_fireworks"] = this["webpackChunk_tsparticles_fireworks"] || []).push([["updaters_rotate_dist_browser_RotateUpdater_js"],{
19
-
20
- /***/ "../../updaters/rotate/dist/browser/Options/Classes/Rotate.js"
21
- /*!********************************************************************!*\
22
- !*** ../../updaters/rotate/dist/browser/Options/Classes/Rotate.js ***!
23
- \********************************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Rotate: () => (/* binding */ Rotate)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _RotateAnimation_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RotateAnimation.js */ \"../../updaters/rotate/dist/browser/Options/Classes/RotateAnimation.js\");\n\n\nclass Rotate extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n animation;\n direction;\n path;\n constructor(){\n super();\n this.animation = new _RotateAnimation_js__WEBPACK_IMPORTED_MODULE_1__.RotateAnimation();\n this.direction = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise;\n this.path = false;\n this.value = 0;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n super.load(data);\n if (data.direction !== undefined) {\n this.direction = data.direction;\n }\n this.animation.load(data.animation);\n if (data.path !== undefined) {\n this.path = data.path;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/rotate/dist/browser/Options/Classes/Rotate.js?\n}");
27
-
28
- /***/ },
29
-
30
- /***/ "../../updaters/rotate/dist/browser/Options/Classes/RotateAnimation.js"
31
- /*!*****************************************************************************!*\
32
- !*** ../../updaters/rotate/dist/browser/Options/Classes/RotateAnimation.js ***!
33
- \*****************************************************************************/
34
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
35
-
36
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ RotateAnimation: () => (/* binding */ RotateAnimation)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass RotateAnimation {\n decay;\n enable;\n speed;\n sync;\n constructor(){\n this.enable = false;\n this.speed = 0;\n this.decay = 0;\n this.sync = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.enable !== undefined) {\n this.enable = data.enable;\n }\n if (data.speed !== undefined) {\n this.speed = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.speed);\n }\n if (data.decay !== undefined) {\n this.decay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.decay);\n }\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/rotate/dist/browser/Options/Classes/RotateAnimation.js?\n}");
37
-
38
- /***/ },
39
-
40
- /***/ "../../updaters/rotate/dist/browser/RotateUpdater.js"
41
- /*!***********************************************************!*\
42
- !*** ../../updaters/rotate/dist/browser/RotateUpdater.js ***!
43
- \***********************************************************/
44
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
45
-
46
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ RotateUpdater: () => (/* binding */ RotateUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Options_Classes_Rotate_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Rotate.js */ \"../../updaters/rotate/dist/browser/Options/Classes/Rotate.js\");\n\n\nconst doublePIDeg = 360;\nclass RotateUpdater {\n container;\n constructor(container){\n this.container = container;\n }\n init(particle) {\n const rotateOptions = particle.options.rotate;\n if (!rotateOptions) {\n return;\n }\n particle.rotate = {\n enable: rotateOptions.animation.enable,\n value: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rotateOptions.value)),\n min: 0,\n max: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.doublePI\n };\n particle.pathRotation = rotateOptions.path;\n let rotateDirection = rotateOptions.direction;\n if (rotateDirection === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.random) {\n const index = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.double), minIndex = 0;\n rotateDirection = index > minIndex ? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.counterClockwise : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise;\n }\n switch(rotateDirection){\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.counterClockwise:\n case \"counterClockwise\":\n particle.rotate.status = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimationStatus.decreasing;\n break;\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise:\n particle.rotate.status = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimationStatus.increasing;\n break;\n default:\n break;\n }\n const rotateAnimation = rotateOptions.animation;\n if (rotateAnimation.enable) {\n particle.rotate.decay = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.identity - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rotateAnimation.decay);\n particle.rotate.velocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(rotateAnimation.speed) / doublePIDeg * this.container.retina.reduceFactor;\n if (!rotateAnimation.sync) {\n particle.rotate.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n particle.rotation = particle.rotate.value;\n }\n isEnabled(particle) {\n const rotate = particle.options.rotate;\n if (!rotate) {\n return false;\n }\n return !particle.destroyed && !particle.spawning && (!!rotate.value || rotate.animation.enable || rotate.path);\n }\n loadOptions(options, ...sources) {\n options.rotate ??= new _Options_Classes_Rotate_js__WEBPACK_IMPORTED_MODULE_1__.Rotate();\n for (const source of sources){\n options.rotate.load(source?.rotate);\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n particle.isRotating = !!particle.rotate;\n if (!particle.rotate) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.rotate, false, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.none, delta);\n particle.rotation = particle.rotate.value;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/rotate/dist/browser/RotateUpdater.js?\n}");
47
-
48
- /***/ }
49
-
50
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v4.0.0-beta.8
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_fireworks"] = this["webpackChunk_tsparticles_fireworks"] || []).push([["updaters_rotate_dist_browser_index_js"],{
19
-
20
- /***/ "../../updaters/rotate/dist/browser/index.js"
21
- /*!***************************************************!*\
22
- !*** ../../updaters/rotate/dist/browser/index.js ***!
23
- \***************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadRotateUpdater: () => (/* binding */ loadRotateUpdater)\n/* harmony export */ });\nasync function loadRotateUpdater(engine) {\n engine.checkVersion(\"4.0.0-beta.8\");\n await engine.pluginManager.register((e)=>{\n e.pluginManager.addParticleUpdater(\"rotate\", async (container)=>{\n const { RotateUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_rotate_dist_browser_RotateUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./RotateUpdater.js */ \"../../updaters/rotate/dist/browser/RotateUpdater.js\"));\n return new RotateUpdater(container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/rotate/dist/browser/index.js?\n}");
27
-
28
- /***/ }
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v4.0.0-beta.8
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_fireworks"] = this["webpackChunk_tsparticles_fireworks"] || []).push([["updaters_size_dist_browser_SizeUpdater_js"],{
19
-
20
- /***/ "../../updaters/size/dist/browser/SizeUpdater.js"
21
- /*!*******************************************************!*\
22
- !*** ../../updaters/size/dist/browser/SizeUpdater.js ***!
23
- \*******************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ SizeUpdater: () => (/* binding */ SizeUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minLoops = 0;\nclass SizeUpdater {\n _container;\n constructor(container){\n this._container = container;\n }\n init(particle) {\n const container = this._container, sizeOptions = particle.options.size, sizeAnimation = sizeOptions.animation;\n if (sizeAnimation.enable) {\n particle.size.velocity = particle.retina.sizeAnimationSpeed / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator * container.retina.reduceFactor;\n if (!sizeAnimation.sync) {\n particle.size.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n }\n isEnabled(particle) {\n return !particle.destroyed && !particle.spawning && particle.size.enable && ((particle.size.maxLoops ?? minLoops) <= minLoops || (particle.size.maxLoops ?? minLoops) > minLoops && (particle.size.loops ?? minLoops) < (particle.size.maxLoops ?? minLoops));\n }\n reset(particle) {\n particle.size.time = 0;\n particle.size.loops = 0;\n }\n update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.size, true, particle.options.size.animation.destroy, delta);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/size/dist/browser/SizeUpdater.js?\n}");
27
-
28
- /***/ }
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v4.0.0-beta.8
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_fireworks"] = this["webpackChunk_tsparticles_fireworks"] || []).push([["updaters_size_dist_browser_index_js"],{
19
-
20
- /***/ "../../updaters/size/dist/browser/index.js"
21
- /*!*************************************************!*\
22
- !*** ../../updaters/size/dist/browser/index.js ***!
23
- \*************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadSizeUpdater: () => (/* binding */ loadSizeUpdater)\n/* harmony export */ });\nasync function loadSizeUpdater(engine) {\n engine.checkVersion(\"4.0.0-beta.8\");\n await engine.pluginManager.register((e)=>{\n e.pluginManager.addParticleUpdater(\"size\", async (container)=>{\n const { SizeUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_size_dist_browser_SizeUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./SizeUpdater.js */ \"../../updaters/size/dist/browser/SizeUpdater.js\"));\n return new SizeUpdater(container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/size/dist/browser/index.js?\n}");
27
-
28
- /***/ }
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v4.0.0-beta.8
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_fireworks"] = this["webpackChunk_tsparticles_fireworks"] || []).push([["updaters_strokeColor_dist_browser_StrokeColorUpdater_js"],{
19
-
20
- /***/ "../../updaters/strokeColor/dist/browser/StrokeColorUpdater.js"
21
- /*!*********************************************************************!*\
22
- !*** ../../updaters/strokeColor/dist/browser/StrokeColorUpdater.js ***!
23
- \*********************************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ StrokeColorUpdater: () => (/* binding */ StrokeColorUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst defaultOpacity = 1;\nclass StrokeColorUpdater {\n _container;\n _pluginManager;\n constructor(pluginManager, container){\n this._container = container;\n this._pluginManager = pluginManager;\n }\n init(particle) {\n const container = this._container, options = particle.options, stroke = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(options.stroke, particle.id, options.reduceDuplicates);\n if (!stroke) {\n return;\n }\n particle.strokeWidth = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(stroke.width) * container.retina.pixelRatio;\n particle.strokeOpacity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(stroke.opacity ?? defaultOpacity);\n particle.strokeAnimation = stroke.color?.animation;\n const strokeHslColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(this._pluginManager, stroke.color) ?? particle.getFillColor();\n if (strokeHslColor) {\n particle.strokeColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getHslAnimationFromHsl)(strokeHslColor, particle.strokeAnimation, container.retina.reduceFactor);\n }\n }\n isEnabled(particle) {\n const color = particle.strokeAnimation, { strokeColor } = particle;\n return !particle.destroyed && !particle.spawning && !!color && (strokeColor?.h.value !== undefined && strokeColor.h.enable || strokeColor?.s.value !== undefined && strokeColor.s.enable || strokeColor?.l.value !== undefined && strokeColor.l.enable);\n }\n update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateColor)(particle.strokeColor, delta);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/strokeColor/dist/browser/StrokeColorUpdater.js?\n}");
27
-
28
- /***/ }
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v4.0.0-beta.8
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_fireworks"] = this["webpackChunk_tsparticles_fireworks"] || []).push([["updaters_strokeColor_dist_browser_index_js"],{
19
-
20
- /***/ "../../updaters/strokeColor/dist/browser/index.js"
21
- /*!********************************************************!*\
22
- !*** ../../updaters/strokeColor/dist/browser/index.js ***!
23
- \********************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadStrokeColorUpdater: () => (/* binding */ loadStrokeColorUpdater)\n/* harmony export */ });\nasync function loadStrokeColorUpdater(engine) {\n engine.checkVersion(\"4.0.0-beta.8\");\n await engine.pluginManager.register((e)=>{\n e.pluginManager.addParticleUpdater(\"strokeColor\", async (container)=>{\n const { StrokeColorUpdater } = await __webpack_require__.e(/*! import() */ \"updaters_strokeColor_dist_browser_StrokeColorUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./StrokeColorUpdater.js */ \"../../updaters/strokeColor/dist/browser/StrokeColorUpdater.js\"));\n return new StrokeColorUpdater(e.pluginManager, container);\n });\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/strokeColor/dist/browser/index.js?\n}");
27
-
28
- /***/ }
29
-
30
- }]);