@tsparticles/configs 3.5.0 → 3.6.0-beta.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.
@@ -1 +1 @@
1
- /*! tsParticles Configs v3.5.0 by Matteo Bruni */
1
+ /*! tsParticles Configs v3.6.0-beta.0 by Matteo Bruni */
package/types/index.d.ts CHANGED
@@ -19,6 +19,7 @@ declare const configs: {
19
19
  shapeArrow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
20
20
  shapeCog: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
21
21
  shapeEmoji: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
22
+ shapeEmojiPadding: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
22
23
  shapeHeart: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
23
24
  shapeInfinity: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
24
25
  shapeMultilineText: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  shapeArrow: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
5
5
  shapeCog: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
6
6
  shapeEmoji: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
7
+ shapeEmojiPadding: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
7
8
  shapeHeart: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
8
9
  shapeInfinity: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
9
10
  shapeMultilineText: import("@tsparticles/engine").RecursivePartial<import("@tsparticles/engine").IOptions>;
@@ -0,0 +1,3 @@
1
+ import { type ISourceOptions } from "@tsparticles/engine";
2
+ declare const options: ISourceOptions;
3
+ export default options;
package/umd/s/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", "./seaAnemone.js", "./shadow.js", "./shapeArrow.js", "./shapeCog.js", "./shapeEmoji.js", "./shapeHeart.js", "./shapeInfinity.js", "./shapeMultilineText.js", "./shapeOptions.js", "./shapePath.js", "./shapeRoundedPolygon.js", "./shapeRoundedRect.js", "./shapeSpiral.js", "./slow.js", "./snow.js", "./soundsAudio.js", "./soundsLoop.js", "./soundsMelodies.js", "./soundsMelodyLoop.js", "./soundsNotes.js", "./speedDecay.js", "./spin.js", "./star.js", "./strokeAnimation.js", "./style.js", "./svgReplace.js"], factory);
10
+ define(["require", "exports", "./seaAnemone.js", "./shadow.js", "./shapeArrow.js", "./shapeCog.js", "./shapeEmoji.js", "./shapeEmojiPadding", "./shapeHeart.js", "./shapeInfinity.js", "./shapeMultilineText.js", "./shapeOptions.js", "./shapePath.js", "./shapeRoundedPolygon.js", "./shapeRoundedRect.js", "./shapeSpiral.js", "./slow.js", "./snow.js", "./soundsAudio.js", "./soundsLoop.js", "./soundsMelodies.js", "./soundsMelodyLoop.js", "./soundsNotes.js", "./speedDecay.js", "./spin.js", "./star.js", "./strokeAnimation.js", "./style.js", "./svgReplace.js"], factory);
11
11
  }
12
12
  })(function (require, exports) {
13
13
  "use strict";
@@ -17,6 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  const shapeArrow_js_1 = __importDefault(require("./shapeArrow.js"));
18
18
  const shapeCog_js_1 = __importDefault(require("./shapeCog.js"));
19
19
  const shapeEmoji_js_1 = __importDefault(require("./shapeEmoji.js"));
20
+ const shapeEmojiPadding_1 = __importDefault(require("./shapeEmojiPadding"));
20
21
  const shapeHeart_js_1 = __importDefault(require("./shapeHeart.js"));
21
22
  const shapeInfinity_js_1 = __importDefault(require("./shapeInfinity.js"));
22
23
  const shapeMultilineText_js_1 = __importDefault(require("./shapeMultilineText.js"));
@@ -44,6 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
44
45
  shapeArrow: shapeArrow_js_1.default,
45
46
  shapeCog: shapeCog_js_1.default,
46
47
  shapeEmoji: shapeEmoji_js_1.default,
48
+ shapeEmojiPadding: shapeEmojiPadding_1.default,
47
49
  shapeHeart: shapeHeart_js_1.default,
48
50
  shapeInfinity: shapeInfinity_js_1.default,
49
51
  shapeMultilineText: shapeMultilineText_js_1.default,
@@ -11,8 +11,8 @@
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const engine_1 = require("@tsparticles/engine");
13
13
  const emitterRate = {
14
- delay: 0.1,
15
- quantity: 2,
14
+ delay: 0.2,
15
+ quantity: 1,
16
16
  }, options = {
17
17
  key: "shapeEmoji",
18
18
  name: "Shape Emoji",
@@ -0,0 +1,127 @@
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 emitterRate = {
13
+ delay: 0.2,
14
+ quantity: 1,
15
+ }, options = {
16
+ key: "shapeEmojiPadding",
17
+ name: "Shape Emoji Padding",
18
+ particles: {
19
+ opacity: {
20
+ value: 1,
21
+ },
22
+ size: {
23
+ value: 16,
24
+ },
25
+ move: {
26
+ enable: true,
27
+ speed: 5,
28
+ outModes: "destroy",
29
+ },
30
+ },
31
+ background: {
32
+ color: "#000000",
33
+ },
34
+ emitters: [
35
+ {
36
+ position: {
37
+ x: 0,
38
+ y: 33,
39
+ },
40
+ rate: emitterRate,
41
+ particles: {
42
+ shape: {
43
+ type: "emoji",
44
+ options: {
45
+ emoji: {
46
+ value: "👻",
47
+ padding: 5,
48
+ },
49
+ },
50
+ },
51
+ },
52
+ },
53
+ {
54
+ position: {
55
+ x: 0,
56
+ y: 66,
57
+ },
58
+ rate: emitterRate,
59
+ particles: {
60
+ shape: {
61
+ type: "emoji",
62
+ options: {
63
+ emoji: {
64
+ value: "🌈",
65
+ padding: 10,
66
+ },
67
+ },
68
+ },
69
+ },
70
+ },
71
+ {
72
+ position: {
73
+ x: 100,
74
+ y: 33,
75
+ },
76
+ rate: emitterRate,
77
+ particles: {
78
+ shape: {
79
+ type: "emoji",
80
+ options: {
81
+ emoji: {
82
+ value: "🎉",
83
+ },
84
+ },
85
+ },
86
+ },
87
+ },
88
+ {
89
+ position: {
90
+ x: 100,
91
+ y: 66,
92
+ },
93
+ rate: emitterRate,
94
+ particles: {
95
+ shape: {
96
+ type: "emoji",
97
+ options: {
98
+ emoji: {
99
+ value: "🤡",
100
+ padding: 15,
101
+ },
102
+ },
103
+ },
104
+ },
105
+ },
106
+ {
107
+ position: {
108
+ x: 50,
109
+ y: 50,
110
+ },
111
+ rate: emitterRate,
112
+ particles: {
113
+ shape: {
114
+ type: "emoji",
115
+ options: {
116
+ emoji: {
117
+ value: "🍑",
118
+ padding: 2,
119
+ },
120
+ },
121
+ },
122
+ },
123
+ },
124
+ ],
125
+ };
126
+ exports.default = options;
127
+ });
package/umd/t/test.js CHANGED
@@ -12,34 +12,116 @@
12
12
  const options = {
13
13
  key: "test",
14
14
  name: "Test",
15
- fullScreen: {
16
- enable: false,
17
- },
18
15
  background: {
19
- color: "#000",
16
+ color: {
17
+ value: "#000",
18
+ },
20
19
  },
21
20
  particles: {
21
+ groups: {
22
+ z5000: {
23
+ number: {
24
+ value: 70,
25
+ },
26
+ color: {
27
+ value: "#f00",
28
+ },
29
+ zIndex: {
30
+ value: 50,
31
+ },
32
+ },
33
+ z7500: {
34
+ number: {
35
+ value: 30,
36
+ },
37
+ color: {
38
+ value: "#0f0",
39
+ },
40
+ zIndex: {
41
+ value: 75,
42
+ },
43
+ },
44
+ z2500: {
45
+ number: {
46
+ value: 50,
47
+ },
48
+ color: {
49
+ value: "#00f",
50
+ },
51
+ zIndex: {
52
+ value: 25,
53
+ },
54
+ },
55
+ z1000: {
56
+ number: {
57
+ value: 40,
58
+ },
59
+ color: {
60
+ value: "#ff0",
61
+ },
62
+ zIndex: {
63
+ value: 10,
64
+ },
65
+ },
66
+ },
67
+ zIndex: {
68
+ value: 5,
69
+ opacityRate: 0.5,
70
+ sizeRate: 1,
71
+ velocityRate: 1,
72
+ },
73
+ number: {
74
+ value: 300,
75
+ },
22
76
  color: {
23
- value: "#ffffff",
77
+ value: "#fff",
78
+ },
79
+ shape: {
80
+ type: "circle",
81
+ },
82
+ opacity: {
83
+ value: 0.8,
24
84
  },
25
85
  size: {
26
- value: 6,
86
+ value: 69,
27
87
  },
28
- links: {
88
+ move: {
29
89
  enable: true,
30
- distance: 200,
31
- },
32
- number: {
33
- value: 80,
34
- density: {
35
- enable: true,
90
+ speed: 3,
91
+ direction: 0,
92
+ angle: 0,
93
+ outModes: {
94
+ default: "destroy",
36
95
  },
37
96
  },
38
- opacity: {
39
- value: 0.5,
97
+ },
98
+ emitters: {
99
+ autoPlay: true,
100
+ fill: false,
101
+ life: {
102
+ wait: false,
103
+ },
104
+ rate: {
105
+ quantity: 1,
106
+ delay: 2,
40
107
  },
41
108
  shape: {
42
- type: "circle",
109
+ type: "square",
110
+ },
111
+ startCount: 0,
112
+ size: {
113
+ mode: "percent",
114
+ height: 100,
115
+ width: 0,
116
+ },
117
+ particles: {
118
+ shape: {
119
+ type: "square",
120
+ },
121
+ },
122
+ position: {
123
+ x: 50,
124
+ y: 50,
43
125
  },
44
126
  },
45
127
  };