@tsparticles/configs 4.0.0-beta.5 → 4.0.0-beta.8
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/README.md +18 -0
- package/browser/c/clickConfetti.js +1 -0
- package/browser/d/delayOpacity.js +1 -0
- package/browser/d/delaySize.js +1 -0
- package/browser/d/disappearing.js +1 -0
- package/browser/e/effectFilter.js +48 -0
- package/browser/e/index.js +2 -0
- package/browser/f/fireworks.js +2 -0
- package/browser/f/fireworks2.js +1 -0
- package/browser/f/fireworks3.js +206 -0
- package/browser/f/fireworksMask.js +1 -0
- package/browser/f/index.js +2 -0
- package/browser/g/growing.js +1 -0
- package/browser/h/hyperspace.js +1 -0
- package/browser/m/mouseTrailNoise.js +1 -0
- package/browser/palettes.js +2 -1253
- package/browser/t/tilt.js +1 -0
- package/browser/w/wobble.js +1 -0
- package/browser/w/wobbleBig.js +1 -0
- package/cjs/c/clickConfetti.js +1 -0
- package/cjs/d/delayOpacity.js +1 -0
- package/cjs/d/delaySize.js +1 -0
- package/cjs/d/disappearing.js +1 -0
- package/cjs/e/effectFilter.js +48 -0
- package/cjs/e/index.js +2 -0
- package/cjs/f/fireworks.js +2 -0
- package/cjs/f/fireworks2.js +1 -0
- package/cjs/f/fireworks3.js +206 -0
- package/cjs/f/fireworksMask.js +1 -0
- package/cjs/f/index.js +2 -0
- package/cjs/g/growing.js +1 -0
- package/cjs/h/hyperspace.js +1 -0
- package/cjs/m/mouseTrailNoise.js +1 -0
- package/cjs/palettes.js +2 -1253
- package/cjs/t/tilt.js +1 -0
- package/cjs/w/wobble.js +1 -0
- package/cjs/w/wobbleBig.js +1 -0
- package/esm/c/clickConfetti.js +1 -0
- package/esm/d/delayOpacity.js +1 -0
- package/esm/d/delaySize.js +1 -0
- package/esm/d/disappearing.js +1 -0
- package/esm/e/effectFilter.js +48 -0
- package/esm/e/index.js +2 -0
- package/esm/f/fireworks.js +2 -0
- package/esm/f/fireworks2.js +1 -0
- package/esm/f/fireworks3.js +206 -0
- package/esm/f/fireworksMask.js +1 -0
- package/esm/f/index.js +2 -0
- package/esm/g/growing.js +1 -0
- package/esm/h/hyperspace.js +1 -0
- package/esm/m/mouseTrailNoise.js +1 -0
- package/esm/palettes.js +2 -1253
- package/esm/t/tilt.js +1 -0
- package/esm/w/wobble.js +1 -0
- package/esm/w/wobbleBig.js +1 -0
- package/package.json +2 -2
- package/report.html +1 -1
- package/tsparticles.configs.bundle.js +1 -1
- package/tsparticles.configs.js +36 -16
- package/tsparticles.configs.min.js +5 -5
- package/types/e/effectFilter.d.ts +3 -0
- package/types/e/index.d.ts +1 -0
- package/types/f/fireworks3.d.ts +3 -0
- package/types/f/index.d.ts +1 -0
- package/types/index.d.ts +2 -0
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
# tsParticles Demo Configs
|
|
4
4
|
|
|
5
|
+
## Quick checklist
|
|
6
|
+
|
|
7
|
+
1. Install `@tsparticles/configs` and `@tsparticles/engine`
|
|
8
|
+
2. Import one config preset (for example `configs.basic`)
|
|
9
|
+
3. Pass that config to `tsParticles.load(...)`
|
|
10
|
+
|
|
5
11
|
## Installation
|
|
6
12
|
|
|
7
13
|
```bash
|
|
@@ -56,3 +62,15 @@ import * as configs from "@tsparticles/configs";
|
|
|
56
62
|
Some configs need plugins to work, they are not installed with this library.
|
|
57
63
|
|
|
58
64
|
This library contains only the config files, the plugins must be installed separately.
|
|
65
|
+
|
|
66
|
+
## Common pitfalls
|
|
67
|
+
|
|
68
|
+
- Using a config that requires plugins without loading those plugins first
|
|
69
|
+
- Assuming this package bundles runtime plugins (it only exports config objects)
|
|
70
|
+
- Mixing config objects from different versions without checking option compatibility
|
|
71
|
+
|
|
72
|
+
## Related docs
|
|
73
|
+
|
|
74
|
+
- Main docs: <https://particles.js.org/docs/>
|
|
75
|
+
- Root options guide: <https://github.com/tsparticles/tsparticles/blob/main/markdown/Options.md>
|
|
76
|
+
- Repository README: <https://github.com/tsparticles/tsparticles/blob/main/README.md>
|
package/browser/d/delaySize.js
CHANGED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const options = {
|
|
2
|
+
key: "effectFilter",
|
|
3
|
+
name: "Effect Filter",
|
|
4
|
+
particles: {
|
|
5
|
+
number: {
|
|
6
|
+
value: 80,
|
|
7
|
+
density: {
|
|
8
|
+
enable: true,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
fill: {
|
|
12
|
+
color: {
|
|
13
|
+
value: "#ff0000",
|
|
14
|
+
animation: {
|
|
15
|
+
enable: true,
|
|
16
|
+
speed: 20,
|
|
17
|
+
sync: true,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
enable: true,
|
|
21
|
+
},
|
|
22
|
+
effect: {
|
|
23
|
+
type: "filter",
|
|
24
|
+
options: {
|
|
25
|
+
filter: {
|
|
26
|
+
blur: 4,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
shape: {
|
|
31
|
+
type: "circle",
|
|
32
|
+
},
|
|
33
|
+
size: {
|
|
34
|
+
value: {
|
|
35
|
+
min: 5,
|
|
36
|
+
max: 50,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
move: {
|
|
40
|
+
enable: true,
|
|
41
|
+
speed: 6,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
background: {
|
|
45
|
+
color: "#000000",
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
export default options;
|
package/browser/e/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import effectBubble from "./effectBubble.js";
|
|
2
|
+
import effectFilter from "./effectFilter.js";
|
|
2
3
|
import effectParticles from "./effectParticles.js";
|
|
3
4
|
import effectTrail from "./effectTrail.js";
|
|
4
5
|
import effectTrailTransform from "./effectTrailTransform.js";
|
|
@@ -14,6 +15,7 @@ import emitterTextShape from "./emitterTextShape.js";
|
|
|
14
15
|
import emitterTextStrokeShape from "./emitterTextStrokeShape.js";
|
|
15
16
|
export default {
|
|
16
17
|
effectBubble,
|
|
18
|
+
effectFilter,
|
|
17
19
|
effectParticles,
|
|
18
20
|
effectTrail,
|
|
19
21
|
effectTrailTransform,
|
package/browser/f/fireworks.js
CHANGED
|
@@ -114,6 +114,7 @@ const options = {
|
|
|
114
114
|
sync: false,
|
|
115
115
|
startValue: "max",
|
|
116
116
|
destroy: "min",
|
|
117
|
+
count: 1,
|
|
117
118
|
},
|
|
118
119
|
},
|
|
119
120
|
shape: {
|
|
@@ -169,6 +170,7 @@ const options = {
|
|
|
169
170
|
speed: 90,
|
|
170
171
|
startValue: "max",
|
|
171
172
|
destroy: "min",
|
|
173
|
+
count: 1,
|
|
172
174
|
},
|
|
173
175
|
},
|
|
174
176
|
stroke: {
|
package/browser/f/fireworks2.js
CHANGED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { EventType, identity } from "@tsparticles/engine";
|
|
2
|
+
const thirdFactor = 3, third = identity / thirdFactor, options = {
|
|
3
|
+
key: "fireworks3",
|
|
4
|
+
name: "Fireworks 3",
|
|
5
|
+
fullScreen: {
|
|
6
|
+
enable: true,
|
|
7
|
+
},
|
|
8
|
+
background: {
|
|
9
|
+
color: "#000",
|
|
10
|
+
},
|
|
11
|
+
blend: {
|
|
12
|
+
enable: true,
|
|
13
|
+
mode: "lighter",
|
|
14
|
+
},
|
|
15
|
+
emitters: {
|
|
16
|
+
direction: "top",
|
|
17
|
+
life: {
|
|
18
|
+
count: 0,
|
|
19
|
+
duration: 0.1,
|
|
20
|
+
delay: 0.1,
|
|
21
|
+
},
|
|
22
|
+
rate: {
|
|
23
|
+
delay: 0.1,
|
|
24
|
+
quantity: 1,
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
width: 100,
|
|
28
|
+
height: 0,
|
|
29
|
+
},
|
|
30
|
+
position: {
|
|
31
|
+
y: 100,
|
|
32
|
+
x: 50,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
particles: {
|
|
36
|
+
stroke: {
|
|
37
|
+
color: {
|
|
38
|
+
value: [
|
|
39
|
+
"#FF0000",
|
|
40
|
+
"#FF2A00",
|
|
41
|
+
"#FF5500",
|
|
42
|
+
"#FF8000",
|
|
43
|
+
"#FFAA00",
|
|
44
|
+
"#FFD400",
|
|
45
|
+
"#FFFF00",
|
|
46
|
+
"#D4FF00",
|
|
47
|
+
"#AAFF00",
|
|
48
|
+
"#80FF00",
|
|
49
|
+
"#55FF00",
|
|
50
|
+
"#2AFF00",
|
|
51
|
+
"#00FF00",
|
|
52
|
+
"#00FF2A",
|
|
53
|
+
"#00FF55",
|
|
54
|
+
"#00FF80",
|
|
55
|
+
"#00FFAA",
|
|
56
|
+
"#00FFD4",
|
|
57
|
+
"#00FFFF",
|
|
58
|
+
"#00D4FF",
|
|
59
|
+
"#00AAFF",
|
|
60
|
+
"#0080FF",
|
|
61
|
+
"#0055FF",
|
|
62
|
+
"#002AFF",
|
|
63
|
+
"#0000FF",
|
|
64
|
+
"#2A00FF",
|
|
65
|
+
"#5500FF",
|
|
66
|
+
"#8000FF",
|
|
67
|
+
"#AA00FF",
|
|
68
|
+
"#D400FF",
|
|
69
|
+
"#FF00FF",
|
|
70
|
+
"#FF00D4",
|
|
71
|
+
"#FF00AA",
|
|
72
|
+
"#FF0080",
|
|
73
|
+
"#FF0055",
|
|
74
|
+
"#FF002A",
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
width: 2,
|
|
78
|
+
},
|
|
79
|
+
number: {
|
|
80
|
+
value: 0,
|
|
81
|
+
},
|
|
82
|
+
destroy: {
|
|
83
|
+
bounds: {
|
|
84
|
+
top: { min: 10, max: 30 },
|
|
85
|
+
},
|
|
86
|
+
mode: "split",
|
|
87
|
+
split: {
|
|
88
|
+
count: 1,
|
|
89
|
+
factor: {
|
|
90
|
+
value: third,
|
|
91
|
+
},
|
|
92
|
+
rate: {
|
|
93
|
+
value: 100,
|
|
94
|
+
},
|
|
95
|
+
strokeColorOffset: {
|
|
96
|
+
l: {
|
|
97
|
+
min: -30,
|
|
98
|
+
max: 30,
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
particles: {
|
|
102
|
+
destroy: {
|
|
103
|
+
bounds: {
|
|
104
|
+
top: 0,
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
opacity: {
|
|
108
|
+
value: {
|
|
109
|
+
min: 0.1,
|
|
110
|
+
max: 1,
|
|
111
|
+
},
|
|
112
|
+
animation: {
|
|
113
|
+
enable: true,
|
|
114
|
+
speed: { min: 2, max: 4 },
|
|
115
|
+
sync: true,
|
|
116
|
+
startValue: "max",
|
|
117
|
+
destroy: "min",
|
|
118
|
+
count: 1,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
size: {
|
|
122
|
+
value: { min: 5, max: 10 },
|
|
123
|
+
animation: {
|
|
124
|
+
enable: false,
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
life: {
|
|
128
|
+
count: 1,
|
|
129
|
+
duration: {
|
|
130
|
+
value: {
|
|
131
|
+
min: 0.5,
|
|
132
|
+
max: 1,
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
move: {
|
|
137
|
+
gravity: {
|
|
138
|
+
enable: false,
|
|
139
|
+
},
|
|
140
|
+
enable: true,
|
|
141
|
+
decay: 0.05,
|
|
142
|
+
speed: {
|
|
143
|
+
min: 10,
|
|
144
|
+
max: 25,
|
|
145
|
+
},
|
|
146
|
+
direction: "outside",
|
|
147
|
+
outModes: "destroy",
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
life: {
|
|
153
|
+
count: 1,
|
|
154
|
+
},
|
|
155
|
+
shape: {
|
|
156
|
+
type: "line",
|
|
157
|
+
options: {
|
|
158
|
+
line: {
|
|
159
|
+
cap: "round",
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
size: {
|
|
164
|
+
value: { min: 10, max: 20 },
|
|
165
|
+
},
|
|
166
|
+
move: {
|
|
167
|
+
enable: true,
|
|
168
|
+
gravity: {
|
|
169
|
+
acceleration: 30,
|
|
170
|
+
enable: true,
|
|
171
|
+
inverse: true,
|
|
172
|
+
maxSpeed: 150,
|
|
173
|
+
},
|
|
174
|
+
speed: {
|
|
175
|
+
min: 20,
|
|
176
|
+
max: 40,
|
|
177
|
+
},
|
|
178
|
+
outModes: {
|
|
179
|
+
default: "destroy",
|
|
180
|
+
top: "none",
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
rotate: {
|
|
184
|
+
path: true,
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
sounds: {
|
|
188
|
+
enable: true,
|
|
189
|
+
events: [
|
|
190
|
+
{
|
|
191
|
+
event: EventType.particleRemoved,
|
|
192
|
+
filter: (args) => {
|
|
193
|
+
const particle = args.data?.particle;
|
|
194
|
+
return particle?.options.move.gravity.enable ?? false;
|
|
195
|
+
},
|
|
196
|
+
audio: [
|
|
197
|
+
"https://particles.js.org/audio/explosion0.mp3",
|
|
198
|
+
"https://particles.js.org/audio/explosion1.mp3",
|
|
199
|
+
"https://particles.js.org/audio/explosion2.mp3",
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
volume: 50,
|
|
204
|
+
},
|
|
205
|
+
};
|
|
206
|
+
export default options;
|
package/browser/f/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fallingConfetti from "./fallingConfetti.js";
|
|
2
2
|
import fireworks from "./fireworks.js";
|
|
3
3
|
import fireworks2 from "./fireworks2.js";
|
|
4
|
+
import fireworks3 from "./fireworks3.js";
|
|
4
5
|
import fireworksMask from "./fireworksMask.js";
|
|
5
6
|
import fontawesome from "./fontawesome.js";
|
|
6
7
|
import forward from "./forward.js";
|
|
@@ -8,6 +9,7 @@ export default {
|
|
|
8
9
|
fallingConfetti,
|
|
9
10
|
fireworks,
|
|
10
11
|
fireworks2,
|
|
12
|
+
fireworks3,
|
|
11
13
|
fireworksMask,
|
|
12
14
|
fontawesome,
|
|
13
15
|
forward,
|
package/browser/g/growing.js
CHANGED
package/browser/h/hyperspace.js
CHANGED