@tsparticles/configs 3.0.0-beta.3 → 3.0.0-beta.4
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/c/connect.js +3 -1
- package/browser/c/curlNoise.js +49 -0
- package/browser/c/index.js +2 -0
- package/browser/d/dataImages.js +0 -1
- package/browser/{s/shapeBubble.js → e/effectBubble.js} +5 -2
- package/browser/e/effectTrail.js +53 -0
- package/browser/e/emitterImageShape.js +95 -0
- package/browser/e/emitterImages.js +0 -1
- package/browser/e/emitterShapes.js +56 -70
- package/browser/e/emitterTextShape.js +100 -0
- package/browser/e/emitterTextStrokeShape.js +100 -0
- package/browser/e/index.js +10 -0
- package/browser/f/fontawesome.js +0 -1
- package/browser/g/gifs.js +1 -1
- package/browser/h/hollowknight.js +0 -1
- package/browser/i/images.js +0 -1
- package/browser/l/localPolygonMask.js +0 -1
- package/browser/m/index.js +2 -0
- package/browser/m/mouseTrailNoise.js +118 -0
- package/browser/m/multiplePolygonMasks.js +0 -1
- package/browser/o/orbit.js +1 -1
- package/browser/p/index.js +2 -0
- package/browser/p/pathPolygonMask.js +0 -1
- package/browser/p/pathSvg.js +0 -1
- package/browser/p/polygonMask.js +0 -1
- package/browser/p/pop.js +67 -0
- package/browser/r/random.js +1 -1
- package/browser/r/reactBubbles.js +0 -1
- package/browser/r/reactNightSky.js +0 -1
- package/browser/r/reactPolygonMask.js +0 -1
- package/browser/r/reactSimple.js +0 -1
- package/browser/r/reactSnow.js +0 -1
- package/browser/r/ring.js +1 -1
- package/browser/s/index.js +0 -2
- package/browser/s/shapeMultilineText.js +2 -2
- package/browser/s/style.js +1 -1
- package/browser/s/svgReplace.js +0 -1
- package/browser/t/tilt.js +1 -1
- package/browser/t/trail.js +1 -1
- package/browser/t/trailImage.js +1 -1
- package/browser/w/wobble.js +1 -1
- package/cjs/c/connect.js +3 -1
- package/cjs/c/curlNoise.js +51 -0
- package/cjs/c/index.js +2 -0
- package/cjs/d/dataImages.js +0 -1
- package/cjs/{s/shapeBubble.js → e/effectBubble.js} +5 -2
- package/cjs/e/effectTrail.js +55 -0
- package/cjs/e/emitterImageShape.js +97 -0
- package/cjs/e/emitterImages.js +0 -1
- package/cjs/e/emitterShapes.js +56 -70
- package/cjs/e/emitterTextShape.js +102 -0
- package/cjs/e/emitterTextStrokeShape.js +102 -0
- package/cjs/e/index.js +10 -0
- package/cjs/f/fontawesome.js +0 -1
- package/cjs/g/gifs.js +1 -1
- package/cjs/h/hollowknight.js +0 -1
- package/cjs/i/images.js +0 -1
- package/cjs/l/localPolygonMask.js +0 -1
- package/cjs/m/index.js +2 -0
- package/cjs/m/mouseTrailNoise.js +120 -0
- package/cjs/m/multiplePolygonMasks.js +0 -1
- package/cjs/o/orbit.js +1 -1
- package/cjs/p/index.js +2 -0
- package/cjs/p/pathPolygonMask.js +0 -1
- package/cjs/p/pathSvg.js +0 -1
- package/cjs/p/polygonMask.js +0 -1
- package/cjs/p/pop.js +69 -0
- package/cjs/r/random.js +1 -1
- package/cjs/r/reactBubbles.js +0 -1
- package/cjs/r/reactNightSky.js +0 -1
- package/cjs/r/reactPolygonMask.js +0 -1
- package/cjs/r/reactSimple.js +0 -1
- package/cjs/r/reactSnow.js +0 -1
- package/cjs/r/ring.js +1 -1
- package/cjs/s/index.js +0 -2
- package/cjs/s/shapeMultilineText.js +2 -2
- package/cjs/s/style.js +1 -1
- package/cjs/s/svgReplace.js +0 -1
- package/cjs/t/tilt.js +1 -1
- package/cjs/t/trail.js +1 -1
- package/cjs/t/trailImage.js +1 -1
- package/cjs/w/wobble.js +1 -1
- package/esm/c/connect.js +3 -1
- package/esm/c/curlNoise.js +49 -0
- package/esm/c/index.js +2 -0
- package/esm/d/dataImages.js +0 -1
- package/esm/{s/shapeBubble.js → e/effectBubble.js} +5 -2
- package/esm/e/effectTrail.js +53 -0
- package/esm/e/emitterImageShape.js +95 -0
- package/esm/e/emitterImages.js +0 -1
- package/esm/e/emitterShapes.js +56 -70
- package/esm/e/emitterTextShape.js +100 -0
- package/esm/e/emitterTextStrokeShape.js +100 -0
- package/esm/e/index.js +10 -0
- package/esm/f/fontawesome.js +0 -1
- package/esm/g/gifs.js +1 -1
- package/esm/h/hollowknight.js +0 -1
- package/esm/i/images.js +0 -1
- package/esm/l/localPolygonMask.js +0 -1
- package/esm/m/index.js +2 -0
- package/esm/m/mouseTrailNoise.js +118 -0
- package/esm/m/multiplePolygonMasks.js +0 -1
- package/esm/o/orbit.js +1 -1
- package/esm/p/index.js +2 -0
- package/esm/p/pathPolygonMask.js +0 -1
- package/esm/p/pathSvg.js +0 -1
- package/esm/p/polygonMask.js +0 -1
- package/esm/p/pop.js +67 -0
- package/esm/r/random.js +1 -1
- package/esm/r/reactBubbles.js +0 -1
- package/esm/r/reactNightSky.js +0 -1
- package/esm/r/reactPolygonMask.js +0 -1
- package/esm/r/reactSimple.js +0 -1
- package/esm/r/reactSnow.js +0 -1
- package/esm/r/ring.js +1 -1
- package/esm/s/index.js +0 -2
- package/esm/s/shapeMultilineText.js +2 -2
- package/esm/s/style.js +1 -1
- package/esm/s/svgReplace.js +0 -1
- package/esm/t/tilt.js +1 -1
- package/esm/t/trail.js +1 -1
- package/esm/t/trailImage.js +1 -1
- package/esm/w/wobble.js +1 -1
- package/package.json +2 -2
- package/report.html +4 -22
- package/tsparticles.configs.bundle.js +1 -1
- package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.configs.js +762 -159
- package/tsparticles.configs.min.js +1 -1
- package/tsparticles.configs.min.js.LICENSE.txt +1 -1
- package/types/c/index.d.ts +1 -0
- package/types/e/effectBubble.d.ts +3 -0
- package/types/e/effectTrail.d.ts +3 -0
- package/types/e/emitterImageShape.d.ts +3 -0
- package/types/e/emitterTextShape.d.ts +3 -0
- package/types/e/emitterTextStrokeShape.d.ts +3 -0
- package/types/e/index.d.ts +5 -0
- package/types/index.d.ts +8 -1
- package/types/m/index.d.ts +1 -0
- package/types/m/mouseTrailNoise.d.ts +3 -0
- package/types/p/index.d.ts +1 -0
- package/types/p/pop.d.ts +3 -0
- package/types/s/index.d.ts +0 -1
- package/umd/c/connect.js +3 -1
- package/umd/c/curlNoise.js +61 -0
- package/umd/c/index.js +3 -1
- package/umd/d/dataImages.js +0 -1
- package/umd/{s/shapeBubble.js → e/effectBubble.js} +5 -2
- package/umd/e/effectTrail.js +65 -0
- package/umd/e/emitterImageShape.js +107 -0
- package/umd/e/emitterImages.js +0 -1
- package/umd/e/emitterShapes.js +56 -70
- package/umd/e/emitterTextShape.js +112 -0
- package/umd/e/emitterTextStrokeShape.js +112 -0
- package/umd/e/index.js +11 -1
- package/umd/f/fontawesome.js +0 -1
- package/umd/g/gifs.js +1 -1
- package/umd/h/hollowknight.js +0 -1
- package/umd/i/images.js +0 -1
- package/umd/l/localPolygonMask.js +0 -1
- package/umd/m/index.js +3 -1
- package/umd/m/mouseTrailNoise.js +130 -0
- package/umd/m/multiplePolygonMasks.js +0 -1
- package/umd/o/orbit.js +1 -1
- package/umd/p/index.js +3 -1
- package/umd/p/pathPolygonMask.js +0 -1
- package/umd/p/pathSvg.js +0 -1
- package/umd/p/polygonMask.js +0 -1
- package/umd/p/pop.js +79 -0
- package/umd/r/random.js +1 -1
- package/umd/r/reactBubbles.js +0 -1
- package/umd/r/reactNightSky.js +0 -1
- package/umd/r/reactPolygonMask.js +0 -1
- package/umd/r/reactSimple.js +0 -1
- package/umd/r/reactSnow.js +0 -1
- package/umd/r/ring.js +1 -1
- package/umd/s/index.js +1 -3
- package/umd/s/shapeMultilineText.js +2 -2
- package/umd/s/style.js +1 -1
- package/umd/s/svgReplace.js +0 -1
- package/umd/t/tilt.js +1 -1
- package/umd/t/trail.js +1 -1
- package/umd/t/trailImage.js +1 -1
- package/umd/w/wobble.js +1 -1
- /package/types/{s/shapeBubble.d.ts → c/curlNoise.d.ts} +0 -0
package/cjs/e/emitterShapes.js
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const rate = {
|
|
4
|
+
delay: 0.1,
|
|
5
|
+
quantity: 3,
|
|
6
|
+
};
|
|
7
|
+
const generateEmitter = (shape, options, fill, position) => {
|
|
8
|
+
return {
|
|
9
|
+
shape: {
|
|
10
|
+
type: shape,
|
|
11
|
+
options,
|
|
12
|
+
},
|
|
13
|
+
position: position,
|
|
14
|
+
size: {
|
|
15
|
+
width: 200,
|
|
16
|
+
height: 200,
|
|
17
|
+
mode: "precise",
|
|
18
|
+
},
|
|
19
|
+
life: {
|
|
20
|
+
duration: 10,
|
|
21
|
+
delay: 0.5,
|
|
22
|
+
count: 1,
|
|
23
|
+
},
|
|
24
|
+
rate,
|
|
25
|
+
fill,
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
const path = [
|
|
29
|
+
{ x: 0, y: 0 },
|
|
30
|
+
{ x: 0, y: 50 },
|
|
31
|
+
{ x: 25, y: 50 },
|
|
32
|
+
{ x: 0, y: 100 },
|
|
33
|
+
{ x: 50, y: 100 },
|
|
34
|
+
{ x: 50, y: 75 },
|
|
35
|
+
{ x: 100, y: 100 },
|
|
36
|
+
{ x: 100, y: 50 },
|
|
37
|
+
{ x: 75, y: 50 },
|
|
38
|
+
{ x: 100, y: 0 },
|
|
39
|
+
{ x: 50, y: 0 },
|
|
40
|
+
{ x: 50, y: 25 },
|
|
41
|
+
];
|
|
3
42
|
const options = {
|
|
4
43
|
name: "Emitter Shapes",
|
|
5
44
|
particles: {
|
|
@@ -23,76 +62,23 @@ const options = {
|
|
|
23
62
|
color: "#fff",
|
|
24
63
|
},
|
|
25
64
|
emitters: [
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
shape: "circle",
|
|
45
|
-
position: {
|
|
46
|
-
x: 67,
|
|
47
|
-
y: 33,
|
|
48
|
-
},
|
|
49
|
-
size: {
|
|
50
|
-
width: 200,
|
|
51
|
-
height: 200,
|
|
52
|
-
mode: "precise",
|
|
53
|
-
},
|
|
54
|
-
life: {
|
|
55
|
-
duration: 10,
|
|
56
|
-
delay: 0.5,
|
|
57
|
-
count: 1,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
fill: false,
|
|
62
|
-
shape: "square",
|
|
63
|
-
position: {
|
|
64
|
-
x: 33,
|
|
65
|
-
y: 67,
|
|
66
|
-
},
|
|
67
|
-
size: {
|
|
68
|
-
width: 200,
|
|
69
|
-
height: 200,
|
|
70
|
-
mode: "precise",
|
|
71
|
-
},
|
|
72
|
-
life: {
|
|
73
|
-
duration: 10,
|
|
74
|
-
delay: 0.5,
|
|
75
|
-
count: 1,
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
fill: false,
|
|
80
|
-
shape: "circle",
|
|
81
|
-
position: {
|
|
82
|
-
x: 67,
|
|
83
|
-
y: 67,
|
|
84
|
-
},
|
|
85
|
-
size: {
|
|
86
|
-
width: 200,
|
|
87
|
-
height: 200,
|
|
88
|
-
mode: "precise",
|
|
89
|
-
},
|
|
90
|
-
life: {
|
|
91
|
-
duration: 10,
|
|
92
|
-
delay: 0.5,
|
|
93
|
-
count: 1,
|
|
94
|
-
},
|
|
95
|
-
},
|
|
65
|
+
generateEmitter("square", {}, true, { x: 25, y: 25 }),
|
|
66
|
+
generateEmitter("circle", {}, true, { x: 50, y: 25 }),
|
|
67
|
+
generateEmitter("polygon", {
|
|
68
|
+
angle: -18,
|
|
69
|
+
sides: 5,
|
|
70
|
+
}, true, { x: 75, y: 25 }),
|
|
71
|
+
generateEmitter("square", {}, false, { x: 25, y: 50 }),
|
|
72
|
+
generateEmitter("circle", {}, false, { x: 50, y: 50 }),
|
|
73
|
+
generateEmitter("polygon", {
|
|
74
|
+
sides: 6,
|
|
75
|
+
}, false, { x: 75, y: 50 }),
|
|
76
|
+
generateEmitter("path", {
|
|
77
|
+
points: path,
|
|
78
|
+
}, true, { x: 25, y: 75 }),
|
|
79
|
+
generateEmitter("path", {
|
|
80
|
+
points: path,
|
|
81
|
+
}, false, { x: 50, y: 75 }),
|
|
96
82
|
],
|
|
97
83
|
};
|
|
98
84
|
exports.default = options;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const rate = {
|
|
4
|
+
delay: 0.1,
|
|
5
|
+
quantity: 100,
|
|
6
|
+
};
|
|
7
|
+
const generateEmitter = (shape, options, fill, position) => {
|
|
8
|
+
return {
|
|
9
|
+
shape: {
|
|
10
|
+
type: shape,
|
|
11
|
+
options,
|
|
12
|
+
},
|
|
13
|
+
position: position,
|
|
14
|
+
size: {
|
|
15
|
+
width: 500,
|
|
16
|
+
height: 500,
|
|
17
|
+
mode: "precise",
|
|
18
|
+
},
|
|
19
|
+
startCount: 300,
|
|
20
|
+
rate,
|
|
21
|
+
fill,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
const options = {
|
|
25
|
+
name: "Emitter Text Shape",
|
|
26
|
+
particles: {
|
|
27
|
+
number: {
|
|
28
|
+
value: 0,
|
|
29
|
+
},
|
|
30
|
+
color: {
|
|
31
|
+
value: [
|
|
32
|
+
"#f44336",
|
|
33
|
+
"#e91e63",
|
|
34
|
+
"#9c27b0",
|
|
35
|
+
"#673ab7",
|
|
36
|
+
"#3f51b5",
|
|
37
|
+
"#2196f3",
|
|
38
|
+
"#03a9f4",
|
|
39
|
+
"#00bcd4",
|
|
40
|
+
"#009688",
|
|
41
|
+
"#4CAF50",
|
|
42
|
+
"#8BC34A",
|
|
43
|
+
"#CDDC39",
|
|
44
|
+
"#FFEB3B",
|
|
45
|
+
"#FFC107",
|
|
46
|
+
"#FF9800",
|
|
47
|
+
"#FF5722",
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
life: {
|
|
51
|
+
count: 1,
|
|
52
|
+
duration: {
|
|
53
|
+
value: 1.5,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
move: {
|
|
57
|
+
enable: true,
|
|
58
|
+
speed: 0.5,
|
|
59
|
+
},
|
|
60
|
+
shape: {
|
|
61
|
+
type: "circle",
|
|
62
|
+
},
|
|
63
|
+
opacity: {
|
|
64
|
+
value: 1,
|
|
65
|
+
},
|
|
66
|
+
size: {
|
|
67
|
+
value: { min: 1, max: 10 },
|
|
68
|
+
animation: {
|
|
69
|
+
enable: true,
|
|
70
|
+
speed: 30,
|
|
71
|
+
sync: true,
|
|
72
|
+
startValue: "min",
|
|
73
|
+
count: 2,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
background: {
|
|
78
|
+
color: "#fff",
|
|
79
|
+
},
|
|
80
|
+
emitters: [
|
|
81
|
+
generateEmitter("canvas", {
|
|
82
|
+
scale: 1,
|
|
83
|
+
pixels: {
|
|
84
|
+
filter: "pixelTextFilter",
|
|
85
|
+
offset: 4,
|
|
86
|
+
},
|
|
87
|
+
text: {
|
|
88
|
+
color: "#ff0000",
|
|
89
|
+
font: {
|
|
90
|
+
size: 500,
|
|
91
|
+
family: "Verdana",
|
|
92
|
+
},
|
|
93
|
+
text: "Particles",
|
|
94
|
+
lines: {
|
|
95
|
+
separator: "\n",
|
|
96
|
+
spacing: 10,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
}, true, { x: 50, y: 50 }),
|
|
100
|
+
],
|
|
101
|
+
};
|
|
102
|
+
exports.default = options;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const rate = {
|
|
4
|
+
delay: 0.1,
|
|
5
|
+
quantity: 100,
|
|
6
|
+
};
|
|
7
|
+
const generateEmitter = (shape, options, fill, position) => {
|
|
8
|
+
return {
|
|
9
|
+
shape: {
|
|
10
|
+
type: shape,
|
|
11
|
+
options,
|
|
12
|
+
},
|
|
13
|
+
position: position,
|
|
14
|
+
size: {
|
|
15
|
+
width: 500,
|
|
16
|
+
height: 500,
|
|
17
|
+
mode: "precise",
|
|
18
|
+
},
|
|
19
|
+
startCount: 300,
|
|
20
|
+
rate,
|
|
21
|
+
fill,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
const options = {
|
|
25
|
+
name: "Emitter Text Stroke Shape",
|
|
26
|
+
particles: {
|
|
27
|
+
number: {
|
|
28
|
+
value: 0,
|
|
29
|
+
},
|
|
30
|
+
color: {
|
|
31
|
+
value: [
|
|
32
|
+
"#f44336",
|
|
33
|
+
"#e91e63",
|
|
34
|
+
"#9c27b0",
|
|
35
|
+
"#673ab7",
|
|
36
|
+
"#3f51b5",
|
|
37
|
+
"#2196f3",
|
|
38
|
+
"#03a9f4",
|
|
39
|
+
"#00bcd4",
|
|
40
|
+
"#009688",
|
|
41
|
+
"#4CAF50",
|
|
42
|
+
"#8BC34A",
|
|
43
|
+
"#CDDC39",
|
|
44
|
+
"#FFEB3B",
|
|
45
|
+
"#FFC107",
|
|
46
|
+
"#FF9800",
|
|
47
|
+
"#FF5722",
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
life: {
|
|
51
|
+
count: 1,
|
|
52
|
+
duration: {
|
|
53
|
+
value: 1.5,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
move: {
|
|
57
|
+
enable: true,
|
|
58
|
+
speed: 0.5,
|
|
59
|
+
},
|
|
60
|
+
shape: {
|
|
61
|
+
type: "circle",
|
|
62
|
+
},
|
|
63
|
+
opacity: {
|
|
64
|
+
value: 1,
|
|
65
|
+
},
|
|
66
|
+
size: {
|
|
67
|
+
value: { min: 1, max: 10 },
|
|
68
|
+
animation: {
|
|
69
|
+
enable: true,
|
|
70
|
+
speed: 30,
|
|
71
|
+
sync: true,
|
|
72
|
+
startValue: "min",
|
|
73
|
+
count: 2,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
background: {
|
|
78
|
+
color: "#fff",
|
|
79
|
+
},
|
|
80
|
+
emitters: [
|
|
81
|
+
generateEmitter("canvas", {
|
|
82
|
+
scale: 1,
|
|
83
|
+
pixels: {
|
|
84
|
+
filter: "pixelTextFilter",
|
|
85
|
+
offset: 4,
|
|
86
|
+
},
|
|
87
|
+
text: {
|
|
88
|
+
color: "#ff0000",
|
|
89
|
+
font: {
|
|
90
|
+
size: 500,
|
|
91
|
+
family: "Verdana",
|
|
92
|
+
},
|
|
93
|
+
text: "Particles",
|
|
94
|
+
lines: {
|
|
95
|
+
separator: "\n",
|
|
96
|
+
spacing: 10,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
}, false, { x: 50, y: 50 }),
|
|
100
|
+
],
|
|
101
|
+
};
|
|
102
|
+
exports.default = options;
|
package/cjs/e/index.js
CHANGED
|
@@ -3,17 +3,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const effectBubble_js_1 = __importDefault(require("./effectBubble.js"));
|
|
7
|
+
const effectTrail_js_1 = __importDefault(require("./effectTrail.js"));
|
|
6
8
|
const emitter_js_1 = __importDefault(require("./emitter.js"));
|
|
7
9
|
const emitterAbsorber_js_1 = __importDefault(require("./emitterAbsorber.js"));
|
|
8
10
|
const emitterAngled_js_1 = __importDefault(require("./emitterAngled.js"));
|
|
11
|
+
const emitterImageShape_js_1 = __importDefault(require("./emitterImageShape.js"));
|
|
9
12
|
const emitterImages_js_1 = __importDefault(require("./emitterImages.js"));
|
|
10
13
|
const emitterPaths_js_1 = __importDefault(require("./emitterPaths.js"));
|
|
11
14
|
const emitterShapes_js_1 = __importDefault(require("./emitterShapes.js"));
|
|
15
|
+
const emitterTextShape_js_1 = __importDefault(require("./emitterTextShape.js"));
|
|
16
|
+
const emitterTextStrokeShape_js_1 = __importDefault(require("./emitterTextStrokeShape.js"));
|
|
12
17
|
exports.default = {
|
|
18
|
+
effectBubble: effectBubble_js_1.default,
|
|
19
|
+
effectTrail: effectTrail_js_1.default,
|
|
13
20
|
emitter: emitter_js_1.default,
|
|
14
21
|
emitterAbsorber: emitterAbsorber_js_1.default,
|
|
15
22
|
emitterAngled: emitterAngled_js_1.default,
|
|
23
|
+
emitterImageShape: emitterImageShape_js_1.default,
|
|
16
24
|
emitterImages: emitterImages_js_1.default,
|
|
17
25
|
emitterPaths: emitterPaths_js_1.default,
|
|
18
26
|
emitterShapes: emitterShapes_js_1.default,
|
|
27
|
+
emitterTextShape: emitterTextShape_js_1.default,
|
|
28
|
+
emitterTextStrokeShape: emitterTextStrokeShape_js_1.default,
|
|
19
29
|
};
|
package/cjs/f/fontawesome.js
CHANGED
package/cjs/g/gifs.js
CHANGED
package/cjs/h/hollowknight.js
CHANGED
package/cjs/i/images.js
CHANGED
package/cjs/m/index.js
CHANGED
|
@@ -10,6 +10,7 @@ const mouseAttract_js_1 = __importDefault(require("./mouseAttract.js"));
|
|
|
10
10
|
const mouseBounce_js_1 = __importDefault(require("./mouseBounce.js"));
|
|
11
11
|
const mouseFollow_js_1 = __importDefault(require("./mouseFollow.js"));
|
|
12
12
|
const mouseTrail_js_1 = __importDefault(require("./mouseTrail.js"));
|
|
13
|
+
const mouseTrailNoise_js_1 = __importDefault(require("./mouseTrailNoise.js"));
|
|
13
14
|
const moveAngle_js_1 = __importDefault(require("./moveAngle.js"));
|
|
14
15
|
const moveDistance_js_1 = __importDefault(require("./moveDistance.js"));
|
|
15
16
|
const moveInside_js_1 = __importDefault(require("./moveInside.js"));
|
|
@@ -24,6 +25,7 @@ exports.default = {
|
|
|
24
25
|
mouseBounce: mouseBounce_js_1.default,
|
|
25
26
|
mouseFollow: mouseFollow_js_1.default,
|
|
26
27
|
mouseTrail: mouseTrail_js_1.default,
|
|
28
|
+
mouseTrailNoise: mouseTrailNoise_js_1.default,
|
|
27
29
|
moveAngle: moveAngle_js_1.default,
|
|
28
30
|
moveDistance: moveDistance_js_1.default,
|
|
29
31
|
moveInside: moveInside_js_1.default,
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const options = {
|
|
4
|
+
name: "Mouse Trail Noise",
|
|
5
|
+
particles: {
|
|
6
|
+
number: {
|
|
7
|
+
value: 0,
|
|
8
|
+
},
|
|
9
|
+
color: {
|
|
10
|
+
value: ["#ff0000", "#00ff00", "#0000ff"],
|
|
11
|
+
animation: {
|
|
12
|
+
enable: true,
|
|
13
|
+
speed: 360,
|
|
14
|
+
sync: false,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
shape: {
|
|
18
|
+
type: "triangle",
|
|
19
|
+
},
|
|
20
|
+
opacity: {
|
|
21
|
+
value: { min: 0, max: 1 },
|
|
22
|
+
animation: {
|
|
23
|
+
enable: true,
|
|
24
|
+
speed: 1,
|
|
25
|
+
sync: false,
|
|
26
|
+
destroy: "min",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
size: {
|
|
30
|
+
value: {
|
|
31
|
+
min: 4,
|
|
32
|
+
max: 8,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
move: {
|
|
36
|
+
enable: true,
|
|
37
|
+
speed: 6,
|
|
38
|
+
outModes: "destroy",
|
|
39
|
+
path: {
|
|
40
|
+
enable: true,
|
|
41
|
+
options: {
|
|
42
|
+
size: 64,
|
|
43
|
+
draw: false,
|
|
44
|
+
increment: 0.005,
|
|
45
|
+
},
|
|
46
|
+
delay: {
|
|
47
|
+
value: 0,
|
|
48
|
+
},
|
|
49
|
+
generator: "perlinNoise",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
rotate: {
|
|
53
|
+
value: {
|
|
54
|
+
min: 0,
|
|
55
|
+
max: 360,
|
|
56
|
+
},
|
|
57
|
+
direction: "random",
|
|
58
|
+
move: true,
|
|
59
|
+
animation: {
|
|
60
|
+
enable: true,
|
|
61
|
+
speed: 60,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
tilt: {
|
|
65
|
+
direction: "random",
|
|
66
|
+
enable: true,
|
|
67
|
+
move: true,
|
|
68
|
+
value: {
|
|
69
|
+
min: 0,
|
|
70
|
+
max: 360,
|
|
71
|
+
},
|
|
72
|
+
animation: {
|
|
73
|
+
enable: true,
|
|
74
|
+
speed: 60,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
roll: {
|
|
78
|
+
darken: {
|
|
79
|
+
enable: true,
|
|
80
|
+
value: 30,
|
|
81
|
+
},
|
|
82
|
+
enlighten: {
|
|
83
|
+
enable: true,
|
|
84
|
+
value: 30,
|
|
85
|
+
},
|
|
86
|
+
enable: true,
|
|
87
|
+
mode: "both",
|
|
88
|
+
speed: {
|
|
89
|
+
min: 15,
|
|
90
|
+
max: 25,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
wobble: {
|
|
94
|
+
distance: 30,
|
|
95
|
+
enable: true,
|
|
96
|
+
move: true,
|
|
97
|
+
speed: {
|
|
98
|
+
min: -15,
|
|
99
|
+
max: 15,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
interactivity: {
|
|
104
|
+
events: {
|
|
105
|
+
onHover: {
|
|
106
|
+
enable: true,
|
|
107
|
+
mode: "trail",
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
modes: {
|
|
111
|
+
trail: {
|
|
112
|
+
delay: 0.01,
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
background: {
|
|
117
|
+
color: "#000000",
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
exports.default = options;
|
package/cjs/o/orbit.js
CHANGED
package/cjs/p/index.js
CHANGED
|
@@ -10,6 +10,7 @@ const planes_js_1 = __importDefault(require("./planes.js"));
|
|
|
10
10
|
const plasma_js_1 = __importDefault(require("./plasma.js"));
|
|
11
11
|
const polygonMask_js_1 = __importDefault(require("./polygonMask.js"));
|
|
12
12
|
const polygons_js_1 = __importDefault(require("./polygons.js"));
|
|
13
|
+
const pop_js_1 = __importDefault(require("./pop.js"));
|
|
13
14
|
exports.default = {
|
|
14
15
|
parallax: parallax_js_1.default,
|
|
15
16
|
pathPolygonMask: pathPolygonMask_js_1.default,
|
|
@@ -18,4 +19,5 @@ exports.default = {
|
|
|
18
19
|
plasma: plasma_js_1.default,
|
|
19
20
|
polygonMask: polygonMask_js_1.default,
|
|
20
21
|
polygons: polygons_js_1.default,
|
|
22
|
+
pop: pop_js_1.default,
|
|
21
23
|
};
|
package/cjs/p/pathPolygonMask.js
CHANGED
package/cjs/p/pathSvg.js
CHANGED
package/cjs/p/polygonMask.js
CHANGED
package/cjs/p/pop.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const options = {
|
|
4
|
+
name: "Pop",
|
|
5
|
+
particles: {
|
|
6
|
+
number: {
|
|
7
|
+
limit: {
|
|
8
|
+
value: 80,
|
|
9
|
+
mode: "wait",
|
|
10
|
+
},
|
|
11
|
+
value: 80,
|
|
12
|
+
},
|
|
13
|
+
color: {
|
|
14
|
+
value: ["#3998D0", "#2EB6AF", "#A9BD33", "#FEC73B", "#F89930", "#F45623", "#D62E32", "#EB586E", "#9952CF"],
|
|
15
|
+
},
|
|
16
|
+
shape: {
|
|
17
|
+
type: "circle",
|
|
18
|
+
},
|
|
19
|
+
opacity: {
|
|
20
|
+
value: 1,
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
value: {
|
|
24
|
+
min: 10,
|
|
25
|
+
max: 15,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
collisions: {
|
|
29
|
+
enable: true,
|
|
30
|
+
mode: "bounce",
|
|
31
|
+
},
|
|
32
|
+
move: {
|
|
33
|
+
enable: true,
|
|
34
|
+
speed: 3,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
interactivity: {
|
|
38
|
+
events: {
|
|
39
|
+
onClick: {
|
|
40
|
+
enable: true,
|
|
41
|
+
mode: "pop",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
background: {
|
|
46
|
+
color: "#000000",
|
|
47
|
+
},
|
|
48
|
+
emitters: {
|
|
49
|
+
direction: "none",
|
|
50
|
+
life: {
|
|
51
|
+
count: 0,
|
|
52
|
+
duration: 0.1,
|
|
53
|
+
delay: 0.1,
|
|
54
|
+
},
|
|
55
|
+
rate: {
|
|
56
|
+
delay: 0.1,
|
|
57
|
+
quantity: 1,
|
|
58
|
+
},
|
|
59
|
+
size: {
|
|
60
|
+
width: 100,
|
|
61
|
+
height: 100,
|
|
62
|
+
},
|
|
63
|
+
position: {
|
|
64
|
+
x: 50,
|
|
65
|
+
y: 50,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
exports.default = options;
|