@tsparticles/fireworks 3.9.0 → 4.0.0-alpha.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.
- package/142.min.js +2 -0
- package/142.min.js.LICENSE.txt +1 -0
- package/182.min.js +2 -0
- package/182.min.js.LICENSE.txt +1 -0
- package/187.min.js +2 -0
- package/187.min.js.LICENSE.txt +1 -0
- package/204.min.js +2 -0
- package/204.min.js.LICENSE.txt +1 -0
- package/241.min.js +2 -0
- package/241.min.js.LICENSE.txt +1 -0
- package/255.min.js +2 -0
- package/255.min.js.LICENSE.txt +1 -0
- package/266.min.js +2 -0
- package/266.min.js.LICENSE.txt +1 -0
- package/303.min.js +2 -0
- package/303.min.js.LICENSE.txt +1 -0
- package/309.min.js +2 -0
- package/309.min.js.LICENSE.txt +1 -0
- package/312.min.js +2 -0
- package/312.min.js.LICENSE.txt +1 -0
- package/321.min.js +2 -0
- package/321.min.js.LICENSE.txt +1 -0
- package/367.min.js +2 -0
- package/367.min.js.LICENSE.txt +1 -0
- package/370.min.js +2 -0
- package/370.min.js.LICENSE.txt +1 -0
- package/416.min.js +2 -0
- package/416.min.js.LICENSE.txt +1 -0
- package/420.min.js +2 -0
- package/420.min.js.LICENSE.txt +1 -0
- package/422.min.js +2 -0
- package/422.min.js.LICENSE.txt +1 -0
- package/440.min.js +2 -0
- package/440.min.js.LICENSE.txt +1 -0
- package/470.min.js +2 -0
- package/470.min.js.LICENSE.txt +1 -0
- package/491.min.js +2 -0
- package/491.min.js.LICENSE.txt +1 -0
- package/493.min.js +2 -0
- package/493.min.js.LICENSE.txt +1 -0
- package/561.min.js +2 -0
- package/561.min.js.LICENSE.txt +1 -0
- package/571.min.js +2 -0
- package/571.min.js.LICENSE.txt +1 -0
- package/582.min.js +2 -0
- package/582.min.js.LICENSE.txt +1 -0
- package/606.min.js +2 -0
- package/606.min.js.LICENSE.txt +1 -0
- package/620.min.js +2 -0
- package/620.min.js.LICENSE.txt +1 -0
- package/636.min.js +2 -0
- package/636.min.js.LICENSE.txt +1 -0
- package/693.min.js +2 -0
- package/693.min.js.LICENSE.txt +1 -0
- package/704.min.js +2 -0
- package/704.min.js.LICENSE.txt +1 -0
- package/739.min.js +2 -0
- package/739.min.js.LICENSE.txt +1 -0
- package/761.min.js +2 -0
- package/761.min.js.LICENSE.txt +1 -0
- package/770.min.js +2 -0
- package/770.min.js.LICENSE.txt +1 -0
- package/869.min.js +2 -0
- package/869.min.js.LICENSE.txt +1 -0
- package/885.min.js +2 -0
- package/885.min.js.LICENSE.txt +1 -0
- package/907.min.js +2 -0
- package/907.min.js.LICENSE.txt +1 -0
- package/930.min.js +2 -0
- package/930.min.js.LICENSE.txt +1 -0
- package/basic_dist_browser_index_js.js +30 -0
- package/browser/bundle.js +1 -1
- package/browser/fireworks.js +16 -23
- package/cjs/FireworkOptions.js +11 -15
- package/cjs/IFireworkOptions.js +1 -2
- package/cjs/bundle.js +2 -18
- package/cjs/fireworks.js +37 -47
- package/cjs/index.js +1 -17
- package/effects_trail_dist_browser_TrailDrawer_js.js +30 -0
- package/effects_trail_dist_browser_index_js.js +30 -0
- package/engine_dist_browser_Core_Container_js.js +100 -0
- package/esm/bundle.js +1 -1
- package/esm/fireworks.js +16 -23
- package/move_base_dist_browser_BaseMover_js.js +40 -0
- package/move_base_dist_browser_index_js.js +30 -0
- package/package.json +12 -11
- package/plugins_colors_hex_dist_browser_HexColorManager_js.js +30 -0
- package/plugins_colors_hex_dist_browser_index_js.js +30 -0
- package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +30 -0
- package/plugins_colors_hsl_dist_browser_index_js.js +30 -0
- package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +30 -0
- package/plugins_colors_rgb_dist_browser_index_js.js +30 -0
- package/plugins_emittersShapes_square_dist_browser_EmittersSquareShapeGenerator_js.js +70 -0
- package/plugins_emittersShapes_square_dist_browser_index_js.js +30 -0
- package/plugins_emitters_dist_browser_EmittersPlugin_js.js +110 -0
- package/plugins_emitters_dist_browser_ShapeManager_js.js +30 -0
- package/plugins_emitters_dist_browser_index_js.js +50 -0
- package/plugins_sounds_dist_browser_SoundsPlugin_js.js +140 -0
- package/plugins_sounds_dist_browser_index_js.js +30 -0
- package/report.html +5 -4
- package/shapes_circle_dist_browser_CircleDrawer_js.js +40 -0
- package/shapes_circle_dist_browser_index_js.js +30 -0
- package/tsparticles.fireworks.bundle.js +587 -2356
- package/tsparticles.fireworks.bundle.min.js +1 -1
- package/tsparticles.fireworks.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.fireworks.js +75 -51
- package/tsparticles.fireworks.min.js +1 -1
- package/tsparticles.fireworks.min.js.LICENSE.txt +1 -1
- package/types/bundle.d.ts +1 -1
- package/types/fireworks.d.ts +5 -7
- package/umd/bundle.js +2 -2
- package/umd/fireworks.js +50 -23
- package/updaters_color_dist_browser_ColorUpdater_js.js +30 -0
- package/updaters_color_dist_browser_index_js.js +30 -0
- package/updaters_destroy_dist_browser_DestroyUpdater_js.js +100 -0
- package/updaters_destroy_dist_browser_index_js.js +30 -0
- package/updaters_life_dist_browser_LifeUpdater_js.js +70 -0
- package/updaters_life_dist_browser_index_js.js +30 -0
- package/updaters_opacity_dist_browser_OpacityUpdater_js.js +30 -0
- package/updaters_opacity_dist_browser_index_js.js +30 -0
- package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +80 -0
- package/updaters_outModes_dist_browser_index_js.js +30 -0
- package/updaters_rotate_dist_browser_RotateUpdater_js.js +50 -0
- package/updaters_rotate_dist_browser_index_js.js +30 -0
- package/updaters_size_dist_browser_SizeUpdater_js.js +30 -0
- package/updaters_size_dist_browser_index_js.js +30 -0
package/tsparticles.fireworks.js
CHANGED
|
@@ -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
|
-
*
|
|
7
|
+
* v4.0.0-alpha.0
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
10
|
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
@@ -16,137 +16,137 @@
|
|
|
16
16
|
*/
|
|
17
17
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
18
18
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
19
|
-
module.exports = factory(require("@tsparticles/engine"), require("@tsparticles/basic"), require("@tsparticles/
|
|
19
|
+
module.exports = factory(require("@tsparticles/engine"), require("@tsparticles/basic"), require("@tsparticles/effect-trail"), require("@tsparticles/updater-life"), require("@tsparticles/updater-destroy"), require("@tsparticles/updater-rotate"), require("@tsparticles/plugin-sounds"), require("@tsparticles/plugin-emitters-shape-square"), require("@tsparticles/plugin-emitters"));
|
|
20
20
|
else if(typeof define === 'function' && define.amd)
|
|
21
|
-
define(["@tsparticles/engine", "@tsparticles/basic", "@tsparticles/
|
|
21
|
+
define(["@tsparticles/engine", "@tsparticles/basic", "@tsparticles/effect-trail", "@tsparticles/updater-life", "@tsparticles/updater-destroy", "@tsparticles/updater-rotate", "@tsparticles/plugin-sounds", "@tsparticles/plugin-emitters-shape-square", "@tsparticles/plugin-emitters"], factory);
|
|
22
22
|
else {
|
|
23
|
-
var a = typeof exports === 'object' ? factory(require("@tsparticles/engine"), require("@tsparticles/basic"), require("@tsparticles/
|
|
23
|
+
var a = typeof exports === 'object' ? factory(require("@tsparticles/engine"), require("@tsparticles/basic"), require("@tsparticles/effect-trail"), require("@tsparticles/updater-life"), require("@tsparticles/updater-destroy"), require("@tsparticles/updater-rotate"), require("@tsparticles/plugin-sounds"), require("@tsparticles/plugin-emitters-shape-square"), require("@tsparticles/plugin-emitters")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
|
|
24
24
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
25
25
|
}
|
|
26
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_engine__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__,
|
|
26
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_engine__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__, __WEBPACK_EXTERNAL_MODULE__tsparticles_effect_trail__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_life__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_destroy__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_sounds__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_shape_square__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__) => {
|
|
27
27
|
return /******/ (() => { // webpackBootstrap
|
|
28
28
|
/******/ "use strict";
|
|
29
29
|
/******/ var __webpack_modules__ = ({
|
|
30
30
|
|
|
31
|
-
/***/ "./dist/browser/FireworkOptions.js"
|
|
31
|
+
/***/ "./dist/browser/FireworkOptions.js"
|
|
32
32
|
/*!*****************************************!*\
|
|
33
33
|
!*** ./dist/browser/FireworkOptions.js ***!
|
|
34
34
|
\*****************************************/
|
|
35
|
-
|
|
35
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36
36
|
|
|
37
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ FireworkOptions: () => (/* binding */ FireworkOptions)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n
|
|
37
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ FireworkOptions: () => (/* binding */ FireworkOptions)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n\nclass FireworkOptions {\n constructor() {\n this.background = \"none\";\n this.brightness = {\n min: -30,\n max: 30\n };\n this.colors = [\"#ff595e\", \"#ffca3a\", \"#8ac926\", \"#1982c4\", \"#6a4c93\"];\n this.gravity = 5;\n this.minHeight = {\n min: 10,\n max: 30\n };\n this.rate = 10;\n this.saturation = {\n min: -30,\n max: 30\n };\n this.sounds = true;\n this.speed = {\n min: 5,\n max: 15\n };\n this.splitCount = {\n min: 75,\n max: 150\n };\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.background !== undefined) {\n this.background = data.background;\n }\n if (data.colors !== undefined) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isArray)(data.colors)) {\n this.colors = [...data.colors];\n } else {\n this.colors = data.colors;\n }\n }\n if (data.brightness !== undefined) {\n this.brightness = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.brightness);\n }\n if (data.gravity !== undefined) {\n this.gravity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.gravity);\n }\n if (data.minHeight !== undefined) {\n this.minHeight = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.minHeight);\n }\n if (data.rate !== undefined) {\n this.rate = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.rate);\n }\n if (data.saturation !== undefined) {\n this.saturation = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.saturation);\n }\n if (data.sounds !== undefined) {\n this.sounds = data.sounds;\n }\n if (data.speed !== undefined) {\n this.speed = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.speed);\n }\n if (data.splitCount !== undefined) {\n this.splitCount = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.splitCount);\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/fireworks/./dist/browser/FireworkOptions.js?\n}");
|
|
38
38
|
|
|
39
|
-
/***/ }
|
|
39
|
+
/***/ },
|
|
40
40
|
|
|
41
|
-
/***/ "./dist/browser/fireworks.js"
|
|
41
|
+
/***/ "./dist/browser/fireworks.js"
|
|
42
42
|
/*!***********************************!*\
|
|
43
43
|
!*** ./dist/browser/fireworks.js ***!
|
|
44
44
|
\***********************************/
|
|
45
|
-
|
|
45
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
46
46
|
|
|
47
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ fireworks: () => (/* binding */ fireworks)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FireworkOptions.js */ \"./dist/browser/FireworkOptions.js\");\n/* harmony import */ var _tsparticles_basic__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tsparticles/basic */ \"@tsparticles/basic\");\n/* harmony import */ var _tsparticles_basic__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_basic__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _tsparticles_updater_destroy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tsparticles/updater-destroy */ \"@tsparticles/updater-destroy\");\n/* harmony import */ var _tsparticles_updater_destroy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_updater_destroy__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tsparticles/plugin-emitters */ \"@tsparticles/plugin-emitters\");\n/* harmony import */ var _tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _tsparticles_plugin_emitters_shape_square__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @tsparticles/plugin-emitters-shape-square */ \"@tsparticles/plugin-emitters-shape-square\");\n/* harmony import */ var _tsparticles_plugin_emitters_shape_square__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_plugin_emitters_shape_square__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _tsparticles_updater_life__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tsparticles/updater-life */ \"@tsparticles/updater-life\");\n/* harmony import */ var _tsparticles_updater_life__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_updater_life__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _tsparticles_updater_rotate__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\");\n/* harmony import */ var _tsparticles_updater_rotate__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_updater_rotate__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _tsparticles_plugin_sounds__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @tsparticles/plugin-sounds */ \"@tsparticles/plugin-sounds\");\n/* harmony import */ var _tsparticles_plugin_sounds__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_plugin_sounds__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _tsparticles_effect_trail__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tsparticles/effect-trail */ \"@tsparticles/effect-trail\");\n/* harmony import */ var _tsparticles_effect_trail__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_effect_trail__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n\n\n\n\n\nconst minSplitCount = 2;\nlet initialized = false;\nlet initializing = false;\nconst explodeSoundCheck = args => {\n const data = args.data;\n return data.particle.shape === \"circle\" && !!data.particle.splitCount && data.particle.splitCount < minSplitCount;\n};\nclass FireworksInstance {\n constructor(container) {\n this._container = container;\n }\n pause() {\n this._container.pause();\n }\n play() {\n this._container.play();\n }\n stop() {\n this._container.stop();\n }\n}\nasync function initPlugins(engine) {\n if (initialized) {\n return;\n }\n if (initializing) {\n return new Promise(resolve => {\n const timeout = 100,\n interval = setInterval(() => {\n if (!initialized) {\n return;\n }\n clearInterval(interval);\n resolve();\n }, timeout);\n });\n }\n initializing = true;\n engine.checkVersion(\"3.9.0\");\n await (0,_tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_4__.loadEmittersPlugin)(engine, false);\n await (0,_tsparticles_plugin_emitters_shape_square__WEBPACK_IMPORTED_MODULE_5__.loadEmittersShapeSquare)(engine, false);\n await (0,_tsparticles_plugin_sounds__WEBPACK_IMPORTED_MODULE_8__.loadSoundsPlugin)(engine, false);\n await (0,_tsparticles_updater_rotate__WEBPACK_IMPORTED_MODULE_7__.loadRotateUpdater)(engine, false);\n await (0,_tsparticles_updater_destroy__WEBPACK_IMPORTED_MODULE_3__.loadDestroyUpdater)(engine, false);\n await (0,_tsparticles_updater_life__WEBPACK_IMPORTED_MODULE_6__.loadLifeUpdater)(engine, false);\n await (0,_tsparticles_effect_trail__WEBPACK_IMPORTED_MODULE_9__.loadTrailEffect)(engine, false);\n await (0,_tsparticles_basic__WEBPACK_IMPORTED_MODULE_2__.loadBasic)(engine, false);\n initializing = false;\n initialized = true;\n}\nfunction getOptions(options, canvas) {\n const identity = 1;\n return {\n detectRetina: true,\n background: {\n color: options.background\n },\n fullScreen: {\n enable: !!canvas\n },\n fpsLimit: 60,\n emitters: {\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.top,\n life: {\n count: 0,\n duration: 0.1,\n delay: 0.1\n },\n rate: {\n delay: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.rate) ? identity / options.rate : {\n min: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMin)(options.rate),\n max: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(options.rate)\n },\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 color: {\n value: \"#fff\"\n },\n destroy: {\n mode: \"split\",\n bounds: {\n top: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.minHeight)\n },\n split: {\n sizeOffset: false,\n count: 1,\n factor: {\n value: 0.333333\n },\n rate: {\n value: options.splitCount\n },\n colorOffset: {\n s: options.saturation,\n l: options.brightness\n },\n particles: {\n color: {\n value: options.colors\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: 1,\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 effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 5,\n max: 10\n }\n }\n }\n },\n shape: {\n type: \"circle\"\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: 0.25,\n max: 0.5\n }\n }\n },\n move: {\n decay: {\n min: 0.05,\n max: 0.1\n },\n enable: true,\n gravity: {\n enable: true,\n inverse: false,\n acceleration: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.gravity)\n },\n speed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.speed),\n direction: \"none\",\n outModes: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy\n }\n }\n }\n },\n life: {\n count: 1\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 10,\n max: 30\n },\n minWidth: 1,\n maxWidth: 1\n }\n }\n },\n shape: {\n type: \"circle\"\n },\n size: {\n value: 1\n },\n opacity: {\n value: 0.5\n },\n rotate: {\n path: true\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: options.sounds,\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}\nasync function getFireworksInstance(id, sourceOptions, canvas) {\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n const options = new _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__.FireworkOptions();\n options.load(sourceOptions);\n const particlesOptions = getOptions(options, canvas),\n container = await _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles.load({\n id,\n element: canvas,\n options: particlesOptions\n });\n if (!container) {\n return;\n }\n return new FireworksInstance(container);\n}\nasync function fireworks(idOrOptions, sourceOptions) {\n let id;\n let options;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(idOrOptions)) {\n id = idOrOptions;\n options = sourceOptions ?? {};\n } else {\n id = \"fireworks\";\n options = idOrOptions ?? {};\n }\n return getFireworksInstance(id, options);\n}\nfireworks.create = async (canvas, options) => {\n const id = canvas.id ?? \"fireworks\";\n return getFireworksInstance(id, options ?? {}, canvas);\n};\nfireworks.init = async () => {\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n};\nfireworks.version = \"3.9.0\";\nif (!(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isSsr)()) {\n window.fireworks = fireworks;\n}\n\n//# sourceURL=webpack://@tsparticles/fireworks/./dist/browser/fireworks.js?\n}");
|
|
47
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ fireworks: () => (/* binding */ fireworks)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FireworkOptions.js */ \"./dist/browser/FireworkOptions.js\");\n\n\nconst minSplitCount = 2;\nlet initialized = false;\nlet initializing = false;\nconst explodeSoundCheck = args => {\n const data = args.data;\n return data.particle.shape === \"circle\" && !!data.particle.splitCount && data.particle.splitCount < minSplitCount;\n};\nclass FireworksInstance {\n constructor(container) {\n this._container = container;\n }\n pause() {\n this._container.pause();\n }\n play() {\n this._container.play();\n }\n stop() {\n this._container.stop();\n }\n}\nasync function initPlugins(engine) {\n if (initialized) {\n return;\n }\n if (initializing) {\n return new Promise(resolve => {\n const timeout = 100,\n interval = setInterval(() => {\n if (!initialized) {\n return;\n }\n clearInterval(interval);\n resolve();\n }, timeout);\n });\n }\n initializing = true;\n engine.checkVersion(\"4.0.0-alpha.0\");\n engine.register(async e => {\n const {\n loadEmittersPlugin\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters */ \"@tsparticles/plugin-emitters\", 19)),\n {\n loadEmittersShapeSquare\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters-shape-square */ \"@tsparticles/plugin-emitters-shape-square\", 19)),\n {\n loadSoundsPlugin\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-sounds */ \"@tsparticles/plugin-sounds\", 19)),\n {\n loadRotateUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\", 19)),\n {\n loadDestroyUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-destroy */ \"@tsparticles/updater-destroy\", 19)),\n {\n loadLifeUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-life */ \"@tsparticles/updater-life\", 19)),\n {\n loadTrailEffect\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/effect-trail */ \"@tsparticles/effect-trail\", 19)),\n {\n loadBasic\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 19));\n loadEmittersPlugin(e);\n loadEmittersShapeSquare(e);\n loadSoundsPlugin(e);\n loadRotateUpdater(e);\n loadDestroyUpdater(e);\n loadLifeUpdater(e);\n loadTrailEffect(e);\n loadBasic(e);\n });\n initializing = false;\n initialized = true;\n}\nfunction getOptions(options, canvas) {\n const identity = 1;\n return {\n detectRetina: true,\n background: {\n color: options.background\n },\n fullScreen: {\n enable: !!canvas\n },\n fpsLimit: 60,\n emitters: {\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.top,\n life: {\n count: 0,\n duration: 0.1,\n delay: 0.1\n },\n rate: {\n delay: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options.rate) ? identity / options.rate : {\n min: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMin)(options.rate),\n max: identity / (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(options.rate)\n },\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 color: {\n value: \"#fff\"\n },\n destroy: {\n mode: \"split\",\n bounds: {\n top: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.minHeight)\n },\n split: {\n sizeOffset: false,\n count: 1,\n factor: {\n value: 0.333333\n },\n rate: {\n value: options.splitCount\n },\n colorOffset: {\n s: options.saturation,\n l: options.brightness\n },\n particles: {\n color: {\n value: options.colors\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: 1,\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 effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 5,\n max: 10\n }\n }\n }\n },\n shape: {\n type: \"circle\"\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: 0.25,\n max: 0.5\n }\n }\n },\n move: {\n decay: {\n min: 0.05,\n max: 0.1\n },\n enable: true,\n gravity: {\n enable: true,\n inverse: false,\n acceleration: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.gravity)\n },\n speed: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(options.speed),\n direction: \"none\",\n outModes: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy\n }\n }\n }\n },\n life: {\n count: 1\n },\n effect: {\n type: \"trail\",\n options: {\n trail: {\n length: {\n min: 10,\n max: 30\n },\n minWidth: 1,\n maxWidth: 1\n }\n }\n },\n shape: {\n type: \"circle\"\n },\n size: {\n value: 1\n },\n opacity: {\n value: 0.5\n },\n rotate: {\n path: true\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: options.sounds,\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}\nasync function getFireworksInstance(id, sourceOptions, canvas) {\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n const options = new _FireworkOptions_js__WEBPACK_IMPORTED_MODULE_1__.FireworkOptions();\n options.load(sourceOptions);\n const particlesOptions = getOptions(options, canvas),\n container = await _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles.load({\n id,\n element: canvas,\n options: particlesOptions\n });\n if (!container) {\n return;\n }\n return new FireworksInstance(container);\n}\nasync function fireworks(idOrOptions, sourceOptions) {\n let id;\n let options;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(idOrOptions)) {\n id = idOrOptions;\n options = sourceOptions ?? {};\n } else {\n id = \"fireworks\";\n options = idOrOptions ?? {};\n }\n return getFireworksInstance(id, options);\n}\nfireworks.create = async (canvas, options) => {\n const id = canvas.id || \"fireworks\";\n return getFireworksInstance(id, options ?? {}, canvas);\n};\nfireworks.init = async () => {\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n};\nfireworks.version = \"4.0.0-alpha.0\";\nglobalThis.fireworks = fireworks;\n\n//# sourceURL=webpack://@tsparticles/fireworks/./dist/browser/fireworks.js?\n}");
|
|
48
48
|
|
|
49
|
-
/***/ }
|
|
49
|
+
/***/ },
|
|
50
50
|
|
|
51
|
-
/***/ "./dist/browser/index.js"
|
|
51
|
+
/***/ "./dist/browser/index.js"
|
|
52
52
|
/*!*******************************!*\
|
|
53
53
|
!*** ./dist/browser/index.js ***!
|
|
54
54
|
\*******************************/
|
|
55
|
-
|
|
55
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
56
56
|
|
|
57
57
|
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ fireworks: () => (/* reexport safe */ _fireworks_js__WEBPACK_IMPORTED_MODULE_0__.fireworks)\n/* harmony export */ });\n/* harmony import */ var _fireworks_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fireworks.js */ \"./dist/browser/fireworks.js\");\n\n\n//# sourceURL=webpack://@tsparticles/fireworks/./dist/browser/index.js?\n}");
|
|
58
58
|
|
|
59
|
-
/***/ }
|
|
59
|
+
/***/ },
|
|
60
60
|
|
|
61
|
-
/***/ "@tsparticles/basic"
|
|
61
|
+
/***/ "@tsparticles/basic"
|
|
62
62
|
/*!******************************************************************************************************************************!*\
|
|
63
63
|
!*** external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"} ***!
|
|
64
64
|
\******************************************************************************************************************************/
|
|
65
|
-
|
|
65
|
+
(module) {
|
|
66
66
|
|
|
67
67
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__;
|
|
68
68
|
|
|
69
|
-
/***/ }
|
|
69
|
+
/***/ },
|
|
70
70
|
|
|
71
|
-
/***/ "@tsparticles/effect-trail"
|
|
71
|
+
/***/ "@tsparticles/effect-trail"
|
|
72
72
|
/*!***************************************************************************************************************************************************!*\
|
|
73
73
|
!*** external {"commonjs":"@tsparticles/effect-trail","commonjs2":"@tsparticles/effect-trail","amd":"@tsparticles/effect-trail","root":"window"} ***!
|
|
74
74
|
\***************************************************************************************************************************************************/
|
|
75
|
-
|
|
75
|
+
(module) {
|
|
76
76
|
|
|
77
77
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_effect_trail__;
|
|
78
78
|
|
|
79
|
-
/***/ }
|
|
79
|
+
/***/ },
|
|
80
80
|
|
|
81
|
-
/***/ "@tsparticles/engine"
|
|
81
|
+
/***/ "@tsparticles/engine"
|
|
82
82
|
/*!*********************************************************************************************************************************!*\
|
|
83
83
|
!*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***!
|
|
84
84
|
\*********************************************************************************************************************************/
|
|
85
|
-
|
|
85
|
+
(module) {
|
|
86
86
|
|
|
87
87
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
88
88
|
|
|
89
|
-
/***/ }
|
|
89
|
+
/***/ },
|
|
90
90
|
|
|
91
|
-
/***/ "@tsparticles/plugin-emitters"
|
|
91
|
+
/***/ "@tsparticles/plugin-emitters"
|
|
92
92
|
/*!************************************************************************************************************************************************************!*\
|
|
93
93
|
!*** external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"} ***!
|
|
94
94
|
\************************************************************************************************************************************************************/
|
|
95
|
-
|
|
95
|
+
(module) {
|
|
96
96
|
|
|
97
97
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
|
|
98
98
|
|
|
99
|
-
/***/ }
|
|
99
|
+
/***/ },
|
|
100
100
|
|
|
101
|
-
/***/ "@tsparticles/plugin-emitters-shape-square"
|
|
101
|
+
/***/ "@tsparticles/plugin-emitters-shape-square"
|
|
102
102
|
/*!***************************************************************************************************************************************************************************************************!*\
|
|
103
103
|
!*** external {"commonjs":"@tsparticles/plugin-emitters-shape-square","commonjs2":"@tsparticles/plugin-emitters-shape-square","amd":"@tsparticles/plugin-emitters-shape-square","root":"window"} ***!
|
|
104
104
|
\***************************************************************************************************************************************************************************************************/
|
|
105
|
-
|
|
105
|
+
(module) {
|
|
106
106
|
|
|
107
107
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_shape_square__;
|
|
108
108
|
|
|
109
|
-
/***/ }
|
|
109
|
+
/***/ },
|
|
110
110
|
|
|
111
|
-
/***/ "@tsparticles/plugin-sounds"
|
|
111
|
+
/***/ "@tsparticles/plugin-sounds"
|
|
112
112
|
/*!******************************************************************************************************************************************************!*\
|
|
113
113
|
!*** external {"commonjs":"@tsparticles/plugin-sounds","commonjs2":"@tsparticles/plugin-sounds","amd":"@tsparticles/plugin-sounds","root":"window"} ***!
|
|
114
114
|
\******************************************************************************************************************************************************/
|
|
115
|
-
|
|
115
|
+
(module) {
|
|
116
116
|
|
|
117
117
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_sounds__;
|
|
118
118
|
|
|
119
|
-
/***/ }
|
|
119
|
+
/***/ },
|
|
120
120
|
|
|
121
|
-
/***/ "@tsparticles/updater-destroy"
|
|
121
|
+
/***/ "@tsparticles/updater-destroy"
|
|
122
122
|
/*!************************************************************************************************************************************************************!*\
|
|
123
123
|
!*** external {"commonjs":"@tsparticles/updater-destroy","commonjs2":"@tsparticles/updater-destroy","amd":"@tsparticles/updater-destroy","root":"window"} ***!
|
|
124
124
|
\************************************************************************************************************************************************************/
|
|
125
|
-
|
|
125
|
+
(module) {
|
|
126
126
|
|
|
127
127
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_destroy__;
|
|
128
128
|
|
|
129
|
-
/***/ }
|
|
129
|
+
/***/ },
|
|
130
130
|
|
|
131
|
-
/***/ "@tsparticles/updater-life"
|
|
131
|
+
/***/ "@tsparticles/updater-life"
|
|
132
132
|
/*!***************************************************************************************************************************************************!*\
|
|
133
133
|
!*** external {"commonjs":"@tsparticles/updater-life","commonjs2":"@tsparticles/updater-life","amd":"@tsparticles/updater-life","root":"window"} ***!
|
|
134
134
|
\***************************************************************************************************************************************************/
|
|
135
|
-
|
|
135
|
+
(module) {
|
|
136
136
|
|
|
137
137
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_life__;
|
|
138
138
|
|
|
139
|
-
/***/ }
|
|
139
|
+
/***/ },
|
|
140
140
|
|
|
141
|
-
/***/ "@tsparticles/updater-rotate"
|
|
141
|
+
/***/ "@tsparticles/updater-rotate"
|
|
142
142
|
/*!*********************************************************************************************************************************************************!*\
|
|
143
143
|
!*** external {"commonjs":"@tsparticles/updater-rotate","commonjs2":"@tsparticles/updater-rotate","amd":"@tsparticles/updater-rotate","root":"window"} ***!
|
|
144
144
|
\*********************************************************************************************************************************************************/
|
|
145
|
-
|
|
145
|
+
(module) {
|
|
146
146
|
|
|
147
147
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__;
|
|
148
148
|
|
|
149
|
-
/***/ }
|
|
149
|
+
/***/ }
|
|
150
150
|
|
|
151
151
|
/******/ });
|
|
152
152
|
/************************************************************************/
|
|
@@ -160,6 +160,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__;
|
|
|
160
160
|
/******/ if (cachedModule !== undefined) {
|
|
161
161
|
/******/ return cachedModule.exports;
|
|
162
162
|
/******/ }
|
|
163
|
+
/******/ // Check if module exists (development only)
|
|
164
|
+
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
165
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
166
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
167
|
+
/******/ throw e;
|
|
168
|
+
/******/ }
|
|
163
169
|
/******/ // Create a new module (and put it into the cache)
|
|
164
170
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
165
171
|
/******/ // no module.id needed
|
|
@@ -175,15 +181,33 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__;
|
|
|
175
181
|
/******/ }
|
|
176
182
|
/******/
|
|
177
183
|
/************************************************************************/
|
|
178
|
-
/******/ /* webpack/runtime/
|
|
184
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
179
185
|
/******/ (() => {
|
|
180
|
-
/******/
|
|
181
|
-
/******/
|
|
182
|
-
/******/
|
|
183
|
-
/******/
|
|
184
|
-
/******/
|
|
185
|
-
/******/
|
|
186
|
-
/******/
|
|
186
|
+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
187
|
+
/******/ var leafPrototypes;
|
|
188
|
+
/******/ // create a fake namespace object
|
|
189
|
+
/******/ // mode & 1: value is a module id, require it
|
|
190
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
191
|
+
/******/ // mode & 4: return value when already ns object
|
|
192
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
193
|
+
/******/ // mode & 8|1: behave like require
|
|
194
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
195
|
+
/******/ if(mode & 1) value = this(value);
|
|
196
|
+
/******/ if(mode & 8) return value;
|
|
197
|
+
/******/ if(typeof value === 'object' && value) {
|
|
198
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
199
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
200
|
+
/******/ }
|
|
201
|
+
/******/ var ns = Object.create(null);
|
|
202
|
+
/******/ __webpack_require__.r(ns);
|
|
203
|
+
/******/ var def = {};
|
|
204
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
205
|
+
/******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
206
|
+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
207
|
+
/******/ }
|
|
208
|
+
/******/ def['default'] = () => (value);
|
|
209
|
+
/******/ __webpack_require__.d(ns, def);
|
|
210
|
+
/******/ return ns;
|
|
187
211
|
/******/ };
|
|
188
212
|
/******/ })();
|
|
189
213
|
/******/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.fireworks.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/effect-trail"),require("@tsparticles/updater-life"),require("@tsparticles/updater-destroy"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-sounds"),require("@tsparticles/plugin-emitters-shape-square"),require("@tsparticles/plugin-emitters"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine","@tsparticles/basic","@tsparticles/effect-trail","@tsparticles/updater-life","@tsparticles/updater-destroy","@tsparticles/updater-rotate","@tsparticles/plugin-sounds","@tsparticles/plugin-emitters-shape-square","@tsparticles/plugin-emitters"],t);else{var i="object"==typeof exports?t(require("@tsparticles/engine"),require("@tsparticles/basic"),require("@tsparticles/effect-trail"),require("@tsparticles/updater-life"),require("@tsparticles/updater-destroy"),require("@tsparticles/updater-rotate"),require("@tsparticles/plugin-sounds"),require("@tsparticles/plugin-emitters-shape-square"),require("@tsparticles/plugin-emitters")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(this,((e,t,i,r,s,a,o,n,l)=>(()=>{var p,u,c={75(e){e.exports=r},140(e){e.exports=n},145(e){e.exports=t},173(e){e.exports=s},303(t){t.exports=e},526(e){e.exports=l},637(e){e.exports=i},668(e){e.exports=a},933(e){e.exports=o}},d={};function f(e){var t=d[e];if(void 0!==t)return t.exports;var i=d[e]={exports:{}};return c[e](i,i.exports,f),i.exports}u=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,f.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var i=Object.create(null);f.r(i);var r={};p=p||[null,u({}),u([]),u(u)];for(var s=2&t&&e;("object"==typeof s||"function"==typeof s)&&!~p.indexOf(s);s=u(s))Object.getOwnPropertyNames(s).forEach((t=>r[t]=()=>e[t]));return r.default=()=>e,f.d(i,r),i},f.d=(e,t)=>{for(var i in t)f.o(t,i)&&!f.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var m={};f.r(m),f.d(m,{fireworks:()=>P});var h=f(303);class g{constructor(){this.background="none",this.brightness={min:-30,max:30},this.colors=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93"],this.gravity=5,this.minHeight={min:10,max:30},this.rate=10,this.saturation={min:-30,max:30},this.sounds=!0,this.speed={min:5,max:15},this.splitCount={min:75,max:150}}load(e){(0,h.isNull)(e)||(void 0!==e.background&&(this.background=e.background),void 0!==e.colors&&((0,h.isArray)(e.colors)?this.colors=[...e.colors]:this.colors=e.colors),void 0!==e.brightness&&(this.brightness=(0,h.setRangeValue)(e.brightness)),void 0!==e.gravity&&(this.gravity=(0,h.setRangeValue)(e.gravity)),void 0!==e.minHeight&&(this.minHeight=(0,h.setRangeValue)(e.minHeight)),void 0!==e.rate&&(this.rate=(0,h.setRangeValue)(e.rate)),void 0!==e.saturation&&(this.saturation=(0,h.setRangeValue)(e.saturation)),void 0!==e.sounds&&(this.sounds=e.sounds),void 0!==e.speed&&(this.speed=(0,h.setRangeValue)(e.speed)),void 0!==e.splitCount&&(this.splitCount=(0,h.setRangeValue)(e.splitCount)))}}let y=!1,v=!1;const b=e=>{const t=e.data;return"circle"===t.particle.shape&&!!t.particle.splitCount&&t.particle.splitCount<2};class x{constructor(e){this._container=e}pause(){this._container.pause()}play(){this._container.play()}stop(){this._container.stop()}}async function w(e){if(!y){if(v)return new Promise((e=>{const t=setInterval((()=>{y&&(clearInterval(t),e())}),100)}));v=!0,e.checkVersion("4.0.0-alpha.0"),e.register((async e=>{const{loadEmittersPlugin:t}=await Promise.resolve().then(f.t.bind(f,526,19)),{loadEmittersShapeSquare:i}=await Promise.resolve().then(f.t.bind(f,140,19)),{loadSoundsPlugin:r}=await Promise.resolve().then(f.t.bind(f,933,19)),{loadRotateUpdater:s}=await Promise.resolve().then(f.t.bind(f,668,19)),{loadDestroyUpdater:a}=await Promise.resolve().then(f.t.bind(f,173,19)),{loadLifeUpdater:o}=await Promise.resolve().then(f.t.bind(f,75,19)),{loadTrailEffect:n}=await Promise.resolve().then(f.t.bind(f,637,19)),{loadBasic:l}=await Promise.resolve().then(f.t.bind(f,145,19));t(e),i(e),r(e),s(e),a(e),o(e),n(e),l(e)})),v=!1,y=!0}}async function q(e,t,i){await w(h.tsParticles);const r=new g;r.load(t);const s=function(e,t){return{detectRetina:!0,background:{color:e.background},fullScreen:{enable:!!t},fpsLimit:60,emitters:{direction:h.MoveDirection.top,life:{count:0,duration:.1,delay:.1},rate:{delay:(0,h.isNumber)(e.rate)?1/e.rate:{min:1/(0,h.getRangeMin)(e.rate),max:1/(0,h.getRangeMax)(e.rate)},quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},color:{value:"#fff"},destroy:{mode:"split",bounds:{top:(0,h.setRangeValue)(e.minHeight)},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:e.splitCount},colorOffset:{s:e.saturation,l:e.brightness},particles:{color:{value:e.colors},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:1,sync:!1,startValue:h.StartValueType.max,destroy:h.DestroyType.min}},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},shape:{type:"circle"},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:h.StartValueType.min,destroy:h.DestroyType.none}},life:{count:1,duration:{value:{min:.25,max:.5}}},move:{decay:{min:.05,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:(0,h.setRangeValue)(e.gravity)},speed:(0,h.setRangeValue)(e.speed),direction:"none",outModes:h.OutMode.destroy}}}},life:{count:1},effect:{type:"trail",options:{trail:{length:{min:10,max:30},minWidth:1,maxWidth:1}}},shape:{type:"circle"},size:{value:1},opacity:{value:.5},rotate:{path:!0},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:h.OutMode.destroy,top:h.OutMode.none}}},sounds:{enable:e.sounds,events:[{event:h.EventType.particleRemoved,filter:b,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}}}(r,i),a=await h.tsParticles.load({id:e,element:i,options:s});if(a)return new x(a)}async function P(e,t){let i,r;return(0,h.isString)(e)?(i=e,r=t??{}):(i="fireworks",r=e??{}),q(i,r)}return P.create=async(e,t)=>q(e.id||"fireworks",t??{},e),P.init=async()=>{await w(h.tsParticles)},P.version="4.0.0-alpha.0",globalThis.fireworks=P,m})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Fireworks
|
|
1
|
+
/*! tsParticles Fireworks v4.0.0-alpha.0 by Matteo Bruni */
|
package/types/bundle.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from ".";
|
|
1
|
+
export * from "./index.js";
|
|
2
2
|
export * from "@tsparticles/engine";
|
package/types/fireworks.d.ts
CHANGED
|
@@ -4,13 +4,11 @@ type FireworksFunc = ((idOrOptions: string | RecursivePartial<IFireworkOptions>,
|
|
|
4
4
|
version: string;
|
|
5
5
|
};
|
|
6
6
|
declare global {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
}
|
|
7
|
+
var fireworks: FireworksFunc & {
|
|
8
|
+
create: (canvas: HTMLCanvasElement, options: RecursivePartial<IFireworkOptions>) => Promise<FireworksInstance | undefined>;
|
|
9
|
+
init: () => Promise<void>;
|
|
10
|
+
version: string;
|
|
11
|
+
};
|
|
14
12
|
}
|
|
15
13
|
declare class FireworksInstance {
|
|
16
14
|
private readonly _container;
|
package/umd/bundle.js
CHANGED
|
@@ -18,11 +18,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
if (v !== undefined) module.exports = v;
|
|
19
19
|
}
|
|
20
20
|
else if (typeof define === "function" && define.amd) {
|
|
21
|
-
define(["require", "exports", ".", "@tsparticles/engine"], factory);
|
|
21
|
+
define(["require", "exports", "./index.js", "@tsparticles/engine"], factory);
|
|
22
22
|
}
|
|
23
23
|
})(function (require, exports) {
|
|
24
24
|
"use strict";
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
__exportStar(require("."), exports);
|
|
26
|
+
__exportStar(require("./index.js"), exports);
|
|
27
27
|
__exportStar(require("@tsparticles/engine"), exports);
|
|
28
28
|
});
|
package/umd/fireworks.js
CHANGED
|
@@ -1,25 +1,51 @@
|
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
8
|
+
}) : (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
o[k2] = m[k];
|
|
11
|
+
}));
|
|
12
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
+
}) : function(o, v) {
|
|
15
|
+
o["default"] = v;
|
|
16
|
+
});
|
|
17
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
18
|
+
var ownKeys = function(o) {
|
|
19
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
20
|
+
var ar = [];
|
|
21
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
22
|
+
return ar;
|
|
23
|
+
};
|
|
24
|
+
return ownKeys(o);
|
|
25
|
+
};
|
|
26
|
+
return function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
})();
|
|
1
34
|
(function (factory) {
|
|
2
35
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
36
|
var v = factory(require, exports);
|
|
4
37
|
if (v !== undefined) module.exports = v;
|
|
5
38
|
}
|
|
6
39
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "@tsparticles/engine", "./FireworkOptions.js"
|
|
40
|
+
define(["require", "exports", "@tsparticles/engine", "./FireworkOptions.js"], factory);
|
|
8
41
|
}
|
|
9
42
|
})(function (require, exports) {
|
|
10
43
|
"use strict";
|
|
44
|
+
var __syncRequire = typeof module === "object" && typeof module.exports === "object";
|
|
11
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
46
|
exports.fireworks = fireworks;
|
|
13
47
|
const engine_1 = require("@tsparticles/engine");
|
|
14
48
|
const FireworkOptions_js_1 = require("./FireworkOptions.js");
|
|
15
|
-
const basic_1 = require("@tsparticles/basic");
|
|
16
|
-
const updater_destroy_1 = require("@tsparticles/updater-destroy");
|
|
17
|
-
const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
|
|
18
|
-
const plugin_emitters_shape_square_1 = require("@tsparticles/plugin-emitters-shape-square");
|
|
19
|
-
const updater_life_1 = require("@tsparticles/updater-life");
|
|
20
|
-
const updater_rotate_1 = require("@tsparticles/updater-rotate");
|
|
21
|
-
const plugin_sounds_1 = require("@tsparticles/plugin-sounds");
|
|
22
|
-
const effect_trail_1 = require("@tsparticles/effect-trail");
|
|
23
49
|
const minSplitCount = 2;
|
|
24
50
|
let initialized = false;
|
|
25
51
|
let initializing = false;
|
|
@@ -57,15 +83,18 @@
|
|
|
57
83
|
});
|
|
58
84
|
}
|
|
59
85
|
initializing = true;
|
|
60
|
-
engine.checkVersion("
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
86
|
+
engine.checkVersion("4.0.0-alpha.0");
|
|
87
|
+
engine.register(async (e) => {
|
|
88
|
+
const { loadEmittersPlugin } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/plugin-emitters"))) : new Promise((resolve_1, reject_1) => { require(["@tsparticles/plugin-emitters"], resolve_1, reject_1); }).then(__importStar)), { loadEmittersShapeSquare } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/plugin-emitters-shape-square"))) : new Promise((resolve_2, reject_2) => { require(["@tsparticles/plugin-emitters-shape-square"], resolve_2, reject_2); }).then(__importStar)), { loadSoundsPlugin } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/plugin-sounds"))) : new Promise((resolve_3, reject_3) => { require(["@tsparticles/plugin-sounds"], resolve_3, reject_3); }).then(__importStar)), { loadRotateUpdater } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/updater-rotate"))) : new Promise((resolve_4, reject_4) => { require(["@tsparticles/updater-rotate"], resolve_4, reject_4); }).then(__importStar)), { loadDestroyUpdater } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/updater-destroy"))) : new Promise((resolve_5, reject_5) => { require(["@tsparticles/updater-destroy"], resolve_5, reject_5); }).then(__importStar)), { loadLifeUpdater } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/updater-life"))) : new Promise((resolve_6, reject_6) => { require(["@tsparticles/updater-life"], resolve_6, reject_6); }).then(__importStar)), { loadTrailEffect } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/effect-trail"))) : new Promise((resolve_7, reject_7) => { require(["@tsparticles/effect-trail"], resolve_7, reject_7); }).then(__importStar)), { loadBasic } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/basic"))) : new Promise((resolve_8, reject_8) => { require(["@tsparticles/basic"], resolve_8, reject_8); }).then(__importStar));
|
|
89
|
+
loadEmittersPlugin(e);
|
|
90
|
+
loadEmittersShapeSquare(e);
|
|
91
|
+
loadSoundsPlugin(e);
|
|
92
|
+
loadRotateUpdater(e);
|
|
93
|
+
loadDestroyUpdater(e);
|
|
94
|
+
loadLifeUpdater(e);
|
|
95
|
+
loadTrailEffect(e);
|
|
96
|
+
loadBasic(e);
|
|
97
|
+
});
|
|
69
98
|
initializing = false;
|
|
70
99
|
initialized = true;
|
|
71
100
|
}
|
|
@@ -283,14 +312,12 @@
|
|
|
283
312
|
return getFireworksInstance(id, options);
|
|
284
313
|
}
|
|
285
314
|
fireworks.create = async (canvas, options) => {
|
|
286
|
-
const id = canvas.id
|
|
315
|
+
const id = canvas.id || "fireworks";
|
|
287
316
|
return getFireworksInstance(id, options ?? {}, canvas);
|
|
288
317
|
};
|
|
289
318
|
fireworks.init = async () => {
|
|
290
319
|
await initPlugins(engine_1.tsParticles);
|
|
291
320
|
};
|
|
292
|
-
fireworks.version = "
|
|
293
|
-
|
|
294
|
-
window.fireworks = fireworks;
|
|
295
|
-
}
|
|
321
|
+
fireworks.version = "4.0.0-alpha.0";
|
|
322
|
+
globalThis.fireworks = fireworks;
|
|
296
323
|
});
|
|
@@ -0,0 +1,30 @@
|
|
|
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-alpha.0
|
|
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_color_dist_browser_ColorUpdater_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/color/dist/browser/ColorUpdater.js"
|
|
21
|
+
/*!*********************************************************!*\
|
|
22
|
+
!*** ../../updaters/color/dist/browser/ColorUpdater.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 */ ColorUpdater: () => (/* binding */ ColorUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass ColorUpdater {\n constructor(engine, container) {\n this._container = container;\n this._engine = engine;\n }\n init(particle) {\n const hslColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(this._engine, particle.options.color, particle.id, particle.options.reduceDuplicates);\n if (hslColor) {\n particle.color = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getHslAnimationFromHsl)(hslColor, particle.options.color.animation, this._container.retina.reduceFactor);\n }\n }\n isEnabled(particle) {\n const {\n h: hAnimation,\n s: sAnimation,\n l: lAnimation\n } = particle.options.color.animation,\n {\n color\n } = particle;\n return !particle.destroyed && !particle.spawning && (color?.h.value !== undefined && hAnimation.enable || color?.s.value !== undefined && sAnimation.enable || color?.l.value !== undefined && lAnimation.enable);\n }\n update(particle, delta) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateColor)(particle.color, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/color/dist/browser/ColorUpdater.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -0,0 +1,30 @@
|
|
|
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-alpha.0
|
|
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_color_dist_browser_index_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/color/dist/browser/index.js"
|
|
21
|
+
/*!**************************************************!*\
|
|
22
|
+
!*** ../../updaters/color/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 */ loadColorUpdater: () => (/* binding */ loadColorUpdater)\n/* harmony export */ });\nfunction loadColorUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.0\");\n engine.register(e => {\n e.addParticleUpdater(\"color\", async container => {\n const {\n ColorUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_color_dist_browser_ColorUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ColorUpdater.js */ \"../../updaters/color/dist/browser/ColorUpdater.js\"));\n return new ColorUpdater(e, container);\n });\n });\n}\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../updaters/color/dist/browser/index.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|