@tsparticles/configs 3.0.0-beta.4 → 3.0.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.
Files changed (75) hide show
  1. package/browser/e/effectTrail.js +2 -1
  2. package/browser/f/fireworks2.js +196 -0
  3. package/browser/f/index.js +2 -0
  4. package/browser/h/hollowknight.js +5 -2
  5. package/browser/i/imagesDirections.js +5 -2
  6. package/browser/l/localPolygonMask.js +5 -2
  7. package/browser/m/multiplePolygonMasks.js +5 -2
  8. package/browser/n/index.js +4 -2
  9. package/browser/n/noClear.js +98 -0
  10. package/browser/n/{noconfig.js → noConfig.js} +0 -4
  11. package/browser/p/pathPolygonMask.js +5 -2
  12. package/browser/p/polygonMask.js +5 -2
  13. package/browser/s/index.js +2 -0
  14. package/browser/s/shapeEmoji.js +184 -0
  15. package/browser/t/themes.js +0 -1
  16. package/cjs/e/effectTrail.js +2 -1
  17. package/cjs/f/fireworks2.js +198 -0
  18. package/cjs/f/index.js +2 -0
  19. package/cjs/h/hollowknight.js +5 -2
  20. package/cjs/i/imagesDirections.js +5 -2
  21. package/cjs/l/localPolygonMask.js +5 -2
  22. package/cjs/m/multiplePolygonMasks.js +5 -2
  23. package/cjs/n/index.js +4 -2
  24. package/cjs/n/noClear.js +100 -0
  25. package/cjs/n/{noconfig.js → noConfig.js} +0 -4
  26. package/cjs/p/pathPolygonMask.js +5 -2
  27. package/cjs/p/polygonMask.js +5 -2
  28. package/cjs/s/index.js +2 -0
  29. package/cjs/s/shapeEmoji.js +186 -0
  30. package/cjs/t/themes.js +0 -1
  31. package/esm/e/effectTrail.js +2 -1
  32. package/esm/f/fireworks2.js +196 -0
  33. package/esm/f/index.js +2 -0
  34. package/esm/h/hollowknight.js +5 -2
  35. package/esm/i/imagesDirections.js +5 -2
  36. package/esm/l/localPolygonMask.js +5 -2
  37. package/esm/m/multiplePolygonMasks.js +5 -2
  38. package/esm/n/index.js +4 -2
  39. package/esm/n/noClear.js +98 -0
  40. package/esm/n/{noconfig.js → noConfig.js} +0 -4
  41. package/esm/p/pathPolygonMask.js +5 -2
  42. package/esm/p/polygonMask.js +5 -2
  43. package/esm/s/index.js +2 -0
  44. package/esm/s/shapeEmoji.js +184 -0
  45. package/esm/t/themes.js +0 -1
  46. package/package.json +2 -2
  47. package/report.html +3 -3
  48. package/tsparticles.configs.bundle.js +1 -1
  49. package/tsparticles.configs.bundle.min.js.LICENSE.txt +1 -1
  50. package/tsparticles.configs.js +466 -24
  51. package/tsparticles.configs.min.js +1 -1
  52. package/tsparticles.configs.min.js.LICENSE.txt +1 -1
  53. package/types/f/index.d.ts +1 -0
  54. package/types/index.d.ts +4 -1
  55. package/types/n/index.d.ts +2 -1
  56. package/types/n/noClear.d.ts +3 -0
  57. package/types/n/noConfig.d.ts +3 -0
  58. package/types/s/index.d.ts +1 -0
  59. package/types/s/shapeEmoji.d.ts +3 -0
  60. package/umd/e/effectTrail.js +2 -1
  61. package/umd/f/fireworks2.js +208 -0
  62. package/umd/f/index.js +3 -1
  63. package/umd/h/hollowknight.js +5 -2
  64. package/umd/i/imagesDirections.js +5 -2
  65. package/umd/l/localPolygonMask.js +5 -2
  66. package/umd/m/multiplePolygonMasks.js +5 -2
  67. package/umd/n/index.js +5 -3
  68. package/umd/n/noClear.js +110 -0
  69. package/umd/n/{noconfig.js → noConfig.js} +0 -4
  70. package/umd/p/pathPolygonMask.js +5 -2
  71. package/umd/p/polygonMask.js +5 -2
  72. package/umd/s/index.js +3 -1
  73. package/umd/s/shapeEmoji.js +196 -0
  74. package/umd/t/themes.js +0 -1
  75. /package/types/{n/noconfig.d.ts → f/fireworks2.d.ts} +0 -0
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v3.0.0-beta.4
7
+ * v3.0.0
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
@@ -1 +1 @@
1
- /*! tsParticles Configs v3.0.0-beta.4 by Matteo Bruni */
1
+ /*! tsParticles Configs v3.0.0 by Matteo Bruni */
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v3.0.0-beta.4
7
+ * v3.0.0
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
@@ -2178,6 +2178,7 @@ const effectTrail_options = {
2178
2178
  type: "trail",
2179
2179
  options: {
2180
2180
  trail: {
2181
+ fade: true,
2181
2182
  length: {
2182
2183
  min: 10,
2183
2184
  max: 30
@@ -2202,7 +2203,10 @@ const effectTrail_options = {
2202
2203
  generator: "simplexNoise"
2203
2204
  },
2204
2205
  enable: true,
2205
- speed: 6
2206
+ speed: {
2207
+ min: 6,
2208
+ max: 15
2209
+ }
2206
2210
  }
2207
2211
  },
2208
2212
  background: {
@@ -3434,6 +3438,197 @@ const fireworks_options = {
3434
3438
  }
3435
3439
  };
3436
3440
  /* harmony default export */ const fireworks = (fireworks_options);
3441
+ ;// CONCATENATED MODULE: ./dist/browser/f/fireworks2.js
3442
+ const fireworks2_options = {
3443
+ name: "Fireworks 2",
3444
+ fullScreen: {
3445
+ enable: true
3446
+ },
3447
+ background: {
3448
+ color: "#ffffff",
3449
+ image: "url('https://particles.js.org/images/background3.jpg')",
3450
+ position: "50% 50%",
3451
+ repeat: "no-repeat",
3452
+ size: "cover"
3453
+ },
3454
+ backgroundMask: {
3455
+ enable: true
3456
+ },
3457
+ emitters: {
3458
+ direction: "top",
3459
+ life: {
3460
+ count: 0,
3461
+ duration: 0.1,
3462
+ delay: 0.1
3463
+ },
3464
+ rate: {
3465
+ delay: 0.15,
3466
+ quantity: 1
3467
+ },
3468
+ size: {
3469
+ width: 100,
3470
+ height: 0
3471
+ },
3472
+ position: {
3473
+ y: 100,
3474
+ x: 50
3475
+ }
3476
+ },
3477
+ particles: {
3478
+ number: {
3479
+ value: 0
3480
+ },
3481
+ destroy: {
3482
+ bounds: {
3483
+ top: 30
3484
+ },
3485
+ mode: "split",
3486
+ split: {
3487
+ count: 1,
3488
+ factor: {
3489
+ value: 0.333333
3490
+ },
3491
+ rate: {
3492
+ value: 100
3493
+ },
3494
+ particles: {
3495
+ stroke: {
3496
+ width: 0
3497
+ },
3498
+ color: {
3499
+ value: ["#ff595e", "#ffca3a", "#8ac926", "#1982c4", "#6a4c93"]
3500
+ },
3501
+ number: {
3502
+ value: 0
3503
+ },
3504
+ collisions: {
3505
+ enable: false
3506
+ },
3507
+ destroy: {
3508
+ bounds: {
3509
+ top: 0
3510
+ }
3511
+ },
3512
+ opacity: {
3513
+ value: {
3514
+ min: 0.1,
3515
+ max: 1
3516
+ },
3517
+ animation: {
3518
+ enable: true,
3519
+ speed: 0.7,
3520
+ sync: false,
3521
+ startValue: "max",
3522
+ destroy: "min"
3523
+ }
3524
+ },
3525
+ effect: {
3526
+ type: "trail",
3527
+ options: {
3528
+ trail: {
3529
+ length: {
3530
+ min: 5,
3531
+ max: 10
3532
+ }
3533
+ }
3534
+ }
3535
+ },
3536
+ shape: {
3537
+ type: "circle"
3538
+ },
3539
+ size: {
3540
+ value: 2,
3541
+ animation: {
3542
+ enable: false
3543
+ }
3544
+ },
3545
+ life: {
3546
+ count: 1,
3547
+ duration: {
3548
+ value: {
3549
+ min: 1,
3550
+ max: 2
3551
+ }
3552
+ }
3553
+ },
3554
+ move: {
3555
+ enable: true,
3556
+ gravity: {
3557
+ enable: true,
3558
+ acceleration: 9.81,
3559
+ inverse: false
3560
+ },
3561
+ decay: 0.1,
3562
+ speed: {
3563
+ min: 10,
3564
+ max: 25
3565
+ },
3566
+ direction: "outside",
3567
+ outModes: "destroy"
3568
+ }
3569
+ }
3570
+ }
3571
+ },
3572
+ life: {
3573
+ count: 1
3574
+ },
3575
+ effect: {
3576
+ type: "trail",
3577
+ options: {
3578
+ trail: {
3579
+ length: {
3580
+ min: 10,
3581
+ max: 30
3582
+ },
3583
+ minWidth: 1,
3584
+ maxWidth: 1
3585
+ }
3586
+ }
3587
+ },
3588
+ rotate: {
3589
+ path: true
3590
+ },
3591
+ shape: {
3592
+ type: "circle"
3593
+ },
3594
+ size: {
3595
+ value: 1
3596
+ },
3597
+ stroke: {
3598
+ color: {
3599
+ value: "#ffffff"
3600
+ },
3601
+ width: 1
3602
+ },
3603
+ move: {
3604
+ enable: true,
3605
+ gravity: {
3606
+ acceleration: 15,
3607
+ enable: true,
3608
+ inverse: true,
3609
+ maxSpeed: 100
3610
+ },
3611
+ speed: {
3612
+ min: 10,
3613
+ max: 20
3614
+ },
3615
+ outModes: {
3616
+ default: "destroy",
3617
+ top: "none"
3618
+ }
3619
+ }
3620
+ },
3621
+ sounds: {
3622
+ enable: true,
3623
+ events: [{
3624
+ event: "particleRemoved",
3625
+ filter: "explodeSoundCheck",
3626
+ audio: ["https://particles.js.org/audio/explosion0.mp3", "https://particles.js.org/audio/explosion1.mp3", "https://particles.js.org/audio/explosion2.mp3"]
3627
+ }],
3628
+ volume: 50
3629
+ }
3630
+ };
3631
+ /* harmony default export */ const fireworks2 = (fireworks2_options);
3437
3632
  ;// CONCATENATED MODULE: ./dist/browser/f/fontawesome.js
3438
3633
  const fontawesome_options = {
3439
3634
  name: "Font Awesome",
@@ -3628,8 +3823,10 @@ const forward_options = {
3628
3823
 
3629
3824
 
3630
3825
 
3826
+
3631
3827
  /* harmony default export */ const f = ({
3632
3828
  fireworks: fireworks,
3829
+ fireworks2: fireworks2,
3633
3830
  fontawesome: fontawesome,
3634
3831
  forward: forward
3635
3832
  });
@@ -4229,8 +4426,11 @@ const hollowknight_options = {
4229
4426
  polygon: {
4230
4427
  draw: {
4231
4428
  enable: true,
4232
- lineColor: "rgba(255,255,255,0.2)",
4233
- lineWidth: 0.5
4429
+ stroke: {
4430
+ color: "#fff",
4431
+ width: 0.5,
4432
+ opacity: 0.2
4433
+ }
4234
4434
  },
4235
4435
  enable: true,
4236
4436
  move: {
@@ -4659,8 +4859,11 @@ const imagesDirections_options = {
4659
4859
  polygon: {
4660
4860
  draw: {
4661
4861
  enable: false,
4662
- lineColor: "#ffffff",
4663
- lineWidth: 0.5
4862
+ stroke: {
4863
+ color: "#fff",
4864
+ width: 0.5,
4865
+ opacity: 0.2
4866
+ }
4664
4867
  },
4665
4868
  move: {
4666
4869
  radius: 10
@@ -5056,8 +5259,11 @@ const localPolygonMask_options = {
5056
5259
  polygon: {
5057
5260
  draw: {
5058
5261
  enable: true,
5059
- lineColor: "rgba(255,255,255,1)",
5060
- lineWidth: 1
5262
+ stroke: {
5263
+ color: "#fff",
5264
+ width: 0.5,
5265
+ opacity: 0.2
5266
+ }
5061
5267
  },
5062
5268
  enable: true,
5063
5269
  move: {
@@ -6254,8 +6460,11 @@ const multiplePolygonMasks_options = {
6254
6460
  polygon: {
6255
6461
  draw: {
6256
6462
  enable: true,
6257
- lineColor: "rgba(255,255,255,0.2)",
6258
- lineWidth: 0.5
6463
+ stroke: {
6464
+ color: "#fff",
6465
+ width: 0.5,
6466
+ opacity: 0.2
6467
+ }
6259
6468
  },
6260
6469
  enable: true,
6261
6470
  move: {
@@ -6398,15 +6607,59 @@ const nasa_options = {
6398
6607
  }
6399
6608
  };
6400
6609
  /* harmony default export */ const nasa = (nasa_options);
6401
- ;// CONCATENATED MODULE: ./dist/browser/n/noconfig.js
6402
- const noconfig_options = {
6403
- name: "No Config",
6404
- fullScreen: {
6405
- enable: true,
6406
- zIndex: 0
6610
+ ;// CONCATENATED MODULE: ./dist/browser/n/noClear.js
6611
+ const noClear_options = {
6612
+ name: "No Clear",
6613
+ clear: false,
6614
+ interactivity: {
6615
+ events: {
6616
+ onHover: {
6617
+ enable: true,
6618
+ mode: "trail"
6619
+ }
6620
+ },
6621
+ modes: {
6622
+ trail: {
6623
+ delay: 0.01,
6624
+ quantity: 1,
6625
+ pauseOnStop: true
6626
+ }
6627
+ }
6628
+ },
6629
+ particles: {
6630
+ color: {
6631
+ value: ["#80F31F", "#ED8B08", "#ED1868", "#800CE0", "#1274F7", "#12E797", "#7FF31F", "#ED8B08", "#ED1868", "#800CE0", "#1274F7", "#12E797", "#7FF31F", "#ED8B08", "#ED1868", "#800CE0", "#1274F7", "#12E797", "#7FF31F", "#ED8B08", "#ED1868", "#800CE0", "#1274F7", "#12E797", "#7FF31F", "#ED8B08", "#ED1868", "#800CE0", "#1274F7", "#12E797", "#7FF31F", "#ED8B08", "#ED1868", "#800CE0", "#1274F7", "#12E797", "#7FF31F", "#ED8B08", "#ED1868", "#800CE0", "#1274F7", "#12E797", "#7FF31F", "#ED8B08", "#ED1868", "#800CE0", "#1274F7", "#12E797", "#7FF31F", "#ED8B08"]
6632
+ },
6633
+ life: {
6634
+ count: 1,
6635
+ duration: {
6636
+ sync: true,
6637
+ value: 1
6638
+ }
6639
+ },
6640
+ number: {
6641
+ value: 500
6642
+ },
6643
+ size: {
6644
+ value: 50
6645
+ },
6646
+ shape: {
6647
+ type: "star"
6648
+ },
6649
+ rotate: {
6650
+ value: {
6651
+ min: 0,
6652
+ max: 360
6653
+ }
6654
+ }
6407
6655
  }
6408
6656
  };
6409
- /* harmony default export */ const noconfig = (noconfig_options);
6657
+ /* harmony default export */ const noClear = (noClear_options);
6658
+ ;// CONCATENATED MODULE: ./dist/browser/n/noConfig.js
6659
+ const noConfig_options = {
6660
+ name: "No Config"
6661
+ };
6662
+ /* harmony default export */ const noConfig = (noConfig_options);
6410
6663
  ;// CONCATENATED MODULE: ./dist/browser/n/noisePlanes.js
6411
6664
  const noisePlanes_options = {
6412
6665
  name: "Noise Planes",
@@ -6623,9 +6876,11 @@ const nyancat2_options = {
6623
6876
 
6624
6877
 
6625
6878
 
6879
+
6626
6880
  /* harmony default export */ const n = ({
6627
6881
  nasa: nasa,
6628
- noconfig: noconfig,
6882
+ noClear: noClear,
6883
+ noConfig: noConfig,
6629
6884
  noisePlanes: noisePlanes,
6630
6885
  nyancat: nyancat,
6631
6886
  nyancat2: nyancat2
@@ -6842,8 +7097,11 @@ const pathPolygonMask_options = {
6842
7097
  polygon: {
6843
7098
  draw: {
6844
7099
  enable: true,
6845
- lineColor: "rgba(255,255,255,0.2)",
6846
- lineWidth: 0.5
7100
+ stroke: {
7101
+ color: "#fff",
7102
+ width: 0.5,
7103
+ opacity: 0.2
7104
+ }
6847
7105
  },
6848
7106
  enable: true,
6849
7107
  move: {
@@ -7142,8 +7400,11 @@ const polygonMask_options = {
7142
7400
  polygon: {
7143
7401
  draw: {
7144
7402
  enable: true,
7145
- lineColor: "rgba(255,255,255,0.2)",
7146
- lineWidth: 1
7403
+ stroke: {
7404
+ color: "#fff",
7405
+ width: 1,
7406
+ opacity: 0.2
7407
+ }
7147
7408
  },
7148
7409
  enable: true,
7149
7410
  move: {
@@ -9283,6 +9544,186 @@ const shapeCog_options = {
9283
9544
  }
9284
9545
  };
9285
9546
  /* harmony default export */ const shapeCog = (shapeCog_options);
9547
+ ;// CONCATENATED MODULE: ./dist/browser/s/shapeEmoji.js
9548
+ const emitterRate = {
9549
+ delay: 0.1,
9550
+ quantity: 2
9551
+ },
9552
+ shapeEmoji_options = {
9553
+ name: "Shape Emoji",
9554
+ particles: {
9555
+ opacity: {
9556
+ value: 1
9557
+ },
9558
+ size: {
9559
+ value: {
9560
+ min: 16,
9561
+ max: 32
9562
+ }
9563
+ },
9564
+ move: {
9565
+ enable: true,
9566
+ gravity: {
9567
+ enable: true
9568
+ },
9569
+ speed: 15,
9570
+ outModes: {
9571
+ default: "destroy",
9572
+ top: "none"
9573
+ }
9574
+ },
9575
+ rotate: {
9576
+ value: {
9577
+ min: 0,
9578
+ max: 360
9579
+ },
9580
+ direction: "random",
9581
+ move: true,
9582
+ animation: {
9583
+ enable: true,
9584
+ speed: 60
9585
+ }
9586
+ },
9587
+ tilt: {
9588
+ direction: "random",
9589
+ enable: true,
9590
+ move: true,
9591
+ value: {
9592
+ min: 0,
9593
+ max: 360
9594
+ },
9595
+ animation: {
9596
+ enable: true,
9597
+ speed: 60
9598
+ }
9599
+ },
9600
+ roll: {
9601
+ darken: {
9602
+ enable: true,
9603
+ value: 30
9604
+ },
9605
+ enlighten: {
9606
+ enable: true,
9607
+ value: 30
9608
+ },
9609
+ enable: true,
9610
+ mode: "both",
9611
+ speed: {
9612
+ min: 15,
9613
+ max: 25
9614
+ }
9615
+ },
9616
+ wobble: {
9617
+ distance: 30,
9618
+ enable: true,
9619
+ move: true,
9620
+ speed: {
9621
+ min: -15,
9622
+ max: 15
9623
+ }
9624
+ }
9625
+ },
9626
+ background: {
9627
+ color: "#000000"
9628
+ },
9629
+ emitters: [{
9630
+ position: {
9631
+ x: 0,
9632
+ y: 33
9633
+ },
9634
+ rate: emitterRate,
9635
+ particles: {
9636
+ move: {
9637
+ direction: "top-right"
9638
+ },
9639
+ shape: {
9640
+ type: "emoji",
9641
+ options: {
9642
+ emoji: {
9643
+ value: "🦄"
9644
+ }
9645
+ }
9646
+ }
9647
+ }
9648
+ }, {
9649
+ position: {
9650
+ x: 0,
9651
+ y: 66
9652
+ },
9653
+ rate: emitterRate,
9654
+ particles: {
9655
+ move: {
9656
+ direction: "top-right"
9657
+ },
9658
+ shape: {
9659
+ type: "emoji",
9660
+ options: {
9661
+ emoji: {
9662
+ value: "🌈"
9663
+ }
9664
+ }
9665
+ }
9666
+ }
9667
+ }, {
9668
+ position: {
9669
+ x: 100,
9670
+ y: 33
9671
+ },
9672
+ rate: emitterRate,
9673
+ particles: {
9674
+ move: {
9675
+ direction: "top-left"
9676
+ },
9677
+ shape: {
9678
+ type: "emoji",
9679
+ options: {
9680
+ emoji: {
9681
+ value: "🎉"
9682
+ }
9683
+ }
9684
+ }
9685
+ }
9686
+ }, {
9687
+ position: {
9688
+ x: 100,
9689
+ y: 66
9690
+ },
9691
+ rate: emitterRate,
9692
+ particles: {
9693
+ move: {
9694
+ direction: "top-left"
9695
+ },
9696
+ shape: {
9697
+ type: "emoji",
9698
+ options: {
9699
+ emoji: {
9700
+ value: "🤡"
9701
+ }
9702
+ }
9703
+ }
9704
+ }
9705
+ }, {
9706
+ position: {
9707
+ x: 50,
9708
+ y: 50
9709
+ },
9710
+ rate: emitterRate,
9711
+ particles: {
9712
+ move: {
9713
+ direction: "top"
9714
+ },
9715
+ shape: {
9716
+ type: "emoji",
9717
+ options: {
9718
+ emoji: {
9719
+ value: "👻"
9720
+ }
9721
+ }
9722
+ }
9723
+ }
9724
+ }]
9725
+ };
9726
+ /* harmony default export */ const shapeEmoji = (shapeEmoji_options);
9286
9727
  ;// CONCATENATED MODULE: ./dist/browser/s/shapeHeart.js
9287
9728
  const shapeHeart_options = {
9288
9729
  name: "Shape Heart",
@@ -11177,6 +11618,7 @@ const svgReplace_options = {
11177
11618
 
11178
11619
 
11179
11620
 
11621
+
11180
11622
 
11181
11623
 
11182
11624
  /* harmony default export */ const s = ({
@@ -11184,6 +11626,7 @@ const svgReplace_options = {
11184
11626
  shadow: shadow,
11185
11627
  shapeArrow: shapeArrow,
11186
11628
  shapeCog: shapeCog,
11629
+ shapeEmoji: shapeEmoji,
11187
11630
  shapeHeart: shapeHeart,
11188
11631
  shapeMultilineText: shapeMultilineText,
11189
11632
  shapeOptions: shapeOptions,
@@ -11554,8 +11997,7 @@ const themes_options = {
11554
11997
  onClick: {
11555
11998
  enable: true,
11556
11999
  mode: "push"
11557
- },
11558
- resize: true
12000
+ }
11559
12001
  }
11560
12002
  },
11561
12003
  detectRetina: true