@tsparticles/preset-bubbles 3.1.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/125.min.js +2 -0
- package/125.min.js.LICENSE.txt +1 -0
- package/171.min.js +2 -0
- package/171.min.js.LICENSE.txt +1 -0
- package/264.min.js +2 -0
- package/264.min.js.LICENSE.txt +1 -0
- package/267.min.js +2 -0
- package/267.min.js.LICENSE.txt +1 -0
- package/283.min.js +2 -0
- package/283.min.js.LICENSE.txt +1 -0
- package/293.min.js +2 -0
- package/293.min.js.LICENSE.txt +1 -0
- package/313.min.js +2 -0
- package/313.min.js.LICENSE.txt +1 -0
- package/349.min.js +2 -0
- package/349.min.js.LICENSE.txt +1 -0
- package/397.min.js +2 -0
- package/397.min.js.LICENSE.txt +1 -0
- package/418.min.js +2 -0
- package/418.min.js.LICENSE.txt +1 -0
- package/453.min.js +2 -0
- package/453.min.js.LICENSE.txt +1 -0
- package/455.min.js +2 -0
- package/455.min.js.LICENSE.txt +1 -0
- package/459.min.js +2 -0
- package/459.min.js.LICENSE.txt +1 -0
- package/481.min.js +2 -0
- package/481.min.js.LICENSE.txt +1 -0
- package/509.min.js +2 -0
- package/509.min.js.LICENSE.txt +1 -0
- package/594.min.js +2 -0
- package/594.min.js.LICENSE.txt +1 -0
- package/633.min.js +2 -0
- package/633.min.js.LICENSE.txt +1 -0
- package/669.min.js +2 -0
- package/669.min.js.LICENSE.txt +1 -0
- package/751.min.js +2 -0
- package/751.min.js.LICENSE.txt +1 -0
- package/802.min.js +2 -0
- package/802.min.js.LICENSE.txt +1 -0
- package/803.min.js +2 -0
- package/803.min.js.LICENSE.txt +1 -0
- package/819.min.js +2 -0
- package/819.min.js.LICENSE.txt +1 -0
- package/926.min.js +2 -0
- package/926.min.js.LICENSE.txt +1 -0
- package/98.min.js +2 -0
- package/98.min.js.LICENSE.txt +1 -0
- package/README.md +1 -1
- package/browser/bundle.js +2 -3
- package/browser/index.js +7 -8
- package/browser/options.js +1 -0
- package/cjs/bundle.js +2 -7
- package/cjs/index.js +7 -12
- package/cjs/options.js +6 -8
- package/dist_browser_options_js.js +30 -0
- package/esm/bundle.js +2 -3
- package/esm/index.js +7 -8
- package/esm/options.js +1 -0
- package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_2_node_modules_tsparticles_basic_browser_index_js.js +30 -0
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-7d79eb.js +40 -0
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-fb148a.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-122a51.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-6bd6f8.js +50 -0
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--91288b.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--d06b2a.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--70976c.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--e141e9.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--60c9df.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--732407.js +30 -0
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-c98489.js +40 -0
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-ce96e8.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-210bd6.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-6ff909.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--4e8c57.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--ac14ff.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticles_update-cd317f.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-53e0fe.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-aaa117.js +30 -0
- package/package.json +19 -6
- package/report.html +5 -4
- package/tsparticles.preset.bubbles.bundle.js +774 -2143
- package/tsparticles.preset.bubbles.bundle.min.js +1 -1
- package/tsparticles.preset.bubbles.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.preset.bubbles.js +245 -36
- package/tsparticles.preset.bubbles.min.js +1 -1
- package/tsparticles.preset.bubbles.min.js.LICENSE.txt +1 -1
- package/types/bundle.d.ts +2 -3
- package/types/index.d.ts +1 -1
- package/types/options.d.ts +1 -0
- package/umd/bundle.js +2 -2
- package/umd/index.js +43 -11
- package/umd/options.js +2 -1
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_2_node_modules_tsparticles_engine_br-9c0a0f.js +100 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_-1e60b5.js +110 -0
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticle-124574.js +80 -0
|
@@ -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,67 +16,57 @@
|
|
|
16
16
|
*/
|
|
17
17
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
18
18
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
19
|
-
module.exports = factory(require("@tsparticles/
|
|
19
|
+
module.exports = factory(require("@tsparticles/plugin-emitters"), require("@tsparticles/basic"), require("@tsparticles/engine"));
|
|
20
20
|
else if(typeof define === 'function' && define.amd)
|
|
21
|
-
define(["@tsparticles/
|
|
21
|
+
define(["@tsparticles/plugin-emitters", "@tsparticles/basic", "@tsparticles/engine"], factory);
|
|
22
22
|
else {
|
|
23
|
-
var a = typeof exports === 'object' ? factory(require("@tsparticles/
|
|
23
|
+
var a = typeof exports === 'object' ? factory(require("@tsparticles/plugin-emitters"), require("@tsparticles/basic"), require("@tsparticles/engine")) : factory(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, (
|
|
26
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__, __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__) => {
|
|
27
27
|
return /******/ (() => { // webpackBootstrap
|
|
28
28
|
/******/ "use strict";
|
|
29
29
|
/******/ var __webpack_modules__ = ({
|
|
30
30
|
|
|
31
|
-
/***/ "./dist/browser/index.js"
|
|
31
|
+
/***/ "./dist/browser/index.js"
|
|
32
32
|
/*!*******************************!*\
|
|
33
33
|
!*** ./dist/browser/index.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 */ loadBubblesPreset: () => (/* binding */ loadBubblesPreset)\n/* harmony export */ });\n
|
|
37
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadBubblesPreset: () => (/* binding */ loadBubblesPreset)\n/* harmony export */ });\nfunction loadBubblesPreset(engine) {\n engine.register(async e => {\n const {\n loadBasic\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 19)),\n {\n loadEmittersPlugin\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters */ \"@tsparticles/plugin-emitters\", 19)),\n {\n options,\n presetName\n } = await __webpack_require__.e(/*! import() */ \"dist_browser_options_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./options.js */ \"./dist/browser/options.js\"));\n loadBasic(e);\n loadEmittersPlugin(e);\n e.addPreset(presetName, options);\n });\n}\n\n//# sourceURL=webpack://@tsparticles/preset-bubbles/./dist/browser/index.js?\n}");
|
|
38
38
|
|
|
39
|
-
/***/ }
|
|
39
|
+
/***/ },
|
|
40
40
|
|
|
41
|
-
/***/ "
|
|
42
|
-
/*!*********************************!*\
|
|
43
|
-
!*** ./dist/browser/options.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 */ options: () => (/* binding */ options)\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\nconst options = {\n fpsLimit: 120,\n particles: {\n color: {\n value: \"random\"\n },\n shape: {\n type: \"circle\"\n },\n opacity: {\n value: 0.3\n },\n size: {\n value: {\n min: 5,\n max: 10\n }\n },\n move: {\n angle: {\n offset: 0,\n value: 30\n },\n enable: true,\n speed: 15,\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.top,\n random: false,\n straight: false,\n outModes: {\n default: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy\n }\n }\n },\n detectRetina: true,\n background: {\n color: \"#fff\"\n },\n emitters: [{\n direction: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.MoveDirection.top,\n position: {\n y: 100\n },\n life: {\n duration: 3,\n delay: 5,\n count: 0\n }\n }]\n};\n\n//# sourceURL=webpack://@tsparticles/preset-bubbles/./dist/browser/options.js?");
|
|
48
|
-
|
|
49
|
-
/***/ }),
|
|
50
|
-
|
|
51
|
-
/***/ "@tsparticles/basic":
|
|
41
|
+
/***/ "@tsparticles/basic"
|
|
52
42
|
/*!******************************************************************************************************************************!*\
|
|
53
43
|
!*** external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"} ***!
|
|
54
44
|
\******************************************************************************************************************************/
|
|
55
|
-
|
|
45
|
+
(module) {
|
|
56
46
|
|
|
57
47
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__;
|
|
58
48
|
|
|
59
|
-
/***/ }
|
|
49
|
+
/***/ },
|
|
60
50
|
|
|
61
|
-
/***/ "@tsparticles/engine"
|
|
51
|
+
/***/ "@tsparticles/engine"
|
|
62
52
|
/*!*********************************************************************************************************************************!*\
|
|
63
53
|
!*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***!
|
|
64
54
|
\*********************************************************************************************************************************/
|
|
65
|
-
|
|
55
|
+
(module) {
|
|
66
56
|
|
|
67
57
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
68
58
|
|
|
69
|
-
/***/ }
|
|
59
|
+
/***/ },
|
|
70
60
|
|
|
71
|
-
/***/ "@tsparticles/plugin-emitters"
|
|
61
|
+
/***/ "@tsparticles/plugin-emitters"
|
|
72
62
|
/*!************************************************************************************************************************************************************!*\
|
|
73
63
|
!*** external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"} ***!
|
|
74
64
|
\************************************************************************************************************************************************************/
|
|
75
|
-
|
|
65
|
+
(module) {
|
|
76
66
|
|
|
77
67
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
|
|
78
68
|
|
|
79
|
-
/***/ }
|
|
69
|
+
/***/ }
|
|
80
70
|
|
|
81
71
|
/******/ });
|
|
82
72
|
/************************************************************************/
|
|
@@ -90,6 +80,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
|
|
|
90
80
|
/******/ if (cachedModule !== undefined) {
|
|
91
81
|
/******/ return cachedModule.exports;
|
|
92
82
|
/******/ }
|
|
83
|
+
/******/ // Check if module exists (development only)
|
|
84
|
+
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
85
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
86
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
87
|
+
/******/ throw e;
|
|
88
|
+
/******/ }
|
|
93
89
|
/******/ // Create a new module (and put it into the cache)
|
|
94
90
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
95
91
|
/******/ // no module.id needed
|
|
@@ -104,16 +100,37 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
|
|
|
104
100
|
/******/ return module.exports;
|
|
105
101
|
/******/ }
|
|
106
102
|
/******/
|
|
103
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
104
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
105
|
+
/******/
|
|
107
106
|
/************************************************************************/
|
|
108
|
-
/******/ /* webpack/runtime/
|
|
107
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
109
108
|
/******/ (() => {
|
|
110
|
-
/******/
|
|
111
|
-
/******/
|
|
112
|
-
/******/
|
|
113
|
-
/******/
|
|
114
|
-
/******/
|
|
115
|
-
/******/
|
|
116
|
-
/******/
|
|
109
|
+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
110
|
+
/******/ var leafPrototypes;
|
|
111
|
+
/******/ // create a fake namespace object
|
|
112
|
+
/******/ // mode & 1: value is a module id, require it
|
|
113
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
114
|
+
/******/ // mode & 4: return value when already ns object
|
|
115
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
116
|
+
/******/ // mode & 8|1: behave like require
|
|
117
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
118
|
+
/******/ if(mode & 1) value = this(value);
|
|
119
|
+
/******/ if(mode & 8) return value;
|
|
120
|
+
/******/ if(typeof value === 'object' && value) {
|
|
121
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
122
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
123
|
+
/******/ }
|
|
124
|
+
/******/ var ns = Object.create(null);
|
|
125
|
+
/******/ __webpack_require__.r(ns);
|
|
126
|
+
/******/ var def = {};
|
|
127
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
128
|
+
/******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
129
|
+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
130
|
+
/******/ }
|
|
131
|
+
/******/ def['default'] = () => (value);
|
|
132
|
+
/******/ __webpack_require__.d(ns, def);
|
|
133
|
+
/******/ return ns;
|
|
117
134
|
/******/ };
|
|
118
135
|
/******/ })();
|
|
119
136
|
/******/
|
|
@@ -129,11 +146,90 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
|
|
|
129
146
|
/******/ };
|
|
130
147
|
/******/ })();
|
|
131
148
|
/******/
|
|
149
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
150
|
+
/******/ (() => {
|
|
151
|
+
/******/ __webpack_require__.f = {};
|
|
152
|
+
/******/ // This file contains only the entry chunk.
|
|
153
|
+
/******/ // The chunk loading function for additional chunks
|
|
154
|
+
/******/ __webpack_require__.e = (chunkId) => {
|
|
155
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
|
|
156
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
157
|
+
/******/ return promises;
|
|
158
|
+
/******/ }, []));
|
|
159
|
+
/******/ };
|
|
160
|
+
/******/ })();
|
|
161
|
+
/******/
|
|
162
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
163
|
+
/******/ (() => {
|
|
164
|
+
/******/ // This function allow to reference async chunks
|
|
165
|
+
/******/ __webpack_require__.u = (chunkId) => {
|
|
166
|
+
/******/ // return url for filenames based on template
|
|
167
|
+
/******/ return "" + chunkId + ".js";
|
|
168
|
+
/******/ };
|
|
169
|
+
/******/ })();
|
|
170
|
+
/******/
|
|
171
|
+
/******/ /* webpack/runtime/global */
|
|
172
|
+
/******/ (() => {
|
|
173
|
+
/******/ __webpack_require__.g = (function() {
|
|
174
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
175
|
+
/******/ try {
|
|
176
|
+
/******/ return this || new Function('return this')();
|
|
177
|
+
/******/ } catch (e) {
|
|
178
|
+
/******/ if (typeof window === 'object') return window;
|
|
179
|
+
/******/ }
|
|
180
|
+
/******/ })();
|
|
181
|
+
/******/ })();
|
|
182
|
+
/******/
|
|
132
183
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
133
184
|
/******/ (() => {
|
|
134
185
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
135
186
|
/******/ })();
|
|
136
187
|
/******/
|
|
188
|
+
/******/ /* webpack/runtime/load script */
|
|
189
|
+
/******/ (() => {
|
|
190
|
+
/******/ var inProgress = {};
|
|
191
|
+
/******/ var dataWebpackPrefix = "@tsparticles/preset-bubbles:";
|
|
192
|
+
/******/ // loadScript function to load a script via script tag
|
|
193
|
+
/******/ __webpack_require__.l = (url, done, key, chunkId) => {
|
|
194
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
195
|
+
/******/ var script, needAttach;
|
|
196
|
+
/******/ if(key !== undefined) {
|
|
197
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
198
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
199
|
+
/******/ var s = scripts[i];
|
|
200
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
201
|
+
/******/ }
|
|
202
|
+
/******/ }
|
|
203
|
+
/******/ if(!script) {
|
|
204
|
+
/******/ needAttach = true;
|
|
205
|
+
/******/ script = document.createElement('script');
|
|
206
|
+
/******/
|
|
207
|
+
/******/ script.charset = 'utf-8';
|
|
208
|
+
/******/ if (__webpack_require__.nc) {
|
|
209
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
210
|
+
/******/ }
|
|
211
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
212
|
+
/******/
|
|
213
|
+
/******/ script.src = url;
|
|
214
|
+
/******/ }
|
|
215
|
+
/******/ inProgress[url] = [done];
|
|
216
|
+
/******/ var onScriptComplete = (prev, event) => {
|
|
217
|
+
/******/ // avoid mem leaks in IE.
|
|
218
|
+
/******/ script.onerror = script.onload = null;
|
|
219
|
+
/******/ clearTimeout(timeout);
|
|
220
|
+
/******/ var doneFns = inProgress[url];
|
|
221
|
+
/******/ delete inProgress[url];
|
|
222
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
223
|
+
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
224
|
+
/******/ if(prev) return prev(event);
|
|
225
|
+
/******/ }
|
|
226
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
227
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
228
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
229
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
230
|
+
/******/ };
|
|
231
|
+
/******/ })();
|
|
232
|
+
/******/
|
|
137
233
|
/******/ /* webpack/runtime/make namespace object */
|
|
138
234
|
/******/ (() => {
|
|
139
235
|
/******/ // define __esModule on exports
|
|
@@ -145,6 +241,119 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
|
|
|
145
241
|
/******/ };
|
|
146
242
|
/******/ })();
|
|
147
243
|
/******/
|
|
244
|
+
/******/ /* webpack/runtime/publicPath */
|
|
245
|
+
/******/ (() => {
|
|
246
|
+
/******/ var scriptUrl;
|
|
247
|
+
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
248
|
+
/******/ var document = __webpack_require__.g.document;
|
|
249
|
+
/******/ if (!scriptUrl && document) {
|
|
250
|
+
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
|
|
251
|
+
/******/ scriptUrl = document.currentScript.src;
|
|
252
|
+
/******/ if (!scriptUrl) {
|
|
253
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
254
|
+
/******/ if(scripts.length) {
|
|
255
|
+
/******/ var i = scripts.length - 1;
|
|
256
|
+
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
257
|
+
/******/ }
|
|
258
|
+
/******/ }
|
|
259
|
+
/******/ }
|
|
260
|
+
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
261
|
+
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
262
|
+
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
263
|
+
/******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
264
|
+
/******/ __webpack_require__.p = scriptUrl;
|
|
265
|
+
/******/ })();
|
|
266
|
+
/******/
|
|
267
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
268
|
+
/******/ (() => {
|
|
269
|
+
/******/ // no baseURI
|
|
270
|
+
/******/
|
|
271
|
+
/******/ // object to store loaded and loading chunks
|
|
272
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
273
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
274
|
+
/******/ var installedChunks = {
|
|
275
|
+
/******/ "tsparticles.preset.bubbles": 0
|
|
276
|
+
/******/ };
|
|
277
|
+
/******/
|
|
278
|
+
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
279
|
+
/******/ // JSONP chunk loading for javascript
|
|
280
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
281
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
282
|
+
/******/
|
|
283
|
+
/******/ // a Promise means "currently loading".
|
|
284
|
+
/******/ if(installedChunkData) {
|
|
285
|
+
/******/ promises.push(installedChunkData[2]);
|
|
286
|
+
/******/ } else {
|
|
287
|
+
/******/ if(true) { // all chunks have JS
|
|
288
|
+
/******/ // setup Promise in chunk cache
|
|
289
|
+
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
290
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
291
|
+
/******/
|
|
292
|
+
/******/ // start chunk loading
|
|
293
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
294
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
295
|
+
/******/ var error = new Error();
|
|
296
|
+
/******/ var loadingEnded = (event) => {
|
|
297
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
298
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
299
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
300
|
+
/******/ if(installedChunkData) {
|
|
301
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
302
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
303
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
304
|
+
/******/ error.name = 'ChunkLoadError';
|
|
305
|
+
/******/ error.type = errorType;
|
|
306
|
+
/******/ error.request = realSrc;
|
|
307
|
+
/******/ installedChunkData[1](error);
|
|
308
|
+
/******/ }
|
|
309
|
+
/******/ }
|
|
310
|
+
/******/ };
|
|
311
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
312
|
+
/******/ }
|
|
313
|
+
/******/ }
|
|
314
|
+
/******/ }
|
|
315
|
+
/******/ };
|
|
316
|
+
/******/
|
|
317
|
+
/******/ // no prefetching
|
|
318
|
+
/******/
|
|
319
|
+
/******/ // no preloaded
|
|
320
|
+
/******/
|
|
321
|
+
/******/ // no HMR
|
|
322
|
+
/******/
|
|
323
|
+
/******/ // no HMR manifest
|
|
324
|
+
/******/
|
|
325
|
+
/******/ // no on chunks loaded
|
|
326
|
+
/******/
|
|
327
|
+
/******/ // install a JSONP callback for chunk loading
|
|
328
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
329
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
330
|
+
/******/ // add "moreModules" to the modules object,
|
|
331
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
332
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
333
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
334
|
+
/******/ for(moduleId in moreModules) {
|
|
335
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
336
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
337
|
+
/******/ }
|
|
338
|
+
/******/ }
|
|
339
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
340
|
+
/******/ }
|
|
341
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
342
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
343
|
+
/******/ chunkId = chunkIds[i];
|
|
344
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
345
|
+
/******/ installedChunks[chunkId][0]();
|
|
346
|
+
/******/ }
|
|
347
|
+
/******/ installedChunks[chunkId] = 0;
|
|
348
|
+
/******/ }
|
|
349
|
+
/******/
|
|
350
|
+
/******/ }
|
|
351
|
+
/******/
|
|
352
|
+
/******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_preset_bubbles"] = this["webpackChunk_tsparticles_preset_bubbles"] || [];
|
|
353
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
354
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
355
|
+
/******/ })();
|
|
356
|
+
/******/
|
|
148
357
|
/************************************************************************/
|
|
149
358
|
/******/
|
|
150
359
|
/******/ // startup
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.preset.bubbles.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/plugin-emitters"),require("@tsparticles/basic"),require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/plugin-emitters","@tsparticles/basic","@tsparticles/engine"],t);else{var r="object"==typeof exports?t(require("@tsparticles/plugin-emitters"),require("@tsparticles/basic"),require("@tsparticles/engine")):t(e.window,e.window,e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(e,t,r)=>(()=>{var o,i,n,s,a={145(e){e.exports=t},303(e){e.exports=r},526(t){t.exports=e}},p={};function c(e){var t=p[e];if(void 0!==t)return t.exports;var r=p[e]={exports:{}};return a[e](r,r.exports,c),r.exports}c.m=a,i=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.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 r=Object.create(null);c.r(r);var n={};o=o||[null,i({}),i([]),i(i)];for(var s=2&t&&e;("object"==typeof s||"function"==typeof s)&&!~o.indexOf(s);s=i(s))Object.getOwnPropertyNames(s).forEach(t=>n[t]=()=>e[t]);return n.default=()=>e,c.d(r,n),r},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,r)=>(c.f[r](e,t),t),[])),c.u=e=>e+".min.js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},s="@tsparticles/preset-bubbles:",c.l=(e,t,r,o)=>{if(n[e])n[e].push(t);else{var i,a;if(void 0!==r)for(var p=document.getElementsByTagName("script"),l=0;l<p.length;l++){var u=p[l];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==s+r){i=u;break}}i||(a=!0,(i=document.createElement("script")).charset="utf-8",c.nc&&i.setAttribute("nonce",c.nc),i.setAttribute("data-webpack",s+r),i.src=e),n[e]=[t];var f=(t,r)=>{i.onerror=i.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(e=>e(r)),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),a&&document.head.appendChild(i)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;c.g.importScripts&&(e=c.g.location+"");var t=c.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e})(),(()=>{var e={353:0};c.f.j=(t,r)=>{var o=c.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((r,i)=>o=e[t]=[r,i]);r.push(o[2]=i);var n=c.p+c.u(t),s=new Error;c.l(n,r=>{if(c.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+n+")",s.name="ChunkLoadError",s.type=i,s.request=n,o[1](s)}},"chunk-"+t,t)}};var t=(t,r)=>{var o,i,[n,s,a]=r,p=0;if(n.some(t=>0!==e[t])){for(o in s)c.o(s,o)&&(c.m[o]=s[o]);if(a)a(c)}for(t&&t(r);p<n.length;p++)i=n[p],c.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var l={};function u(e){e.register(async e=>{const{loadBasic:t}=await Promise.resolve().then(c.t.bind(c,145,19)),{loadEmittersPlugin:r}=await Promise.resolve().then(c.t.bind(c,526,19)),{options:o,presetName:i}=await c.e(283).then(c.bind(c,283));t(e),r(e),e.addPreset(i,o)})}return c.r(l),c.d(l,{loadBubblesPreset:()=>u}),l})());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Bubbles Preset
|
|
1
|
+
/*! tsParticles Bubbles Preset v4.0.0-alpha.0 by Matteo Bruni */
|
package/types/bundle.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { loadBubblesPreset, tsParticles };
|
|
1
|
+
export { loadBubblesPreset } from "./index.js";
|
|
2
|
+
export { tsParticles } from "@tsparticles/engine";
|
package/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "@tsparticles/engine";
|
|
2
|
-
export declare function loadBubblesPreset(engine: Engine
|
|
2
|
+
export declare function loadBubblesPreset(engine: Engine): void;
|
package/types/options.d.ts
CHANGED
package/umd/bundle.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.tsParticles = exports.loadBubblesPreset = void 0;
|
|
13
|
-
|
|
13
|
+
var index_js_1 = require("./index.js");
|
|
14
14
|
Object.defineProperty(exports, "loadBubblesPreset", { enumerable: true, get: function () { return index_js_1.loadBubblesPreset; } });
|
|
15
|
-
|
|
15
|
+
var engine_1 = require("@tsparticles/engine");
|
|
16
16
|
Object.defineProperty(exports, "tsParticles", { enumerable: true, get: function () { return engine_1.tsParticles; } });
|
|
17
17
|
});
|
package/umd/index.js
CHANGED
|
@@ -1,23 +1,55 @@
|
|
|
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"
|
|
40
|
+
define(["require", "exports"], 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
|
-
exports.loadBubblesPreset = void 0;
|
|
13
|
-
const basic_1 = require("@tsparticles/basic");
|
|
14
|
-
const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
|
|
15
|
-
const options_js_1 = require("./options.js");
|
|
16
|
-
async function loadBubblesPreset(engine, refresh = true) {
|
|
17
|
-
await (0, basic_1.loadBasic)(engine, false);
|
|
18
|
-
await (0, plugin_emitters_1.loadEmittersPlugin)(engine, false);
|
|
19
|
-
await engine.addPreset("bubbles", options_js_1.options, false);
|
|
20
|
-
await engine.refresh(refresh);
|
|
21
|
-
}
|
|
22
46
|
exports.loadBubblesPreset = loadBubblesPreset;
|
|
47
|
+
function loadBubblesPreset(engine) {
|
|
48
|
+
engine.register(async (e) => {
|
|
49
|
+
const { loadBasic } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/basic"))) : new Promise((resolve_1, reject_1) => { require(["@tsparticles/basic"], resolve_1, reject_1); }).then(__importStar)), { loadEmittersPlugin } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/plugin-emitters"))) : new Promise((resolve_2, reject_2) => { require(["@tsparticles/plugin-emitters"], resolve_2, reject_2); }).then(__importStar)), { options, presetName } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./options.js"))) : new Promise((resolve_3, reject_3) => { require(["./options.js"], resolve_3, reject_3); }).then(__importStar));
|
|
50
|
+
loadBasic(e);
|
|
51
|
+
loadEmittersPlugin(e);
|
|
52
|
+
e.addPreset(presetName, options);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
23
55
|
});
|
package/umd/options.js
CHANGED
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.options = void 0;
|
|
12
|
+
exports.options = exports.presetName = void 0;
|
|
13
13
|
const engine_1 = require("@tsparticles/engine");
|
|
14
|
+
exports.presetName = "bubbles";
|
|
14
15
|
exports.options = {
|
|
15
16
|
fpsLimit: 120,
|
|
16
17
|
particles: {
|