@tsparticles/configs 4.0.5 → 4.1.0
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/f/fallingConfettiWithRibbons.js +218 -0
- package/browser/f/index.js +2 -0
- package/browser/m/index.js +2 -0
- package/browser/m/musicEmitter.js +78 -0
- package/browser/r/index.js +0 -14
- package/browser/s/index.js +2 -0
- package/browser/s/shapeRibbon.js +73 -0
- package/cjs/f/fallingConfettiWithRibbons.js +218 -0
- package/cjs/f/index.js +2 -0
- package/cjs/m/index.js +2 -0
- package/cjs/m/musicEmitter.js +78 -0
- package/cjs/r/index.js +0 -14
- package/cjs/s/index.js +2 -0
- package/cjs/s/shapeRibbon.js +73 -0
- package/esm/f/fallingConfettiWithRibbons.js +218 -0
- package/esm/f/index.js +2 -0
- package/esm/m/index.js +2 -0
- package/esm/m/musicEmitter.js +78 -0
- package/esm/r/index.js +0 -14
- package/esm/s/index.js +2 -0
- package/esm/s/shapeRibbon.js +73 -0
- package/package.json +2 -2
- package/report.html +1 -1
- package/tsparticles.configs.js +822 -1079
- package/tsparticles.configs.min.js +1 -1
- package/types/f/index.d.ts +1 -0
- package/types/index.d.ts +3 -7
- package/types/index.lazy.d.ts +3 -7
- package/types/m/index.d.ts +1 -0
- package/types/r/index.d.ts +0 -7
- package/types/s/index.d.ts +1 -0
- package/browser/r/reactBubbles.js +0 -104
- package/browser/r/reactDefaults.js +0 -53
- package/browser/r/reactMultipleImages.js +0 -92
- package/browser/r/reactNightSky.js +0 -79
- package/browser/r/reactPolygonMask.js +0 -96
- package/browser/r/reactSimple.js +0 -90
- package/browser/r/reactSnow.js +0 -108
- package/cjs/r/reactBubbles.js +0 -104
- package/cjs/r/reactDefaults.js +0 -53
- package/cjs/r/reactMultipleImages.js +0 -92
- package/cjs/r/reactNightSky.js +0 -79
- package/cjs/r/reactPolygonMask.js +0 -96
- package/cjs/r/reactSimple.js +0 -90
- package/cjs/r/reactSnow.js +0 -108
- package/esm/r/reactBubbles.js +0 -104
- package/esm/r/reactDefaults.js +0 -53
- package/esm/r/reactMultipleImages.js +0 -92
- package/esm/r/reactNightSky.js +0 -79
- package/esm/r/reactPolygonMask.js +0 -96
- package/esm/r/reactSimple.js +0 -90
- package/esm/r/reactSnow.js +0 -108
- package/types/r/reactNightSky.d.ts +0 -3
- package/types/r/reactPolygonMask.d.ts +0 -3
- package/types/r/reactSimple.d.ts +0 -3
- package/types/r/reactSnow.d.ts +0 -3
- /package/types/{r/reactBubbles.d.ts → f/fallingConfettiWithRibbons.d.ts} +0 -0
- /package/types/{r/reactDefaults.d.ts → m/musicEmitter.d.ts} +0 -0
- /package/types/{r/reactMultipleImages.d.ts → s/shapeRibbon.d.ts} +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const chars = ["♪", "♫", "♩", "♬", "♭", "♮", "♯"], options = {
|
|
2
|
+
key: "musicEmitter",
|
|
3
|
+
name: "Music Emitter",
|
|
4
|
+
particles: {
|
|
5
|
+
paint: {
|
|
6
|
+
color: {
|
|
7
|
+
value: [
|
|
8
|
+
"#ff5733",
|
|
9
|
+
"#33ff57",
|
|
10
|
+
"#3357ff",
|
|
11
|
+
"#ff33a1",
|
|
12
|
+
"#a133ff",
|
|
13
|
+
"#33fff6",
|
|
14
|
+
"#f4d03f",
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
opacity: {
|
|
19
|
+
value: {
|
|
20
|
+
min: 0,
|
|
21
|
+
max: 1,
|
|
22
|
+
},
|
|
23
|
+
animation: {
|
|
24
|
+
enable: true,
|
|
25
|
+
speed: 1.25,
|
|
26
|
+
startValue: "max",
|
|
27
|
+
destroy: "min",
|
|
28
|
+
sync: true,
|
|
29
|
+
count: 1,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
move: {
|
|
33
|
+
enable: true,
|
|
34
|
+
outModes: "destroy",
|
|
35
|
+
speed: 10,
|
|
36
|
+
straight: true,
|
|
37
|
+
},
|
|
38
|
+
life: {
|
|
39
|
+
enable: true,
|
|
40
|
+
count: 1,
|
|
41
|
+
},
|
|
42
|
+
size: {
|
|
43
|
+
value: { min: 5, max: 30 },
|
|
44
|
+
animation: {
|
|
45
|
+
enable: true,
|
|
46
|
+
speed: 50,
|
|
47
|
+
startValue: "max",
|
|
48
|
+
destroy: "min",
|
|
49
|
+
sync: true,
|
|
50
|
+
count: 1,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
shape: {
|
|
54
|
+
type: "text",
|
|
55
|
+
options: {
|
|
56
|
+
text: {
|
|
57
|
+
value: chars,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
emitters: {
|
|
63
|
+
direction: "top",
|
|
64
|
+
position: {
|
|
65
|
+
x: 50,
|
|
66
|
+
y: 50,
|
|
67
|
+
},
|
|
68
|
+
size: {
|
|
69
|
+
width: 10,
|
|
70
|
+
height: 10,
|
|
71
|
+
},
|
|
72
|
+
rate: {
|
|
73
|
+
delay: 0.15,
|
|
74
|
+
quantity: 1,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
export default options;
|
package/cjs/r/index.js
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import random from "./random.js";
|
|
2
2
|
import randomShapes from "./randomShapes.js";
|
|
3
|
-
import reactBubbles from "./reactBubbles.js";
|
|
4
|
-
import reactDefaults from "./reactDefaults.js";
|
|
5
|
-
import reactMultipleImages from "./reactMultipleImages.js";
|
|
6
|
-
import reactNightSky from "./reactNightSky.js";
|
|
7
|
-
import reactPolygonMask from "./reactPolygonMask.js";
|
|
8
|
-
import reactSimple from "./reactSimple.js";
|
|
9
|
-
import reactSnow from "./reactSnow.js";
|
|
10
3
|
import reduceDuplicates from "./reduceDuplicates.js";
|
|
11
4
|
import repulse from "./repulse.js";
|
|
12
5
|
import repulseBack from "./repulseBack.js";
|
|
@@ -26,13 +19,6 @@ import ring from "./ring.js";
|
|
|
26
19
|
export default {
|
|
27
20
|
random,
|
|
28
21
|
randomShapes,
|
|
29
|
-
reactBubbles,
|
|
30
|
-
reactDefaults,
|
|
31
|
-
reactMultipleImages,
|
|
32
|
-
reactNightSky,
|
|
33
|
-
reactPolygonMask,
|
|
34
|
-
reactSimple,
|
|
35
|
-
reactSnow,
|
|
36
22
|
reduceDuplicates,
|
|
37
23
|
repulse,
|
|
38
24
|
repulseBack,
|
package/cjs/s/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import shapeInfinity from "./shapeInfinity.js";
|
|
|
9
9
|
import shapeMultilineText from "./shapeMultilineText.js";
|
|
10
10
|
import shapeOptions from "./shapeOptions.js";
|
|
11
11
|
import shapePath from "./shapePath.js";
|
|
12
|
+
import shapeRibbon from "./shapeRibbon.js";
|
|
12
13
|
import shapeRoundedPolygon from "./shapeRoundedPolygon.js";
|
|
13
14
|
import shapeRoundedRect from "./shapeRoundedRect.js";
|
|
14
15
|
import shapeSpiral from "./shapeSpiral.js";
|
|
@@ -38,6 +39,7 @@ export default {
|
|
|
38
39
|
shapeMultilineText,
|
|
39
40
|
shapeOptions,
|
|
40
41
|
shapePath,
|
|
42
|
+
shapeRibbon,
|
|
41
43
|
shapeRoundedPolygon,
|
|
42
44
|
shapeRoundedRect,
|
|
43
45
|
shapeSpiral,
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
const options = {
|
|
2
|
+
key: "shapeRibbon",
|
|
3
|
+
name: "Shape Ribbon",
|
|
4
|
+
particles: {
|
|
5
|
+
number: {
|
|
6
|
+
value: 18,
|
|
7
|
+
density: {
|
|
8
|
+
enable: false,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
paint: {
|
|
12
|
+
fill: {
|
|
13
|
+
color: {
|
|
14
|
+
value: "#ff0000",
|
|
15
|
+
animation: {
|
|
16
|
+
enable: true,
|
|
17
|
+
speed: 8,
|
|
18
|
+
sync: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
enable: true,
|
|
22
|
+
},
|
|
23
|
+
stroke: {
|
|
24
|
+
color: {
|
|
25
|
+
value: "#ffffff",
|
|
26
|
+
animation: {
|
|
27
|
+
enable: true,
|
|
28
|
+
speed: 8,
|
|
29
|
+
sync: true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
width: 1,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
shape: {
|
|
36
|
+
type: "ribbon",
|
|
37
|
+
options: {
|
|
38
|
+
ribbon: {
|
|
39
|
+
angle: 45,
|
|
40
|
+
darken: {
|
|
41
|
+
enable: true,
|
|
42
|
+
value: 30,
|
|
43
|
+
},
|
|
44
|
+
count: 50,
|
|
45
|
+
drag: 0.05,
|
|
46
|
+
mass: 1,
|
|
47
|
+
oscillationDistance: 40,
|
|
48
|
+
oscillationSpeed: 3,
|
|
49
|
+
particleDist: 8,
|
|
50
|
+
velocityInherit: 5,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
opacity: {
|
|
55
|
+
value: 1,
|
|
56
|
+
},
|
|
57
|
+
size: {
|
|
58
|
+
value: 8,
|
|
59
|
+
},
|
|
60
|
+
links: {
|
|
61
|
+
enable: false,
|
|
62
|
+
},
|
|
63
|
+
move: {
|
|
64
|
+
enable: true,
|
|
65
|
+
direction: "none",
|
|
66
|
+
speed: 2,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
background: {
|
|
70
|
+
color: "#000000",
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
export default options;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
const options = {
|
|
2
|
+
key: "fallingConfettiWithRibbons",
|
|
3
|
+
name: "Falling Confetti with Ribbons",
|
|
4
|
+
background: {
|
|
5
|
+
color: "#000000",
|
|
6
|
+
},
|
|
7
|
+
particles: {
|
|
8
|
+
paint: {
|
|
9
|
+
fill: {
|
|
10
|
+
color: {
|
|
11
|
+
value: [
|
|
12
|
+
"#FF0000",
|
|
13
|
+
"#FF2A00",
|
|
14
|
+
"#FF5500",
|
|
15
|
+
"#FF8000",
|
|
16
|
+
"#FFAA00",
|
|
17
|
+
"#FFD400",
|
|
18
|
+
"#FFFF00",
|
|
19
|
+
"#D4FF00",
|
|
20
|
+
"#AAFF00",
|
|
21
|
+
"#80FF00",
|
|
22
|
+
"#55FF00",
|
|
23
|
+
"#2AFF00",
|
|
24
|
+
"#00FF00",
|
|
25
|
+
"#00FF2A",
|
|
26
|
+
"#00FF55",
|
|
27
|
+
"#00FF80",
|
|
28
|
+
"#00FFAA",
|
|
29
|
+
"#00FFD4",
|
|
30
|
+
"#00FFFF",
|
|
31
|
+
"#00D4FF",
|
|
32
|
+
"#00AAFF",
|
|
33
|
+
"#0080FF",
|
|
34
|
+
"#0055FF",
|
|
35
|
+
"#002AFF",
|
|
36
|
+
"#0000FF",
|
|
37
|
+
"#2A00FF",
|
|
38
|
+
"#5500FF",
|
|
39
|
+
"#8000FF",
|
|
40
|
+
"#AA00FF",
|
|
41
|
+
"#D400FF",
|
|
42
|
+
"#FF00FF",
|
|
43
|
+
"#FF00D4",
|
|
44
|
+
"#FF00AA",
|
|
45
|
+
"#FF0080",
|
|
46
|
+
"#FF0055",
|
|
47
|
+
"#FF002A",
|
|
48
|
+
],
|
|
49
|
+
animation: {
|
|
50
|
+
enable: true,
|
|
51
|
+
speed: 30,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
enable: true,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
move: {
|
|
58
|
+
direction: "bottom",
|
|
59
|
+
enable: true,
|
|
60
|
+
outModes: "out",
|
|
61
|
+
speed: {
|
|
62
|
+
min: 3,
|
|
63
|
+
max: 5,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
number: {
|
|
67
|
+
value: 300,
|
|
68
|
+
},
|
|
69
|
+
opacity: {
|
|
70
|
+
value: 1,
|
|
71
|
+
},
|
|
72
|
+
rotate: {
|
|
73
|
+
value: {
|
|
74
|
+
min: 0,
|
|
75
|
+
max: 360,
|
|
76
|
+
},
|
|
77
|
+
direction: "random",
|
|
78
|
+
move: true,
|
|
79
|
+
animation: {
|
|
80
|
+
enable: true,
|
|
81
|
+
speed: 60,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
tilt: {
|
|
85
|
+
direction: "random",
|
|
86
|
+
enable: true,
|
|
87
|
+
value: {
|
|
88
|
+
min: 0,
|
|
89
|
+
max: 360,
|
|
90
|
+
},
|
|
91
|
+
animation: {
|
|
92
|
+
enable: true,
|
|
93
|
+
speed: 60,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
shape: {
|
|
97
|
+
type: ["triangle", "circle", "square", "polygon"],
|
|
98
|
+
options: {
|
|
99
|
+
polygon: [
|
|
100
|
+
{
|
|
101
|
+
sides: 5,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
sides: 6,
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
size: {
|
|
110
|
+
value: {
|
|
111
|
+
min: 3,
|
|
112
|
+
max: 5,
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
roll: {
|
|
116
|
+
darken: {
|
|
117
|
+
enable: true,
|
|
118
|
+
value: 30,
|
|
119
|
+
},
|
|
120
|
+
enlighten: {
|
|
121
|
+
enable: true,
|
|
122
|
+
value: 30,
|
|
123
|
+
},
|
|
124
|
+
enable: true,
|
|
125
|
+
mode: "both",
|
|
126
|
+
speed: {
|
|
127
|
+
min: 40,
|
|
128
|
+
max: 60,
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
wobble: {
|
|
132
|
+
distance: 30,
|
|
133
|
+
enable: true,
|
|
134
|
+
move: true,
|
|
135
|
+
speed: {
|
|
136
|
+
min: -15,
|
|
137
|
+
max: 15,
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
emitters: {
|
|
142
|
+
direction: "bottom",
|
|
143
|
+
position: {
|
|
144
|
+
x: 50,
|
|
145
|
+
y: 0,
|
|
146
|
+
},
|
|
147
|
+
size: {
|
|
148
|
+
width: 100,
|
|
149
|
+
height: 0,
|
|
150
|
+
},
|
|
151
|
+
rate: {
|
|
152
|
+
delay: 1,
|
|
153
|
+
quantity: 1,
|
|
154
|
+
},
|
|
155
|
+
particles: {
|
|
156
|
+
move: {
|
|
157
|
+
direction: "bottom",
|
|
158
|
+
enable: true,
|
|
159
|
+
outModes: {
|
|
160
|
+
top: "none",
|
|
161
|
+
default: "destroy",
|
|
162
|
+
},
|
|
163
|
+
speed: {
|
|
164
|
+
min: 4,
|
|
165
|
+
max: 6,
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
size: {
|
|
169
|
+
value: 8,
|
|
170
|
+
},
|
|
171
|
+
roll: {
|
|
172
|
+
enable: false,
|
|
173
|
+
},
|
|
174
|
+
rotate: {
|
|
175
|
+
value: 0,
|
|
176
|
+
move: false,
|
|
177
|
+
animation: {
|
|
178
|
+
enable: false,
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
tilt: {
|
|
182
|
+
enable: false,
|
|
183
|
+
},
|
|
184
|
+
wobble: {
|
|
185
|
+
enable: false,
|
|
186
|
+
},
|
|
187
|
+
shape: {
|
|
188
|
+
type: "ribbon",
|
|
189
|
+
options: {
|
|
190
|
+
ribbon: {
|
|
191
|
+
angle: 45,
|
|
192
|
+
darken: {
|
|
193
|
+
enable: true,
|
|
194
|
+
value: 30,
|
|
195
|
+
},
|
|
196
|
+
count: 60,
|
|
197
|
+
drag: 0.02,
|
|
198
|
+
mass: 1,
|
|
199
|
+
oscillationDistance: {
|
|
200
|
+
min: 100,
|
|
201
|
+
max: 140,
|
|
202
|
+
},
|
|
203
|
+
oscillationSpeed: {
|
|
204
|
+
min: 3,
|
|
205
|
+
max: 5,
|
|
206
|
+
},
|
|
207
|
+
particleDist: 8,
|
|
208
|
+
velocityInherit: {
|
|
209
|
+
min: 4,
|
|
210
|
+
max: 6,
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
export default options;
|
package/esm/f/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import fallingConfetti from "./fallingConfetti.js";
|
|
2
|
+
import fallingconfettiWithRibbons from "./fallingConfettiWithRibbons.js";
|
|
2
3
|
import fireworks from "./fireworks.js";
|
|
3
4
|
import fireworks2 from "./fireworks2.js";
|
|
4
5
|
import fireworks3 from "./fireworks3.js";
|
|
@@ -7,6 +8,7 @@ import fontawesome from "./fontawesome.js";
|
|
|
7
8
|
import forward from "./forward.js";
|
|
8
9
|
export default {
|
|
9
10
|
fallingConfetti,
|
|
11
|
+
fallingconfettiWithRibbons,
|
|
10
12
|
fireworks,
|
|
11
13
|
fireworks2,
|
|
12
14
|
fireworks3,
|
package/esm/m/index.js
CHANGED
|
@@ -20,6 +20,7 @@ import moveInside from "./moveInside.js";
|
|
|
20
20
|
import moveOutside from "./moveOutside.js";
|
|
21
21
|
import multipleClickEmitters from "./multipleClickEmitters.js";
|
|
22
22
|
import multiplePolygonMasks from "./multiplePolygonMasks.js";
|
|
23
|
+
import musicEmitter from "./musicEmitter.js";
|
|
23
24
|
export default {
|
|
24
25
|
manual,
|
|
25
26
|
matrix,
|
|
@@ -43,4 +44,5 @@ export default {
|
|
|
43
44
|
moveOutside,
|
|
44
45
|
multipleClickEmitters,
|
|
45
46
|
multiplePolygonMasks,
|
|
47
|
+
musicEmitter,
|
|
46
48
|
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const chars = ["♪", "♫", "♩", "♬", "♭", "♮", "♯"], options = {
|
|
2
|
+
key: "musicEmitter",
|
|
3
|
+
name: "Music Emitter",
|
|
4
|
+
particles: {
|
|
5
|
+
paint: {
|
|
6
|
+
color: {
|
|
7
|
+
value: [
|
|
8
|
+
"#ff5733",
|
|
9
|
+
"#33ff57",
|
|
10
|
+
"#3357ff",
|
|
11
|
+
"#ff33a1",
|
|
12
|
+
"#a133ff",
|
|
13
|
+
"#33fff6",
|
|
14
|
+
"#f4d03f",
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
opacity: {
|
|
19
|
+
value: {
|
|
20
|
+
min: 0,
|
|
21
|
+
max: 1,
|
|
22
|
+
},
|
|
23
|
+
animation: {
|
|
24
|
+
enable: true,
|
|
25
|
+
speed: 1.25,
|
|
26
|
+
startValue: "max",
|
|
27
|
+
destroy: "min",
|
|
28
|
+
sync: true,
|
|
29
|
+
count: 1,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
move: {
|
|
33
|
+
enable: true,
|
|
34
|
+
outModes: "destroy",
|
|
35
|
+
speed: 10,
|
|
36
|
+
straight: true,
|
|
37
|
+
},
|
|
38
|
+
life: {
|
|
39
|
+
enable: true,
|
|
40
|
+
count: 1,
|
|
41
|
+
},
|
|
42
|
+
size: {
|
|
43
|
+
value: { min: 5, max: 30 },
|
|
44
|
+
animation: {
|
|
45
|
+
enable: true,
|
|
46
|
+
speed: 50,
|
|
47
|
+
startValue: "max",
|
|
48
|
+
destroy: "min",
|
|
49
|
+
sync: true,
|
|
50
|
+
count: 1,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
shape: {
|
|
54
|
+
type: "text",
|
|
55
|
+
options: {
|
|
56
|
+
text: {
|
|
57
|
+
value: chars,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
emitters: {
|
|
63
|
+
direction: "top",
|
|
64
|
+
position: {
|
|
65
|
+
x: 50,
|
|
66
|
+
y: 50,
|
|
67
|
+
},
|
|
68
|
+
size: {
|
|
69
|
+
width: 10,
|
|
70
|
+
height: 10,
|
|
71
|
+
},
|
|
72
|
+
rate: {
|
|
73
|
+
delay: 0.15,
|
|
74
|
+
quantity: 1,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
export default options;
|
package/esm/r/index.js
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import random from "./random.js";
|
|
2
2
|
import randomShapes from "./randomShapes.js";
|
|
3
|
-
import reactBubbles from "./reactBubbles.js";
|
|
4
|
-
import reactDefaults from "./reactDefaults.js";
|
|
5
|
-
import reactMultipleImages from "./reactMultipleImages.js";
|
|
6
|
-
import reactNightSky from "./reactNightSky.js";
|
|
7
|
-
import reactPolygonMask from "./reactPolygonMask.js";
|
|
8
|
-
import reactSimple from "./reactSimple.js";
|
|
9
|
-
import reactSnow from "./reactSnow.js";
|
|
10
3
|
import reduceDuplicates from "./reduceDuplicates.js";
|
|
11
4
|
import repulse from "./repulse.js";
|
|
12
5
|
import repulseBack from "./repulseBack.js";
|
|
@@ -26,13 +19,6 @@ import ring from "./ring.js";
|
|
|
26
19
|
export default {
|
|
27
20
|
random,
|
|
28
21
|
randomShapes,
|
|
29
|
-
reactBubbles,
|
|
30
|
-
reactDefaults,
|
|
31
|
-
reactMultipleImages,
|
|
32
|
-
reactNightSky,
|
|
33
|
-
reactPolygonMask,
|
|
34
|
-
reactSimple,
|
|
35
|
-
reactSnow,
|
|
36
22
|
reduceDuplicates,
|
|
37
23
|
repulse,
|
|
38
24
|
repulseBack,
|
package/esm/s/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import shapeInfinity from "./shapeInfinity.js";
|
|
|
9
9
|
import shapeMultilineText from "./shapeMultilineText.js";
|
|
10
10
|
import shapeOptions from "./shapeOptions.js";
|
|
11
11
|
import shapePath from "./shapePath.js";
|
|
12
|
+
import shapeRibbon from "./shapeRibbon.js";
|
|
12
13
|
import shapeRoundedPolygon from "./shapeRoundedPolygon.js";
|
|
13
14
|
import shapeRoundedRect from "./shapeRoundedRect.js";
|
|
14
15
|
import shapeSpiral from "./shapeSpiral.js";
|
|
@@ -38,6 +39,7 @@ export default {
|
|
|
38
39
|
shapeMultilineText,
|
|
39
40
|
shapeOptions,
|
|
40
41
|
shapePath,
|
|
42
|
+
shapeRibbon,
|
|
41
43
|
shapeRoundedPolygon,
|
|
42
44
|
shapeRoundedRect,
|
|
43
45
|
shapeSpiral,
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
const options = {
|
|
2
|
+
key: "shapeRibbon",
|
|
3
|
+
name: "Shape Ribbon",
|
|
4
|
+
particles: {
|
|
5
|
+
number: {
|
|
6
|
+
value: 18,
|
|
7
|
+
density: {
|
|
8
|
+
enable: false,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
paint: {
|
|
12
|
+
fill: {
|
|
13
|
+
color: {
|
|
14
|
+
value: "#ff0000",
|
|
15
|
+
animation: {
|
|
16
|
+
enable: true,
|
|
17
|
+
speed: 8,
|
|
18
|
+
sync: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
enable: true,
|
|
22
|
+
},
|
|
23
|
+
stroke: {
|
|
24
|
+
color: {
|
|
25
|
+
value: "#ffffff",
|
|
26
|
+
animation: {
|
|
27
|
+
enable: true,
|
|
28
|
+
speed: 8,
|
|
29
|
+
sync: true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
width: 1,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
shape: {
|
|
36
|
+
type: "ribbon",
|
|
37
|
+
options: {
|
|
38
|
+
ribbon: {
|
|
39
|
+
angle: 45,
|
|
40
|
+
darken: {
|
|
41
|
+
enable: true,
|
|
42
|
+
value: 30,
|
|
43
|
+
},
|
|
44
|
+
count: 50,
|
|
45
|
+
drag: 0.05,
|
|
46
|
+
mass: 1,
|
|
47
|
+
oscillationDistance: 40,
|
|
48
|
+
oscillationSpeed: 3,
|
|
49
|
+
particleDist: 8,
|
|
50
|
+
velocityInherit: 5,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
opacity: {
|
|
55
|
+
value: 1,
|
|
56
|
+
},
|
|
57
|
+
size: {
|
|
58
|
+
value: 8,
|
|
59
|
+
},
|
|
60
|
+
links: {
|
|
61
|
+
enable: false,
|
|
62
|
+
},
|
|
63
|
+
move: {
|
|
64
|
+
enable: true,
|
|
65
|
+
direction: "none",
|
|
66
|
+
speed: 2,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
background: {
|
|
70
|
+
color: "#000000",
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
export default options;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/configs",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "tsParticles demo configurations",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"./package.json": "./package.json"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
|
-
"@tsparticles/engine": "4.0
|
|
108
|
+
"@tsparticles/engine": "4.1.0"
|
|
109
109
|
},
|
|
110
110
|
"publishConfig": {
|
|
111
111
|
"access": "public"
|