@tsparticles/palette-foam-and-bubbles 4.0.0-alpha.4 → 4.0.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.
package/428.min.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunk_tsparticles_palette_foam_and_bubbles=this.webpackChunk_tsparticles_palette_foam_and_bubbles||[]).push([[428],{428(F,e,a){a.d(e,{options:()=>l});let l={name:"Foam & Bubbles",background:"#0a1f3c",blendMode:"source-over",colors:[{fill:{enable:!0,opacity:.7,value:["#FFFFFF","#F0F8FF","#EAF8FF","#D0EEFF","#C8F0FF"]}},{stroke:{value:["#FFFFFF","#F0F8FF","#EAF8FF"],width:{min:.4,max:1}}},{fill:{enable:!0,opacity:.55,value:["#D0EEFF","#C8F0FF","#A0D0FF","#70AAFF"]},stroke:{value:["#D0EEFF","#C8F0FF","#A0D0FF","#70AAFF"],width:{min:1.2,max:2.6}}}]}}}]);
package/README.md CHANGED
@@ -10,8 +10,63 @@
10
10
 
11
11
  [![tsParticles Product Hunt](https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=186113&theme=light)](https://www.producthunt.com/posts/tsparticles?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-tsparticles") <a href="https://www.buymeacoffee.com/matteobruni"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a beer&emoji=🍺&slug=matteobruni&button_colour=5F7FFF&font_colour=ffffff&font_family=Arial&outline_colour=000000&coffee_colour=FFDD00"></a>
12
12
 
13
+ ## Sample
14
+
15
+ [![demo](https://raw.githubusercontent.com/tsparticles/palettes/main/palettes/foamAndBubbles/images/sample.png)](https://particles.js.org/samples/palettes/foam-and-bubbles)
16
+
13
17
  ## Colors
14
18
 
19
+ <table>
20
+ <tbody>
21
+ <tr>
22
+ <td align="center">
23
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#FFFFFF"><rect width="32" height="32" fill="#FFFFFF" /></svg><br />
24
+ <code>#FFFFFF</code>
25
+ </td>
26
+ <td align="center">
27
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#F0F8FF"><rect width="32" height="32" fill="#F0F8FF" /></svg><br />
28
+ <code>#F0F8FF</code>
29
+ </td>
30
+ <td align="center">
31
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#D0EEFF"><rect width="32" height="32" fill="#D0EEFF" /></svg><br />
32
+ <code>#D0EEFF</code>
33
+ </td>
34
+ <td align="center">
35
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#A0D0FF"><rect width="32" height="32" fill="#A0D0FF" /></svg><br />
36
+ <code>#A0D0FF</code>
37
+ </td>
38
+ <td align="center">
39
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#70AAFF"><rect width="32" height="32" fill="#70AAFF" /></svg><br />
40
+ <code>#70AAFF</code>
41
+ </td>
42
+ </tr>
43
+ <tr>
44
+ <td align="center">
45
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#C8F0FF"><rect width="32" height="32" fill="#C8F0FF" /></svg><br />
46
+ <code>#C8F0FF</code>
47
+ </td>
48
+ </tr>
49
+ <tr>
50
+ <td colspan="5" align="center">
51
+ <svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#0a1f3c"><rect width="40" height="40" fill="#0a1f3c" /></svg><br />
52
+ <strong>Background</strong><br />
53
+ <code>#0a1f3c</code>
54
+ </td>
55
+ </tr>
56
+ <tr>
57
+ <td colspan="5" align="center">
58
+ <strong>Blend mode:</strong> <code>source-over</code> | <strong>Fill:</strong> <code>false</code>
59
+ </td>
60
+ </tr>
61
+ </tbody>
62
+ </table>
63
+
64
+ ## Quick checklist
65
+
66
+ 1. Install `@tsparticles/engine` (or use the CDN bundle below)
67
+ 2. Call the package loader function(s) before `tsParticles.load(...)`
68
+ 3. Apply the package options in your `tsParticles.load(...)` config
69
+
15
70
  ## How to use it
16
71
 
17
72
  ### CDN / Vanilla JS / jQuery
@@ -64,6 +119,17 @@ Checkout the documentation in the component library repository and call the `loa
64
119
 
65
120
  The options shown above are valid for all the component libraries.
66
121
 
122
+ ## Common pitfalls
123
+
124
+ - Calling `tsParticles.load(...)` before `loadFoamAndBubblesPalette(...)`
125
+ - Verify required peer packages before enabling advanced options
126
+ - Change one option group at a time to isolate regressions quickly
127
+
128
+ ## Related docs
129
+
130
+ - Presets and palettes catalog: <https://github.com/tsparticles/palettes>
131
+ - Main docs: <https://particles.js.org/docs/>
132
+
67
133
  ---
68
134
 
69
135
  ```mermaid
package/browser/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const paletteName = "foam-and-bubbles";
2
2
  export async function loadFoamAndBubblesPalette(engine) {
3
- await engine.register(async (e) => {
3
+ await engine.pluginManager.register(async (e) => {
4
4
  const { options } = await import("./options.js");
5
- e.addPalette(paletteName, options);
5
+ e.pluginManager.addPalette(paletteName, options);
6
6
  });
7
7
  }
@@ -3,12 +3,55 @@ export const options = {
3
3
  background: "#0a1f3c",
4
4
  blendMode: "source-over",
5
5
  colors: [
6
- "#FFFFFF",
7
- "#F0F8FF",
8
- "#D0EEFF",
9
- "#A0D0FF",
10
- "#70AAFF",
11
- "#C8F0FF",
6
+ {
7
+ fill: {
8
+ enable: true,
9
+ opacity: 0.7,
10
+ value: [
11
+ "#FFFFFF",
12
+ "#F0F8FF",
13
+ "#EAF8FF",
14
+ "#D0EEFF",
15
+ "#C8F0FF",
16
+ ],
17
+ },
18
+ },
19
+ {
20
+ stroke: {
21
+ value: [
22
+ "#FFFFFF",
23
+ "#F0F8FF",
24
+ "#EAF8FF",
25
+ ],
26
+ width: {
27
+ min: 0.4,
28
+ max: 1,
29
+ },
30
+ },
31
+ },
32
+ {
33
+ fill: {
34
+ enable: true,
35
+ opacity: 0.55,
36
+ value: [
37
+ "#D0EEFF",
38
+ "#C8F0FF",
39
+ "#A0D0FF",
40
+ "#70AAFF",
41
+ ],
42
+ },
43
+ stroke: {
44
+ value: [
45
+ "#D0EEFF",
46
+ "#C8F0FF",
47
+ "#A0D0FF",
48
+ "#70AAFF",
49
+ ],
50
+ width: {
51
+ min: 1.2,
52
+ max: 2.6,
53
+ },
54
+ },
55
+ },
12
56
  ],
13
- fill: false,
14
57
  };
package/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const paletteName = "foam-and-bubbles";
2
2
  export async function loadFoamAndBubblesPalette(engine) {
3
- await engine.register(async (e) => {
3
+ await engine.pluginManager.register(async (e) => {
4
4
  const { options } = await import("./options.js");
5
- e.addPalette(paletteName, options);
5
+ e.pluginManager.addPalette(paletteName, options);
6
6
  });
7
7
  }
package/cjs/options.js CHANGED
@@ -3,12 +3,55 @@ export const options = {
3
3
  background: "#0a1f3c",
4
4
  blendMode: "source-over",
5
5
  colors: [
6
- "#FFFFFF",
7
- "#F0F8FF",
8
- "#D0EEFF",
9
- "#A0D0FF",
10
- "#70AAFF",
11
- "#C8F0FF",
6
+ {
7
+ fill: {
8
+ enable: true,
9
+ opacity: 0.7,
10
+ value: [
11
+ "#FFFFFF",
12
+ "#F0F8FF",
13
+ "#EAF8FF",
14
+ "#D0EEFF",
15
+ "#C8F0FF",
16
+ ],
17
+ },
18
+ },
19
+ {
20
+ stroke: {
21
+ value: [
22
+ "#FFFFFF",
23
+ "#F0F8FF",
24
+ "#EAF8FF",
25
+ ],
26
+ width: {
27
+ min: 0.4,
28
+ max: 1,
29
+ },
30
+ },
31
+ },
32
+ {
33
+ fill: {
34
+ enable: true,
35
+ opacity: 0.55,
36
+ value: [
37
+ "#D0EEFF",
38
+ "#C8F0FF",
39
+ "#A0D0FF",
40
+ "#70AAFF",
41
+ ],
42
+ },
43
+ stroke: {
44
+ value: [
45
+ "#D0EEFF",
46
+ "#C8F0FF",
47
+ "#A0D0FF",
48
+ "#70AAFF",
49
+ ],
50
+ width: {
51
+ min: 1.2,
52
+ max: 2.6,
53
+ },
54
+ },
55
+ },
12
56
  ],
13
- fill: false,
14
57
  };
@@ -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
- * v4.0.0-alpha.4
7
+ * v4.0.0-beta.0
8
8
  */
9
9
  "use strict";
10
10
  /*
@@ -23,7 +23,7 @@
23
23
  \*********************************/
24
24
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
25
 
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ options: () => (/* binding */ options)\n/* harmony export */ });\nconst options = {\n name: \"Foam & Bubbles\",\n background: \"#0a1f3c\",\n blendMode: \"source-over\",\n colors: [\n \"#FFFFFF\",\n \"#F0F8FF\",\n \"#D0EEFF\",\n \"#A0D0FF\",\n \"#70AAFF\",\n \"#C8F0FF\"\n ],\n fill: false\n};\n\n\n//# sourceURL=webpack://@tsparticles/palette-foam-and-bubbles/./dist/browser/options.js?\n}");
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ options: () => (/* binding */ options)\n/* harmony export */ });\nconst options = {\n name: \"Foam & Bubbles\",\n background: \"#0a1f3c\",\n blendMode: \"source-over\",\n colors: [\n {\n fill: {\n enable: true,\n opacity: 0.7,\n value: [\n \"#FFFFFF\",\n \"#F0F8FF\",\n \"#EAF8FF\",\n \"#D0EEFF\",\n \"#C8F0FF\"\n ]\n }\n },\n {\n stroke: {\n value: [\n \"#FFFFFF\",\n \"#F0F8FF\",\n \"#EAF8FF\"\n ],\n width: {\n min: 0.4,\n max: 1\n }\n }\n },\n {\n fill: {\n enable: true,\n opacity: 0.55,\n value: [\n \"#D0EEFF\",\n \"#C8F0FF\",\n \"#A0D0FF\",\n \"#70AAFF\"\n ]\n },\n stroke: {\n value: [\n \"#D0EEFF\",\n \"#C8F0FF\",\n \"#A0D0FF\",\n \"#70AAFF\"\n ],\n width: {\n min: 1.2,\n max: 2.6\n }\n }\n }\n ]\n};\n\n\n//# sourceURL=webpack://@tsparticles/palette-foam-and-bubbles/./dist/browser/options.js?\n}");
27
27
 
28
28
  /***/ }
29
29
 
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const paletteName = "foam-and-bubbles";
2
2
  export async function loadFoamAndBubblesPalette(engine) {
3
- await engine.register(async (e) => {
3
+ await engine.pluginManager.register(async (e) => {
4
4
  const { options } = await import("./options.js");
5
- e.addPalette(paletteName, options);
5
+ e.pluginManager.addPalette(paletteName, options);
6
6
  });
7
7
  }
package/esm/options.js CHANGED
@@ -3,12 +3,55 @@ export const options = {
3
3
  background: "#0a1f3c",
4
4
  blendMode: "source-over",
5
5
  colors: [
6
- "#FFFFFF",
7
- "#F0F8FF",
8
- "#D0EEFF",
9
- "#A0D0FF",
10
- "#70AAFF",
11
- "#C8F0FF",
6
+ {
7
+ fill: {
8
+ enable: true,
9
+ opacity: 0.7,
10
+ value: [
11
+ "#FFFFFF",
12
+ "#F0F8FF",
13
+ "#EAF8FF",
14
+ "#D0EEFF",
15
+ "#C8F0FF",
16
+ ],
17
+ },
18
+ },
19
+ {
20
+ stroke: {
21
+ value: [
22
+ "#FFFFFF",
23
+ "#F0F8FF",
24
+ "#EAF8FF",
25
+ ],
26
+ width: {
27
+ min: 0.4,
28
+ max: 1,
29
+ },
30
+ },
31
+ },
32
+ {
33
+ fill: {
34
+ enable: true,
35
+ opacity: 0.55,
36
+ value: [
37
+ "#D0EEFF",
38
+ "#C8F0FF",
39
+ "#A0D0FF",
40
+ "#70AAFF",
41
+ ],
42
+ },
43
+ stroke: {
44
+ value: [
45
+ "#D0EEFF",
46
+ "#C8F0FF",
47
+ "#A0D0FF",
48
+ "#70AAFF",
49
+ ],
50
+ width: {
51
+ min: 1.2,
52
+ max: 2.6,
53
+ },
54
+ },
55
+ },
12
56
  ],
13
- fill: false,
14
57
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@tsparticles/palette-foam-and-bubbles",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-beta.0",
4
4
  "description": "tsParticles foam & bubbles palette",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/tsparticles/presets.git",
9
- "directory": "palettes/foamAndBubbles"
8
+ "url": "git+https://github.com/tsparticles/palettes.git",
9
+ "directory": "palettes/water/foamAndBubbles"
10
10
  },
11
11
  "keywords": [
12
12
  "front-end",
@@ -65,7 +65,7 @@
65
65
  "author": "Matteo Bruni <matteo.bruni@me.com>",
66
66
  "license": "MIT",
67
67
  "bugs": {
68
- "url": "https://github.com/tsparticles/presets/issues"
68
+ "url": "https://github.com/tsparticles/palettes/issues"
69
69
  },
70
70
  "funding": [
71
71
  {
@@ -99,7 +99,7 @@
99
99
  "./package.json": "./package.json"
100
100
  },
101
101
  "dependencies": {
102
- "@tsparticles/engine": "^4.0.0-alpha.27"
102
+ "@tsparticles/engine": "^4.0.0-beta.11"
103
103
  },
104
104
  "publishConfig": {
105
105
  "access": "public"