@tsparticles/confetti 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/1308.min.js +2 -0
- package/1308.min.js.LICENSE.txt +1 -0
- package/1472.min.js +2 -0
- package/1472.min.js.LICENSE.txt +1 -0
- package/1513.min.js +2 -0
- package/1513.min.js.LICENSE.txt +1 -0
- package/1705.min.js +2 -0
- package/1705.min.js.LICENSE.txt +1 -0
- package/1810.min.js +2 -0
- package/1810.min.js.LICENSE.txt +1 -0
- package/196.min.js +2 -0
- package/196.min.js.LICENSE.txt +1 -0
- package/2124.min.js +2 -0
- package/2124.min.js.LICENSE.txt +1 -0
- package/2173.min.js +2 -0
- package/2173.min.js.LICENSE.txt +1 -0
- package/2580.min.js +2 -0
- package/2580.min.js.LICENSE.txt +1 -0
- package/2720.min.js +2 -0
- package/2720.min.js.LICENSE.txt +1 -0
- package/2765.min.js +2 -0
- package/2765.min.js.LICENSE.txt +1 -0
- package/3141.min.js +2 -0
- package/3141.min.js.LICENSE.txt +1 -0
- package/3261.min.js +2 -0
- package/3261.min.js.LICENSE.txt +1 -0
- package/3473.min.js +2 -0
- package/3473.min.js.LICENSE.txt +1 -0
- package/3610.min.js +2 -0
- package/3610.min.js.LICENSE.txt +1 -0
- package/3629.min.js +2 -0
- package/3629.min.js.LICENSE.txt +1 -0
- package/3648.min.js +2 -0
- package/3648.min.js.LICENSE.txt +1 -0
- package/3733.min.js +2 -0
- package/3733.min.js.LICENSE.txt +1 -0
- package/3862.min.js +2 -0
- package/3862.min.js.LICENSE.txt +1 -0
- package/3869.min.js +2 -0
- package/3869.min.js.LICENSE.txt +1 -0
- package/409.min.js +2 -0
- package/409.min.js.LICENSE.txt +1 -0
- package/4245.min.js +2 -0
- package/4245.min.js.LICENSE.txt +1 -0
- package/4328.min.js +2 -0
- package/4328.min.js.LICENSE.txt +1 -0
- package/4396.min.js +2 -0
- package/4396.min.js.LICENSE.txt +1 -0
- package/4547.min.js +2 -0
- package/4547.min.js.LICENSE.txt +1 -0
- package/4595.min.js +2 -0
- package/4595.min.js.LICENSE.txt +1 -0
- package/4794.min.js +2 -0
- package/4794.min.js.LICENSE.txt +1 -0
- package/482.min.js +2 -0
- package/482.min.js.LICENSE.txt +1 -0
- package/4866.min.js +2 -0
- package/4866.min.js.LICENSE.txt +1 -0
- package/4973.min.js +2 -0
- package/4973.min.js.LICENSE.txt +1 -0
- package/4994.min.js +2 -0
- package/4994.min.js.LICENSE.txt +1 -0
- package/5092.min.js +2 -0
- package/5092.min.js.LICENSE.txt +1 -0
- package/5120.min.js +2 -0
- package/5120.min.js.LICENSE.txt +1 -0
- package/5245.min.js +2 -0
- package/5245.min.js.LICENSE.txt +1 -0
- package/5308.min.js +2 -0
- package/5308.min.js.LICENSE.txt +1 -0
- package/5329.min.js +2 -0
- package/5329.min.js.LICENSE.txt +1 -0
- package/5437.min.js +2 -0
- package/5437.min.js.LICENSE.txt +1 -0
- package/5444.min.js +2 -0
- package/5444.min.js.LICENSE.txt +1 -0
- package/5534.min.js +2 -0
- package/5534.min.js.LICENSE.txt +1 -0
- package/560.min.js +2 -0
- package/560.min.js.LICENSE.txt +1 -0
- package/5647.min.js +2 -0
- package/5647.min.js.LICENSE.txt +1 -0
- package/571.min.js +2 -0
- package/571.min.js.LICENSE.txt +1 -0
- package/5742.min.js +2 -0
- package/5742.min.js.LICENSE.txt +1 -0
- package/6004.min.js +2 -0
- package/6004.min.js.LICENSE.txt +1 -0
- package/6132.min.js +2 -0
- package/6132.min.js.LICENSE.txt +1 -0
- package/6551.min.js +2 -0
- package/6551.min.js.LICENSE.txt +1 -0
- package/6772.min.js +2 -0
- package/6772.min.js.LICENSE.txt +1 -0
- package/7031.min.js +2 -0
- package/7031.min.js.LICENSE.txt +1 -0
- package/7049.min.js +2 -0
- package/7049.min.js.LICENSE.txt +1 -0
- package/7108.min.js +2 -0
- package/7108.min.js.LICENSE.txt +1 -0
- package/7331.min.js +2 -0
- package/7331.min.js.LICENSE.txt +1 -0
- package/7517.min.js +2 -0
- package/7517.min.js.LICENSE.txt +1 -0
- package/7687.min.js +2 -0
- package/7687.min.js.LICENSE.txt +1 -0
- package/7725.min.js +2 -0
- package/7725.min.js.LICENSE.txt +1 -0
- package/7757.min.js +2 -0
- package/7757.min.js.LICENSE.txt +1 -0
- package/7835.min.js +2 -0
- package/7835.min.js.LICENSE.txt +1 -0
- package/7859.min.js +2 -0
- package/7859.min.js.LICENSE.txt +1 -0
- package/7886.min.js +2 -0
- package/7886.min.js.LICENSE.txt +1 -0
- package/7890.min.js +2 -0
- package/7890.min.js.LICENSE.txt +1 -0
- package/8060.min.js +2 -0
- package/8060.min.js.LICENSE.txt +1 -0
- package/9062.min.js +2 -0
- package/9062.min.js.LICENSE.txt +1 -0
- package/9126.min.js +2 -0
- package/9126.min.js.LICENSE.txt +1 -0
- package/9331.min.js +2 -0
- package/9331.min.js.LICENSE.txt +1 -0
- package/9376.min.js +2 -0
- package/9376.min.js.LICENSE.txt +1 -0
- package/95.min.js +2 -0
- package/95.min.js.LICENSE.txt +1 -0
- package/9530.min.js +2 -0
- package/9530.min.js.LICENSE.txt +1 -0
- package/9532.min.js +2 -0
- package/9532.min.js.LICENSE.txt +1 -0
- package/9836.min.js +2 -0
- package/9836.min.js.LICENSE.txt +1 -0
- package/9921.min.js +2 -0
- package/9921.min.js.LICENSE.txt +1 -0
- package/basic_dist_browser_index_js.js +30 -0
- package/browser/confetti.js +1 -15
- package/cjs/confetti.js +39 -30
- package/engine_dist_browser_Core_Container_js.js +90 -0
- package/engine_dist_browser_Core_Particle_js.js +30 -0
- package/esm/confetti.js +1 -15
- package/move_base_dist_browser_BaseMover_js.js +30 -0
- package/move_base_dist_browser_Utils_js.js +30 -0
- package/move_base_dist_browser_index_js.js +30 -0
- package/package.json +17 -17
- package/plugins_emitters_dist_browser_EmitterInstance_js.js +30 -0
- package/plugins_emitters_dist_browser_EmittersPlugin_js.js +90 -0
- package/plugins_emitters_dist_browser_Emitters_js.js +30 -0
- package/plugins_emitters_dist_browser_ShapeManager_js.js +30 -0
- package/plugins_emitters_dist_browser_index_js.js +100 -0
- package/plugins_motion_dist_browser_MotionInstance_js.js +30 -0
- package/plugins_motion_dist_browser_MotionPlugin_js.js +50 -0
- package/plugins_motion_dist_browser_index_js.js +30 -0
- package/report.html +3 -3
- package/shapes_cards_dist_browser_ClubDrawer_js.js +30 -0
- package/shapes_cards_dist_browser_DiamondDrawer_js.js +30 -0
- package/shapes_cards_dist_browser_HeartDrawer_js.js +30 -0
- package/shapes_cards_dist_browser_SpadeDrawer_js.js +30 -0
- package/shapes_cards_dist_browser_Utils_js.js +30 -0
- package/shapes_cards_dist_browser_index_js.js +30 -0
- package/shapes_circle_dist_browser_CircleDrawer_js.js +30 -0
- package/shapes_circle_dist_browser_Utils_js.js +30 -0
- package/shapes_circle_dist_browser_index_js.js +30 -0
- package/shapes_emoji_dist_browser_EmojiDrawer_js.js +30 -0
- package/shapes_emoji_dist_browser_Utils_js.js +30 -0
- package/shapes_emoji_dist_browser_index_js.js +40 -0
- package/shapes_heart_dist_browser_HeartDrawer_js.js +30 -0
- package/shapes_heart_dist_browser_Utils_js.js +30 -0
- package/shapes_heart_dist_browser_index_js.js +30 -0
- package/shapes_image_dist_browser_GifUtils_Utils_js.js +50 -0
- package/shapes_image_dist_browser_ImageDrawer_js.js +30 -0
- package/shapes_image_dist_browser_ImagePreloader_js.js +40 -0
- package/shapes_image_dist_browser_index_js.js +40 -0
- package/shapes_polygon_dist_browser_PolygonDrawer_js.js +40 -0
- package/shapes_polygon_dist_browser_TriangleDrawer_js.js +40 -0
- package/shapes_polygon_dist_browser_Utils_js.js +30 -0
- package/shapes_polygon_dist_browser_index_js.js +30 -0
- package/shapes_square_dist_browser_SquareDrawer_js.js +30 -0
- package/shapes_square_dist_browser_Utils_js.js +30 -0
- package/shapes_square_dist_browser_index_js.js +30 -0
- package/shapes_star_dist_browser_StarDrawer_js.js +30 -0
- package/shapes_star_dist_browser_Utils_js.js +30 -0
- package/shapes_star_dist_browser_index_js.js +30 -0
- package/tsparticles.confetti.bundle.js +2140 -10008
- package/tsparticles.confetti.bundle.min.js +1 -1
- package/tsparticles.confetti.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.confetti.js +171 -524
- package/tsparticles.confetti.min.js +1 -1
- package/tsparticles.confetti.min.js.LICENSE.txt +1 -1
- package/types/confetti.d.ts +5 -0
- package/umd/confetti.js +41 -31
- package/updaters_color_dist_browser_ColorUpdater_js.js +30 -0
- package/updaters_color_dist_browser_index_js.js +30 -0
- package/updaters_life_dist_browser_LifeUpdater_js.js +60 -0
- package/updaters_life_dist_browser_Utils_js.js +30 -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_BounceOutMode_js.js +30 -0
- package/updaters_outModes_dist_browser_DestroyOutMode_js.js +30 -0
- package/updaters_outModes_dist_browser_NoneOutMode_js.js +30 -0
- package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +30 -0
- package/updaters_outModes_dist_browser_OutOutMode_js.js +30 -0
- package/updaters_outModes_dist_browser_Utils_js.js +30 -0
- package/updaters_outModes_dist_browser_index_js.js +30 -0
- package/updaters_roll_dist_browser_RollUpdater_js.js +50 -0
- package/updaters_roll_dist_browser_Utils_js.js +30 -0
- package/updaters_roll_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/updaters_tilt_dist_browser_TiltUpdater_js.js +50 -0
- package/updaters_tilt_dist_browser_index_js.js +30 -0
- package/updaters_wobble_dist_browser_Utils_js.js +30 -0
- package/updaters_wobble_dist_browser_WobbleUpdater_js.js +50 -0
- package/updaters_wobble_dist_browser_index_js.js +30 -0
package/tsparticles.confetti.js
CHANGED
|
@@ -4,131 +4,217 @@
|
|
|
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
|
-
* v3.1
|
|
7
|
+
* v3.2.1
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
11
|
+
* This devtool is neither made for production nor for readable output files.
|
|
12
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
13
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
14
|
+
* or disable the default devtool with "devtool: false".
|
|
15
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
16
|
*/
|
|
9
17
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
18
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
-
module.exports = factory(require("@tsparticles/engine"), require("@tsparticles/
|
|
19
|
+
module.exports = factory(require("@tsparticles/engine"), require("@tsparticles/basic"), require("@tsparticles/updater-wobble"), require("@tsparticles/updater-tilt"), require("@tsparticles/updater-roll"), require("@tsparticles/updater-life"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-emoji"), require("@tsparticles/shape-star"), require("@tsparticles/shape-square"), require("@tsparticles/shape-polygon"), require("@tsparticles/shape-image"), require("@tsparticles/shape-heart"), require("@tsparticles/shape-cards"), require("@tsparticles/plugin-motion"), require("@tsparticles/plugin-emitters"));
|
|
12
20
|
else if(typeof define === 'function' && define.amd)
|
|
13
|
-
define(["@tsparticles/engine", "@tsparticles/
|
|
21
|
+
define(["@tsparticles/engine", "@tsparticles/basic", "@tsparticles/updater-wobble", "@tsparticles/updater-tilt", "@tsparticles/updater-roll", "@tsparticles/updater-life", "@tsparticles/updater-rotate", "@tsparticles/shape-emoji", "@tsparticles/shape-star", "@tsparticles/shape-square", "@tsparticles/shape-polygon", "@tsparticles/shape-image", "@tsparticles/shape-heart", "@tsparticles/shape-cards", "@tsparticles/plugin-motion", "@tsparticles/plugin-emitters"], factory);
|
|
14
22
|
else {
|
|
15
|
-
var a = typeof exports === 'object' ? factory(require("@tsparticles/engine"), require("@tsparticles/
|
|
23
|
+
var a = typeof exports === 'object' ? factory(require("@tsparticles/engine"), require("@tsparticles/basic"), require("@tsparticles/updater-wobble"), require("@tsparticles/updater-tilt"), require("@tsparticles/updater-roll"), require("@tsparticles/updater-life"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-emoji"), require("@tsparticles/shape-star"), require("@tsparticles/shape-square"), require("@tsparticles/shape-polygon"), require("@tsparticles/shape-image"), require("@tsparticles/shape-heart"), require("@tsparticles/shape-cards"), require("@tsparticles/plugin-motion"), require("@tsparticles/plugin-emitters")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
|
|
16
24
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
25
|
}
|
|
18
|
-
})(this, (
|
|
26
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_engine__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_wobble__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_tilt__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_roll__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_life__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_emoji__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_star__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_square__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_polygon__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_image__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_heart__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_cards__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_motion__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__) => {
|
|
19
27
|
return /******/ (() => { // webpackBootstrap
|
|
20
28
|
/******/ "use strict";
|
|
21
29
|
/******/ var __webpack_modules__ = ({
|
|
22
30
|
|
|
23
|
-
/***/
|
|
31
|
+
/***/ "./dist/browser/ConfettiOptions.js":
|
|
32
|
+
/*!*****************************************!*\
|
|
33
|
+
!*** ./dist/browser/ConfettiOptions.js ***!
|
|
34
|
+
\*****************************************/
|
|
35
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
36
|
+
|
|
37
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ConfettiOptions: () => (/* binding */ ConfettiOptions)\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\nclass ConfettiOptions {\n constructor() {\n this.angle = 90;\n this.count = 50;\n this.spread = 45;\n this.startVelocity = 45;\n this.decay = 0.9;\n this.gravity = 1;\n this.drift = 0;\n this.ticks = 200;\n this.position = {\n x: 50,\n y: 50\n };\n this.colors = [\"#26ccff\", \"#a25afd\", \"#ff5e7e\", \"#88ff5a\", \"#fcff42\", \"#ffa62d\", \"#ff36ff\"];\n this.shapes = [\"square\", \"circle\"];\n this.scalar = 1;\n this.zIndex = 100;\n this.disableForReducedMotion = true;\n this.flat = false;\n this.shapeOptions = {};\n }\n get origin() {\n return {\n x: this.position.x / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator,\n y: this.position.y / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator\n };\n }\n set origin(value) {\n this.position.x = value.x * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n this.position.y = value.y * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator;\n }\n get particleCount() {\n return this.count;\n }\n set particleCount(value) {\n this.count = value;\n }\n load(data) {\n if (!data) {\n return;\n }\n if (data.angle !== undefined) {\n this.angle = data.angle;\n }\n const count = data.count ?? data.particleCount;\n if (count !== undefined) {\n this.count = count;\n }\n if (data.spread !== undefined) {\n this.spread = data.spread;\n }\n if (data.startVelocity !== undefined) {\n this.startVelocity = data.startVelocity;\n }\n if (data.decay !== undefined) {\n this.decay = data.decay;\n }\n if (data.flat !== undefined) {\n this.flat = data.flat;\n }\n if (data.gravity !== undefined) {\n this.gravity = data.gravity;\n }\n if (data.drift !== undefined) {\n this.drift = data.drift;\n }\n if (data.ticks !== undefined) {\n this.ticks = data.ticks;\n }\n const origin = data.origin;\n if (origin && !data.position) {\n data.position = {\n x: origin.x !== undefined ? origin.x * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator : undefined,\n y: origin.y !== undefined ? origin.y * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator : undefined\n };\n }\n const position = data.position;\n if (position) {\n if (position.x !== undefined) {\n this.position.x = position.x;\n }\n if (position.y !== undefined) {\n this.position.y = position.y;\n }\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 const options = data.shapeOptions;\n if (options !== undefined) {\n for (const shape in options) {\n const item = options[shape];\n if (item) {\n this.shapeOptions[shape] = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)(this.shapeOptions[shape] ?? {}, item);\n }\n }\n }\n if (data.shapes !== undefined) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isArray)(data.shapes)) {\n this.shapes = [...data.shapes];\n } else {\n this.shapes = data.shapes;\n }\n }\n if (data.scalar !== undefined) {\n this.scalar = data.scalar;\n }\n if (data.zIndex !== undefined) {\n this.zIndex = data.zIndex;\n }\n if (data.disableForReducedMotion !== undefined) {\n this.disableForReducedMotion = data.disableForReducedMotion;\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/./dist/browser/ConfettiOptions.js?");
|
|
38
|
+
|
|
39
|
+
/***/ }),
|
|
40
|
+
|
|
41
|
+
/***/ "./dist/browser/confetti.js":
|
|
42
|
+
/*!**********************************!*\
|
|
43
|
+
!*** ./dist/browser/confetti.js ***!
|
|
44
|
+
\**********************************/
|
|
45
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
46
|
+
|
|
47
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ confetti: () => (/* binding */ confetti)\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 _ConfettiOptions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ConfettiOptions.js */ \"./dist/browser/ConfettiOptions.js\");\n\n\nconst defaultGravity = 9.81,\n sizeFactor = 5,\n speedFactor = 3,\n decayOffset = 1,\n disableRotate = 0,\n disableTilt = 0;\nlet initialized = false;\nlet initializing = false;\nconst ids = new Map();\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 const {\n loadEmittersPlugin\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters */ \"@tsparticles/plugin-emitters\", 23)),\n {\n loadMotionPlugin\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-motion */ \"@tsparticles/plugin-motion\", 23)),\n {\n loadCardsShape\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/shape-cards */ \"@tsparticles/shape-cards\", 23)),\n {\n loadHeartShape\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/shape-heart */ \"@tsparticles/shape-heart\", 23)),\n {\n loadImageShape\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/shape-image */ \"@tsparticles/shape-image\", 23)),\n {\n loadPolygonShape\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/shape-polygon */ \"@tsparticles/shape-polygon\", 23)),\n {\n loadSquareShape\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/shape-square */ \"@tsparticles/shape-square\", 23)),\n {\n loadStarShape\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/shape-star */ \"@tsparticles/shape-star\", 23)),\n {\n loadEmojiShape\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/shape-emoji */ \"@tsparticles/shape-emoji\", 23)),\n {\n loadRotateUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\", 23)),\n {\n loadLifeUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-life */ \"@tsparticles/updater-life\", 23)),\n {\n loadRollUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-roll */ \"@tsparticles/updater-roll\", 23)),\n {\n loadTiltUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-tilt */ \"@tsparticles/updater-tilt\", 23)),\n {\n loadWobbleUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-wobble */ \"@tsparticles/updater-wobble\", 23)),\n {\n loadBasic\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 23));\n await loadEmittersPlugin(engine, false);\n await loadMotionPlugin(engine, false);\n await loadCardsShape(engine, false);\n await loadHeartShape(engine, false);\n await loadImageShape(engine, false);\n await loadPolygonShape(engine, false);\n await loadSquareShape(engine, false);\n await loadStarShape(engine, false);\n await loadEmojiShape(engine, false);\n await loadRotateUpdater(engine, false);\n await loadLifeUpdater(engine, false);\n await loadRollUpdater(engine, false);\n await loadTiltUpdater(engine, false);\n await loadWobbleUpdater(engine, false);\n await loadBasic(engine);\n initializing = false;\n initialized = true;\n}\nasync function setConfetti(params) {\n const actualOptions = new _ConfettiOptions_js__WEBPACK_IMPORTED_MODULE_1__.ConfettiOptions();\n actualOptions.load(params.options);\n let container;\n const fpsLimit = 120,\n fpsLimitFactor = 3.6,\n opacitySpeed = actualOptions.ticks * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds / (fpsLimitFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds * fpsLimit);\n if (ids.has(params.id)) {\n container = ids.get(params.id);\n if (container && !container.destroyed) {\n const alias = container;\n if (alias.addEmitter) {\n await alias.addEmitter({\n startCount: actualOptions.count,\n position: actualOptions.position,\n size: {\n width: 0,\n height: 0\n },\n rate: {\n delay: 0,\n quantity: 0\n },\n life: {\n duration: 0.1,\n count: 1\n },\n particles: {\n color: {\n value: actualOptions.colors\n },\n shape: {\n type: actualOptions.shapes,\n options: actualOptions.shapeOptions\n },\n life: {\n count: 1\n },\n opacity: {\n value: {\n min: 0,\n max: 1\n },\n animation: {\n enable: true,\n sync: true,\n speed: opacitySpeed,\n startValue: \"max\",\n destroy: \"min\"\n }\n },\n size: {\n value: sizeFactor * actualOptions.scalar\n },\n move: {\n angle: {\n value: actualOptions.spread,\n offset: 0\n },\n drift: {\n min: -actualOptions.drift,\n max: actualOptions.drift\n },\n gravity: {\n acceleration: actualOptions.gravity * defaultGravity\n },\n speed: actualOptions.startVelocity * speedFactor,\n decay: decayOffset - actualOptions.decay,\n direction: -actualOptions.angle\n }\n }\n });\n return;\n }\n }\n }\n const particlesOptions = {\n fullScreen: {\n enable: !params.canvas,\n zIndex: actualOptions.zIndex\n },\n fpsLimit: 120,\n particles: {\n number: {\n value: 0\n },\n color: {\n value: actualOptions.colors\n },\n shape: {\n type: actualOptions.shapes,\n options: actualOptions.shapeOptions\n },\n opacity: {\n value: {\n min: 0,\n max: 1\n },\n animation: {\n enable: true,\n sync: true,\n speed: opacitySpeed,\n startValue: \"max\",\n destroy: \"min\"\n }\n },\n size: {\n value: sizeFactor * actualOptions.scalar\n },\n links: {\n enable: false\n },\n life: {\n count: 1\n },\n move: {\n angle: {\n value: actualOptions.spread,\n offset: 0\n },\n drift: {\n min: -actualOptions.drift,\n max: actualOptions.drift\n },\n enable: true,\n gravity: {\n enable: true,\n acceleration: actualOptions.gravity * defaultGravity\n },\n speed: actualOptions.startVelocity * speedFactor,\n decay: decayOffset - actualOptions.decay,\n direction: -actualOptions.angle,\n random: true,\n straight: false,\n outModes: {\n default: \"none\",\n bottom: \"destroy\"\n }\n },\n rotate: {\n value: actualOptions.flat ? disableRotate : {\n min: 0,\n max: 360\n },\n direction: \"random\",\n animation: {\n enable: !actualOptions.flat,\n speed: 60\n }\n },\n tilt: {\n direction: \"random\",\n enable: !actualOptions.flat,\n value: actualOptions.flat ? disableTilt : {\n min: 0,\n max: 360\n },\n animation: {\n enable: true,\n speed: 60\n }\n },\n roll: {\n darken: {\n enable: true,\n value: 25\n },\n enable: !actualOptions.flat,\n speed: {\n min: 15,\n max: 25\n }\n },\n wobble: {\n distance: 30,\n enable: !actualOptions.flat,\n speed: {\n min: -15,\n max: 15\n }\n }\n },\n detectRetina: true,\n motion: {\n disable: actualOptions.disableForReducedMotion\n },\n emitters: {\n name: \"confetti\",\n startCount: actualOptions.count,\n position: actualOptions.position,\n size: {\n width: 0,\n height: 0\n },\n rate: {\n delay: 0,\n quantity: 0\n },\n life: {\n duration: 0.1,\n count: 1\n }\n }\n };\n container = await _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles.load({\n id: params.id,\n element: params.canvas,\n options: particlesOptions\n });\n ids.set(params.id, container);\n return container;\n}\nasync function confetti(idOrOptions, confettiOptions) {\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n let options;\n let id;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(idOrOptions)) {\n id = idOrOptions;\n options = confettiOptions ?? {};\n } else {\n id = \"confetti\";\n options = idOrOptions;\n }\n return setConfetti({\n id,\n options\n });\n}\nconfetti.create = async (canvas, options) => {\n if (!canvas) {\n return confetti;\n }\n await initPlugins(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles);\n const id = canvas.getAttribute(\"id\") ?? \"confetti\";\n canvas.setAttribute(\"id\", id);\n return async (idOrOptions, confettiOptions) => {\n let subOptions;\n let subId;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(idOrOptions)) {\n subId = idOrOptions;\n subOptions = confettiOptions ?? options;\n } else {\n subId = id;\n subOptions = idOrOptions;\n }\n return setConfetti({\n id: subId,\n canvas,\n options: subOptions\n });\n };\n};\nconfetti.version = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles.version;\nif (!(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isSsr)()) {\n window.confetti = confetti;\n}\n\n//# sourceURL=webpack://@tsparticles/confetti/./dist/browser/confetti.js?");
|
|
48
|
+
|
|
49
|
+
/***/ }),
|
|
50
|
+
|
|
51
|
+
/***/ "./dist/browser/index.js":
|
|
52
|
+
/*!*******************************!*\
|
|
53
|
+
!*** ./dist/browser/index.js ***!
|
|
54
|
+
\*******************************/
|
|
55
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
56
|
+
|
|
57
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ confetti: () => (/* reexport safe */ _confetti_js__WEBPACK_IMPORTED_MODULE_0__.confetti)\n/* harmony export */ });\n/* harmony import */ var _confetti_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./confetti.js */ \"./dist/browser/confetti.js\");\n\n\n//# sourceURL=webpack://@tsparticles/confetti/./dist/browser/index.js?");
|
|
58
|
+
|
|
59
|
+
/***/ }),
|
|
60
|
+
|
|
61
|
+
/***/ "@tsparticles/basic":
|
|
62
|
+
/*!******************************************************************************************************************************!*\
|
|
63
|
+
!*** external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"} ***!
|
|
64
|
+
\******************************************************************************************************************************/
|
|
24
65
|
/***/ ((module) => {
|
|
25
66
|
|
|
26
|
-
module.exports =
|
|
67
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__;
|
|
27
68
|
|
|
28
69
|
/***/ }),
|
|
29
70
|
|
|
30
|
-
/***/
|
|
71
|
+
/***/ "@tsparticles/engine":
|
|
72
|
+
/*!*********************************************************************************************************************************!*\
|
|
73
|
+
!*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***!
|
|
74
|
+
\*********************************************************************************************************************************/
|
|
31
75
|
/***/ ((module) => {
|
|
32
76
|
|
|
33
|
-
module.exports =
|
|
77
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
34
78
|
|
|
35
79
|
/***/ }),
|
|
36
80
|
|
|
37
|
-
/***/
|
|
81
|
+
/***/ "@tsparticles/plugin-emitters":
|
|
82
|
+
/*!************************************************************************************************************************************************************!*\
|
|
83
|
+
!*** external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"} ***!
|
|
84
|
+
\************************************************************************************************************************************************************/
|
|
38
85
|
/***/ ((module) => {
|
|
39
86
|
|
|
40
|
-
module.exports =
|
|
87
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
|
|
41
88
|
|
|
42
89
|
/***/ }),
|
|
43
90
|
|
|
44
|
-
/***/
|
|
91
|
+
/***/ "@tsparticles/plugin-motion":
|
|
92
|
+
/*!******************************************************************************************************************************************************!*\
|
|
93
|
+
!*** external {"commonjs":"@tsparticles/plugin-motion","commonjs2":"@tsparticles/plugin-motion","amd":"@tsparticles/plugin-motion","root":"window"} ***!
|
|
94
|
+
\******************************************************************************************************************************************************/
|
|
45
95
|
/***/ ((module) => {
|
|
46
96
|
|
|
47
|
-
module.exports =
|
|
97
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_motion__;
|
|
48
98
|
|
|
49
99
|
/***/ }),
|
|
50
100
|
|
|
51
|
-
/***/
|
|
101
|
+
/***/ "@tsparticles/shape-cards":
|
|
102
|
+
/*!************************************************************************************************************************************************!*\
|
|
103
|
+
!*** external {"commonjs":"@tsparticles/shape-cards","commonjs2":"@tsparticles/shape-cards","amd":"@tsparticles/shape-cards","root":"window"} ***!
|
|
104
|
+
\************************************************************************************************************************************************/
|
|
52
105
|
/***/ ((module) => {
|
|
53
106
|
|
|
54
|
-
module.exports =
|
|
107
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_cards__;
|
|
55
108
|
|
|
56
109
|
/***/ }),
|
|
57
110
|
|
|
58
|
-
/***/
|
|
111
|
+
/***/ "@tsparticles/shape-emoji":
|
|
112
|
+
/*!************************************************************************************************************************************************!*\
|
|
113
|
+
!*** external {"commonjs":"@tsparticles/shape-emoji","commonjs2":"@tsparticles/shape-emoji","amd":"@tsparticles/shape-emoji","root":"window"} ***!
|
|
114
|
+
\************************************************************************************************************************************************/
|
|
59
115
|
/***/ ((module) => {
|
|
60
116
|
|
|
61
|
-
module.exports =
|
|
117
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_emoji__;
|
|
62
118
|
|
|
63
119
|
/***/ }),
|
|
64
120
|
|
|
65
|
-
/***/
|
|
121
|
+
/***/ "@tsparticles/shape-heart":
|
|
122
|
+
/*!************************************************************************************************************************************************!*\
|
|
123
|
+
!*** external {"commonjs":"@tsparticles/shape-heart","commonjs2":"@tsparticles/shape-heart","amd":"@tsparticles/shape-heart","root":"window"} ***!
|
|
124
|
+
\************************************************************************************************************************************************/
|
|
66
125
|
/***/ ((module) => {
|
|
67
126
|
|
|
68
|
-
module.exports =
|
|
127
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_heart__;
|
|
69
128
|
|
|
70
129
|
/***/ }),
|
|
71
130
|
|
|
72
|
-
/***/
|
|
131
|
+
/***/ "@tsparticles/shape-image":
|
|
132
|
+
/*!************************************************************************************************************************************************!*\
|
|
133
|
+
!*** external {"commonjs":"@tsparticles/shape-image","commonjs2":"@tsparticles/shape-image","amd":"@tsparticles/shape-image","root":"window"} ***!
|
|
134
|
+
\************************************************************************************************************************************************/
|
|
73
135
|
/***/ ((module) => {
|
|
74
136
|
|
|
75
|
-
module.exports =
|
|
137
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_image__;
|
|
76
138
|
|
|
77
139
|
/***/ }),
|
|
78
140
|
|
|
79
|
-
/***/
|
|
141
|
+
/***/ "@tsparticles/shape-polygon":
|
|
142
|
+
/*!******************************************************************************************************************************************************!*\
|
|
143
|
+
!*** external {"commonjs":"@tsparticles/shape-polygon","commonjs2":"@tsparticles/shape-polygon","amd":"@tsparticles/shape-polygon","root":"window"} ***!
|
|
144
|
+
\******************************************************************************************************************************************************/
|
|
80
145
|
/***/ ((module) => {
|
|
81
146
|
|
|
82
|
-
module.exports =
|
|
147
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_polygon__;
|
|
83
148
|
|
|
84
149
|
/***/ }),
|
|
85
150
|
|
|
86
|
-
/***/
|
|
151
|
+
/***/ "@tsparticles/shape-square":
|
|
152
|
+
/*!***************************************************************************************************************************************************!*\
|
|
153
|
+
!*** external {"commonjs":"@tsparticles/shape-square","commonjs2":"@tsparticles/shape-square","amd":"@tsparticles/shape-square","root":"window"} ***!
|
|
154
|
+
\***************************************************************************************************************************************************/
|
|
87
155
|
/***/ ((module) => {
|
|
88
156
|
|
|
89
|
-
module.exports =
|
|
157
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_square__;
|
|
90
158
|
|
|
91
159
|
/***/ }),
|
|
92
160
|
|
|
93
|
-
/***/
|
|
161
|
+
/***/ "@tsparticles/shape-star":
|
|
162
|
+
/*!*********************************************************************************************************************************************!*\
|
|
163
|
+
!*** external {"commonjs":"@tsparticles/shape-star","commonjs2":"@tsparticles/shape-star","amd":"@tsparticles/shape-star","root":"window"} ***!
|
|
164
|
+
\*********************************************************************************************************************************************/
|
|
94
165
|
/***/ ((module) => {
|
|
95
166
|
|
|
96
|
-
module.exports =
|
|
167
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_star__;
|
|
97
168
|
|
|
98
169
|
/***/ }),
|
|
99
170
|
|
|
100
|
-
/***/
|
|
171
|
+
/***/ "@tsparticles/updater-life":
|
|
172
|
+
/*!***************************************************************************************************************************************************!*\
|
|
173
|
+
!*** external {"commonjs":"@tsparticles/updater-life","commonjs2":"@tsparticles/updater-life","amd":"@tsparticles/updater-life","root":"window"} ***!
|
|
174
|
+
\***************************************************************************************************************************************************/
|
|
101
175
|
/***/ ((module) => {
|
|
102
176
|
|
|
103
|
-
module.exports =
|
|
177
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_life__;
|
|
104
178
|
|
|
105
179
|
/***/ }),
|
|
106
180
|
|
|
107
|
-
/***/
|
|
181
|
+
/***/ "@tsparticles/updater-roll":
|
|
182
|
+
/*!***************************************************************************************************************************************************!*\
|
|
183
|
+
!*** external {"commonjs":"@tsparticles/updater-roll","commonjs2":"@tsparticles/updater-roll","amd":"@tsparticles/updater-roll","root":"window"} ***!
|
|
184
|
+
\***************************************************************************************************************************************************/
|
|
108
185
|
/***/ ((module) => {
|
|
109
186
|
|
|
110
|
-
module.exports =
|
|
187
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_roll__;
|
|
111
188
|
|
|
112
189
|
/***/ }),
|
|
113
190
|
|
|
114
|
-
/***/
|
|
191
|
+
/***/ "@tsparticles/updater-rotate":
|
|
192
|
+
/*!*********************************************************************************************************************************************************!*\
|
|
193
|
+
!*** external {"commonjs":"@tsparticles/updater-rotate","commonjs2":"@tsparticles/updater-rotate","amd":"@tsparticles/updater-rotate","root":"window"} ***!
|
|
194
|
+
\*********************************************************************************************************************************************************/
|
|
115
195
|
/***/ ((module) => {
|
|
116
196
|
|
|
117
|
-
module.exports =
|
|
197
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__;
|
|
118
198
|
|
|
119
199
|
/***/ }),
|
|
120
200
|
|
|
121
|
-
/***/
|
|
201
|
+
/***/ "@tsparticles/updater-tilt":
|
|
202
|
+
/*!***************************************************************************************************************************************************!*\
|
|
203
|
+
!*** external {"commonjs":"@tsparticles/updater-tilt","commonjs2":"@tsparticles/updater-tilt","amd":"@tsparticles/updater-tilt","root":"window"} ***!
|
|
204
|
+
\***************************************************************************************************************************************************/
|
|
122
205
|
/***/ ((module) => {
|
|
123
206
|
|
|
124
|
-
module.exports =
|
|
207
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_tilt__;
|
|
125
208
|
|
|
126
209
|
/***/ }),
|
|
127
210
|
|
|
128
|
-
/***/
|
|
211
|
+
/***/ "@tsparticles/updater-wobble":
|
|
212
|
+
/*!*********************************************************************************************************************************************************!*\
|
|
213
|
+
!*** external {"commonjs":"@tsparticles/updater-wobble","commonjs2":"@tsparticles/updater-wobble","amd":"@tsparticles/updater-wobble","root":"window"} ***!
|
|
214
|
+
\*********************************************************************************************************************************************************/
|
|
129
215
|
/***/ ((module) => {
|
|
130
216
|
|
|
131
|
-
module.exports =
|
|
217
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_wobble__;
|
|
132
218
|
|
|
133
219
|
/***/ })
|
|
134
220
|
|
|
@@ -159,6 +245,48 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__83__;
|
|
|
159
245
|
/******/ }
|
|
160
246
|
/******/
|
|
161
247
|
/************************************************************************/
|
|
248
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
249
|
+
/******/ (() => {
|
|
250
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
251
|
+
/******/ __webpack_require__.n = (module) => {
|
|
252
|
+
/******/ var getter = module && module.__esModule ?
|
|
253
|
+
/******/ () => (module['default']) :
|
|
254
|
+
/******/ () => (module);
|
|
255
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
256
|
+
/******/ return getter;
|
|
257
|
+
/******/ };
|
|
258
|
+
/******/ })();
|
|
259
|
+
/******/
|
|
260
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
261
|
+
/******/ (() => {
|
|
262
|
+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
263
|
+
/******/ var leafPrototypes;
|
|
264
|
+
/******/ // create a fake namespace object
|
|
265
|
+
/******/ // mode & 1: value is a module id, require it
|
|
266
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
267
|
+
/******/ // mode & 4: return value when already ns object
|
|
268
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
269
|
+
/******/ // mode & 8|1: behave like require
|
|
270
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
271
|
+
/******/ if(mode & 1) value = this(value);
|
|
272
|
+
/******/ if(mode & 8) return value;
|
|
273
|
+
/******/ if(typeof value === 'object' && value) {
|
|
274
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
275
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
276
|
+
/******/ }
|
|
277
|
+
/******/ var ns = Object.create(null);
|
|
278
|
+
/******/ __webpack_require__.r(ns);
|
|
279
|
+
/******/ var def = {};
|
|
280
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
281
|
+
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
282
|
+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
283
|
+
/******/ }
|
|
284
|
+
/******/ def['default'] = () => (value);
|
|
285
|
+
/******/ __webpack_require__.d(ns, def);
|
|
286
|
+
/******/ return ns;
|
|
287
|
+
/******/ };
|
|
288
|
+
/******/ })();
|
|
289
|
+
/******/
|
|
162
290
|
/******/ /* webpack/runtime/define property getters */
|
|
163
291
|
/******/ (() => {
|
|
164
292
|
/******/ // define getter functions for harmony exports
|
|
@@ -188,493 +316,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__83__;
|
|
|
188
316
|
/******/ })();
|
|
189
317
|
/******/
|
|
190
318
|
/************************************************************************/
|
|
191
|
-
|
|
192
|
-
//
|
|
193
|
-
|
|
194
|
-
//
|
|
195
|
-
__webpack_require__.
|
|
196
|
-
|
|
197
|
-
// EXPORTS
|
|
198
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
199
|
-
confetti: () => (/* reexport */ confetti)
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"}
|
|
203
|
-
var engine_root_window_ = __webpack_require__(533);
|
|
204
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"}
|
|
205
|
-
var plugin_emitters_root_window_ = __webpack_require__(68);
|
|
206
|
-
;// CONCATENATED MODULE: ./dist/browser/ConfettiOptions.js
|
|
207
|
-
|
|
208
|
-
class ConfettiOptions {
|
|
209
|
-
constructor() {
|
|
210
|
-
this.angle = 90;
|
|
211
|
-
this.count = 50;
|
|
212
|
-
this.spread = 45;
|
|
213
|
-
this.startVelocity = 45;
|
|
214
|
-
this.decay = 0.9;
|
|
215
|
-
this.gravity = 1;
|
|
216
|
-
this.drift = 0;
|
|
217
|
-
this.ticks = 200;
|
|
218
|
-
this.position = {
|
|
219
|
-
x: 50,
|
|
220
|
-
y: 50
|
|
221
|
-
};
|
|
222
|
-
this.colors = ["#26ccff", "#a25afd", "#ff5e7e", "#88ff5a", "#fcff42", "#ffa62d", "#ff36ff"];
|
|
223
|
-
this.shapes = ["square", "circle"];
|
|
224
|
-
this.scalar = 1;
|
|
225
|
-
this.zIndex = 100;
|
|
226
|
-
this.disableForReducedMotion = true;
|
|
227
|
-
this.flat = false;
|
|
228
|
-
this.shapeOptions = {};
|
|
229
|
-
}
|
|
230
|
-
get origin() {
|
|
231
|
-
return {
|
|
232
|
-
x: this.position.x / engine_root_window_.percentDenominator,
|
|
233
|
-
y: this.position.y / engine_root_window_.percentDenominator
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
set origin(value) {
|
|
237
|
-
this.position.x = value.x * engine_root_window_.percentDenominator;
|
|
238
|
-
this.position.y = value.y * engine_root_window_.percentDenominator;
|
|
239
|
-
}
|
|
240
|
-
get particleCount() {
|
|
241
|
-
return this.count;
|
|
242
|
-
}
|
|
243
|
-
set particleCount(value) {
|
|
244
|
-
this.count = value;
|
|
245
|
-
}
|
|
246
|
-
load(data) {
|
|
247
|
-
if (!data) {
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
if (data.angle !== undefined) {
|
|
251
|
-
this.angle = data.angle;
|
|
252
|
-
}
|
|
253
|
-
const count = data.count ?? data.particleCount;
|
|
254
|
-
if (count !== undefined) {
|
|
255
|
-
this.count = count;
|
|
256
|
-
}
|
|
257
|
-
if (data.spread !== undefined) {
|
|
258
|
-
this.spread = data.spread;
|
|
259
|
-
}
|
|
260
|
-
if (data.startVelocity !== undefined) {
|
|
261
|
-
this.startVelocity = data.startVelocity;
|
|
262
|
-
}
|
|
263
|
-
if (data.decay !== undefined) {
|
|
264
|
-
this.decay = data.decay;
|
|
265
|
-
}
|
|
266
|
-
if (data.flat !== undefined) {
|
|
267
|
-
this.flat = data.flat;
|
|
268
|
-
}
|
|
269
|
-
if (data.gravity !== undefined) {
|
|
270
|
-
this.gravity = data.gravity;
|
|
271
|
-
}
|
|
272
|
-
if (data.drift !== undefined) {
|
|
273
|
-
this.drift = data.drift;
|
|
274
|
-
}
|
|
275
|
-
if (data.ticks !== undefined) {
|
|
276
|
-
this.ticks = data.ticks;
|
|
277
|
-
}
|
|
278
|
-
const origin = data.origin;
|
|
279
|
-
if (origin && !data.position) {
|
|
280
|
-
data.position = {
|
|
281
|
-
x: origin.x !== undefined ? origin.x * engine_root_window_.percentDenominator : undefined,
|
|
282
|
-
y: origin.y !== undefined ? origin.y * engine_root_window_.percentDenominator : undefined
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
const position = data.position;
|
|
286
|
-
if (position) {
|
|
287
|
-
if (position.x !== undefined) {
|
|
288
|
-
this.position.x = position.x;
|
|
289
|
-
}
|
|
290
|
-
if (position.y !== undefined) {
|
|
291
|
-
this.position.y = position.y;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
if (data.colors !== undefined) {
|
|
295
|
-
if ((0,engine_root_window_.isArray)(data.colors)) {
|
|
296
|
-
this.colors = [...data.colors];
|
|
297
|
-
} else {
|
|
298
|
-
this.colors = data.colors;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
const options = data.shapeOptions;
|
|
302
|
-
if (options !== undefined) {
|
|
303
|
-
for (const shape in options) {
|
|
304
|
-
const item = options[shape];
|
|
305
|
-
if (item) {
|
|
306
|
-
this.shapeOptions[shape] = (0,engine_root_window_.deepExtend)(this.shapeOptions[shape] ?? {}, item);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
if (data.shapes !== undefined) {
|
|
311
|
-
if ((0,engine_root_window_.isArray)(data.shapes)) {
|
|
312
|
-
this.shapes = [...data.shapes];
|
|
313
|
-
} else {
|
|
314
|
-
this.shapes = data.shapes;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
if (data.scalar !== undefined) {
|
|
318
|
-
this.scalar = data.scalar;
|
|
319
|
-
}
|
|
320
|
-
if (data.zIndex !== undefined) {
|
|
321
|
-
this.zIndex = data.zIndex;
|
|
322
|
-
}
|
|
323
|
-
if (data.disableForReducedMotion !== undefined) {
|
|
324
|
-
this.disableForReducedMotion = data.disableForReducedMotion;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"}
|
|
329
|
-
var basic_root_window_ = __webpack_require__(574);
|
|
330
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-cards","commonjs2":"@tsparticles/shape-cards","amd":"@tsparticles/shape-cards","root":"window"}
|
|
331
|
-
var shape_cards_root_window_ = __webpack_require__(686);
|
|
332
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-emoji","commonjs2":"@tsparticles/shape-emoji","amd":"@tsparticles/shape-emoji","root":"window"}
|
|
333
|
-
var shape_emoji_root_window_ = __webpack_require__(151);
|
|
334
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-heart","commonjs2":"@tsparticles/shape-heart","amd":"@tsparticles/shape-heart","root":"window"}
|
|
335
|
-
var shape_heart_root_window_ = __webpack_require__(12);
|
|
336
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-image","commonjs2":"@tsparticles/shape-image","amd":"@tsparticles/shape-image","root":"window"}
|
|
337
|
-
var shape_image_root_window_ = __webpack_require__(885);
|
|
338
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-life","commonjs2":"@tsparticles/updater-life","amd":"@tsparticles/updater-life","root":"window"}
|
|
339
|
-
var updater_life_root_window_ = __webpack_require__(84);
|
|
340
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/plugin-motion","commonjs2":"@tsparticles/plugin-motion","amd":"@tsparticles/plugin-motion","root":"window"}
|
|
341
|
-
var plugin_motion_root_window_ = __webpack_require__(82);
|
|
342
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-polygon","commonjs2":"@tsparticles/shape-polygon","amd":"@tsparticles/shape-polygon","root":"window"}
|
|
343
|
-
var shape_polygon_root_window_ = __webpack_require__(907);
|
|
344
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-roll","commonjs2":"@tsparticles/updater-roll","amd":"@tsparticles/updater-roll","root":"window"}
|
|
345
|
-
var updater_roll_root_window_ = __webpack_require__(734);
|
|
346
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-rotate","commonjs2":"@tsparticles/updater-rotate","amd":"@tsparticles/updater-rotate","root":"window"}
|
|
347
|
-
var updater_rotate_root_window_ = __webpack_require__(59);
|
|
348
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-square","commonjs2":"@tsparticles/shape-square","amd":"@tsparticles/shape-square","root":"window"}
|
|
349
|
-
var shape_square_root_window_ = __webpack_require__(652);
|
|
350
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-star","commonjs2":"@tsparticles/shape-star","amd":"@tsparticles/shape-star","root":"window"}
|
|
351
|
-
var shape_star_root_window_ = __webpack_require__(960);
|
|
352
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-tilt","commonjs2":"@tsparticles/updater-tilt","amd":"@tsparticles/updater-tilt","root":"window"}
|
|
353
|
-
var updater_tilt_root_window_ = __webpack_require__(448);
|
|
354
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-wobble","commonjs2":"@tsparticles/updater-wobble","amd":"@tsparticles/updater-wobble","root":"window"}
|
|
355
|
-
var updater_wobble_root_window_ = __webpack_require__(83);
|
|
356
|
-
;// CONCATENATED MODULE: ./dist/browser/confetti.js
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
const defaultGravity = 9.81,
|
|
375
|
-
sizeFactor = 5,
|
|
376
|
-
speedFactor = 3,
|
|
377
|
-
decayOffset = 1,
|
|
378
|
-
disableRotate = 0,
|
|
379
|
-
disableTilt = 0;
|
|
380
|
-
let initialized = false;
|
|
381
|
-
let initializing = false;
|
|
382
|
-
const ids = new Map();
|
|
383
|
-
async function initPlugins(engine) {
|
|
384
|
-
if (initialized) {
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
if (initializing) {
|
|
388
|
-
return new Promise(resolve => {
|
|
389
|
-
const timeout = 100,
|
|
390
|
-
interval = setInterval(() => {
|
|
391
|
-
if (!initialized) {
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
clearInterval(interval);
|
|
395
|
-
resolve();
|
|
396
|
-
}, timeout);
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
initializing = true;
|
|
400
|
-
await (0,plugin_emitters_root_window_.loadEmittersPlugin)(engine, false);
|
|
401
|
-
await (0,plugin_motion_root_window_.loadMotionPlugin)(engine, false);
|
|
402
|
-
await (0,shape_cards_root_window_.loadCardsShape)(engine, false);
|
|
403
|
-
await (0,shape_heart_root_window_.loadHeartShape)(engine, false);
|
|
404
|
-
await (0,shape_image_root_window_.loadImageShape)(engine, false);
|
|
405
|
-
await (0,shape_polygon_root_window_.loadPolygonShape)(engine, false);
|
|
406
|
-
await (0,shape_square_root_window_.loadSquareShape)(engine, false);
|
|
407
|
-
await (0,shape_star_root_window_.loadStarShape)(engine, false);
|
|
408
|
-
await (0,shape_emoji_root_window_.loadEmojiShape)(engine, false);
|
|
409
|
-
await (0,updater_rotate_root_window_.loadRotateUpdater)(engine, false);
|
|
410
|
-
await (0,updater_life_root_window_.loadLifeUpdater)(engine, false);
|
|
411
|
-
await (0,updater_roll_root_window_.loadRollUpdater)(engine, false);
|
|
412
|
-
await (0,updater_tilt_root_window_.loadTiltUpdater)(engine, false);
|
|
413
|
-
await (0,updater_wobble_root_window_.loadWobbleUpdater)(engine, false);
|
|
414
|
-
await (0,basic_root_window_.loadBasic)(engine);
|
|
415
|
-
initializing = false;
|
|
416
|
-
initialized = true;
|
|
417
|
-
}
|
|
418
|
-
async function setConfetti(params) {
|
|
419
|
-
const actualOptions = new ConfettiOptions();
|
|
420
|
-
actualOptions.load(params.options);
|
|
421
|
-
let container;
|
|
422
|
-
const fpsLimit = 120,
|
|
423
|
-
fpsLimitFactor = 3.6,
|
|
424
|
-
opacitySpeed = actualOptions.ticks * engine_root_window_.millisecondsToSeconds / (fpsLimitFactor * engine_root_window_.millisecondsToSeconds * fpsLimit);
|
|
425
|
-
if (ids.has(params.id)) {
|
|
426
|
-
container = ids.get(params.id);
|
|
427
|
-
if (container && !container.destroyed) {
|
|
428
|
-
const alias = container;
|
|
429
|
-
if (alias.addEmitter) {
|
|
430
|
-
await alias.addEmitter({
|
|
431
|
-
startCount: actualOptions.count,
|
|
432
|
-
position: actualOptions.position,
|
|
433
|
-
size: {
|
|
434
|
-
width: 0,
|
|
435
|
-
height: 0
|
|
436
|
-
},
|
|
437
|
-
rate: {
|
|
438
|
-
delay: 0,
|
|
439
|
-
quantity: 0
|
|
440
|
-
},
|
|
441
|
-
life: {
|
|
442
|
-
duration: 0.1,
|
|
443
|
-
count: 1
|
|
444
|
-
},
|
|
445
|
-
particles: {
|
|
446
|
-
color: {
|
|
447
|
-
value: actualOptions.colors
|
|
448
|
-
},
|
|
449
|
-
shape: {
|
|
450
|
-
type: actualOptions.shapes,
|
|
451
|
-
options: actualOptions.shapeOptions
|
|
452
|
-
},
|
|
453
|
-
life: {
|
|
454
|
-
count: 1
|
|
455
|
-
},
|
|
456
|
-
opacity: {
|
|
457
|
-
value: {
|
|
458
|
-
min: 0,
|
|
459
|
-
max: 1
|
|
460
|
-
},
|
|
461
|
-
animation: {
|
|
462
|
-
enable: true,
|
|
463
|
-
sync: true,
|
|
464
|
-
speed: opacitySpeed,
|
|
465
|
-
startValue: "max",
|
|
466
|
-
destroy: "min"
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
size: {
|
|
470
|
-
value: sizeFactor * actualOptions.scalar
|
|
471
|
-
},
|
|
472
|
-
move: {
|
|
473
|
-
angle: {
|
|
474
|
-
value: actualOptions.spread,
|
|
475
|
-
offset: 0
|
|
476
|
-
},
|
|
477
|
-
drift: {
|
|
478
|
-
min: -actualOptions.drift,
|
|
479
|
-
max: actualOptions.drift
|
|
480
|
-
},
|
|
481
|
-
gravity: {
|
|
482
|
-
acceleration: actualOptions.gravity * defaultGravity
|
|
483
|
-
},
|
|
484
|
-
speed: actualOptions.startVelocity * speedFactor,
|
|
485
|
-
decay: decayOffset - actualOptions.decay,
|
|
486
|
-
direction: -actualOptions.angle
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
});
|
|
490
|
-
return;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
const particlesOptions = {
|
|
495
|
-
fullScreen: {
|
|
496
|
-
enable: !params.canvas,
|
|
497
|
-
zIndex: actualOptions.zIndex
|
|
498
|
-
},
|
|
499
|
-
fpsLimit: 120,
|
|
500
|
-
particles: {
|
|
501
|
-
number: {
|
|
502
|
-
value: 0
|
|
503
|
-
},
|
|
504
|
-
color: {
|
|
505
|
-
value: actualOptions.colors
|
|
506
|
-
},
|
|
507
|
-
shape: {
|
|
508
|
-
type: actualOptions.shapes,
|
|
509
|
-
options: actualOptions.shapeOptions
|
|
510
|
-
},
|
|
511
|
-
opacity: {
|
|
512
|
-
value: {
|
|
513
|
-
min: 0,
|
|
514
|
-
max: 1
|
|
515
|
-
},
|
|
516
|
-
animation: {
|
|
517
|
-
enable: true,
|
|
518
|
-
sync: true,
|
|
519
|
-
speed: opacitySpeed,
|
|
520
|
-
startValue: "max",
|
|
521
|
-
destroy: "min"
|
|
522
|
-
}
|
|
523
|
-
},
|
|
524
|
-
size: {
|
|
525
|
-
value: sizeFactor * actualOptions.scalar
|
|
526
|
-
},
|
|
527
|
-
links: {
|
|
528
|
-
enable: false
|
|
529
|
-
},
|
|
530
|
-
life: {
|
|
531
|
-
count: 1
|
|
532
|
-
},
|
|
533
|
-
move: {
|
|
534
|
-
angle: {
|
|
535
|
-
value: actualOptions.spread,
|
|
536
|
-
offset: 0
|
|
537
|
-
},
|
|
538
|
-
drift: {
|
|
539
|
-
min: -actualOptions.drift,
|
|
540
|
-
max: actualOptions.drift
|
|
541
|
-
},
|
|
542
|
-
enable: true,
|
|
543
|
-
gravity: {
|
|
544
|
-
enable: true,
|
|
545
|
-
acceleration: actualOptions.gravity * defaultGravity
|
|
546
|
-
},
|
|
547
|
-
speed: actualOptions.startVelocity * speedFactor,
|
|
548
|
-
decay: decayOffset - actualOptions.decay,
|
|
549
|
-
direction: -actualOptions.angle,
|
|
550
|
-
random: true,
|
|
551
|
-
straight: false,
|
|
552
|
-
outModes: {
|
|
553
|
-
default: "none",
|
|
554
|
-
bottom: "destroy"
|
|
555
|
-
}
|
|
556
|
-
},
|
|
557
|
-
rotate: {
|
|
558
|
-
value: actualOptions.flat ? disableRotate : {
|
|
559
|
-
min: 0,
|
|
560
|
-
max: 360
|
|
561
|
-
},
|
|
562
|
-
direction: "random",
|
|
563
|
-
animation: {
|
|
564
|
-
enable: !actualOptions.flat,
|
|
565
|
-
speed: 60
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
tilt: {
|
|
569
|
-
direction: "random",
|
|
570
|
-
enable: !actualOptions.flat,
|
|
571
|
-
value: actualOptions.flat ? disableTilt : {
|
|
572
|
-
min: 0,
|
|
573
|
-
max: 360
|
|
574
|
-
},
|
|
575
|
-
animation: {
|
|
576
|
-
enable: true,
|
|
577
|
-
speed: 60
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
roll: {
|
|
581
|
-
darken: {
|
|
582
|
-
enable: true,
|
|
583
|
-
value: 25
|
|
584
|
-
},
|
|
585
|
-
enable: !actualOptions.flat,
|
|
586
|
-
speed: {
|
|
587
|
-
min: 15,
|
|
588
|
-
max: 25
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
wobble: {
|
|
592
|
-
distance: 30,
|
|
593
|
-
enable: !actualOptions.flat,
|
|
594
|
-
speed: {
|
|
595
|
-
min: -15,
|
|
596
|
-
max: 15
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
detectRetina: true,
|
|
601
|
-
motion: {
|
|
602
|
-
disable: actualOptions.disableForReducedMotion
|
|
603
|
-
},
|
|
604
|
-
emitters: {
|
|
605
|
-
name: "confetti",
|
|
606
|
-
startCount: actualOptions.count,
|
|
607
|
-
position: actualOptions.position,
|
|
608
|
-
size: {
|
|
609
|
-
width: 0,
|
|
610
|
-
height: 0
|
|
611
|
-
},
|
|
612
|
-
rate: {
|
|
613
|
-
delay: 0,
|
|
614
|
-
quantity: 0
|
|
615
|
-
},
|
|
616
|
-
life: {
|
|
617
|
-
duration: 0.1,
|
|
618
|
-
count: 1
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
};
|
|
622
|
-
container = await engine_root_window_.tsParticles.load({
|
|
623
|
-
id: params.id,
|
|
624
|
-
element: params.canvas,
|
|
625
|
-
options: particlesOptions
|
|
626
|
-
});
|
|
627
|
-
ids.set(params.id, container);
|
|
628
|
-
return container;
|
|
629
|
-
}
|
|
630
|
-
async function confetti(idOrOptions, confettiOptions) {
|
|
631
|
-
await initPlugins(engine_root_window_.tsParticles);
|
|
632
|
-
let options;
|
|
633
|
-
let id;
|
|
634
|
-
if ((0,engine_root_window_.isString)(idOrOptions)) {
|
|
635
|
-
id = idOrOptions;
|
|
636
|
-
options = confettiOptions ?? {};
|
|
637
|
-
} else {
|
|
638
|
-
id = "confetti";
|
|
639
|
-
options = idOrOptions;
|
|
640
|
-
}
|
|
641
|
-
return setConfetti({
|
|
642
|
-
id,
|
|
643
|
-
options
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
|
-
confetti.create = async (canvas, options) => {
|
|
647
|
-
if (!canvas) {
|
|
648
|
-
return confetti;
|
|
649
|
-
}
|
|
650
|
-
await initPlugins(engine_root_window_.tsParticles);
|
|
651
|
-
const id = canvas.getAttribute("id") ?? "confetti";
|
|
652
|
-
canvas.setAttribute("id", id);
|
|
653
|
-
return async (idOrOptions, confettiOptions) => {
|
|
654
|
-
let subOptions;
|
|
655
|
-
let subId;
|
|
656
|
-
if ((0,engine_root_window_.isString)(idOrOptions)) {
|
|
657
|
-
subId = idOrOptions;
|
|
658
|
-
subOptions = confettiOptions ?? options;
|
|
659
|
-
} else {
|
|
660
|
-
subId = id;
|
|
661
|
-
subOptions = idOrOptions;
|
|
662
|
-
}
|
|
663
|
-
return setConfetti({
|
|
664
|
-
id: subId,
|
|
665
|
-
canvas,
|
|
666
|
-
options: subOptions
|
|
667
|
-
});
|
|
668
|
-
};
|
|
669
|
-
};
|
|
670
|
-
confetti.version = engine_root_window_.tsParticles.version;
|
|
671
|
-
if (!(0,engine_root_window_.isSsr)()) {
|
|
672
|
-
window.confetti = confetti;
|
|
673
|
-
}
|
|
674
|
-
;// CONCATENATED MODULE: ./dist/browser/index.js
|
|
675
|
-
|
|
676
|
-
})();
|
|
677
|
-
|
|
319
|
+
/******/
|
|
320
|
+
/******/ // startup
|
|
321
|
+
/******/ // Load entry module and return exports
|
|
322
|
+
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
323
|
+
/******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
|
|
324
|
+
/******/
|
|
678
325
|
/******/ return __webpack_exports__;
|
|
679
326
|
/******/ })()
|
|
680
327
|
;
|