@tsparticles/preset-sea-anemone 3.0.0-alpha.1 → 3.0.0-beta.2
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/README.md +15 -37
- package/browser/bundle.js +1 -3
- package/browser/index.js +6 -16
- package/browser/options.js +4 -2
- package/browser/package.json +1 -0
- package/cjs/bundle.js +1 -12
- package/cjs/index.js +6 -27
- package/cjs/options.js +4 -2
- package/cjs/package.json +1 -0
- package/esm/bundle.js +1 -3
- package/esm/index.js +6 -16
- package/esm/options.js +4 -2
- package/esm/package.json +1 -0
- package/package.json +12 -16
- package/report.html +5 -5
- package/tsparticles.preset.seaAnemone.bundle.js +3149 -3297
- package/tsparticles.preset.seaAnemone.bundle.min.js +1 -1
- package/tsparticles.preset.seaAnemone.bundle.min.js.LICENSE.txt +1 -8
- package/tsparticles.preset.seaAnemone.js +21 -72
- package/tsparticles.preset.seaAnemone.min.js +1 -1
- package/tsparticles.preset.seaAnemone.min.js.LICENSE.txt +1 -8
- package/types/index.d.ts +1 -1
- package/umd/bundle.js +1 -3
- package/umd/index.js +7 -17
- package/umd/options.js +4 -2
|
@@ -4,26 +4,26 @@
|
|
|
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.0-
|
|
7
|
+
* v3.0.0-beta.2
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
-
module.exports = factory(require("@tsparticles/path-curves"), require("@tsparticles/
|
|
11
|
+
module.exports = factory(require("@tsparticles/path-curves"), require("@tsparticles/basic"), require("@tsparticles/plugin-emitters"));
|
|
12
12
|
else if(typeof define === 'function' && define.amd)
|
|
13
|
-
define(["@tsparticles/path-curves", "@tsparticles/
|
|
13
|
+
define(["@tsparticles/path-curves", "@tsparticles/basic", "@tsparticles/plugin-emitters"], factory);
|
|
14
14
|
else {
|
|
15
|
-
var a = typeof exports === 'object' ? factory(require("@tsparticles/path-curves"), require("@tsparticles/
|
|
15
|
+
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
16
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
17
|
}
|
|
18
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE__997__,
|
|
18
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__997__, __WEBPACK_EXTERNAL_MODULE__574__, __WEBPACK_EXTERNAL_MODULE__68__) => {
|
|
19
19
|
return /******/ (() => { // webpackBootstrap
|
|
20
20
|
/******/ "use strict";
|
|
21
21
|
/******/ var __webpack_modules__ = ({
|
|
22
22
|
|
|
23
|
-
/***/
|
|
23
|
+
/***/ 574:
|
|
24
24
|
/***/ ((module) => {
|
|
25
25
|
|
|
26
|
-
module.exports =
|
|
26
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__574__;
|
|
27
27
|
|
|
28
28
|
/***/ }),
|
|
29
29
|
|
|
@@ -39,41 +39,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__997__;
|
|
|
39
39
|
|
|
40
40
|
module.exports = __WEBPACK_EXTERNAL_MODULE__68__;
|
|
41
41
|
|
|
42
|
-
/***/ }),
|
|
43
|
-
|
|
44
|
-
/***/ 163:
|
|
45
|
-
/***/ ((module) => {
|
|
46
|
-
|
|
47
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__163__;
|
|
48
|
-
|
|
49
|
-
/***/ }),
|
|
50
|
-
|
|
51
|
-
/***/ 501:
|
|
52
|
-
/***/ ((module) => {
|
|
53
|
-
|
|
54
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__501__;
|
|
55
|
-
|
|
56
|
-
/***/ }),
|
|
57
|
-
|
|
58
|
-
/***/ 686:
|
|
59
|
-
/***/ ((module) => {
|
|
60
|
-
|
|
61
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__686__;
|
|
62
|
-
|
|
63
|
-
/***/ }),
|
|
64
|
-
|
|
65
|
-
/***/ 290:
|
|
66
|
-
/***/ ((module) => {
|
|
67
|
-
|
|
68
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__290__;
|
|
69
|
-
|
|
70
|
-
/***/ }),
|
|
71
|
-
|
|
72
|
-
/***/ 2:
|
|
73
|
-
/***/ ((module) => {
|
|
74
|
-
|
|
75
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
76
|
-
|
|
77
42
|
/***/ })
|
|
78
43
|
|
|
79
44
|
/******/ });
|
|
@@ -140,7 +105,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
140
105
|
|
|
141
106
|
// EXPORTS
|
|
142
107
|
__webpack_require__.d(__webpack_exports__, {
|
|
143
|
-
|
|
108
|
+
loadSeaAnemonePreset: () => (/* binding */ loadSeaAnemonePreset)
|
|
144
109
|
});
|
|
145
110
|
|
|
146
111
|
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/path-curves","commonjs2":"@tsparticles/path-curves","amd":"@tsparticles/path-curves","root":"window"}
|
|
@@ -172,14 +137,18 @@ const options = {
|
|
|
172
137
|
speed: 2,
|
|
173
138
|
straight: false,
|
|
174
139
|
trail: {
|
|
175
|
-
|
|
140
|
+
fill: {
|
|
141
|
+
color: "#000"
|
|
142
|
+
},
|
|
176
143
|
length: 30,
|
|
177
144
|
enable: true
|
|
178
145
|
}
|
|
179
146
|
},
|
|
180
147
|
number: {
|
|
181
148
|
value: 0,
|
|
182
|
-
limit:
|
|
149
|
+
limit: {
|
|
150
|
+
value: 300
|
|
151
|
+
}
|
|
183
152
|
},
|
|
184
153
|
opacity: {
|
|
185
154
|
value: 1
|
|
@@ -245,40 +214,20 @@ const options = {
|
|
|
245
214
|
}
|
|
246
215
|
}
|
|
247
216
|
};
|
|
248
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/
|
|
249
|
-
var
|
|
250
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-circle","commonjs2":"@tsparticles/shape-circle","amd":"@tsparticles/shape-circle","root":"window"}
|
|
251
|
-
var shape_circle_root_window_ = __webpack_require__(163);
|
|
252
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-color","commonjs2":"@tsparticles/updater-color","amd":"@tsparticles/updater-color","root":"window"}
|
|
253
|
-
var updater_color_root_window_ = __webpack_require__(501);
|
|
217
|
+
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"}
|
|
218
|
+
var basic_root_window_ = __webpack_require__(574);
|
|
254
219
|
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"}
|
|
255
220
|
var plugin_emitters_root_window_ = __webpack_require__(68);
|
|
256
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-opacity","commonjs2":"@tsparticles/updater-opacity","amd":"@tsparticles/updater-opacity","root":"window"}
|
|
257
|
-
var updater_opacity_root_window_ = __webpack_require__(686);
|
|
258
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-out-modes","commonjs2":"@tsparticles/updater-out-modes","amd":"@tsparticles/updater-out-modes","root":"window"}
|
|
259
|
-
var updater_out_modes_root_window_ = __webpack_require__(290);
|
|
260
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-size","commonjs2":"@tsparticles/updater-size","amd":"@tsparticles/updater-size","root":"window"}
|
|
261
|
-
var updater_size_root_window_ = __webpack_require__(2);
|
|
262
221
|
;// CONCATENATED MODULE: ./dist/browser/index.js
|
|
263
222
|
|
|
264
223
|
|
|
265
224
|
|
|
266
225
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
async function loadSeaAnemonePreset(engine) {
|
|
273
|
-
await (0,move_base_root_window_.loadBaseMover)(engine);
|
|
274
|
-
await (0,shape_circle_root_window_.loadCircleShape)(engine);
|
|
275
|
-
await (0,updater_color_root_window_.loadColorUpdater)(engine);
|
|
276
|
-
await (0,updater_opacity_root_window_.loadOpacityUpdater)(engine);
|
|
277
|
-
await (0,updater_out_modes_root_window_.loadOutModesUpdater)(engine);
|
|
278
|
-
await (0,updater_size_root_window_.loadSizeUpdater)(engine);
|
|
279
|
-
await (0,plugin_emitters_root_window_.loadEmittersPlugin)(engine);
|
|
280
|
-
await (0,path_curves_root_window_.loadCurvesPath)(engine);
|
|
281
|
-
await engine.addPreset(presetName, options);
|
|
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);
|
|
282
231
|
}
|
|
283
232
|
})();
|
|
284
233
|
|
|
@@ -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/
|
|
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})()));
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Author : Matteo Bruni
|
|
3
|
-
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
-
* Demo / Generator : https://particles.js.org/
|
|
5
|
-
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
-
* How to use? : Check the GitHub README
|
|
7
|
-
* v3.0.0-alpha.1
|
|
8
|
-
*/
|
|
1
|
+
/*! tsParticles Sea Anemone Preset v3.0.0-beta.2 by Matteo Bruni */
|
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): Promise<void>;
|
|
2
|
+
export declare function loadSeaAnemonePreset(engine: Engine, refresh?: boolean): Promise<void>;
|
package/umd/bundle.js
CHANGED
|
@@ -14,7 +14,5 @@
|
|
|
14
14
|
Object.defineProperty(exports, "loadSeaAnemonePreset", { enumerable: true, get: function () { return _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
|
-
(
|
|
18
|
-
await (0, _1.loadSeaAnemonePreset)(engine_1.tsParticles);
|
|
19
|
-
})();
|
|
17
|
+
(0, _1.loadSeaAnemonePreset)(engine_1.tsParticles);
|
|
20
18
|
});
|
package/umd/index.js
CHANGED
|
@@ -4,31 +4,21 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "./options", "@tsparticles/
|
|
7
|
+
define(["require", "exports", "./options", "@tsparticles/basic", "@tsparticles/path-curves", "@tsparticles/plugin-emitters"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.loadSeaAnemonePreset = void 0;
|
|
13
13
|
const options_1 = require("./options");
|
|
14
|
-
const
|
|
15
|
-
const shape_circle_1 = require("@tsparticles/shape-circle");
|
|
16
|
-
const updater_color_1 = require("@tsparticles/updater-color");
|
|
14
|
+
const basic_1 = require("@tsparticles/basic");
|
|
17
15
|
const path_curves_1 = require("@tsparticles/path-curves");
|
|
18
16
|
const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
await (
|
|
24
|
-
await (0, shape_circle_1.loadCircleShape)(engine);
|
|
25
|
-
await (0, updater_color_1.loadColorUpdater)(engine);
|
|
26
|
-
await (0, updater_opacity_1.loadOpacityUpdater)(engine);
|
|
27
|
-
await (0, updater_out_modes_1.loadOutModesUpdater)(engine);
|
|
28
|
-
await (0, updater_size_1.loadSizeUpdater)(engine);
|
|
29
|
-
await (0, plugin_emitters_1.loadEmittersPlugin)(engine);
|
|
30
|
-
await (0, path_curves_1.loadCurvesPath)(engine);
|
|
31
|
-
await engine.addPreset(options_1.presetName, options_1.options);
|
|
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_1.presetName, options_1.options, refresh);
|
|
32
22
|
}
|
|
33
23
|
exports.loadSeaAnemonePreset = loadSeaAnemonePreset;
|
|
34
24
|
});
|
package/umd/options.js
CHANGED
|
@@ -36,14 +36,16 @@
|
|
|
36
36
|
speed: 2,
|
|
37
37
|
straight: false,
|
|
38
38
|
trail: {
|
|
39
|
-
|
|
39
|
+
fill: {
|
|
40
|
+
color: "#000",
|
|
41
|
+
},
|
|
40
42
|
length: 30,
|
|
41
43
|
enable: true,
|
|
42
44
|
},
|
|
43
45
|
},
|
|
44
46
|
number: {
|
|
45
47
|
value: 0,
|
|
46
|
-
limit: 300,
|
|
48
|
+
limit: { value: 300 },
|
|
47
49
|
},
|
|
48
50
|
opacity: {
|
|
49
51
|
value: 1,
|