@tsparticles/configs 3.2.2 → 3.4.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/c/clickConfetti.js +0 -1
- package/browser/e/effectTrailTransform.js +57 -0
- package/browser/e/emitterSpawnColor.js +6 -5
- package/browser/e/index.js +2 -0
- package/browser/f/fireworks.js +3 -1
- package/browser/f/fireworks2.js +2 -1
- package/browser/g/gradients.js +9 -8
- package/browser/i/imagesDirections.js +3 -2
- package/browser/m/mouseTrailNoise.js +0 -1
- package/browser/p/pop.js +2 -1
- package/browser/r/index.js +2 -0
- package/browser/r/randomShapes.js +417 -0
- package/browser/s/index.js +2 -0
- package/browser/s/shapeEmoji.js +6 -6
- package/browser/s/shapeInfinity.js +88 -0
- package/browser/t/tilt.js +0 -4
- package/browser/w/index.js +2 -0
- package/browser/w/wobble.js +0 -1
- package/browser/w/wobbleBig.js +139 -0
- package/cjs/c/clickConfetti.js +0 -1
- package/cjs/e/effectTrailTransform.js +59 -0
- package/cjs/e/emitterSpawnColor.js +6 -5
- package/cjs/e/index.js +2 -0
- package/cjs/f/fireworks.js +3 -1
- package/cjs/f/fireworks2.js +2 -1
- package/cjs/g/gradients.js +9 -8
- package/cjs/i/imagesDirections.js +3 -2
- package/cjs/m/mouseTrailNoise.js +0 -1
- package/cjs/p/pop.js +2 -1
- package/cjs/r/index.js +2 -0
- package/cjs/r/randomShapes.js +419 -0
- package/cjs/s/index.js +2 -0
- package/cjs/s/shapeEmoji.js +6 -6
- package/cjs/s/shapeInfinity.js +90 -0
- package/cjs/t/tilt.js +0 -4
- package/cjs/w/index.js +2 -0
- package/cjs/w/wobble.js +0 -1
- package/cjs/w/wobbleBig.js +141 -0
- package/esm/c/clickConfetti.js +0 -1
- package/esm/e/effectTrailTransform.js +57 -0
- package/esm/e/emitterSpawnColor.js +6 -5
- package/esm/e/index.js +2 -0
- package/esm/f/fireworks.js +3 -1
- package/esm/f/fireworks2.js +2 -1
- package/esm/g/gradients.js +9 -8
- package/esm/i/imagesDirections.js +3 -2
- package/esm/m/mouseTrailNoise.js +0 -1
- package/esm/p/pop.js +2 -1
- package/esm/r/index.js +2 -0
- package/esm/r/randomShapes.js +417 -0
- package/esm/s/index.js +2 -0
- package/esm/s/shapeEmoji.js +6 -6
- package/esm/s/shapeInfinity.js +88 -0
- package/esm/t/tilt.js +0 -4
- package/esm/w/index.js +2 -0
- package/esm/w/wobble.js +0 -1
- package/esm/w/wobbleBig.js +139 -0
- package/package.json +2 -2
- package/report.html +1 -1
- package/tsparticles.configs.bundle.js +1 -1
- package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.configs.js +55 -15
- package/tsparticles.configs.min.js +1 -1
- package/tsparticles.configs.min.js.LICENSE.txt +1 -1
- package/types/e/effectTrailTransform.d.ts +3 -0
- package/types/e/index.d.ts +1 -0
- package/types/index.d.ts +4 -0
- package/types/r/index.d.ts +1 -0
- package/types/r/randomShapes.d.ts +3 -0
- package/types/s/index.d.ts +1 -0
- package/types/s/shapeInfinity.d.ts +3 -0
- package/types/w/index.d.ts +1 -0
- package/types/w/wobbleBig.d.ts +3 -0
- package/umd/c/clickConfetti.js +0 -1
- package/umd/e/effectTrailTransform.js +69 -0
- package/umd/e/emitterSpawnColor.js +7 -6
- package/umd/e/index.js +3 -1
- package/umd/f/fireworks.js +4 -2
- package/umd/f/fireworks2.js +3 -2
- package/umd/g/gradients.js +10 -9
- package/umd/i/imagesDirections.js +4 -3
- package/umd/m/mouseTrailNoise.js +0 -1
- package/umd/p/pop.js +3 -2
- package/umd/r/index.js +3 -1
- package/umd/r/randomShapes.js +429 -0
- package/umd/s/index.js +3 -1
- package/umd/s/shapeEmoji.js +7 -7
- package/umd/s/shapeInfinity.js +100 -0
- package/umd/t/tilt.js +0 -4
- package/umd/w/index.js +3 -1
- package/umd/w/wobble.js +0 -1
- package/umd/w/wobbleBig.js +151 -0
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
const options = {
|
|
2
|
+
key: "randomShapes",
|
|
3
|
+
name: "Random Shapes",
|
|
4
|
+
interactivity: {
|
|
5
|
+
events: {
|
|
6
|
+
onClick: {
|
|
7
|
+
enable: true,
|
|
8
|
+
mode: "push",
|
|
9
|
+
},
|
|
10
|
+
onHover: {
|
|
11
|
+
enable: true,
|
|
12
|
+
mode: "bubble",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
modes: {
|
|
16
|
+
bubble: {
|
|
17
|
+
distance: 400,
|
|
18
|
+
duration: 2,
|
|
19
|
+
opacity: 0.8,
|
|
20
|
+
size: 40,
|
|
21
|
+
},
|
|
22
|
+
push: {
|
|
23
|
+
quantity: 4,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
particles: {
|
|
28
|
+
color: {
|
|
29
|
+
value: "#000000",
|
|
30
|
+
},
|
|
31
|
+
stroke: {
|
|
32
|
+
color: {
|
|
33
|
+
value: "#ff0000",
|
|
34
|
+
},
|
|
35
|
+
width: 1,
|
|
36
|
+
},
|
|
37
|
+
move: {
|
|
38
|
+
enable: true,
|
|
39
|
+
speed: 2,
|
|
40
|
+
},
|
|
41
|
+
number: {
|
|
42
|
+
density: {
|
|
43
|
+
enable: true,
|
|
44
|
+
},
|
|
45
|
+
value: 80,
|
|
46
|
+
},
|
|
47
|
+
opacity: {
|
|
48
|
+
value: 1,
|
|
49
|
+
},
|
|
50
|
+
rotate: {
|
|
51
|
+
animation: {
|
|
52
|
+
enable: true,
|
|
53
|
+
speed: 5,
|
|
54
|
+
sync: false,
|
|
55
|
+
},
|
|
56
|
+
direction: "random",
|
|
57
|
+
value: {
|
|
58
|
+
min: 0,
|
|
59
|
+
max: 360,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
shape: {
|
|
63
|
+
options: {
|
|
64
|
+
image: [
|
|
65
|
+
{
|
|
66
|
+
name: "apple",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "avocado",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "banana",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "berries",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "cherry",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "grapes",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "lemon",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "orange",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "peach",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "pear",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "pepper",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "plum",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "star",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "strawberry",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "watermelon",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "watermelon_slice",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
arrow: {
|
|
115
|
+
heightFactor: {
|
|
116
|
+
min: 0.3,
|
|
117
|
+
max: 0.8,
|
|
118
|
+
},
|
|
119
|
+
headWidthFactor: {
|
|
120
|
+
min: 0.3,
|
|
121
|
+
max: 0.8,
|
|
122
|
+
},
|
|
123
|
+
bodyHeightFactor: {
|
|
124
|
+
min: 0.3,
|
|
125
|
+
max: 0.8,
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
cog: {
|
|
129
|
+
holeRadius: 44,
|
|
130
|
+
innerRadius: 72,
|
|
131
|
+
innerTaper: 35,
|
|
132
|
+
notches: 7,
|
|
133
|
+
outerTaper: 50,
|
|
134
|
+
},
|
|
135
|
+
emoji: {
|
|
136
|
+
value: "🌈",
|
|
137
|
+
},
|
|
138
|
+
text: {
|
|
139
|
+
value: "pippo\npluto",
|
|
140
|
+
},
|
|
141
|
+
path: [
|
|
142
|
+
{
|
|
143
|
+
segments: [
|
|
144
|
+
{
|
|
145
|
+
type: "line",
|
|
146
|
+
values: [
|
|
147
|
+
{
|
|
148
|
+
x: -0.5,
|
|
149
|
+
y: -0.5,
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
type: "bezier",
|
|
155
|
+
values: [
|
|
156
|
+
{
|
|
157
|
+
x: -0.5,
|
|
158
|
+
y: 0.5,
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
x: 1,
|
|
162
|
+
y: 1,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
x: 1,
|
|
166
|
+
y: 0.5,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
x: 1,
|
|
170
|
+
y: -0.5,
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
type: "quadratic",
|
|
176
|
+
values: [
|
|
177
|
+
{
|
|
178
|
+
x: 0.5,
|
|
179
|
+
y: 0.5,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
x: 0.5,
|
|
183
|
+
y: -0.5,
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
x: -0.5,
|
|
187
|
+
y: 0.5,
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
type: "line",
|
|
193
|
+
values: [
|
|
194
|
+
{
|
|
195
|
+
x: 0.5,
|
|
196
|
+
y: -0.5,
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
half: false,
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
segments: [
|
|
205
|
+
{
|
|
206
|
+
type: "line",
|
|
207
|
+
values: [
|
|
208
|
+
{
|
|
209
|
+
x: -1,
|
|
210
|
+
y: -1,
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
type: "bezier",
|
|
216
|
+
values: [
|
|
217
|
+
{
|
|
218
|
+
x: -1,
|
|
219
|
+
y: 1,
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
x: 1,
|
|
223
|
+
y: 1,
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
x: 0.5,
|
|
227
|
+
y: 1,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
x: -0.5,
|
|
231
|
+
y: 1,
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
type: "quadratic",
|
|
237
|
+
values: [
|
|
238
|
+
{
|
|
239
|
+
x: 1,
|
|
240
|
+
y: 1,
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
x: 1,
|
|
244
|
+
y: -1,
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
x: -1,
|
|
248
|
+
y: 1,
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
type: "line",
|
|
254
|
+
values: [
|
|
255
|
+
{
|
|
256
|
+
x: 1,
|
|
257
|
+
y: -1,
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
half: false,
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
"rounded-polygon": [
|
|
266
|
+
{
|
|
267
|
+
radius: { min: 0, max: 10 },
|
|
268
|
+
sides: { min: 3, max: 8 },
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
"rounded-rect": {
|
|
272
|
+
radius: { min: 5, max: 15 },
|
|
273
|
+
},
|
|
274
|
+
spiral: {
|
|
275
|
+
innerRadius: 0.5,
|
|
276
|
+
lineSpacing: 0.5,
|
|
277
|
+
fill: false,
|
|
278
|
+
close: false,
|
|
279
|
+
},
|
|
280
|
+
spades: {
|
|
281
|
+
particles: {
|
|
282
|
+
color: {
|
|
283
|
+
value: "#000000",
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
hearts: {
|
|
288
|
+
particles: {
|
|
289
|
+
color: {
|
|
290
|
+
value: "#ff0000",
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
diamonds: {
|
|
295
|
+
particles: {
|
|
296
|
+
color: {
|
|
297
|
+
value: "#ff0000",
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
clubs: {
|
|
302
|
+
particles: {
|
|
303
|
+
color: {
|
|
304
|
+
value: "#000000",
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
type: "random",
|
|
310
|
+
},
|
|
311
|
+
size: {
|
|
312
|
+
value: 16,
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
background: {
|
|
316
|
+
color: "#fff",
|
|
317
|
+
},
|
|
318
|
+
preload: [
|
|
319
|
+
{
|
|
320
|
+
src: "https://particles.js.org/images/fruits/apple.png",
|
|
321
|
+
name: "apple",
|
|
322
|
+
width: 32,
|
|
323
|
+
height: 32,
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
src: "https://particles.js.org/images/fruits/avocado.png",
|
|
327
|
+
name: "avocado",
|
|
328
|
+
width: 32,
|
|
329
|
+
height: 32,
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
src: "https://particles.js.org/images/fruits/banana.png",
|
|
333
|
+
name: "banana",
|
|
334
|
+
width: 32,
|
|
335
|
+
height: 32,
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
src: "https://particles.js.org/images/fruits/berries.png",
|
|
339
|
+
name: "berries",
|
|
340
|
+
width: 32,
|
|
341
|
+
height: 32,
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
src: "https://particles.js.org/images/fruits/cherry.png",
|
|
345
|
+
name: "cherry",
|
|
346
|
+
width: 32,
|
|
347
|
+
height: 32,
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
src: "https://particles.js.org/images/fruits/grapes.png",
|
|
351
|
+
name: "grapes",
|
|
352
|
+
width: 32,
|
|
353
|
+
height: 32,
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
src: "https://particles.js.org/images/fruits/lemon.png",
|
|
357
|
+
name: "lemon",
|
|
358
|
+
width: 32,
|
|
359
|
+
height: 32,
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
src: "https://particles.js.org/images/fruits/orange.png",
|
|
363
|
+
name: "orange",
|
|
364
|
+
width: 32,
|
|
365
|
+
height: 32,
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
src: "https://particles.js.org/images/fruits/peach.png",
|
|
369
|
+
name: "peach",
|
|
370
|
+
width: 32,
|
|
371
|
+
height: 32,
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
src: "https://particles.js.org/images/fruits/pear.png",
|
|
375
|
+
name: "pear",
|
|
376
|
+
width: 32,
|
|
377
|
+
height: 32,
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
src: "https://particles.js.org/images/fruits/pepper.png",
|
|
381
|
+
name: "pepper",
|
|
382
|
+
width: 32,
|
|
383
|
+
height: 32,
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
src: "https://particles.js.org/images/fruits/plum.png",
|
|
387
|
+
name: "plum",
|
|
388
|
+
width: 32,
|
|
389
|
+
height: 32,
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
src: "https://particles.js.org/images/fruits/star.png",
|
|
393
|
+
name: "star",
|
|
394
|
+
width: 32,
|
|
395
|
+
height: 32,
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
src: "https://particles.js.org/images/fruits/strawberry.png",
|
|
399
|
+
name: "strawberry",
|
|
400
|
+
width: 32,
|
|
401
|
+
height: 32,
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
src: "https://particles.js.org/images/fruits/watermelon.png",
|
|
405
|
+
name: "watermelon",
|
|
406
|
+
width: 32,
|
|
407
|
+
height: 32,
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
src: "https://particles.js.org/images/fruits/watermelon_slice.png",
|
|
411
|
+
name: "watermelon_slice",
|
|
412
|
+
width: 32,
|
|
413
|
+
height: 32,
|
|
414
|
+
},
|
|
415
|
+
],
|
|
416
|
+
};
|
|
417
|
+
export default options;
|
package/browser/s/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import shapeArrow from "./shapeArrow.js";
|
|
|
4
4
|
import shapeCog from "./shapeCog.js";
|
|
5
5
|
import shapeEmoji from "./shapeEmoji.js";
|
|
6
6
|
import shapeHeart from "./shapeHeart.js";
|
|
7
|
+
import shapeInfinity from "./shapeInfinity.js";
|
|
7
8
|
import shapeMultilineText from "./shapeMultilineText.js";
|
|
8
9
|
import shapeOptions from "./shapeOptions.js";
|
|
9
10
|
import shapePath from "./shapePath.js";
|
|
@@ -30,6 +31,7 @@ export default {
|
|
|
30
31
|
shapeCog,
|
|
31
32
|
shapeEmoji,
|
|
32
33
|
shapeHeart,
|
|
34
|
+
shapeInfinity,
|
|
33
35
|
shapeMultilineText,
|
|
34
36
|
shapeOptions,
|
|
35
37
|
shapePath,
|
package/browser/s/shapeEmoji.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MoveDirection } from "@tsparticles/engine";
|
|
1
2
|
const emitterRate = {
|
|
2
3
|
delay: 0.1,
|
|
3
4
|
quantity: 2,
|
|
@@ -40,7 +41,6 @@ const emitterRate = {
|
|
|
40
41
|
tilt: {
|
|
41
42
|
direction: "random",
|
|
42
43
|
enable: true,
|
|
43
|
-
move: true,
|
|
44
44
|
value: {
|
|
45
45
|
min: 0,
|
|
46
46
|
max: 360,
|
|
@@ -88,7 +88,7 @@ const emitterRate = {
|
|
|
88
88
|
rate: emitterRate,
|
|
89
89
|
particles: {
|
|
90
90
|
move: {
|
|
91
|
-
direction:
|
|
91
|
+
direction: MoveDirection.topRight,
|
|
92
92
|
},
|
|
93
93
|
shape: {
|
|
94
94
|
type: "emoji",
|
|
@@ -108,7 +108,7 @@ const emitterRate = {
|
|
|
108
108
|
rate: emitterRate,
|
|
109
109
|
particles: {
|
|
110
110
|
move: {
|
|
111
|
-
direction:
|
|
111
|
+
direction: MoveDirection.topRight,
|
|
112
112
|
},
|
|
113
113
|
shape: {
|
|
114
114
|
type: "emoji",
|
|
@@ -128,7 +128,7 @@ const emitterRate = {
|
|
|
128
128
|
rate: emitterRate,
|
|
129
129
|
particles: {
|
|
130
130
|
move: {
|
|
131
|
-
direction:
|
|
131
|
+
direction: MoveDirection.topLeft,
|
|
132
132
|
},
|
|
133
133
|
shape: {
|
|
134
134
|
type: "emoji",
|
|
@@ -148,7 +148,7 @@ const emitterRate = {
|
|
|
148
148
|
rate: emitterRate,
|
|
149
149
|
particles: {
|
|
150
150
|
move: {
|
|
151
|
-
direction:
|
|
151
|
+
direction: MoveDirection.topLeft,
|
|
152
152
|
},
|
|
153
153
|
shape: {
|
|
154
154
|
type: "emoji",
|
|
@@ -168,7 +168,7 @@ const emitterRate = {
|
|
|
168
168
|
rate: emitterRate,
|
|
169
169
|
particles: {
|
|
170
170
|
move: {
|
|
171
|
-
direction:
|
|
171
|
+
direction: MoveDirection.top,
|
|
172
172
|
},
|
|
173
173
|
shape: {
|
|
174
174
|
type: "emoji",
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
const options = {
|
|
2
|
+
key: "shapeInfinity",
|
|
3
|
+
name: "Shape Infinity",
|
|
4
|
+
particles: {
|
|
5
|
+
number: {
|
|
6
|
+
value: 80,
|
|
7
|
+
density: {
|
|
8
|
+
enable: true,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
color: {
|
|
12
|
+
value: "transparent",
|
|
13
|
+
},
|
|
14
|
+
stroke: {
|
|
15
|
+
color: {
|
|
16
|
+
value: "#ff0000",
|
|
17
|
+
animation: {
|
|
18
|
+
enable: true,
|
|
19
|
+
speed: 20,
|
|
20
|
+
sync: true,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
width: 1,
|
|
24
|
+
},
|
|
25
|
+
shape: {
|
|
26
|
+
type: "infinity",
|
|
27
|
+
},
|
|
28
|
+
opacity: {
|
|
29
|
+
value: 0.5,
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
value: {
|
|
33
|
+
min: 20,
|
|
34
|
+
max: 30,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
move: {
|
|
38
|
+
enable: true,
|
|
39
|
+
speed: 6,
|
|
40
|
+
},
|
|
41
|
+
rotate: {
|
|
42
|
+
animation: {
|
|
43
|
+
enable: true,
|
|
44
|
+
speed: 20,
|
|
45
|
+
sync: false,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
interactivity: {
|
|
50
|
+
events: {
|
|
51
|
+
onHover: {
|
|
52
|
+
enable: true,
|
|
53
|
+
mode: "repulse",
|
|
54
|
+
},
|
|
55
|
+
onClick: {
|
|
56
|
+
enable: true,
|
|
57
|
+
mode: "push",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
modes: {
|
|
61
|
+
grab: {
|
|
62
|
+
distance: 400,
|
|
63
|
+
links: {
|
|
64
|
+
opacity: 1,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
bubble: {
|
|
68
|
+
distance: 400,
|
|
69
|
+
size: 40,
|
|
70
|
+
duration: 2,
|
|
71
|
+
opacity: 0.8,
|
|
72
|
+
},
|
|
73
|
+
repulse: {
|
|
74
|
+
distance: 200,
|
|
75
|
+
},
|
|
76
|
+
push: {
|
|
77
|
+
quantity: 4,
|
|
78
|
+
},
|
|
79
|
+
remove: {
|
|
80
|
+
quantity: 2,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
background: {
|
|
85
|
+
color: "#000000",
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
export default options;
|
package/browser/t/tilt.js
CHANGED
package/browser/w/index.js
CHANGED