@tsparticles/preset-squares 3.2.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/227.min.js +2 -0
- package/227.min.js.LICENSE.txt +1 -0
- package/237.min.js +2 -0
- package/237.min.js.LICENSE.txt +1 -0
- package/264.min.js +2 -0
- package/264.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/301.min.js +2 -0
- package/301.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/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/527.min.js +2 -0
- package/527.min.js.LICENSE.txt +1 -0
- package/541.min.js +2 -0
- package/541.min.js.LICENSE.txt +1 -0
- package/669.min.js +2 -0
- package/669.min.js.LICENSE.txt +1 -0
- package/717.min.js +2 -0
- package/717.min.js.LICENSE.txt +1 -0
- package/browser/bundle.js +2 -3
- package/browser/index.js +11 -16
- package/browser/options.js +1 -0
- package/browser/package.json +1 -0
- package/cjs/bundle.js +2 -7
- package/cjs/index.js +11 -20
- package/cjs/options.js +6 -8
- package/cjs/package.json +1 -0
- package/dist_browser_options_js.js +30 -0
- package/esm/bundle.js +2 -3
- package/esm/index.js +11 -16
- package/esm/options.js +1 -0
- package/esm/package.json +1 -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_shape-square_4_0_0-alpha_2_node_modules_tsparticles_shape-squar-87e5cc.js +40 -0
- package/node_modules_pnpm_tsparticles_shape-square_4_0_0-alpha_2_node_modules_tsparticles_shape-squar-9d7fc9.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_2_node_modules_tsparticles_updater-r-0de212.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_2_node_modules_tsparticles_updater-r-e97427.js +50 -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/node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_2_node_modules_tsparticles_upd-74b323.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_2_node_modules_tsparticles_upd-ca004c.js +30 -0
- package/package.json +23 -10
- package/report.html +7 -6
- package/tsparticles.preset.squares.bundle.js +1009 -6821
- package/tsparticles.preset.squares.bundle.min.js +1 -1
- package/tsparticles.preset.squares.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.preset.squares.js +315 -312
- package/tsparticles.preset.squares.min.js +1 -1
- package/tsparticles.preset.squares.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 +47 -19
- 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
|
@@ -4,56 +4,109 @@
|
|
|
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
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
11
|
+
* This devtool is neither made for production nor for readable output files.
|
|
12
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
13
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
14
|
+
* or disable the default devtool with "devtool: false".
|
|
15
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
16
|
*/
|
|
9
17
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
18
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
-
module.exports = factory(require("@tsparticles/
|
|
19
|
+
module.exports = factory(require("@tsparticles/updater-stroke-color"), require("@tsparticles/updater-size"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-square"), require("@tsparticles/plugin-emitters"), require("@tsparticles/plugin-hex-color"), require("@tsparticles/engine"));
|
|
12
20
|
else if(typeof define === 'function' && define.amd)
|
|
13
|
-
define(["@tsparticles/
|
|
21
|
+
define(["@tsparticles/updater-stroke-color", "@tsparticles/updater-size", "@tsparticles/updater-rotate", "@tsparticles/shape-square", "@tsparticles/plugin-emitters", "@tsparticles/plugin-hex-color", "@tsparticles/engine"], factory);
|
|
14
22
|
else {
|
|
15
|
-
var a = typeof exports === 'object' ? factory(require("@tsparticles/
|
|
23
|
+
var a = typeof exports === 'object' ? factory(require("@tsparticles/updater-stroke-color"), require("@tsparticles/updater-size"), require("@tsparticles/updater-rotate"), require("@tsparticles/shape-square"), require("@tsparticles/plugin-emitters"), require("@tsparticles/plugin-hex-color"), require("@tsparticles/engine")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
|
|
16
24
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
25
|
}
|
|
18
|
-
})(this, (
|
|
26
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_updater_stroke_color__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_size__, __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__, __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_square__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_hex_color__, __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__) => {
|
|
19
27
|
return /******/ (() => { // webpackBootstrap
|
|
20
28
|
/******/ "use strict";
|
|
21
29
|
/******/ var __webpack_modules__ = ({
|
|
22
30
|
|
|
23
|
-
/***/
|
|
24
|
-
|
|
31
|
+
/***/ "./dist/browser/index.js"
|
|
32
|
+
/*!*******************************!*\
|
|
33
|
+
!*** ./dist/browser/index.js ***!
|
|
34
|
+
\*******************************/
|
|
35
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36
|
+
|
|
37
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadSquaresPreset: () => (/* binding */ loadSquaresPreset)\n/* harmony export */ });\nfunction loadSquaresPreset(engine) {\n engine.register(async e => {\n const {\n loadHexColorPlugin\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-hex-color */ \"@tsparticles/plugin-hex-color\", 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 loadSquareShape\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/shape-square */ \"@tsparticles/shape-square\", 19)),\n {\n loadRotateUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-rotate */ \"@tsparticles/updater-rotate\", 19)),\n {\n loadSizeUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-size */ \"@tsparticles/updater-size\", 19)),\n {\n loadStrokeColorUpdater\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/updater-stroke-color */ \"@tsparticles/updater-stroke-color\", 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 loadHexColorPlugin(e);\n loadEmittersPlugin(e);\n loadSquareShape(e);\n loadRotateUpdater(e);\n loadSizeUpdater(e);\n loadStrokeColorUpdater(e);\n e.addPreset(presetName, options);\n });\n}\n\n//# sourceURL=webpack://@tsparticles/preset-squares/./dist/browser/index.js?\n}");
|
|
38
|
+
|
|
39
|
+
/***/ },
|
|
40
|
+
|
|
41
|
+
/***/ "@tsparticles/engine"
|
|
42
|
+
/*!*********************************************************************************************************************************!*\
|
|
43
|
+
!*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***!
|
|
44
|
+
\*********************************************************************************************************************************/
|
|
45
|
+
(module) {
|
|
46
|
+
|
|
47
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
48
|
+
|
|
49
|
+
/***/ },
|
|
25
50
|
|
|
26
|
-
|
|
51
|
+
/***/ "@tsparticles/plugin-emitters"
|
|
52
|
+
/*!************************************************************************************************************************************************************!*\
|
|
53
|
+
!*** external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"} ***!
|
|
54
|
+
\************************************************************************************************************************************************************/
|
|
55
|
+
(module) {
|
|
27
56
|
|
|
28
|
-
|
|
57
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
|
|
29
58
|
|
|
30
|
-
/***/
|
|
31
|
-
/***/ ((module) => {
|
|
59
|
+
/***/ },
|
|
32
60
|
|
|
33
|
-
|
|
61
|
+
/***/ "@tsparticles/plugin-hex-color"
|
|
62
|
+
/*!***************************************************************************************************************************************************************!*\
|
|
63
|
+
!*** external {"commonjs":"@tsparticles/plugin-hex-color","commonjs2":"@tsparticles/plugin-hex-color","amd":"@tsparticles/plugin-hex-color","root":"window"} ***!
|
|
64
|
+
\***************************************************************************************************************************************************************/
|
|
65
|
+
(module) {
|
|
34
66
|
|
|
35
|
-
|
|
67
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_hex_color__;
|
|
36
68
|
|
|
37
|
-
/***/
|
|
38
|
-
/***/ ((module) => {
|
|
69
|
+
/***/ },
|
|
39
70
|
|
|
40
|
-
|
|
71
|
+
/***/ "@tsparticles/shape-square"
|
|
72
|
+
/*!***************************************************************************************************************************************************!*\
|
|
73
|
+
!*** external {"commonjs":"@tsparticles/shape-square","commonjs2":"@tsparticles/shape-square","amd":"@tsparticles/shape-square","root":"window"} ***!
|
|
74
|
+
\***************************************************************************************************************************************************/
|
|
75
|
+
(module) {
|
|
41
76
|
|
|
42
|
-
|
|
77
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_shape_square__;
|
|
43
78
|
|
|
44
|
-
/***/
|
|
45
|
-
/***/ ((module) => {
|
|
79
|
+
/***/ },
|
|
46
80
|
|
|
47
|
-
|
|
81
|
+
/***/ "@tsparticles/updater-rotate"
|
|
82
|
+
/*!*********************************************************************************************************************************************************!*\
|
|
83
|
+
!*** external {"commonjs":"@tsparticles/updater-rotate","commonjs2":"@tsparticles/updater-rotate","amd":"@tsparticles/updater-rotate","root":"window"} ***!
|
|
84
|
+
\*********************************************************************************************************************************************************/
|
|
85
|
+
(module) {
|
|
48
86
|
|
|
49
|
-
|
|
87
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_rotate__;
|
|
50
88
|
|
|
51
|
-
/***/
|
|
52
|
-
/***/ ((module) => {
|
|
89
|
+
/***/ },
|
|
53
90
|
|
|
54
|
-
|
|
91
|
+
/***/ "@tsparticles/updater-size"
|
|
92
|
+
/*!***************************************************************************************************************************************************!*\
|
|
93
|
+
!*** external {"commonjs":"@tsparticles/updater-size","commonjs2":"@tsparticles/updater-size","amd":"@tsparticles/updater-size","root":"window"} ***!
|
|
94
|
+
\***************************************************************************************************************************************************/
|
|
95
|
+
(module) {
|
|
55
96
|
|
|
56
|
-
|
|
97
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_size__;
|
|
98
|
+
|
|
99
|
+
/***/ },
|
|
100
|
+
|
|
101
|
+
/***/ "@tsparticles/updater-stroke-color"
|
|
102
|
+
/*!***************************************************************************************************************************************************************************!*\
|
|
103
|
+
!*** external {"commonjs":"@tsparticles/updater-stroke-color","commonjs2":"@tsparticles/updater-stroke-color","amd":"@tsparticles/updater-stroke-color","root":"window"} ***!
|
|
104
|
+
\***************************************************************************************************************************************************************************/
|
|
105
|
+
(module) {
|
|
106
|
+
|
|
107
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_updater_stroke_color__;
|
|
108
|
+
|
|
109
|
+
/***/ }
|
|
57
110
|
|
|
58
111
|
/******/ });
|
|
59
112
|
/************************************************************************/
|
|
@@ -67,6 +120,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__204__;
|
|
|
67
120
|
/******/ if (cachedModule !== undefined) {
|
|
68
121
|
/******/ return cachedModule.exports;
|
|
69
122
|
/******/ }
|
|
123
|
+
/******/ // Check if module exists (development only)
|
|
124
|
+
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
125
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
126
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
127
|
+
/******/ throw e;
|
|
128
|
+
/******/ }
|
|
70
129
|
/******/ // Create a new module (and put it into the cache)
|
|
71
130
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
72
131
|
/******/ // no module.id needed
|
|
@@ -81,7 +140,40 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__204__;
|
|
|
81
140
|
/******/ return module.exports;
|
|
82
141
|
/******/ }
|
|
83
142
|
/******/
|
|
143
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
144
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
145
|
+
/******/
|
|
84
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
|
+
/******/
|
|
85
177
|
/******/ /* webpack/runtime/define property getters */
|
|
86
178
|
/******/ (() => {
|
|
87
179
|
/******/ // define getter functions for harmony exports
|
|
@@ -94,11 +186,90 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__204__;
|
|
|
94
186
|
/******/ };
|
|
95
187
|
/******/ })();
|
|
96
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
|
+
/******/
|
|
97
223
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
98
224
|
/******/ (() => {
|
|
99
225
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
100
226
|
/******/ })();
|
|
101
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
|
+
/******/
|
|
102
273
|
/******/ /* webpack/runtime/make namespace object */
|
|
103
274
|
/******/ (() => {
|
|
104
275
|
/******/ // define __esModule on exports
|
|
@@ -110,294 +281,126 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__204__;
|
|
|
110
281
|
/******/ };
|
|
111
282
|
/******/ })();
|
|
112
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
|
+
/******/
|
|
113
397
|
/************************************************************************/
|
|
114
|
-
|
|
115
|
-
//
|
|
116
|
-
|
|
117
|
-
//
|
|
118
|
-
__webpack_require__.
|
|
119
|
-
|
|
120
|
-
// EXPORTS
|
|
121
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
122
|
-
loadSquaresPreset: () => (/* binding */ loadSquaresPreset)
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"}
|
|
126
|
-
var plugin_emitters_root_window_ = __webpack_require__(68);
|
|
127
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"}
|
|
128
|
-
var engine_root_window_ = __webpack_require__(533);
|
|
129
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-hex-color@3.7.1/node_modules/@tsparticles/plugin-hex-color/browser/HexColorManager.js
|
|
130
|
-
var RgbIndexes;
|
|
131
|
-
(function (RgbIndexes) {
|
|
132
|
-
RgbIndexes[RgbIndexes["r"] = 1] = "r";
|
|
133
|
-
RgbIndexes[RgbIndexes["g"] = 2] = "g";
|
|
134
|
-
RgbIndexes[RgbIndexes["b"] = 3] = "b";
|
|
135
|
-
RgbIndexes[RgbIndexes["a"] = 4] = "a";
|
|
136
|
-
})(RgbIndexes || (RgbIndexes = {}));
|
|
137
|
-
const shorthandHexRegex = /^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, hexRegex = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, hexRadix = 16, defaultAlpha = 1, alphaFactor = 0xff;
|
|
138
|
-
class HexColorManager {
|
|
139
|
-
constructor() {
|
|
140
|
-
this.key = "hex";
|
|
141
|
-
this.stringPrefix = "#";
|
|
142
|
-
}
|
|
143
|
-
handleColor(color) {
|
|
144
|
-
return this._parseString(color.value);
|
|
145
|
-
}
|
|
146
|
-
handleRangeColor(color) {
|
|
147
|
-
return this._parseString(color.value);
|
|
148
|
-
}
|
|
149
|
-
parseString(input) {
|
|
150
|
-
return this._parseString(input);
|
|
151
|
-
}
|
|
152
|
-
_parseString(hexColor) {
|
|
153
|
-
if (typeof hexColor !== "string") {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
if (!hexColor?.startsWith(this.stringPrefix)) {
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
const hexFixed = hexColor.replace(shorthandHexRegex, (_, r, g, b, a) => {
|
|
160
|
-
return r + r + g + g + b + b + (a !== undefined ? a + a : "");
|
|
161
|
-
}), result = hexRegex.exec(hexFixed);
|
|
162
|
-
return result
|
|
163
|
-
? {
|
|
164
|
-
a: result[RgbIndexes.a] !== undefined
|
|
165
|
-
? parseInt(result[RgbIndexes.a], hexRadix) / alphaFactor
|
|
166
|
-
: defaultAlpha,
|
|
167
|
-
b: parseInt(result[RgbIndexes.b], hexRadix),
|
|
168
|
-
g: parseInt(result[RgbIndexes.g], hexRadix),
|
|
169
|
-
r: parseInt(result[RgbIndexes.r], hexRadix),
|
|
170
|
-
}
|
|
171
|
-
: undefined;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+plugin-hex-color@3.7.1/node_modules/@tsparticles/plugin-hex-color/browser/index.js
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
async function loadHexColorPlugin(engine, refresh = true) {
|
|
179
|
-
(0,engine_root_window_.assertValidVersion)(engine, "3.7.1");
|
|
180
|
-
await engine.addColorManager(new HexColorManager(), refresh);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.7.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/RotateAnimation.js
|
|
184
|
-
|
|
185
|
-
class RotateAnimation {
|
|
186
|
-
constructor() {
|
|
187
|
-
this.enable = false;
|
|
188
|
-
this.speed = 0;
|
|
189
|
-
this.decay = 0;
|
|
190
|
-
this.sync = false;
|
|
191
|
-
}
|
|
192
|
-
load(data) {
|
|
193
|
-
if ((0,engine_root_window_.isNull)(data)) {
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
if (data.enable !== undefined) {
|
|
197
|
-
this.enable = data.enable;
|
|
198
|
-
}
|
|
199
|
-
if (data.speed !== undefined) {
|
|
200
|
-
this.speed = (0,engine_root_window_.setRangeValue)(data.speed);
|
|
201
|
-
}
|
|
202
|
-
if (data.decay !== undefined) {
|
|
203
|
-
this.decay = (0,engine_root_window_.setRangeValue)(data.decay);
|
|
204
|
-
}
|
|
205
|
-
if (data.sync !== undefined) {
|
|
206
|
-
this.sync = data.sync;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.7.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/Rotate.js
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
class Rotate extends engine_root_window_.ValueWithRandom {
|
|
215
|
-
constructor() {
|
|
216
|
-
super();
|
|
217
|
-
this.animation = new RotateAnimation();
|
|
218
|
-
this.direction = engine_root_window_.RotateDirection.clockwise;
|
|
219
|
-
this.path = false;
|
|
220
|
-
this.value = 0;
|
|
221
|
-
}
|
|
222
|
-
load(data) {
|
|
223
|
-
if ((0,engine_root_window_.isNull)(data)) {
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
super.load(data);
|
|
227
|
-
if (data.direction !== undefined) {
|
|
228
|
-
this.direction = data.direction;
|
|
229
|
-
}
|
|
230
|
-
this.animation.load(data.animation);
|
|
231
|
-
if (data.path !== undefined) {
|
|
232
|
-
this.path = data.path;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.7.1/node_modules/@tsparticles/updater-rotate/browser/RotateUpdater.js
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
const RotateUpdater_double = 2, doublePI = Math.PI * RotateUpdater_double, identity = 1, doublePIDeg = 360;
|
|
241
|
-
class RotateUpdater {
|
|
242
|
-
constructor(container) {
|
|
243
|
-
this.container = container;
|
|
244
|
-
}
|
|
245
|
-
init(particle) {
|
|
246
|
-
const rotateOptions = particle.options.rotate;
|
|
247
|
-
if (!rotateOptions) {
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
particle.rotate = {
|
|
251
|
-
enable: rotateOptions.animation.enable,
|
|
252
|
-
value: (0,engine_root_window_.degToRad)((0,engine_root_window_.getRangeValue)(rotateOptions.value)),
|
|
253
|
-
min: 0,
|
|
254
|
-
max: doublePI,
|
|
255
|
-
};
|
|
256
|
-
particle.pathRotation = rotateOptions.path;
|
|
257
|
-
let rotateDirection = rotateOptions.direction;
|
|
258
|
-
if (rotateDirection === engine_root_window_.RotateDirection.random) {
|
|
259
|
-
const index = Math.floor((0,engine_root_window_.getRandom)() * RotateUpdater_double), minIndex = 0;
|
|
260
|
-
rotateDirection = index > minIndex ? engine_root_window_.RotateDirection.counterClockwise : engine_root_window_.RotateDirection.clockwise;
|
|
261
|
-
}
|
|
262
|
-
switch (rotateDirection) {
|
|
263
|
-
case engine_root_window_.RotateDirection.counterClockwise:
|
|
264
|
-
case "counterClockwise":
|
|
265
|
-
particle.rotate.status = engine_root_window_.AnimationStatus.decreasing;
|
|
266
|
-
break;
|
|
267
|
-
case engine_root_window_.RotateDirection.clockwise:
|
|
268
|
-
particle.rotate.status = engine_root_window_.AnimationStatus.increasing;
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
const rotateAnimation = rotateOptions.animation;
|
|
272
|
-
if (rotateAnimation.enable) {
|
|
273
|
-
particle.rotate.decay = identity - (0,engine_root_window_.getRangeValue)(rotateAnimation.decay);
|
|
274
|
-
particle.rotate.velocity =
|
|
275
|
-
((0,engine_root_window_.getRangeValue)(rotateAnimation.speed) / doublePIDeg) * this.container.retina.reduceFactor;
|
|
276
|
-
if (!rotateAnimation.sync) {
|
|
277
|
-
particle.rotate.velocity *= (0,engine_root_window_.getRandom)();
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
particle.rotation = particle.rotate.value;
|
|
281
|
-
}
|
|
282
|
-
isEnabled(particle) {
|
|
283
|
-
const rotate = particle.options.rotate;
|
|
284
|
-
if (!rotate) {
|
|
285
|
-
return false;
|
|
286
|
-
}
|
|
287
|
-
return !particle.destroyed && !particle.spawning && (!!rotate.value || rotate.animation.enable || rotate.path);
|
|
288
|
-
}
|
|
289
|
-
loadOptions(options, ...sources) {
|
|
290
|
-
if (!options.rotate) {
|
|
291
|
-
options.rotate = new Rotate();
|
|
292
|
-
}
|
|
293
|
-
for (const source of sources) {
|
|
294
|
-
options.rotate.load(source?.rotate);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
update(particle, delta) {
|
|
298
|
-
if (!this.isEnabled(particle)) {
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
301
|
-
particle.isRotating = !!particle.rotate;
|
|
302
|
-
if (!particle.rotate) {
|
|
303
|
-
return;
|
|
304
|
-
}
|
|
305
|
-
(0,engine_root_window_.updateAnimation)(particle, particle.rotate, false, engine_root_window_.DestroyType.none, delta);
|
|
306
|
-
particle.rotation = particle.rotate.value;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@tsparticles+updater-rotate@3.7.1/node_modules/@tsparticles/updater-rotate/browser/index.js
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
async function loadRotateUpdater(engine, refresh = true) {
|
|
314
|
-
(0,engine_root_window_.assertValidVersion)(engine, "3.7.1");
|
|
315
|
-
await engine.addParticleUpdater("rotate", container => {
|
|
316
|
-
return Promise.resolve(new RotateUpdater(container));
|
|
317
|
-
}, refresh);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-size","commonjs2":"@tsparticles/updater-size","amd":"@tsparticles/updater-size","root":"window"}
|
|
321
|
-
var updater_size_root_window_ = __webpack_require__(2);
|
|
322
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-square","commonjs2":"@tsparticles/shape-square","amd":"@tsparticles/shape-square","root":"window"}
|
|
323
|
-
var shape_square_root_window_ = __webpack_require__(652);
|
|
324
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-stroke-color","commonjs2":"@tsparticles/updater-stroke-color","amd":"@tsparticles/updater-stroke-color","root":"window"}
|
|
325
|
-
var updater_stroke_color_root_window_ = __webpack_require__(204);
|
|
326
|
-
;// CONCATENATED MODULE: ./dist/browser/options.js
|
|
327
|
-
|
|
328
|
-
const options = {
|
|
329
|
-
particles: {
|
|
330
|
-
stroke: {
|
|
331
|
-
width: 5,
|
|
332
|
-
color: {
|
|
333
|
-
value: ["#5bc0eb", "#fde74c", "#9bc53d", "#e55934", "#fa7921", "#2FF3E0", "#F8D210", "#FA26A0", "#F51720"]
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
shape: {
|
|
337
|
-
type: "square",
|
|
338
|
-
options: {
|
|
339
|
-
square: {
|
|
340
|
-
fill: false
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
rotate: {
|
|
345
|
-
value: 0,
|
|
346
|
-
direction: engine_root_window_.RotateDirection.counterClockwise,
|
|
347
|
-
animation: {
|
|
348
|
-
enable: true,
|
|
349
|
-
speed: 2,
|
|
350
|
-
sync: true
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
size: {
|
|
354
|
-
value: {
|
|
355
|
-
min: 1,
|
|
356
|
-
max: 500
|
|
357
|
-
},
|
|
358
|
-
animation: {
|
|
359
|
-
enable: true,
|
|
360
|
-
startValue: engine_root_window_.StartValueType.min,
|
|
361
|
-
speed: 60,
|
|
362
|
-
sync: true,
|
|
363
|
-
destroy: engine_root_window_.DestroyType.max
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
background: {
|
|
368
|
-
color: "#000"
|
|
369
|
-
},
|
|
370
|
-
emitters: {
|
|
371
|
-
position: {
|
|
372
|
-
y: 50,
|
|
373
|
-
x: 50
|
|
374
|
-
},
|
|
375
|
-
rate: {
|
|
376
|
-
delay: 1,
|
|
377
|
-
quantity: 1
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
|
-
;// CONCATENATED MODULE: ./dist/browser/index.js
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
async function loadSquaresPreset(engine, refresh = true) {
|
|
390
|
-
await loadHexColorPlugin(engine, false);
|
|
391
|
-
await (0,plugin_emitters_root_window_.loadEmittersPlugin)(engine, false);
|
|
392
|
-
await (0,shape_square_root_window_.loadSquareShape)(engine, false);
|
|
393
|
-
await loadRotateUpdater(engine, false);
|
|
394
|
-
await (0,updater_size_root_window_.loadSizeUpdater)(engine, false);
|
|
395
|
-
await (0,updater_stroke_color_root_window_.loadStrokeColorUpdater)(engine, false);
|
|
396
|
-
await engine.addPreset("squares", options, false);
|
|
397
|
-
await engine.refresh(refresh);
|
|
398
|
-
}
|
|
399
|
-
})();
|
|
400
|
-
|
|
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
|
+
/******/
|
|
401
404
|
/******/ return __webpack_exports__;
|
|
402
405
|
/******/ })()
|
|
403
406
|
;
|