@tsparticles/preset-squares 4.0.0-beta.0 → 4.0.0-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/browser/browser.js +5 -0
  2. package/browser/bundle.js +4 -0
  3. package/browser/index.js +7 -9
  4. package/browser/index.lazy.js +23 -0
  5. package/cjs/browser.js +5 -0
  6. package/cjs/bundle.js +4 -0
  7. package/cjs/index.js +7 -9
  8. package/cjs/index.lazy.js +23 -0
  9. package/esm/browser.js +5 -0
  10. package/esm/bundle.js +4 -0
  11. package/esm/index.js +7 -9
  12. package/esm/index.lazy.js +23 -0
  13. package/package.json +16 -9
  14. package/report.html +4949 -94
  15. package/tsparticles.preset.squares.bundle.js +5935 -967
  16. package/tsparticles.preset.squares.bundle.min.js +1 -2
  17. package/tsparticles.preset.squares.js +83 -407
  18. package/tsparticles.preset.squares.min.js +1 -2
  19. package/types/browser.d.ts +1 -0
  20. package/types/index.lazy.d.ts +2 -0
  21. package/166.min.js +0 -1
  22. package/200.min.js +0 -1
  23. package/245.min.js +0 -1
  24. package/304.min.js +0 -1
  25. package/326.min.js +0 -1
  26. package/358.min.js +0 -1
  27. package/361.min.js +0 -1
  28. package/404.min.js +0 -1
  29. package/467.min.js +0 -1
  30. package/480.min.js +0 -1
  31. package/619.min.js +0 -1
  32. package/63.min.js +0 -1
  33. package/659.min.js +0 -1
  34. package/750.min.js +0 -1
  35. package/778.min.js +0 -1
  36. package/784.min.js +0 -1
  37. package/824.min.js +0 -1
  38. package/892.min.js +0 -1
  39. package/925.min.js +0 -1
  40. package/990.min.js +0 -1
  41. package/dist_browser_options_js.js +0 -30
  42. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-09a57e.js +0 -100
  43. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-74f6c1.js +0 -50
  44. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7e9977.js +0 -30
  45. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f13fa.js +0 -30
  46. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-b6bb50.js +0 -30
  47. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-cf6e0a.js +0 -30
  48. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-daf8cd.js +0 -100
  49. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-5e0ff2.js +0 -30
  50. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-b0d0ee.js +0 -30
  51. package/node_modules_pnpm_tsparticles_shape-square_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-541147.js +0 -30
  52. package/node_modules_pnpm_tsparticles_shape-square_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-fd7ee9.js +0 -40
  53. package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-589482.js +0 -30
  54. package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-b1f330.js +0 -30
  55. package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-03eda6.js +0 -30
  56. package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-6626aa.js +0 -50
  57. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a47b81.js +0 -30
  58. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-d2508a.js +0 -30
  59. package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_11_node_modules_tsparticles_engine_br-ca098e.js +0 -100
  60. package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-6e84d5.js +0 -30
@@ -1,407 +1,83 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v4.0.0-beta.0
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/).
16
- */
17
- (function webpackUniversalModuleDefinition(root, factory) {
18
- if(typeof exports === 'object' && typeof module === 'object')
19
- module.exports = factory(require("@tsparticles/updater-paint"), require("@tsparticles/updater-size"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-square"), require("@tsparticles/plugin-emitters/plugin"), require("@tsparticles/plugin-hex-color"), require("@tsparticles/engine"));
20
- else if(typeof define === 'function' && define.amd)
21
- define(["@tsparticles/updater-paint", "@tsparticles/updater-size", "@tsparticles/updater-rotate", "@tsparticles/shape-square", "@tsparticles/plugin-emitters/plugin", "@tsparticles/plugin-hex-color", "@tsparticles/engine"], factory);
22
- else {
23
- var a = typeof exports === 'object' ? factory(require("@tsparticles/updater-paint"), require("@tsparticles/updater-size"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-square"), require("@tsparticles/plugin-emitters/plugin"), require("@tsparticles/plugin-hex-color"), require("@tsparticles/engine")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
24
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
25
- }
26
- })(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_updater_paint__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_size__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_square__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_plugin__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_hex_color__, __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__) => {
27
- return /******/ (() => { // webpackBootstrap
28
- /******/ "use strict";
29
- /******/ var __webpack_modules__ = ({
30
-
31
- /***/ "@tsparticles/engine"
32
- /*!*********************************************************************************************************************************!*\
33
- !*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***!
34
- \*********************************************************************************************************************************/
35
- (module) {
36
-
37
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
38
-
39
- /***/ },
40
-
41
- /***/ "@tsparticles/plugin-emitters/plugin"
42
- /*!*********************************************************************************************************************************************************************************!*\
43
- !*** external {"commonjs":"@tsparticles/plugin-emitters/plugin","commonjs2":"@tsparticles/plugin-emitters/plugin","amd":"@tsparticles/plugin-emitters/plugin","root":"window"} ***!
44
- \*********************************************************************************************************************************************************************************/
45
- (module) {
46
-
47
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_plugin__;
48
-
49
- /***/ },
50
-
51
- /***/ "@tsparticles/plugin-hex-color"
52
- /*!***************************************************************************************************************************************************************!*\
53
- !*** external {"commonjs":"@tsparticles/plugin-hex-color","commonjs2":"@tsparticles/plugin-hex-color","amd":"@tsparticles/plugin-hex-color","root":"window"} ***!
54
- \***************************************************************************************************************************************************************/
55
- (module) {
56
-
57
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_hex_color__;
58
-
59
- /***/ },
60
-
61
- /***/ "@tsparticles/shape-square"
62
- /*!***************************************************************************************************************************************************!*\
63
- !*** external {"commonjs":"@tsparticles/shape-square","commonjs2":"@tsparticles/shape-square","amd":"@tsparticles/shape-square","root":"window"} ***!
64
- \***************************************************************************************************************************************************/
65
- (module) {
66
-
67
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_square__;
68
-
69
- /***/ },
70
-
71
- /***/ "@tsparticles/updater-paint"
72
- /*!******************************************************************************************************************************************************!*\
73
- !*** external {"commonjs":"@tsparticles/updater-paint","commonjs2":"@tsparticles/updater-paint","amd":"@tsparticles/updater-paint","root":"window"} ***!
74
- \******************************************************************************************************************************************************/
75
- (module) {
76
-
77
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_paint__;
78
-
79
- /***/ },
80
-
81
- /***/ "@tsparticles/updater-rotate"
82
- /*!*********************************************************************************************************************************************************!*\
83
- !*** external {"commonjs":"@tsparticles/updater-rotate","commonjs2":"@tsparticles/updater-rotate","amd":"@tsparticles/updater-rotate","root":"window"} ***!
84
- \*********************************************************************************************************************************************************/
85
- (module) {
86
-
87
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__;
88
-
89
- /***/ },
90
-
91
- /***/ "@tsparticles/updater-size"
92
- /*!***************************************************************************************************************************************************!*\
93
- !*** external {"commonjs":"@tsparticles/updater-size","commonjs2":"@tsparticles/updater-size","amd":"@tsparticles/updater-size","root":"window"} ***!
94
- \***************************************************************************************************************************************************/
95
- (module) {
96
-
97
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_size__;
98
-
99
- /***/ },
100
-
101
- /***/ "./dist/browser/index.js"
102
- /*!*******************************!*\
103
- !*** ./dist/browser/index.js ***!
104
- \*******************************/
105
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
106
-
107
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadSquaresPreset: () => (/* binding */ loadSquaresPreset)\n/* harmony export */ });\nconst presetName = \"squares\";\nasync function loadSquaresPreset(engine) {\n await engine.pluginManager.register(async (e)=>{\n const [{ loadHexColorPlugin }, { loadEmittersPluginSimple }, { loadSquareShape }, { loadRotateUpdater }, { loadSizeUpdater }, { loadPaintUpdater }, { options }] = await Promise.all([\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-hex-color */ \"@tsparticles/plugin-hex-color\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters/plugin */ \"@tsparticles/plugin-emitters/plugin\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/shape-square */ \"@tsparticles/shape-square\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-size */ \"@tsparticles/updater-size\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-paint */ \"@tsparticles/updater-paint\", 19)),\n __webpack_require__.e(/*! import() */ \"dist_browser_options_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./options.js */ \"./dist/browser/options.js\"))\n ]);\n await Promise.all([\n loadHexColorPlugin(e),\n loadEmittersPluginSimple(e),\n loadSquareShape(e),\n loadRotateUpdater(e),\n loadSizeUpdater(e),\n loadPaintUpdater(e)\n ]);\n e.pluginManager.addPreset(presetName, options);\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-squares/./dist/browser/index.js?\n}");
108
-
109
- /***/ }
110
-
111
- /******/ });
112
- /************************************************************************/
113
- /******/ // The module cache
114
- /******/ var __webpack_module_cache__ = {};
115
- /******/
116
- /******/ // The require function
117
- /******/ function __webpack_require__(moduleId) {
118
- /******/ // Check if module is in cache
119
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
120
- /******/ if (cachedModule !== undefined) {
121
- /******/ return cachedModule.exports;
122
- /******/ }
123
- /******/ // Create a new module (and put it into the cache)
124
- /******/ var module = __webpack_module_cache__[moduleId] = {
125
- /******/ // no module.id needed
126
- /******/ // no module.loaded needed
127
- /******/ exports: {}
128
- /******/ };
129
- /******/
130
- /******/ // Execute the module function
131
- /******/ if (!(moduleId in __webpack_modules__)) {
132
- /******/ delete __webpack_module_cache__[moduleId];
133
- /******/ var e = new Error("Cannot find module '" + moduleId + "'");
134
- /******/ e.code = 'MODULE_NOT_FOUND';
135
- /******/ throw e;
136
- /******/ }
137
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
138
- /******/
139
- /******/ // Return the exports of the module
140
- /******/ return module.exports;
141
- /******/ }
142
- /******/
143
- /******/ // expose the modules object (__webpack_modules__)
144
- /******/ __webpack_require__.m = __webpack_modules__;
145
- /******/
146
- /************************************************************************/
147
- /******/ /* webpack/runtime/create fake namespace object */
148
- /******/ (() => {
149
- /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
150
- /******/ var leafPrototypes;
151
- /******/ // create a fake namespace object
152
- /******/ // mode & 1: value is a module id, require it
153
- /******/ // mode & 2: merge all properties of value into the ns
154
- /******/ // mode & 4: return value when already ns object
155
- /******/ // mode & 16: return value when it's Promise-like
156
- /******/ // mode & 8|1: behave like require
157
- /******/ __webpack_require__.t = function(value, mode) {
158
- /******/ if(mode & 1) value = this(value);
159
- /******/ if(mode & 8) return value;
160
- /******/ if(typeof value === 'object' && value) {
161
- /******/ if((mode & 4) && value.__esModule) return value;
162
- /******/ if((mode & 16) && typeof value.then === 'function') return value;
163
- /******/ }
164
- /******/ var ns = Object.create(null);
165
- /******/ __webpack_require__.r(ns);
166
- /******/ var def = {};
167
- /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
168
- /******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
169
- /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
170
- /******/ }
171
- /******/ def['default'] = () => (value);
172
- /******/ __webpack_require__.d(ns, def);
173
- /******/ return ns;
174
- /******/ };
175
- /******/ })();
176
- /******/
177
- /******/ /* webpack/runtime/define property getters */
178
- /******/ (() => {
179
- /******/ // define getter functions for harmony exports
180
- /******/ __webpack_require__.d = (exports, definition) => {
181
- /******/ for(var key in definition) {
182
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
183
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
184
- /******/ }
185
- /******/ }
186
- /******/ };
187
- /******/ })();
188
- /******/
189
- /******/ /* webpack/runtime/ensure chunk */
190
- /******/ (() => {
191
- /******/ __webpack_require__.f = {};
192
- /******/ // This file contains only the entry chunk.
193
- /******/ // The chunk loading function for additional chunks
194
- /******/ __webpack_require__.e = (chunkId) => {
195
- /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
196
- /******/ __webpack_require__.f[key](chunkId, promises);
197
- /******/ return promises;
198
- /******/ }, []));
199
- /******/ };
200
- /******/ })();
201
- /******/
202
- /******/ /* webpack/runtime/get javascript chunk filename */
203
- /******/ (() => {
204
- /******/ // This function allow to reference async chunks
205
- /******/ __webpack_require__.u = (chunkId) => {
206
- /******/ // return url for filenames based on template
207
- /******/ return "" + chunkId + ".js";
208
- /******/ };
209
- /******/ })();
210
- /******/
211
- /******/ /* webpack/runtime/global */
212
- /******/ (() => {
213
- /******/ __webpack_require__.g = (function() {
214
- /******/ if (typeof globalThis === 'object') return globalThis;
215
- /******/ try {
216
- /******/ return this || new Function('return this')();
217
- /******/ } catch (e) {
218
- /******/ if (typeof window === 'object') return window;
219
- /******/ }
220
- /******/ })();
221
- /******/ })();
222
- /******/
223
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
224
- /******/ (() => {
225
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
226
- /******/ })();
227
- /******/
228
- /******/ /* webpack/runtime/load script */
229
- /******/ (() => {
230
- /******/ var inProgress = {};
231
- /******/ var dataWebpackPrefix = "@tsparticles/preset-squares:";
232
- /******/ // loadScript function to load a script via script tag
233
- /******/ __webpack_require__.l = (url, done, key, chunkId) => {
234
- /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
235
- /******/ var script, needAttach;
236
- /******/ if(key !== undefined) {
237
- /******/ var scripts = document.getElementsByTagName("script");
238
- /******/ for(var i = 0; i < scripts.length; i++) {
239
- /******/ var s = scripts[i];
240
- /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
241
- /******/ }
242
- /******/ }
243
- /******/ if(!script) {
244
- /******/ needAttach = true;
245
- /******/ script = document.createElement('script');
246
- /******/
247
- /******/ script.charset = 'utf-8';
248
- /******/ if (__webpack_require__.nc) {
249
- /******/ script.setAttribute("nonce", __webpack_require__.nc);
250
- /******/ }
251
- /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
252
- /******/
253
- /******/ script.src = url;
254
- /******/ }
255
- /******/ inProgress[url] = [done];
256
- /******/ var onScriptComplete = (prev, event) => {
257
- /******/ // avoid mem leaks in IE.
258
- /******/ script.onerror = script.onload = null;
259
- /******/ clearTimeout(timeout);
260
- /******/ var doneFns = inProgress[url];
261
- /******/ delete inProgress[url];
262
- /******/ script.parentNode && script.parentNode.removeChild(script);
263
- /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
264
- /******/ if(prev) return prev(event);
265
- /******/ }
266
- /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
267
- /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
268
- /******/ script.onload = onScriptComplete.bind(null, script.onload);
269
- /******/ needAttach && document.head.appendChild(script);
270
- /******/ };
271
- /******/ })();
272
- /******/
273
- /******/ /* webpack/runtime/make namespace object */
274
- /******/ (() => {
275
- /******/ // define __esModule on exports
276
- /******/ __webpack_require__.r = (exports) => {
277
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
278
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
279
- /******/ }
280
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
281
- /******/ };
282
- /******/ })();
283
- /******/
284
- /******/ /* webpack/runtime/publicPath */
285
- /******/ (() => {
286
- /******/ var scriptUrl;
287
- /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
288
- /******/ var document = __webpack_require__.g.document;
289
- /******/ if (!scriptUrl && document) {
290
- /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
291
- /******/ scriptUrl = document.currentScript.src;
292
- /******/ if (!scriptUrl) {
293
- /******/ var scripts = document.getElementsByTagName("script");
294
- /******/ if(scripts.length) {
295
- /******/ var i = scripts.length - 1;
296
- /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
297
- /******/ }
298
- /******/ }
299
- /******/ }
300
- /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
301
- /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
302
- /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
303
- /******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
304
- /******/ __webpack_require__.p = scriptUrl;
305
- /******/ })();
306
- /******/
307
- /******/ /* webpack/runtime/jsonp chunk loading */
308
- /******/ (() => {
309
- /******/ // no baseURI
310
- /******/
311
- /******/ // object to store loaded and loading chunks
312
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
313
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
314
- /******/ var installedChunks = {
315
- /******/ "tsparticles.preset.squares": 0
316
- /******/ };
317
- /******/
318
- /******/ __webpack_require__.f.j = (chunkId, promises) => {
319
- /******/ // JSONP chunk loading for javascript
320
- /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
321
- /******/ if(installedChunkData !== 0) { // 0 means "already installed".
322
- /******/
323
- /******/ // a Promise means "currently loading".
324
- /******/ if(installedChunkData) {
325
- /******/ promises.push(installedChunkData[2]);
326
- /******/ } else {
327
- /******/ if(true) { // all chunks have JS
328
- /******/ // setup Promise in chunk cache
329
- /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
330
- /******/ promises.push(installedChunkData[2] = promise);
331
- /******/
332
- /******/ // start chunk loading
333
- /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
334
- /******/ // create error before stack unwound to get useful stacktrace later
335
- /******/ var error = new Error();
336
- /******/ var loadingEnded = (event) => {
337
- /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
338
- /******/ installedChunkData = installedChunks[chunkId];
339
- /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
340
- /******/ if(installedChunkData) {
341
- /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
342
- /******/ var realSrc = event && event.target && event.target.src;
343
- /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
344
- /******/ error.name = 'ChunkLoadError';
345
- /******/ error.type = errorType;
346
- /******/ error.request = realSrc;
347
- /******/ installedChunkData[1](error);
348
- /******/ }
349
- /******/ }
350
- /******/ };
351
- /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
352
- /******/ }
353
- /******/ }
354
- /******/ }
355
- /******/ };
356
- /******/
357
- /******/ // no prefetching
358
- /******/
359
- /******/ // no preloaded
360
- /******/
361
- /******/ // no HMR
362
- /******/
363
- /******/ // no HMR manifest
364
- /******/
365
- /******/ // no on chunks loaded
366
- /******/
367
- /******/ // install a JSONP callback for chunk loading
368
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
369
- /******/ var [chunkIds, moreModules, runtime] = data;
370
- /******/ // add "moreModules" to the modules object,
371
- /******/ // then flag all "chunkIds" as loaded and fire callback
372
- /******/ var moduleId, chunkId, i = 0;
373
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
374
- /******/ for(moduleId in moreModules) {
375
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
376
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
377
- /******/ }
378
- /******/ }
379
- /******/ if(runtime) var result = runtime(__webpack_require__);
380
- /******/ }
381
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
382
- /******/ for(;i < chunkIds.length; i++) {
383
- /******/ chunkId = chunkIds[i];
384
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
385
- /******/ installedChunks[chunkId][0]();
386
- /******/ }
387
- /******/ installedChunks[chunkId] = 0;
388
- /******/ }
389
- /******/
390
- /******/ }
391
- /******/
392
- /******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_preset_squares"] = this["webpackChunk_tsparticles_preset_squares"] || [];
393
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
394
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
395
- /******/ })();
396
- /******/
397
- /************************************************************************/
398
- /******/
399
- /******/ // startup
400
- /******/ // Load entry module and return exports
401
- /******/ // This entry module can't be inlined because the eval devtool is used.
402
- /******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
403
- /******/
404
- /******/ return __webpack_exports__;
405
- /******/ })()
406
- ;
407
- });
1
+ (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
+ /* Preset v4.0.0-beta.15 */
3
+ (function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/plugin-emitters/plugin'), require('@tsparticles/plugin-hex-color'), require('@tsparticles/updater-paint'), require('@tsparticles/updater-rotate'), require('@tsparticles/updater-size'), require('@tsparticles/shape-square'), require('@tsparticles/engine')) :
5
+ typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/plugin-emitters/plugin', '@tsparticles/plugin-hex-color', '@tsparticles/updater-paint', '@tsparticles/updater-rotate', '@tsparticles/updater-size', '@tsparticles/shape-square', '@tsparticles/engine'], factory) :
6
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.presets = global.__tsParticlesInternals.presets || {}, global.__tsParticlesInternals.presets.squares = global.__tsParticlesInternals.presets.squares || {}), global.__tsParticlesInternals.plugins["emitters/plugin"], global.__tsParticlesInternals.plugins.hexColor, global.__tsParticlesInternals.updaters.paint, global.__tsParticlesInternals.updaters.rotate, global.__tsParticlesInternals.updaters.size, global.__tsParticlesInternals.shapes.square, global.__tsParticlesInternals.engine));
7
+ })(this, (function (exports, plugin, pluginHexColor, updaterPaint, updaterRotate, updaterSize, shapeSquare, engine) { 'use strict';
8
+
9
+ const options = {
10
+ particles: {
11
+ paint: {
12
+ stroke: {
13
+ width: 5,
14
+ color: {
15
+ value: ["#5bc0eb", "#fde74c", "#9bc53d", "#e55934", "#fa7921", "#2FF3E0", "#F8D210", "#FA26A0", "#F51720"],
16
+ },
17
+ },
18
+ fill: {
19
+ enable: false,
20
+ },
21
+ },
22
+ shape: {
23
+ type: "square",
24
+ },
25
+ rotate: {
26
+ value: 0,
27
+ direction: engine.RotateDirection.counterClockwise,
28
+ animation: {
29
+ enable: true,
30
+ speed: 2,
31
+ sync: true,
32
+ },
33
+ },
34
+ size: {
35
+ value: { min: 1, max: 500 },
36
+ animation: {
37
+ enable: true,
38
+ startValue: engine.StartValueType.min,
39
+ speed: 60,
40
+ sync: true,
41
+ destroy: engine.DestroyType.max,
42
+ },
43
+ },
44
+ },
45
+ background: {
46
+ color: "#000",
47
+ },
48
+ emitters: {
49
+ position: {
50
+ y: 50,
51
+ x: 50,
52
+ },
53
+ rate: {
54
+ delay: 1,
55
+ quantity: 1,
56
+ },
57
+ },
58
+ };
59
+
60
+ const presetName = "squares";
61
+ async function loadSquaresPreset(engine) {
62
+ await engine.pluginManager.register(async (e) => {
63
+ await Promise.all([
64
+ pluginHexColor.loadHexColorPlugin(e),
65
+ plugin.loadEmittersPluginSimple(e),
66
+ shapeSquare.loadSquareShape(e),
67
+ updaterRotate.loadRotateUpdater(e),
68
+ updaterSize.loadSizeUpdater(e),
69
+ updaterPaint.loadPaintUpdater(e),
70
+ ]);
71
+ e.pluginManager.addPreset(presetName, options);
72
+ });
73
+ }
74
+
75
+ const globalObject = globalThis;
76
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
77
+ globalObject.loadSquaresPreset = loadSquaresPreset;
78
+
79
+ exports.loadSquaresPreset = loadSquaresPreset;
80
+
81
+ }));
82
+ Object.assign(globalThis.window || globalThis, { loadSquaresPreset: (globalThis.__tsParticlesInternals.presets.squares || {}).loadSquaresPreset });
83
+ delete (globalThis.window || globalThis).tsparticlesInternalExports;
@@ -1,2 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/updater-paint"),require("@tsparticles/updater-size"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/plugin-emitters/plugin"),require("@tsparticles/plugin-hex-color"),require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/updater-paint","@tsparticles/updater-size","@tsparticles/updater-rotate","@tsparticles/shape-square","@tsparticles/plugin-emitters/plugin","@tsparticles/plugin-hex-color","@tsparticles/engine"],t);else{var r="object"==typeof exports?t(require("@tsparticles/updater-paint"),require("@tsparticles/updater-size"),require("@tsparticles/updater-rotate"),require("@tsparticles/shape-square"),require("@tsparticles/plugin-emitters/plugin"),require("@tsparticles/plugin-hex-color"),require("@tsparticles/engine")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,(e,t,r,i,o,s,a)=>(()=>{"use strict";var n,p,l,u={303(e){e.exports=a},90(e){e.exports=o},126(e){e.exports=s},400(e){e.exports=i},399(t){t.exports=e},668(e){e.exports=r},394(e){e.exports=t}},c={};function d(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return u[e](r,r.exports,d),r.exports}d.m=u,b=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,d.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);d.r(r);var i={};f=f||[null,b({}),b([]),b(b)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~f.indexOf(o);o=b(o))Object.getOwnPropertyNames(o).forEach(t=>i[t]=()=>e[t]);return i.default=()=>e,d.d(r,i),r},d.d=(e,t)=>{for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},d.f={},d.e=e=>Promise.all(Object.keys(d.f).reduce((t,r)=>(d.f[r](e,t),t),[])),d.u=e=>""+e+".min.js",d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},d.l=(e,t,r,i)=>{if(h[e])return void h[e].push(t);if(void 0!==r)for(var o,s,a=document.getElementsByTagName("script"),n=0;n<a.length;n++){var p=a[n];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")=="@tsparticles/preset-squares:"+r){o=p;break}}o||(s=!0,(o=document.createElement("script")).charset="utf-8",d.nc&&o.setAttribute("nonce",d.nc),o.setAttribute("data-webpack","@tsparticles/preset-squares:"+r),o.src=e),h[e]=[t];var l=(t,r)=>{o.onerror=o.onload=null,clearTimeout(u);var i=h[e];if(delete h[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(r)),t)return t(r)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),s&&document.head.appendChild(o)},d.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.g.importScripts&&(g=d.g.location+"");var f,b,h,g,m=d.g.document;if(!g&&m&&(m.currentScript&&"SCRIPT"===m.currentScript.tagName.toUpperCase()&&(g=m.currentScript.src),!g)){var v=m.getElementsByTagName("script");if(v.length)for(var y=v.length-1;y>-1&&(!g||!/^http(s?):/.test(g));)g=v[y--].src}if(!g)throw Error("Automatic publicPath is not supported in this browser");d.p=g=g.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n={444:0},d.f.j=(e,t)=>{var r=d.o(n,e)?n[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((t,i)=>r=n[e]=[t,i]);t.push(r[2]=i);var o=d.p+d.u(e),s=Error();d.l(o,t=>{if(d.o(n,e)&&(0!==(r=n[e])&&(n[e]=void 0),r)){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;s.message="Loading chunk "+e+` failed.
2
- (`+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+e,e)}},p=(e,t)=>{var r,i,[o,s,a]=t,p=0;if(o.some(e=>0!==n[e])){for(r in s)d.o(s,r)&&(d.m[r]=s[r]);a&&a(d)}for(e&&e(t);p<o.length;p++)i=o[p],d.o(n,i)&&n[i]&&n[i][0](),n[i]=0},(l=this.webpackChunk_tsparticles_preset_squares=this.webpackChunk_tsparticles_preset_squares||[]).forEach(p.bind(null,0)),l.push=p.bind(null,l.push.bind(l));var w={};async function q(e){await e.pluginManager.register(async e=>{let[{loadHexColorPlugin:t},{loadEmittersPluginSimple:r},{loadSquareShape:i},{loadRotateUpdater:o},{loadSizeUpdater:s},{loadPaintUpdater:a},{options:n}]=await Promise.all([Promise.resolve().then(d.t.bind(d,126,19)),Promise.resolve().then(d.t.bind(d,90,19)),Promise.resolve().then(d.t.bind(d,400,19)),Promise.resolve().then(d.t.bind(d,668,19)),Promise.resolve().then(d.t.bind(d,394,19)),Promise.resolve().then(d.t.bind(d,399,19)),d.e(361).then(d.bind(d,361))]);await Promise.all([t(e),r(e),i(e),o(e),s(e),a(e)]),e.pluginManager.addPreset("squares",n)})}return d.r(w),d.d(w,{loadSquaresPreset:()=>q}),w})());
1
+ !function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.bundles=s.__tsParticlesInternals.bundles||{},s.__tsParticlesInternals.effects=s.__tsParticlesInternals.effects||{},s.__tsParticlesInternals.engine=s.__tsParticlesInternals.engine||{},s.__tsParticlesInternals.interactions=s.__tsParticlesInternals.interactions||{},s.__tsParticlesInternals.palettes=s.__tsParticlesInternals.palettes||{},s.__tsParticlesInternals.paths=s.__tsParticlesInternals.paths||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.emittersShapes=s.__tsParticlesInternals.plugins.emittersShapes||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.updaters=s.__tsParticlesInternals.updaters||{},s.__tsParticlesInternals.utils=s.__tsParticlesInternals.utils||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas.utils=s.__tsParticlesInternals.canvas.utils||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path.utils=s.__tsParticlesInternals.path.utils||{};var t="undefined"!=typeof Proxy?function(s){return new Proxy(s,{get:function(s,t){return t in s||(s[t]={}),s[t]}})}:function(s){return s};s.__tsParticlesInternals.bundles=t(s.__tsParticlesInternals.bundles),s.__tsParticlesInternals.effects=t(s.__tsParticlesInternals.effects),s.__tsParticlesInternals.interactions=t(s.__tsParticlesInternals.interactions),s.__tsParticlesInternals.palettes=t(s.__tsParticlesInternals.palettes),s.__tsParticlesInternals.paths=t(s.__tsParticlesInternals.paths),s.__tsParticlesInternals.plugins=t(s.__tsParticlesInternals.plugins),s.__tsParticlesInternals.plugins.emittersShapes=t(s.__tsParticlesInternals.plugins.emittersShapes),s.__tsParticlesInternals.presets=t(s.__tsParticlesInternals.presets),s.__tsParticlesInternals.shapes=t(s.__tsParticlesInternals.shapes),s.__tsParticlesInternals.updaters=t(s.__tsParticlesInternals.updaters),s.__tsParticlesInternals.utils=t(s.__tsParticlesInternals.utils),s.__tsParticlesInternals.canvas=t(s.__tsParticlesInternals.canvas),s.__tsParticlesInternals.path=t(s.__tsParticlesInternals.path),s.tsparticlesInternalExports=s.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tsparticles/plugin-emitters/plugin"),require("@tsparticles/plugin-hex-color"),require("@tsparticles/updater-paint"),require("@tsparticles/updater-rotate"),require("@tsparticles/updater-size"),require("@tsparticles/shape-square"),require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/plugin-emitters/plugin","@tsparticles/plugin-hex-color","@tsparticles/updater-paint","@tsparticles/updater-rotate","@tsparticles/updater-size","@tsparticles/shape-square","@tsparticles/engine"],t):t(((s="undefined"!=typeof globalThis?globalThis:s||self).__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.presets.squares=s.__tsParticlesInternals.presets.squares||{}),s.__tsParticlesInternals.plugins["emitters/plugin"],s.__tsParticlesInternals.plugins.hexColor,s.__tsParticlesInternals.updaters.paint,s.__tsParticlesInternals.updaters.rotate,s.__tsParticlesInternals.updaters.size,s.__tsParticlesInternals.shapes.square,s.__tsParticlesInternals.engine)}(this,function(s,t,e,a,r,n,l,i){"use strict";const _={particles:{paint:{stroke:{width:5,color:{value:["#5bc0eb","#fde74c","#9bc53d","#e55934","#fa7921","#2FF3E0","#F8D210","#FA26A0","#F51720"]}},fill:{enable:!1}},shape:{type:"square"},rotate:{value:0,direction:i.RotateDirection.counterClockwise,animation:{enable:!0,speed:2,sync:!0}},size:{value:{min:1,max:500},animation:{enable:!0,startValue:i.StartValueType.min,speed:60,sync:!0,destroy:i.DestroyType.max}}},background:{color:"#000"},emitters:{position:{y:50,x:50},rate:{delay:1,quantity:1}}};async function c(s){await s.pluginManager.register(async s=>{await Promise.all([e.loadHexColorPlugin(s),t.loadEmittersPluginSimple(s),l.loadSquareShape(s),r.loadRotateUpdater(s),n.loadSizeUpdater(s),a.loadPaintUpdater(s)]),s.pluginManager.addPreset("squares",_)})}const p=globalThis;p.__tsParticlesInternals=p.__tsParticlesInternals??{},p.loadSquaresPreset=c,s.loadSquaresPreset=c}),Object.assign(globalThis.window||globalThis,{loadSquaresPreset:(globalThis.__tsParticlesInternals.presets.squares||{}).loadSquaresPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
@@ -0,0 +1 @@
1
+ export * from "./index.js";
@@ -0,0 +1,2 @@
1
+ import type { Engine } from "@tsparticles/engine/lazy";
2
+ export declare function loadSquaresPreset(engine: Engine): Promise<void>;
package/166.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_squares=this.webpackChunk_tsparticles_preset_squares||[]).push([[166],{6166(e,s,t){t.d(s,{SquareDrawer:()=>a});var r=t(3227);class a{draw(e){!function(e){let{context:s,radius:t}=e,a=t*Math.SQRT1_2,u=a*r.gdl;s.rect(-a,-a,u,u)}(e)}getSidesCount(){return 4}}}}]);
package/200.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_squares=this.webpackChunk_tsparticles_preset_squares||[]).push([[200],{1200(e,t,a){async function r(e){e.checkVersion("4.0.0-beta.11"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("rotate",async e=>{let{RotateUpdater:t}=await a.e(784).then(a.bind(a,3784));return new t(e)})})}a.r(t),a.d(t,{loadRotateUpdater:()=>r})}}]);
package/245.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_squares=this.webpackChunk_tsparticles_preset_squares||[]).push([[245],{9245(t,i,s){s.d(i,{EmitterInstance:()=>h});var e=s(3227),o=s(7054),a=s(1797);let n=1;function r(t,i,s,o){(t.paint??=new e.PiR).fill={color:e.A9e.create(void 0,{value:i}),enable:o,opacity:s}}class h{fill;name;options;position;size;spawnFillColor;spawnFillEnabled;spawnFillOpacity;spawnStrokeColor;spawnStrokeOpacity;spawnStrokeWidth;_container;_currentDuration;_currentEmitDelay;_currentSpawnDelay;_duration;_emitDelay;_firstSpawn;_immortal;_initialPosition;_lifeCount;_mutationObserver;_particlesOptions;_paused;_pluginManager;_removeCallback;_resizeObserver;_shape;_size;_spawnDelay;_startParticlesAdded;constructor(t,i,s,a,n){this._pluginManager=t,this._container=i,this._removeCallback=s,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=n,a instanceof o.v?this.options=a:(this.options=new o.v,this.options.load(a)),this._spawnDelay=i.retina.reduceFactor?(0,e.VGA)(this.options.life.delay??0)*e.XuV/i.retina.reduceFactor:1/0,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;const r=(0,e.zwS)({},this.options.particles);if(r.move??={},r.move.direction??=this.options.direction,this.options.spawn.fill?.color&&(this.spawnFillColor=(0,e.R5R)(this._pluginManager,this.options.spawn.fill.color)),this.options.spawn.stroke?.color&&(this.spawnStrokeColor=(0,e.R5R)(this._pluginManager,this.options.spawn.stroke.color)),this._paused=!this.options.autoPlay,this._particlesOptions=r,this._size=this._calcSize(),this.size=(0,e.YCE)(this._size,this._container.canvas.size),this._lifeCount=this.options.life.count??-1,this._immortal=this._lifeCount<=0,this.options.domId){const t=(0,e.T5G)().getElementById(this.options.domId);t&&(this._mutationObserver=new MutationObserver(()=>{this.resize()}),this._resizeObserver=new ResizeObserver(()=>{this.resize()}),this._mutationObserver.observe(t,{attributes:!0,attributeFilter:["style","width","height"]}),this._resizeObserver.observe(t))}const h=this.options.shape,l=this._pluginManager.emitterShapeManager?.getShapeGenerator(h.type);l&&(this._shape=l.generate(this._container,this.position,this.size,this.fill,h.options)),this._container.dispatchEvent("emitterCreated",{emitter:this}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}async init(){await this._shape?.init()}pause(){this._paused||delete this._emitDelay}play(){if(this._paused||!((this._lifeCount>0||this._immortal||!this.options.life.count)&&(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0))))return;let t=this._container;if(void 0===this._emitDelay){let i=(0,e.VGA)(this.options.rate.delay);this._emitDelay=t.retina.reduceFactor?i*e.XuV/t.retina.reduceFactor:1/0}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}resize(){let t=this._initialPosition,i=this._container;this.position=t&&(0,e.Tj8)(t,i.canvas.size,e.Miz.origin)?t:this._calcPosition(),this._size=this._calcSize(),this.size=(0,e.YCE)(this._size,i.canvas.size),this._shape?.resize(this.position,this.size)}update(t){if(this._paused)return;let i=this._container;this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??0,this._currentEmitDelay=this._emitDelay??0),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),void 0!==this._duration&&(this._currentDuration+=t.value,this._currentDuration>=this._duration&&(this.pause(),void 0!==this._spawnDelay&&delete this._spawnDelay,!this._immortal&&this._lifeCount--,this._lifeCount>0||this._immortal?(this.position=this._calcPosition(),this._shape?.resize(this.position,this.size),this._spawnDelay=i.retina.reduceFactor?(0,e.VGA)(this.options.life.delay??0)*e.XuV/i.retina.reduceFactor:1/0):this._destroy(),this._currentDuration-=this._duration,delete this._duration)),void 0!==this._spawnDelay&&(this._currentSpawnDelay+=t.value,this._currentSpawnDelay>=this._spawnDelay&&(this._container.dispatchEvent("emitterPlay"),this.play(),this._currentSpawnDelay-=this._spawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=t.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay))}_calcPosition(){let t=this._container;if(this.options.domId){let i=(0,e.T5G)().getElementById(this.options.domId);if(i){let s=i.getBoundingClientRect(),o=t.retina.pixelRatio;return{x:(s.x+s.width*e.MXx)*o,y:(s.y+s.height*e.MXx)*o}}}return(0,e.l1q)({size:t.canvas.size,position:this.options.position})}_calcSize(){let t,i=this._container;if(this.options.domId){let t=(0,e.T5G)().getElementById(this.options.domId);if(t){let s=t.getBoundingClientRect();return{width:s.width*i.retina.pixelRatio,height:s.height*i.retina.pixelRatio,mode:e.qiC.precise}}}return this.options.size??((t=new a.G).load({height:0,mode:e.qiC.percent,width:0}),t)}_destroy=()=>{this._mutationObserver?.disconnect(),this._mutationObserver=void 0,this._resizeObserver?.disconnect(),this._resizeObserver=void 0,this._removeCallback(this),this._container.dispatchEvent("emitterDestroyed",{emitter:this})};_emit(){if(this._paused)return;let t=(0,e.VGA)(this.options.rate.quantity);this._emitParticles(t)}_emitParticles(t){let i=(0,e.TA3)(this._particlesOptions)??{},s=this.options.spawn.fill?.color.animation,o=this.options.spawn.fill?.enable??!!this.options.spawn.fill?.color,a=this.options.spawn.fill?.opacity===void 0?e.hvP:(0,e.VGA)(this.options.spawn.fill.opacity),n=this.options.spawn.stroke?.color?.animation,h=this.options.spawn.stroke?.opacity===void 0?e.hvP:(0,e.VGA)(this.options.spawn.stroke.opacity),l=this.options.spawn.stroke?.width===void 0?1:(0,e.VGA)(this.options.spawn.stroke.width),p=this._container.retina.reduceFactor,_=!!s,c=!!n,u=!!this._shape,d=_||c,w=d||u,m=d?{h:e.vSh,s:e.euA,l:e.$_c}:null,y=this.options.shape;for(let _=0;_<t*p;_++){let t=w?(0,e.zwS)({},i):i;if(this.spawnFillOpacity=a,this.spawnFillEnabled=o,this.spawnStrokeOpacity=h,this.spawnStrokeWidth=l,this.spawnFillColor&&(s&&m&&(this.spawnFillColor.h=this._setColorAnimation(s.h,this.spawnFillColor.h,m.h,3.6),this.spawnFillColor.s=this._setColorAnimation(s.s,this.spawnFillColor.s,m.s),this.spawnFillColor.l=this._setColorAnimation(s.l,this.spawnFillColor.l,m.l)),r(t,this.spawnFillColor,this.spawnFillOpacity,this.spawnFillEnabled)),this.spawnStrokeColor){var v,f,C;n&&m&&(this.spawnStrokeColor.h=this._setColorAnimation(n.h,this.spawnStrokeColor.h,m.h,3.6),this.spawnStrokeColor.s=this._setColorAnimation(n.s,this.spawnStrokeColor.s,m.s),this.spawnStrokeColor.l=this._setColorAnimation(n.l,this.spawnStrokeColor.l,m.l)),v=this.spawnStrokeColor,f=this.spawnStrokeOpacity,C=this.spawnStrokeWidth,(t.paint??=new e.PiR).stroke={color:e.A9e.create(void 0,{value:v}),opacity:f,width:C}}let p=this.position;if(this._shape){let i=this._shape.randomPosition();if(i){p=i.position;let s=y.replace;s.color&&i.color&&r(t,i.color,s.opacity?i.opacity??e.hvP:e.hvP,!0)}else p=null}p&&this._container.particles.addParticle(p,t)}}_prepareToDie=()=>{if(this._paused)return;let t=void 0!==this.options.life.duration?(0,e.VGA)(this.options.life.duration):void 0;(this._lifeCount>0||this._immortal)&&void 0!==t&&t>0&&(this._duration=t*e.XuV)};_setColorAnimation=(t,i,s,o=n)=>{let a=this._container;if(!t.enable)return i;let r=(0,e.vEz)(t.offset),h=(0,e.VGA)(this.options.rate.delay),l=a.retina.reduceFactor?h*e.XuV/a.retina.reduceFactor:1/0;return(i+(0,e.VGA)(t.speed)*a.fpsLimit/l+r*o)%s}}}}]);
package/304.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_squares=this.webpackChunk_tsparticles_preset_squares||[]).push([[304],{8304(e,a,t){async function s(e){e.checkVersion("4.0.0-beta.11"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("size",async e=>{let{SizeUpdater:a}=await t.e(750).then(t.bind(t,4750));return new a(e)})})}t.r(a),t.d(a,{loadSizeUpdater:()=>s})}}]);
package/326.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_squares=this.webpackChunk_tsparticles_preset_squares||[]).push([[326],{3326(t,i,s){s.r(i),s.d(i,{EmittersPlugin:()=>a});var o=s(3227),e=s(7054);class a{id="emitters";_instancesManager;constructor(t){this._instancesManager=t}async getPlugin(t){let{EmittersPluginInstance:i}=await s.e(925).then(s.bind(s,4925));return new i(this._instancesManager,t)}loadOptions(t,i,s){(this.needsPlugin(i)||this.needsPlugin(s))&&s?.emitters&&(i.emitters=(0,o.wJ2)(s.emitters,t=>{let i=new e.v;return i.load(t),i}))}needsPlugin(t){if(!t)return!1;let i=t.emitters;return(0,o.cyL)(i)&&!!i.length||void 0!==i}}},7054(t,i,s){s.d(i,{v:()=>d});var o=s(3227);class e{count;delay;duration;wait;constructor(){this.wait=!1}load(t){(0,o.kZJ)(t)||(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,o.DT4)(t.delay)),void 0!==t.duration&&(this.duration=(0,o.DT4)(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class a{delay;quantity;constructor(){this.quantity=1,this.delay=.1}load(t){(0,o.kZJ)(t)||(void 0!==t.quantity&&(this.quantity=(0,o.DT4)(t.quantity)),void 0!==t.delay&&(this.delay=(0,o.DT4)(t.delay)))}}class l{color;opacity;constructor(){this.color=!1,this.opacity=!1}load(t){(0,o.kZJ)(t)||(void 0!==t.color&&(this.color=t.color),void 0!==t.opacity&&(this.opacity=t.opacity))}}class n{options;replace;type;constructor(){this.options={},this.replace=new l,this.type="square"}load(t){(0,o.kZJ)(t)||(void 0!==t.options&&(this.options=(0,o.zwS)({},t.options??{})),this.replace.load(t.replace),void 0!==t.type&&(this.type=t.type))}}var r=s(1797);class h{fill;stroke;load(t){!(0,o.kZJ)(t)&&(t.fill&&(this.fill??=new o.SQl,this.fill.load(t.fill)),t.stroke&&(this.stroke??=new o.tcj,this.stroke.load(t.stroke)))}}class d{autoPlay;direction;domId;fill;life;name;particles;position;rate;shape;size;spawn;spawnFillColor;spawnStrokeColor;startCount;constructor(){this.autoPlay=!0,this.fill=!0,this.life=new e,this.rate=new a,this.shape=new n,this.spawn=new h,this.startCount=0}load(t){(0,o.kZJ)(t)||(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size??=new r.G,this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.domId=t.domId,void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,this.particles=(0,o.wJ2)(t.particles,t=>(0,o.zwS)({},t)),this.rate.load(t.rate),this.shape.load(t.shape),this.spawn.load(t.spawn),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,o.DT4)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,o.DT4)(t.position.y))),void 0!==t.spawnFillColor&&(this.spawnFillColor??=new o.A9e,this.spawnFillColor.load(t.spawnFillColor)),void 0!==t.spawnStrokeColor&&(this.spawnStrokeColor??=new o.A9e,this.spawnStrokeColor.load(t.spawnStrokeColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}},1797(t,i,s){s.d(i,{G:()=>e});var o=s(3227);class e{height;mode;width;constructor(){this.mode=o.qiC.percent,this.height=0,this.width=0}load(t){(0,o.kZJ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}}}]);
package/358.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_squares=this.webpackChunk_tsparticles_preset_squares||[]).push([[358],{9358(e,t,r){r.d(t,{ShapeManager:()=>a});let s=new Map;class a{addShapeGenerator(e,t){this.getShapeGenerator(e)||s.set(e,t)}getShapeGenerator(e){return s.get(e)}getSupportedShapeGenerators(){return s.keys()}}}}]);
package/361.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_squares=this.webpackChunk_tsparticles_preset_squares||[]).push([[361],{1361(e,t,a){a.r(t),a.d(t,{options:()=>i});var s=a(3227);let i={particles:{paint:{stroke:{width:5,color:{value:["#5bc0eb","#fde74c","#9bc53d","#e55934","#fa7921","#2FF3E0","#F8D210","#FA26A0","#F51720"]}},fill:{enable:!1}},shape:{type:"square"},rotate:{value:0,direction:s.pTR.counterClockwise,animation:{enable:!0,speed:2,sync:!0}},size:{value:{min:1,max:500},animation:{enable:!0,startValue:s.SKz.min,speed:60,sync:!0,destroy:s.VKE.max}}},background:{color:"#000"},emitters:{position:{y:50,x:50},rate:{delay:1,quantity:1}}}}}]);
package/404.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_squares=this.webpackChunk_tsparticles_preset_squares||[]).push([[404],{7404(e,a,t){async function n(e){e.checkVersion("4.0.0-beta.11"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("paint",async a=>{let{PaintUpdater:n}=await t.e(659).then(t.bind(t,3659));return new n(e.pluginManager,a)})})}t.r(a),t.d(a,{loadPaintUpdater:()=>n})}}]);