@tsparticles/preset-sea-anemone 3.2.0 → 4.0.0-alpha.1

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