@tsparticles/preset-sea-anemone 3.0.1 → 3.1.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.
@@ -4,7 +4,15 @@
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.0.1
7
+ * v3.1.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')
@@ -15,29 +23,58 @@
15
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"]);
16
24
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
17
25
  }
18
- })(this, (__WEBPACK_EXTERNAL_MODULE__997__, __WEBPACK_EXTERNAL_MODULE__574__, __WEBPACK_EXTERNAL_MODULE__68__) => {
26
+ })(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_path_curves__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__, __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__) => {
19
27
  return /******/ (() => { // webpackBootstrap
20
28
  /******/ "use strict";
21
29
  /******/ var __webpack_modules__ = ({
22
30
 
23
- /***/ 574:
31
+ /***/ "./dist/browser/index.js":
32
+ /*!*******************************!*\
33
+ !*** ./dist/browser/index.js ***!
34
+ \*******************************/
35
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
36
+
37
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ 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?");
38
+
39
+ /***/ }),
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":
52
+ /*!******************************************************************************************************************************!*\
53
+ !*** external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"} ***!
54
+ \******************************************************************************************************************************/
24
55
  /***/ ((module) => {
25
56
 
26
- module.exports = __WEBPACK_EXTERNAL_MODULE__574__;
57
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__;
27
58
 
28
59
  /***/ }),
29
60
 
30
- /***/ 997:
61
+ /***/ "@tsparticles/path-curves":
62
+ /*!************************************************************************************************************************************************!*\
63
+ !*** external {"commonjs":"@tsparticles/path-curves","commonjs2":"@tsparticles/path-curves","amd":"@tsparticles/path-curves","root":"window"} ***!
64
+ \************************************************************************************************************************************************/
31
65
  /***/ ((module) => {
32
66
 
33
- module.exports = __WEBPACK_EXTERNAL_MODULE__997__;
67
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_path_curves__;
34
68
 
35
69
  /***/ }),
36
70
 
37
- /***/ 68:
71
+ /***/ "@tsparticles/plugin-emitters":
72
+ /*!************************************************************************************************************************************************************!*\
73
+ !*** external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"} ***!
74
+ \************************************************************************************************************************************************************/
38
75
  /***/ ((module) => {
39
76
 
40
- module.exports = __WEBPACK_EXTERNAL_MODULE__68__;
77
+ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters__;
41
78
 
42
79
  /***/ })
43
80
 
@@ -68,6 +105,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__68__;
68
105
  /******/ }
69
106
  /******/
70
107
  /************************************************************************/
108
+ /******/ /* webpack/runtime/compat get default export */
109
+ /******/ (() => {
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;
117
+ /******/ };
118
+ /******/ })();
119
+ /******/
71
120
  /******/ /* webpack/runtime/define property getters */
72
121
  /******/ (() => {
73
122
  /******/ // define getter functions for harmony exports
@@ -97,140 +146,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__68__;
97
146
  /******/ })();
98
147
  /******/
99
148
  /************************************************************************/
100
- var __webpack_exports__ = {};
101
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
102
- (() => {
103
- // ESM COMPAT FLAG
104
- __webpack_require__.r(__webpack_exports__);
105
-
106
- // EXPORTS
107
- __webpack_require__.d(__webpack_exports__, {
108
- loadSeaAnemonePreset: () => (/* binding */ loadSeaAnemonePreset)
109
- });
110
-
111
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/path-curves","commonjs2":"@tsparticles/path-curves","amd":"@tsparticles/path-curves","root":"window"}
112
- var path_curves_root_window_ = __webpack_require__(997);
113
- ;// CONCATENATED MODULE: ./dist/browser/options.js
114
-
115
- const presetName = "seaAnemone";
116
- const options = {
117
- fpsLimit: 120,
118
- particles: {
119
- color: {
120
- value: "#FF0000"
121
- },
122
- move: {
123
- direction: "none",
124
- enable: true,
125
- outModes: {
126
- default: "destroy"
127
- },
128
- path: {
129
- clamp: false,
130
- enable: true,
131
- delay: {
132
- value: 0
133
- },
134
- generator: path_curves_root_window_.curvesPathName
135
- },
136
- random: false,
137
- speed: 2,
138
- straight: false,
139
- trail: {
140
- fill: {
141
- color: "#000"
142
- },
143
- length: 30,
144
- enable: true
145
- }
146
- },
147
- number: {
148
- value: 0,
149
- limit: {
150
- value: 300
151
- }
152
- },
153
- opacity: {
154
- value: 1
155
- },
156
- shape: {
157
- type: "circle"
158
- },
159
- size: {
160
- value: {
161
- min: 1,
162
- max: 10
163
- },
164
- animation: {
165
- count: 1,
166
- startValue: "min",
167
- enable: true,
168
- speed: 10,
169
- sync: true
170
- }
171
- }
172
- },
173
- background: {
174
- color: "#000"
175
- },
176
- detectRetina: true,
177
- emitters: {
178
- direction: "none",
179
- rate: {
180
- quantity: 10,
181
- delay: 0.3
182
- },
183
- size: {
184
- width: 0,
185
- height: 0,
186
- mode: "precise"
187
- },
188
- spawnColor: {
189
- value: "#ff0000",
190
- animation: {
191
- h: {
192
- enable: true,
193
- offset: {
194
- min: -1.4,
195
- max: 1.4
196
- },
197
- speed: 5,
198
- sync: false
199
- },
200
- l: {
201
- enable: true,
202
- offset: {
203
- min: 20,
204
- max: 80
205
- },
206
- speed: 0,
207
- sync: false
208
- }
209
- }
210
- },
211
- position: {
212
- x: 50,
213
- y: 50
214
- }
215
- }
216
- };
217
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"}
218
- var basic_root_window_ = __webpack_require__(574);
219
- // EXTERNAL MODULE: external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"}
220
- var plugin_emitters_root_window_ = __webpack_require__(68);
221
- ;// CONCATENATED MODULE: ./dist/browser/index.js
222
-
223
-
224
-
225
-
226
- async function loadSeaAnemonePreset(engine, refresh = true) {
227
- await (0,basic_root_window_.loadBasic)(engine, false);
228
- await (0,plugin_emitters_root_window_.loadEmittersPlugin)(engine, false);
229
- await (0,path_curves_root_window_.loadCurvesPath)(engine, false);
230
- await engine.addPreset(presetName, options, refresh);
231
- }
232
- })();
233
-
149
+ /******/
150
+ /******/ // startup
151
+ /******/ // Load entry module and return exports
152
+ /******/ // This entry module can't be inlined because the eval devtool is used.
153
+ /******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
154
+ /******/
234
155
  /******/ return __webpack_exports__;
235
156
  /******/ })()
236
157
  ;
@@ -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)=>(()=>{"use strict";var a={574:e=>{e.exports=t},997:t=>{t.exports=e},68: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(997);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(574),i=o(68);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,s)}})(),s})()));
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})()));
@@ -1 +1 @@
1
- /*! tsParticles Sea Anemone Preset v3.0.1 by Matteo Bruni */
1
+ /*! tsParticles Sea Anemone Preset v3.1.0 by Matteo Bruni */
package/umd/bundle.js CHANGED
@@ -14,5 +14,4 @@
14
14
  Object.defineProperty(exports, "loadSeaAnemonePreset", { enumerable: true, get: function () { return index_js_1.loadSeaAnemonePreset; } });
15
15
  const engine_1 = require("@tsparticles/engine");
16
16
  Object.defineProperty(exports, "tsParticles", { enumerable: true, get: function () { return engine_1.tsParticles; } });
17
- void (0, index_js_1.loadSeaAnemonePreset)(engine_1.tsParticles);
18
17
  });
package/umd/index.js CHANGED
@@ -18,7 +18,8 @@
18
18
  await (0, basic_1.loadBasic)(engine, false);
19
19
  await (0, plugin_emitters_1.loadEmittersPlugin)(engine, false);
20
20
  await (0, path_curves_1.loadCurvesPath)(engine, false);
21
- await engine.addPreset(options_js_1.presetName, options_js_1.options, refresh);
21
+ await engine.addPreset(options_js_1.presetName, options_js_1.options, false);
22
+ await engine.refresh(refresh);
22
23
  }
23
24
  exports.loadSeaAnemonePreset = loadSeaAnemonePreset;
24
25
  });