@tsparticles/configs 3.0.0-beta.2 → 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 -4
- package/browser/d/dataImages.js +0 -1
- package/{esm/s/shapeBubble.js → browser/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 -4
- 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 -4
- package/esm/d/dataImages.js +0 -1
- package/{browser/s/shapeBubble.js → esm/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 +745 -202
- package/tsparticles.configs.min.js +1 -1
- package/tsparticles.configs.min.js.LICENSE.txt +1 -1
- package/types/c/index.d.ts +1 -2
- 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 -3
- 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/{customShape.js → curlNoise.js} +30 -30
- package/umd/c/index.js +3 -5
- 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/browser/c/customPreset.js +0 -5
- package/browser/c/customShape.js +0 -49
- package/cjs/c/customPreset.js +0 -7
- package/cjs/c/customShape.js +0 -51
- package/esm/c/customPreset.js +0 -5
- package/esm/c/customShape.js +0 -49
- package/umd/c/customPreset.js +0 -17
- /package/types/c/{customPreset.d.ts → curlNoise.d.ts} +0 -0
- /package/types/{c/customShape.d.ts → e/effectBubble.d.ts} +0 -0
- /package/types/{s/shapeBubble.d.ts → e/effectTrail.d.ts} +0 -0
package/types/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ declare const configs: {
|
|
|
16
16
|
seaAnemone: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
17
17
|
shadow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
18
18
|
shapeArrow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
19
|
-
shapeBubble: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
20
19
|
shapeCog: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
21
20
|
shapeHeart: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
22
21
|
shapeMultilineText: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
@@ -64,6 +63,7 @@ declare const configs: {
|
|
|
64
63
|
plasma: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
65
64
|
polygonMask: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
66
65
|
polygons: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
66
|
+
pop: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
67
67
|
orbit: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
68
68
|
nasa: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
69
69
|
noconfig: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
@@ -77,6 +77,7 @@ declare const configs: {
|
|
|
77
77
|
mouseBounce: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
78
78
|
mouseFollow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
79
79
|
mouseTrail: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
80
|
+
mouseTrailNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
80
81
|
moveAngle: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
81
82
|
moveDistance: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
82
83
|
moveInside: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
@@ -102,12 +103,17 @@ declare const configs: {
|
|
|
102
103
|
fireworks: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
103
104
|
fontawesome: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
104
105
|
forward: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
106
|
+
effectBubble: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
107
|
+
effectTrail: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
105
108
|
emitter: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
106
109
|
emitterAbsorber: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
107
110
|
emitterAngled: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
111
|
+
emitterImageShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
108
112
|
emitterImages: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
109
113
|
emitterPaths: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
110
114
|
emitterShapes: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
115
|
+
emitterTextShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
116
|
+
emitterTextStrokeShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
111
117
|
dataImages: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
112
118
|
delay: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
113
119
|
delayColor: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
@@ -125,8 +131,7 @@ declare const configs: {
|
|
|
125
131
|
collisionsDestroy: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
126
132
|
colorAnimation: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
127
133
|
connect: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
128
|
-
|
|
129
|
-
customShape: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
134
|
+
curlNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
130
135
|
backgroundMask: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
131
136
|
basic: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
132
137
|
big: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
package/types/m/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare const _default: {
|
|
|
6
6
|
mouseBounce: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
7
7
|
mouseFollow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
8
8
|
mouseTrail: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
9
|
+
mouseTrailNoise: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
9
10
|
moveAngle: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
10
11
|
moveDistance: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
11
12
|
moveInside: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
package/types/p/index.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ declare const _default: {
|
|
|
6
6
|
plasma: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
7
7
|
polygonMask: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
8
8
|
polygons: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
9
|
+
pop: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
9
10
|
};
|
|
10
11
|
export default _default;
|
package/types/p/pop.d.ts
ADDED
package/types/s/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ declare const _default: {
|
|
|
2
2
|
seaAnemone: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
3
3
|
shadow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
4
4
|
shapeArrow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
5
|
-
shapeBubble: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
6
5
|
shapeCog: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
7
6
|
shapeHeart: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
|
8
7
|
shapeMultilineText: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
|
package/umd/c/connect.js
CHANGED
|
@@ -10,51 +10,51 @@
|
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const options = {
|
|
13
|
-
name: "
|
|
13
|
+
name: "Curl Noise",
|
|
14
14
|
particles: {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
number: {
|
|
16
|
+
value: 300,
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
color: {
|
|
19
|
+
value: "#ff0000",
|
|
20
|
+
animation: {
|
|
21
|
+
enable: true,
|
|
22
|
+
speed: 360,
|
|
23
|
+
sync: true,
|
|
21
24
|
},
|
|
22
|
-
width: 1,
|
|
23
25
|
},
|
|
24
26
|
shape: {
|
|
25
|
-
type: "
|
|
26
|
-
options: {
|
|
27
|
-
spiral: {
|
|
28
|
-
innerRadius: 1,
|
|
29
|
-
lineSpacing: 1,
|
|
30
|
-
fill: false,
|
|
31
|
-
close: false,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
27
|
+
type: "circle",
|
|
34
28
|
},
|
|
35
29
|
size: {
|
|
36
|
-
value:
|
|
30
|
+
value: 3,
|
|
37
31
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
move: {
|
|
33
|
+
path: {
|
|
34
|
+
clamp: false,
|
|
35
|
+
enable: true,
|
|
36
|
+
options: {
|
|
37
|
+
step: 250,
|
|
38
|
+
speed: 1,
|
|
39
|
+
},
|
|
40
|
+
delay: {
|
|
41
|
+
value: 0,
|
|
42
|
+
},
|
|
43
|
+
generator: "curlNoise",
|
|
42
44
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
enable: true,
|
|
46
|
+
speed: 3,
|
|
47
|
+
trail: {
|
|
48
|
+
fill: {
|
|
49
|
+
color: "#000",
|
|
50
|
+
},
|
|
45
51
|
enable: true,
|
|
46
|
-
|
|
47
|
-
sync: false,
|
|
52
|
+
length: 1000,
|
|
48
53
|
},
|
|
49
54
|
},
|
|
50
55
|
},
|
|
51
|
-
preset: "links",
|
|
52
56
|
background: {
|
|
53
57
|
color: "#000000",
|
|
54
|
-
image: "",
|
|
55
|
-
position: "50% 50%",
|
|
56
|
-
repeat: "no-repeat",
|
|
57
|
-
size: "cover",
|
|
58
58
|
},
|
|
59
59
|
};
|
|
60
60
|
exports.default = options;
|
package/umd/c/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", "./cards.js", "./chars.js", "./clickPause.js", "./collisionsAbsorb.js", "./collisionsBounce.js", "./collisionsDestroy.js", "./colorAnimation.js", "./connect.js", "./
|
|
10
|
+
define(["require", "exports", "./cards.js", "./chars.js", "./clickPause.js", "./collisionsAbsorb.js", "./collisionsBounce.js", "./collisionsDestroy.js", "./colorAnimation.js", "./connect.js", "./curlNoise.js"], factory);
|
|
11
11
|
}
|
|
12
12
|
})(function (require, exports) {
|
|
13
13
|
"use strict";
|
|
@@ -20,8 +20,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
20
20
|
const collisionsDestroy_js_1 = __importDefault(require("./collisionsDestroy.js"));
|
|
21
21
|
const colorAnimation_js_1 = __importDefault(require("./colorAnimation.js"));
|
|
22
22
|
const connect_js_1 = __importDefault(require("./connect.js"));
|
|
23
|
-
const
|
|
24
|
-
const customShape_js_1 = __importDefault(require("./customShape.js"));
|
|
23
|
+
const curlNoise_js_1 = __importDefault(require("./curlNoise.js"));
|
|
25
24
|
exports.default = {
|
|
26
25
|
cards: cards_js_1.default,
|
|
27
26
|
chars: chars_js_1.default,
|
|
@@ -31,7 +30,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
31
30
|
collisionsDestroy: collisionsDestroy_js_1.default,
|
|
32
31
|
colorAnimation: colorAnimation_js_1.default,
|
|
33
32
|
connect: connect_js_1.default,
|
|
34
|
-
|
|
35
|
-
customShape: customShape_js_1.default,
|
|
33
|
+
curlNoise: curlNoise_js_1.default,
|
|
36
34
|
};
|
|
37
35
|
});
|
package/umd/d/dataImages.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const options = {
|
|
13
|
-
name: "
|
|
13
|
+
name: "Effect Bubble",
|
|
14
14
|
particles: {
|
|
15
15
|
number: {
|
|
16
16
|
value: 80,
|
|
@@ -26,9 +26,12 @@
|
|
|
26
26
|
sync: true,
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
effect: {
|
|
30
30
|
type: "bubble",
|
|
31
31
|
},
|
|
32
|
+
shape: {
|
|
33
|
+
type: ["circle", "square"],
|
|
34
|
+
},
|
|
32
35
|
opacity: {
|
|
33
36
|
value: 0.5,
|
|
34
37
|
},
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
name: "Effect Trail",
|
|
14
|
+
particles: {
|
|
15
|
+
number: {
|
|
16
|
+
value: 80,
|
|
17
|
+
density: {
|
|
18
|
+
enable: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
color: {
|
|
22
|
+
value: "#ff0000",
|
|
23
|
+
animation: {
|
|
24
|
+
enable: true,
|
|
25
|
+
speed: 360,
|
|
26
|
+
sync: true,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
effect: {
|
|
30
|
+
type: "trail",
|
|
31
|
+
options: {
|
|
32
|
+
trail: {
|
|
33
|
+
length: {
|
|
34
|
+
min: 10,
|
|
35
|
+
max: 30,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
shape: {
|
|
41
|
+
type: "circle",
|
|
42
|
+
},
|
|
43
|
+
size: {
|
|
44
|
+
value: 10,
|
|
45
|
+
},
|
|
46
|
+
move: {
|
|
47
|
+
path: {
|
|
48
|
+
enable: true,
|
|
49
|
+
options: {
|
|
50
|
+
size: 32,
|
|
51
|
+
draw: false,
|
|
52
|
+
increment: 0.004,
|
|
53
|
+
},
|
|
54
|
+
generator: "simplexNoise",
|
|
55
|
+
},
|
|
56
|
+
enable: true,
|
|
57
|
+
speed: 6,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
background: {
|
|
61
|
+
color: "#000000",
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
exports.default = options;
|
|
65
|
+
});
|
|
@@ -0,0 +1,107 @@
|
|
|
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 rate = {
|
|
13
|
+
delay: 0.1,
|
|
14
|
+
quantity: 100,
|
|
15
|
+
};
|
|
16
|
+
const generateEmitter = (shape, options, fill, position) => {
|
|
17
|
+
return {
|
|
18
|
+
shape: {
|
|
19
|
+
replace: {
|
|
20
|
+
color: true,
|
|
21
|
+
opacity: true,
|
|
22
|
+
},
|
|
23
|
+
type: shape,
|
|
24
|
+
options,
|
|
25
|
+
},
|
|
26
|
+
position: position,
|
|
27
|
+
size: {
|
|
28
|
+
width: 500,
|
|
29
|
+
height: 500,
|
|
30
|
+
mode: "precise",
|
|
31
|
+
},
|
|
32
|
+
startCount: 300,
|
|
33
|
+
rate,
|
|
34
|
+
fill,
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
const options = {
|
|
38
|
+
name: "Emitter Image Shape",
|
|
39
|
+
particles: {
|
|
40
|
+
number: {
|
|
41
|
+
value: 0,
|
|
42
|
+
},
|
|
43
|
+
color: {
|
|
44
|
+
value: [
|
|
45
|
+
"#f44336",
|
|
46
|
+
"#e91e63",
|
|
47
|
+
"#9c27b0",
|
|
48
|
+
"#673ab7",
|
|
49
|
+
"#3f51b5",
|
|
50
|
+
"#2196f3",
|
|
51
|
+
"#03a9f4",
|
|
52
|
+
"#00bcd4",
|
|
53
|
+
"#009688",
|
|
54
|
+
"#4CAF50",
|
|
55
|
+
"#8BC34A",
|
|
56
|
+
"#CDDC39",
|
|
57
|
+
"#FFEB3B",
|
|
58
|
+
"#FFC107",
|
|
59
|
+
"#FF9800",
|
|
60
|
+
"#FF5722",
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
life: {
|
|
64
|
+
count: 1,
|
|
65
|
+
duration: {
|
|
66
|
+
value: 1.5,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
move: {
|
|
70
|
+
enable: true,
|
|
71
|
+
speed: 0.5,
|
|
72
|
+
},
|
|
73
|
+
shape: {
|
|
74
|
+
type: "circle",
|
|
75
|
+
},
|
|
76
|
+
opacity: {
|
|
77
|
+
value: 1,
|
|
78
|
+
},
|
|
79
|
+
size: {
|
|
80
|
+
value: { min: 1, max: 10 },
|
|
81
|
+
animation: {
|
|
82
|
+
enable: true,
|
|
83
|
+
speed: 30,
|
|
84
|
+
sync: true,
|
|
85
|
+
startValue: "min",
|
|
86
|
+
count: 2,
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
background: {
|
|
91
|
+
color: "#fff",
|
|
92
|
+
},
|
|
93
|
+
emitters: [
|
|
94
|
+
generateEmitter("canvas", {
|
|
95
|
+
scale: 5,
|
|
96
|
+
pixels: {
|
|
97
|
+
filter: "pixelFilter",
|
|
98
|
+
offset: 4,
|
|
99
|
+
},
|
|
100
|
+
image: {
|
|
101
|
+
src: "https://particles.js.org/images/amongus_cyan.png",
|
|
102
|
+
},
|
|
103
|
+
}, true, { x: 50, y: 50 }),
|
|
104
|
+
],
|
|
105
|
+
};
|
|
106
|
+
exports.default = options;
|
|
107
|
+
});
|
package/umd/e/emitterImages.js
CHANGED
package/umd/e/emitterShapes.js
CHANGED
|
@@ -9,6 +9,45 @@
|
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const rate = {
|
|
13
|
+
delay: 0.1,
|
|
14
|
+
quantity: 3,
|
|
15
|
+
};
|
|
16
|
+
const generateEmitter = (shape, options, fill, position) => {
|
|
17
|
+
return {
|
|
18
|
+
shape: {
|
|
19
|
+
type: shape,
|
|
20
|
+
options,
|
|
21
|
+
},
|
|
22
|
+
position: position,
|
|
23
|
+
size: {
|
|
24
|
+
width: 200,
|
|
25
|
+
height: 200,
|
|
26
|
+
mode: "precise",
|
|
27
|
+
},
|
|
28
|
+
life: {
|
|
29
|
+
duration: 10,
|
|
30
|
+
delay: 0.5,
|
|
31
|
+
count: 1,
|
|
32
|
+
},
|
|
33
|
+
rate,
|
|
34
|
+
fill,
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
const path = [
|
|
38
|
+
{ x: 0, y: 0 },
|
|
39
|
+
{ x: 0, y: 50 },
|
|
40
|
+
{ x: 25, y: 50 },
|
|
41
|
+
{ x: 0, y: 100 },
|
|
42
|
+
{ x: 50, y: 100 },
|
|
43
|
+
{ x: 50, y: 75 },
|
|
44
|
+
{ x: 100, y: 100 },
|
|
45
|
+
{ x: 100, y: 50 },
|
|
46
|
+
{ x: 75, y: 50 },
|
|
47
|
+
{ x: 100, y: 0 },
|
|
48
|
+
{ x: 50, y: 0 },
|
|
49
|
+
{ x: 50, y: 25 },
|
|
50
|
+
];
|
|
12
51
|
const options = {
|
|
13
52
|
name: "Emitter Shapes",
|
|
14
53
|
particles: {
|
|
@@ -32,76 +71,23 @@
|
|
|
32
71
|
color: "#fff",
|
|
33
72
|
},
|
|
34
73
|
emitters: [
|
|
35
|
-
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
shape: "circle",
|
|
54
|
-
position: {
|
|
55
|
-
x: 67,
|
|
56
|
-
y: 33,
|
|
57
|
-
},
|
|
58
|
-
size: {
|
|
59
|
-
width: 200,
|
|
60
|
-
height: 200,
|
|
61
|
-
mode: "precise",
|
|
62
|
-
},
|
|
63
|
-
life: {
|
|
64
|
-
duration: 10,
|
|
65
|
-
delay: 0.5,
|
|
66
|
-
count: 1,
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
fill: false,
|
|
71
|
-
shape: "square",
|
|
72
|
-
position: {
|
|
73
|
-
x: 33,
|
|
74
|
-
y: 67,
|
|
75
|
-
},
|
|
76
|
-
size: {
|
|
77
|
-
width: 200,
|
|
78
|
-
height: 200,
|
|
79
|
-
mode: "precise",
|
|
80
|
-
},
|
|
81
|
-
life: {
|
|
82
|
-
duration: 10,
|
|
83
|
-
delay: 0.5,
|
|
84
|
-
count: 1,
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
fill: false,
|
|
89
|
-
shape: "circle",
|
|
90
|
-
position: {
|
|
91
|
-
x: 67,
|
|
92
|
-
y: 67,
|
|
93
|
-
},
|
|
94
|
-
size: {
|
|
95
|
-
width: 200,
|
|
96
|
-
height: 200,
|
|
97
|
-
mode: "precise",
|
|
98
|
-
},
|
|
99
|
-
life: {
|
|
100
|
-
duration: 10,
|
|
101
|
-
delay: 0.5,
|
|
102
|
-
count: 1,
|
|
103
|
-
},
|
|
104
|
-
},
|
|
74
|
+
generateEmitter("square", {}, true, { x: 25, y: 25 }),
|
|
75
|
+
generateEmitter("circle", {}, true, { x: 50, y: 25 }),
|
|
76
|
+
generateEmitter("polygon", {
|
|
77
|
+
angle: -18,
|
|
78
|
+
sides: 5,
|
|
79
|
+
}, true, { x: 75, y: 25 }),
|
|
80
|
+
generateEmitter("square", {}, false, { x: 25, y: 50 }),
|
|
81
|
+
generateEmitter("circle", {}, false, { x: 50, y: 50 }),
|
|
82
|
+
generateEmitter("polygon", {
|
|
83
|
+
sides: 6,
|
|
84
|
+
}, false, { x: 75, y: 50 }),
|
|
85
|
+
generateEmitter("path", {
|
|
86
|
+
points: path,
|
|
87
|
+
}, true, { x: 25, y: 75 }),
|
|
88
|
+
generateEmitter("path", {
|
|
89
|
+
points: path,
|
|
90
|
+
}, false, { x: 50, y: 75 }),
|
|
105
91
|
],
|
|
106
92
|
};
|
|
107
93
|
exports.default = options;
|