@tsparticles/configs 3.1.0 → 3.2.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/browser/b/backgroundMask.js +6 -4
- package/browser/b/backgroundMaskImage.js +70 -0
- package/browser/b/index.js +2 -0
- package/browser/e/emitterSpawnColor.js +163 -0
- package/browser/e/index.js +2 -0
- package/browser/f/fireworks2.js +3 -0
- package/browser/m/index.js +4 -0
- package/browser/m/mouseParticle.js +50 -0
- package/browser/m/mouseParticle2.js +61 -0
- package/browser/r/reactSimple.js +1 -3
- package/cjs/b/backgroundMask.js +6 -4
- package/cjs/b/backgroundMaskImage.js +72 -0
- package/cjs/b/index.js +2 -0
- package/cjs/e/emitterSpawnColor.js +165 -0
- package/cjs/e/index.js +2 -0
- package/cjs/f/fireworks2.js +3 -0
- package/cjs/m/index.js +4 -0
- package/cjs/m/mouseParticle.js +52 -0
- package/cjs/m/mouseParticle2.js +63 -0
- package/cjs/r/reactSimple.js +1 -3
- package/esm/b/backgroundMask.js +6 -4
- package/esm/b/backgroundMaskImage.js +70 -0
- package/esm/b/index.js +2 -0
- package/esm/e/emitterSpawnColor.js +163 -0
- package/esm/e/index.js +2 -0
- package/esm/f/fireworks2.js +3 -0
- package/esm/m/index.js +4 -0
- package/esm/m/mouseParticle.js +50 -0
- package/esm/m/mouseParticle2.js +61 -0
- package/esm/r/reactSimple.js +1 -3
- package/package.json +2 -2
- package/report.html +3 -3
- package/tsparticles.configs.bundle.js +30 -4
- package/tsparticles.configs.bundle.min.js +1 -1
- package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.configs.js +1793 -13305
- package/tsparticles.configs.min.js +1 -1
- package/tsparticles.configs.min.js.LICENSE.txt +1 -1
- package/types/b/backgroundMaskImage.d.ts +3 -0
- package/types/b/index.d.ts +1 -0
- package/types/e/emitterSpawnColor.d.ts +3 -0
- package/types/e/index.d.ts +1 -0
- package/types/index.d.ts +4 -0
- package/types/m/index.d.ts +2 -0
- package/types/m/mouseParticle.d.ts +3 -0
- package/types/m/mouseParticle2.d.ts +3 -0
- package/umd/b/backgroundMask.js +6 -4
- package/umd/b/backgroundMaskImage.js +82 -0
- package/umd/b/index.js +3 -1
- package/umd/e/emitterSpawnColor.js +175 -0
- package/umd/e/index.js +3 -1
- package/umd/f/fireworks2.js +3 -0
- package/umd/m/index.js +5 -1
- package/umd/m/mouseParticle.js +62 -0
- package/umd/m/mouseParticle2.js +73 -0
- package/umd/r/reactSimple.js +1 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Configs v3.1
|
|
1
|
+
/*! tsParticles Configs v3.2.1 by Matteo Bruni */
|
package/types/b/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
backgroundMask: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
3
|
+
backgroundMaskImage: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
3
4
|
basic: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
4
5
|
big: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
5
6
|
blackHole: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
package/types/e/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
|
8
8
|
emitterImages: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
9
9
|
emitterPaths: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
10
10
|
emitterShapes: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
11
|
+
emitterSpawnColor: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
11
12
|
emitterTextShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
12
13
|
emitterTextStrokeShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
13
14
|
};
|
package/types/index.d.ts
CHANGED
|
@@ -80,6 +80,8 @@ declare const configs: {
|
|
|
80
80
|
mouseAttract: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
81
81
|
mouseBounce: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
82
82
|
mouseFollow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
83
|
+
mouseParticle: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
84
|
+
mouseParticle2: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
83
85
|
mouseTrail: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
84
86
|
mouseTrailNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
85
87
|
moveAngle: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
@@ -117,6 +119,7 @@ declare const configs: {
|
|
|
117
119
|
emitterImages: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
118
120
|
emitterPaths: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
119
121
|
emitterShapes: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
122
|
+
emitterSpawnColor: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
120
123
|
emitterTextShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
121
124
|
emitterTextStrokeShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
122
125
|
dataImages: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
@@ -138,6 +141,7 @@ declare const configs: {
|
|
|
138
141
|
connect: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
139
142
|
curlNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
140
143
|
backgroundMask: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
144
|
+
backgroundMaskImage: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
141
145
|
basic: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
142
146
|
big: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
143
147
|
blackHole: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
package/types/m/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ declare const _default: {
|
|
|
5
5
|
mouseAttract: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
6
6
|
mouseBounce: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
7
7
|
mouseFollow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
8
|
+
mouseParticle: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
9
|
+
mouseParticle2: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
8
10
|
mouseTrail: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
9
11
|
mouseTrailNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
10
12
|
moveAngle: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
package/umd/b/backgroundMask.js
CHANGED
|
@@ -0,0 +1,82 @@
|
|
|
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"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const options = {
|
|
13
|
+
key: "backgroundMaskImage",
|
|
14
|
+
name: "Background Mask Image",
|
|
15
|
+
particles: {
|
|
16
|
+
number: {
|
|
17
|
+
value: 100,
|
|
18
|
+
},
|
|
19
|
+
color: {
|
|
20
|
+
value: "#ffffff",
|
|
21
|
+
},
|
|
22
|
+
shape: {
|
|
23
|
+
type: "circle",
|
|
24
|
+
},
|
|
25
|
+
opacity: {
|
|
26
|
+
value: 1,
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
value: {
|
|
30
|
+
min: 10,
|
|
31
|
+
max: 50,
|
|
32
|
+
},
|
|
33
|
+
animation: {
|
|
34
|
+
enable: true,
|
|
35
|
+
speed: 25,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
move: {
|
|
39
|
+
enable: true,
|
|
40
|
+
speed: 2,
|
|
41
|
+
direction: "none",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
interactivity: {
|
|
45
|
+
events: {
|
|
46
|
+
onHover: {
|
|
47
|
+
enable: true,
|
|
48
|
+
mode: "bubble",
|
|
49
|
+
},
|
|
50
|
+
onClick: {
|
|
51
|
+
enable: true,
|
|
52
|
+
mode: "push",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
modes: {
|
|
56
|
+
bubble: {
|
|
57
|
+
distance: 400,
|
|
58
|
+
size: 100,
|
|
59
|
+
duration: 2,
|
|
60
|
+
opacity: 1,
|
|
61
|
+
},
|
|
62
|
+
push: {
|
|
63
|
+
quantity: 4,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
backgroundMask: {
|
|
68
|
+
enable: true,
|
|
69
|
+
cover: {
|
|
70
|
+
image: "https://particles.js.org/images/background2.jpg",
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
background: {
|
|
74
|
+
color: "#ffffff",
|
|
75
|
+
image: "url('https://particles.js.org/images/background3.jpg')",
|
|
76
|
+
position: "50% 50%",
|
|
77
|
+
repeat: "no-repeat",
|
|
78
|
+
size: "cover",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
exports.default = options;
|
|
82
|
+
});
|
package/umd/b/index.js
CHANGED
|
@@ -7,18 +7,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
if (v !== undefined) module.exports = v;
|
|
8
8
|
}
|
|
9
9
|
else if (typeof define === "function" && define.amd) {
|
|
10
|
-
define(["require", "exports", "./backgroundMask.js", "./basic.js", "./big.js", "./blackHole.js", "./bubble.js"], factory);
|
|
10
|
+
define(["require", "exports", "./backgroundMask.js", "./backgroundMaskImage.js", "./basic.js", "./big.js", "./blackHole.js", "./bubble.js"], factory);
|
|
11
11
|
}
|
|
12
12
|
})(function (require, exports) {
|
|
13
13
|
"use strict";
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const backgroundMask_js_1 = __importDefault(require("./backgroundMask.js"));
|
|
16
|
+
const backgroundMaskImage_js_1 = __importDefault(require("./backgroundMaskImage.js"));
|
|
16
17
|
const basic_js_1 = __importDefault(require("./basic.js"));
|
|
17
18
|
const big_js_1 = __importDefault(require("./big.js"));
|
|
18
19
|
const blackHole_js_1 = __importDefault(require("./blackHole.js"));
|
|
19
20
|
const bubble_js_1 = __importDefault(require("./bubble.js"));
|
|
20
21
|
exports.default = {
|
|
21
22
|
backgroundMask: backgroundMask_js_1.default,
|
|
23
|
+
backgroundMaskImage: backgroundMaskImage_js_1.default,
|
|
22
24
|
basic: basic_js_1.default,
|
|
23
25
|
big: big_js_1.default,
|
|
24
26
|
blackHole: blackHole_js_1.default,
|
|
@@ -0,0 +1,175 @@
|
|
|
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"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const emitterRate = {
|
|
13
|
+
delay: 0.1,
|
|
14
|
+
quantity: 2,
|
|
15
|
+
}, options = {
|
|
16
|
+
key: "emitterSpawnColor",
|
|
17
|
+
name: "Emitter Spawn Color",
|
|
18
|
+
particles: {
|
|
19
|
+
opacity: {
|
|
20
|
+
value: 1,
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
value: 3,
|
|
24
|
+
},
|
|
25
|
+
life: {
|
|
26
|
+
count: 1,
|
|
27
|
+
duration: {
|
|
28
|
+
value: 5,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
move: {
|
|
32
|
+
enable: true,
|
|
33
|
+
speed: 3,
|
|
34
|
+
outModes: {
|
|
35
|
+
default: "destroy",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
background: {
|
|
40
|
+
color: "#000000",
|
|
41
|
+
},
|
|
42
|
+
emitters: [
|
|
43
|
+
{
|
|
44
|
+
position: {
|
|
45
|
+
x: 33,
|
|
46
|
+
y: 0,
|
|
47
|
+
},
|
|
48
|
+
rate: emitterRate,
|
|
49
|
+
particles: {
|
|
50
|
+
move: {
|
|
51
|
+
direction: "bottom-right",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
spawnColor: {
|
|
55
|
+
value: "#ff0000",
|
|
56
|
+
animation: {
|
|
57
|
+
h: {
|
|
58
|
+
enable: true,
|
|
59
|
+
speed: 10,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
position: {
|
|
66
|
+
x: 33,
|
|
67
|
+
y: 100,
|
|
68
|
+
},
|
|
69
|
+
rate: emitterRate,
|
|
70
|
+
particles: {
|
|
71
|
+
move: {
|
|
72
|
+
direction: "top-right",
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
spawnColor: {
|
|
76
|
+
value: "#ff0000",
|
|
77
|
+
animation: {
|
|
78
|
+
s: {
|
|
79
|
+
enable: true,
|
|
80
|
+
speed: 10,
|
|
81
|
+
offset: {
|
|
82
|
+
min: -10,
|
|
83
|
+
max: 10,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
position: {
|
|
91
|
+
x: 100,
|
|
92
|
+
y: 0,
|
|
93
|
+
},
|
|
94
|
+
rate: emitterRate,
|
|
95
|
+
particles: {
|
|
96
|
+
move: {
|
|
97
|
+
direction: "bottom-left",
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
spawnColor: {
|
|
101
|
+
value: "#ff0000",
|
|
102
|
+
animation: {
|
|
103
|
+
l: {
|
|
104
|
+
enable: true,
|
|
105
|
+
speed: 10,
|
|
106
|
+
offset: {
|
|
107
|
+
min: -10,
|
|
108
|
+
max: 10,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
position: {
|
|
116
|
+
x: 100,
|
|
117
|
+
y: 100,
|
|
118
|
+
},
|
|
119
|
+
rate: emitterRate,
|
|
120
|
+
particles: {
|
|
121
|
+
move: {
|
|
122
|
+
direction: "top-left",
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
spawnColor: {
|
|
126
|
+
value: "#ff0000",
|
|
127
|
+
animation: {
|
|
128
|
+
h: {
|
|
129
|
+
enable: true,
|
|
130
|
+
speed: 10,
|
|
131
|
+
},
|
|
132
|
+
s: {
|
|
133
|
+
enable: true,
|
|
134
|
+
speed: 10,
|
|
135
|
+
offset: {
|
|
136
|
+
min: -10,
|
|
137
|
+
max: 10,
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
position: {
|
|
145
|
+
x: 66,
|
|
146
|
+
y: 50,
|
|
147
|
+
},
|
|
148
|
+
rate: emitterRate,
|
|
149
|
+
particles: {
|
|
150
|
+
move: {
|
|
151
|
+
direction: "none",
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
spawnColor: {
|
|
155
|
+
value: "#ff0000",
|
|
156
|
+
animation: {
|
|
157
|
+
h: {
|
|
158
|
+
enable: true,
|
|
159
|
+
speed: 10,
|
|
160
|
+
},
|
|
161
|
+
l: {
|
|
162
|
+
enable: true,
|
|
163
|
+
speed: 10,
|
|
164
|
+
offset: {
|
|
165
|
+
min: -10,
|
|
166
|
+
max: 10,
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
};
|
|
174
|
+
exports.default = options;
|
|
175
|
+
});
|
package/umd/e/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
if (v !== undefined) module.exports = v;
|
|
8
8
|
}
|
|
9
9
|
else if (typeof define === "function" && define.amd) {
|
|
10
|
-
define(["require", "exports", "./effectBubble.js", "./effectTrail.js", "./emitter.js", "./emitterAbsorber.js", "./emitterAngled.js", "./emitterImageShape.js", "./emitterImages.js", "./emitterPaths.js", "./emitterShapes.js", "./emitterTextShape.js", "./emitterTextStrokeShape.js"], factory);
|
|
10
|
+
define(["require", "exports", "./effectBubble.js", "./effectTrail.js", "./emitter.js", "./emitterAbsorber.js", "./emitterAngled.js", "./emitterImageShape.js", "./emitterImages.js", "./emitterPaths.js", "./emitterShapes.js", "./emitterSpawnColor.js", "./emitterTextShape.js", "./emitterTextStrokeShape.js"], factory);
|
|
11
11
|
}
|
|
12
12
|
})(function (require, exports) {
|
|
13
13
|
"use strict";
|
|
@@ -21,6 +21,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
21
21
|
const emitterImages_js_1 = __importDefault(require("./emitterImages.js"));
|
|
22
22
|
const emitterPaths_js_1 = __importDefault(require("./emitterPaths.js"));
|
|
23
23
|
const emitterShapes_js_1 = __importDefault(require("./emitterShapes.js"));
|
|
24
|
+
const emitterSpawnColor_js_1 = __importDefault(require("./emitterSpawnColor.js"));
|
|
24
25
|
const emitterTextShape_js_1 = __importDefault(require("./emitterTextShape.js"));
|
|
25
26
|
const emitterTextStrokeShape_js_1 = __importDefault(require("./emitterTextStrokeShape.js"));
|
|
26
27
|
exports.default = {
|
|
@@ -33,6 +34,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
34
|
emitterImages: emitterImages_js_1.default,
|
|
34
35
|
emitterPaths: emitterPaths_js_1.default,
|
|
35
36
|
emitterShapes: emitterShapes_js_1.default,
|
|
37
|
+
emitterSpawnColor: emitterSpawnColor_js_1.default,
|
|
36
38
|
emitterTextShape: emitterTextShape_js_1.default,
|
|
37
39
|
emitterTextStrokeShape: emitterTextStrokeShape_js_1.default,
|
|
38
40
|
};
|
package/umd/f/fireworks2.js
CHANGED
package/umd/m/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
if (v !== undefined) module.exports = v;
|
|
8
8
|
}
|
|
9
9
|
else if (typeof define === "function" && define.amd) {
|
|
10
|
-
define(["require", "exports", "./manual.js", "./motionDisable.js", "./motionReduce.js", "./mouseAttract.js", "./mouseBounce.js", "./mouseFollow.js", "./mouseTrail.js", "./mouseTrailNoise.js", "./moveAngle.js", "./moveDistance.js", "./moveInside.js", "./moveOutside.js", "./multipleClickEmitters.js", "./multiplePolygonMasks.js"], factory);
|
|
10
|
+
define(["require", "exports", "./manual.js", "./motionDisable.js", "./motionReduce.js", "./mouseAttract.js", "./mouseBounce.js", "./mouseFollow.js", "./mouseParticle.js", "./mouseParticle2.js", "./mouseTrail.js", "./mouseTrailNoise.js", "./moveAngle.js", "./moveDistance.js", "./moveInside.js", "./moveOutside.js", "./multipleClickEmitters.js", "./multiplePolygonMasks.js"], factory);
|
|
11
11
|
}
|
|
12
12
|
})(function (require, exports) {
|
|
13
13
|
"use strict";
|
|
@@ -18,6 +18,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
const mouseAttract_js_1 = __importDefault(require("./mouseAttract.js"));
|
|
19
19
|
const mouseBounce_js_1 = __importDefault(require("./mouseBounce.js"));
|
|
20
20
|
const mouseFollow_js_1 = __importDefault(require("./mouseFollow.js"));
|
|
21
|
+
const mouseParticle_js_1 = __importDefault(require("./mouseParticle.js"));
|
|
22
|
+
const mouseParticle2_js_1 = __importDefault(require("./mouseParticle2.js"));
|
|
21
23
|
const mouseTrail_js_1 = __importDefault(require("./mouseTrail.js"));
|
|
22
24
|
const mouseTrailNoise_js_1 = __importDefault(require("./mouseTrailNoise.js"));
|
|
23
25
|
const moveAngle_js_1 = __importDefault(require("./moveAngle.js"));
|
|
@@ -33,6 +35,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
35
|
mouseAttract: mouseAttract_js_1.default,
|
|
34
36
|
mouseBounce: mouseBounce_js_1.default,
|
|
35
37
|
mouseFollow: mouseFollow_js_1.default,
|
|
38
|
+
mouseParticle: mouseParticle_js_1.default,
|
|
39
|
+
mouseParticle2: mouseParticle2_js_1.default,
|
|
36
40
|
mouseTrail: mouseTrail_js_1.default,
|
|
37
41
|
mouseTrailNoise: mouseTrailNoise_js_1.default,
|
|
38
42
|
moveAngle: moveAngle_js_1.default,
|
|
@@ -0,0 +1,62 @@
|
|
|
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"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const options = {
|
|
13
|
+
key: "mouseParticle",
|
|
14
|
+
name: "Mouse Particle",
|
|
15
|
+
fullScreen: {
|
|
16
|
+
zIndex: 10000,
|
|
17
|
+
},
|
|
18
|
+
particles: {
|
|
19
|
+
number: {
|
|
20
|
+
value: 0,
|
|
21
|
+
},
|
|
22
|
+
color: {
|
|
23
|
+
value: ["#ff0000", "#00ff00", "#0000ff"],
|
|
24
|
+
animation: {
|
|
25
|
+
enable: true,
|
|
26
|
+
speed: 180,
|
|
27
|
+
sync: true,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
effect: {
|
|
31
|
+
type: "trail",
|
|
32
|
+
options: {
|
|
33
|
+
trail: {
|
|
34
|
+
length: 10,
|
|
35
|
+
minWidth: 2,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
shape: {
|
|
40
|
+
type: "circle",
|
|
41
|
+
},
|
|
42
|
+
size: {
|
|
43
|
+
value: 3,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
interactivity: {
|
|
47
|
+
events: {
|
|
48
|
+
onHover: {
|
|
49
|
+
enable: true,
|
|
50
|
+
mode: "particle",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
modes: {
|
|
54
|
+
particle: {
|
|
55
|
+
replaceCursor: true,
|
|
56
|
+
pauseOnStop: true,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
exports.default = options;
|
|
62
|
+
});
|
|
@@ -0,0 +1,73 @@
|
|
|
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"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const options = {
|
|
13
|
+
key: "mouseParticle2",
|
|
14
|
+
name: "Mouse Particle 2",
|
|
15
|
+
background: {
|
|
16
|
+
color: "#000000",
|
|
17
|
+
},
|
|
18
|
+
particles: {
|
|
19
|
+
number: {
|
|
20
|
+
value: 80,
|
|
21
|
+
density: {
|
|
22
|
+
enable: true,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
color: {
|
|
26
|
+
value: "#ff0000",
|
|
27
|
+
animation: {
|
|
28
|
+
enable: true,
|
|
29
|
+
speed: 20,
|
|
30
|
+
sync: true,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
shape: {
|
|
34
|
+
type: "circle",
|
|
35
|
+
},
|
|
36
|
+
opacity: {
|
|
37
|
+
value: 0.5,
|
|
38
|
+
},
|
|
39
|
+
size: {
|
|
40
|
+
value: {
|
|
41
|
+
min: 1,
|
|
42
|
+
max: 3,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
links: {
|
|
46
|
+
enable: true,
|
|
47
|
+
distance: 200,
|
|
48
|
+
color: "#ffffff",
|
|
49
|
+
opacity: 0.4,
|
|
50
|
+
width: 1,
|
|
51
|
+
},
|
|
52
|
+
move: {
|
|
53
|
+
enable: true,
|
|
54
|
+
speed: 6,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
interactivity: {
|
|
58
|
+
events: {
|
|
59
|
+
onHover: {
|
|
60
|
+
enable: true,
|
|
61
|
+
mode: "particle",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
modes: {
|
|
65
|
+
particle: {
|
|
66
|
+
replaceCursor: false,
|
|
67
|
+
pauseOnStop: false,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
exports.default = options;
|
|
73
|
+
});
|