@tsparticles/preset-sea-anemone 3.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.
package/umd/index.js ADDED
@@ -0,0 +1,34 @@
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports", "./options", "@tsparticles/move-base", "@tsparticles/shape-circle", "@tsparticles/updater-color", "@tsparticles/path-curves", "@tsparticles/plugin-emitters", "@tsparticles/updater-opacity", "@tsparticles/updater-out-modes", "@tsparticles/updater-size"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.loadSeaAnemonePreset = void 0;
13
+ const options_1 = require("./options");
14
+ const move_base_1 = require("@tsparticles/move-base");
15
+ const shape_circle_1 = require("@tsparticles/shape-circle");
16
+ const updater_color_1 = require("@tsparticles/updater-color");
17
+ const path_curves_1 = require("@tsparticles/path-curves");
18
+ const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
19
+ const updater_opacity_1 = require("@tsparticles/updater-opacity");
20
+ const updater_out_modes_1 = require("@tsparticles/updater-out-modes");
21
+ const updater_size_1 = require("@tsparticles/updater-size");
22
+ async function loadSeaAnemonePreset(engine) {
23
+ await (0, move_base_1.loadBaseMover)(engine);
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);
32
+ }
33
+ exports.loadSeaAnemonePreset = loadSeaAnemonePreset;
34
+ });
package/umd/options.js ADDED
@@ -0,0 +1,109 @@
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports", "@tsparticles/path-curves"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ "use strict";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.options = exports.presetName = void 0;
13
+ const path_curves_1 = require("@tsparticles/path-curves");
14
+ exports.presetName = "seaAnemone";
15
+ exports.options = {
16
+ fpsLimit: 120,
17
+ particles: {
18
+ color: {
19
+ value: "#FF0000",
20
+ },
21
+ move: {
22
+ direction: "none",
23
+ enable: true,
24
+ outModes: {
25
+ default: "destroy",
26
+ },
27
+ path: {
28
+ clamp: false,
29
+ enable: true,
30
+ delay: {
31
+ value: 0,
32
+ },
33
+ generator: path_curves_1.curvesPathName,
34
+ },
35
+ random: false,
36
+ speed: 2,
37
+ straight: false,
38
+ trail: {
39
+ fillColor: "#000",
40
+ length: 30,
41
+ enable: true,
42
+ },
43
+ },
44
+ number: {
45
+ value: 0,
46
+ limit: 300,
47
+ },
48
+ opacity: {
49
+ value: 1,
50
+ },
51
+ shape: {
52
+ type: "circle",
53
+ },
54
+ size: {
55
+ value: { min: 1, max: 10 },
56
+ animation: {
57
+ count: 1,
58
+ startValue: "min",
59
+ enable: true,
60
+ speed: 10,
61
+ sync: true,
62
+ },
63
+ },
64
+ },
65
+ background: {
66
+ color: "#000",
67
+ },
68
+ detectRetina: true,
69
+ emitters: {
70
+ direction: "none",
71
+ rate: {
72
+ quantity: 10,
73
+ delay: 0.3,
74
+ },
75
+ size: {
76
+ width: 0,
77
+ height: 0,
78
+ mode: "precise",
79
+ },
80
+ spawnColor: {
81
+ value: "#ff0000",
82
+ animation: {
83
+ h: {
84
+ enable: true,
85
+ offset: {
86
+ min: -1.4,
87
+ max: 1.4,
88
+ },
89
+ speed: 5,
90
+ sync: false,
91
+ },
92
+ l: {
93
+ enable: true,
94
+ offset: {
95
+ min: 20,
96
+ max: 80,
97
+ },
98
+ speed: 0,
99
+ sync: false,
100
+ },
101
+ },
102
+ },
103
+ position: {
104
+ x: 50,
105
+ y: 50,
106
+ },
107
+ },
108
+ };
109
+ });