@tsparticles/palette-fireworks-multicolor 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_fireworks_multicolor=this.webpackChunk_tsparticles_palette_fireworks_multicolor||[]).push([[428],{428(F,e,l){l.d(e,{options:()=>t});let t={name:"Fireworks - Multicolor",background:"#000000",blendMode:"lighter",colors:{fill:{enable:!0,value:["#FF0000","#FF4400","#FFCC00","#00FF44","#00FFFF","#0088FF","#AA00FF","#FF00AA","#FFFFFF"]}}}}}]);
package/README.md CHANGED
@@ -10,8 +10,75 @@
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/fireworksMulticolor/images/sample.png)](https://particles.js.org/samples/palettes/fireworks-multicolor)
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="#FF0000"><rect width="32" height="32" fill="#FF0000" /></svg><br />
24
+ <code>#FF0000</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="#FF4400"><rect width="32" height="32" fill="#FF4400" /></svg><br />
28
+ <code>#FF4400</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="#FFCC00"><rect width="32" height="32" fill="#FFCC00" /></svg><br />
32
+ <code>#FFCC00</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="#00FF44"><rect width="32" height="32" fill="#00FF44" /></svg><br />
36
+ <code>#00FF44</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="#00FFFF"><rect width="32" height="32" fill="#00FFFF" /></svg><br />
40
+ <code>#00FFFF</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="#0088FF"><rect width="32" height="32" fill="#0088FF" /></svg><br />
46
+ <code>#0088FF</code>
47
+ </td>
48
+ <td align="center">
49
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#AA00FF"><rect width="32" height="32" fill="#AA00FF" /></svg><br />
50
+ <code>#AA00FF</code>
51
+ </td>
52
+ <td align="center">
53
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#FF00AA"><rect width="32" height="32" fill="#FF00AA" /></svg><br />
54
+ <code>#FF00AA</code>
55
+ </td>
56
+ <td align="center">
57
+ <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 />
58
+ <code>#FFFFFF</code>
59
+ </td>
60
+ </tr>
61
+ <tr>
62
+ <td colspan="5" align="center">
63
+ <svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#000000"><rect width="40" height="40" fill="#000000" /></svg><br />
64
+ <strong>Background</strong><br />
65
+ <code>#000000</code>
66
+ </td>
67
+ </tr>
68
+ <tr>
69
+ <td colspan="5" align="center">
70
+ <strong>Blend mode:</strong> <code>lighter</code> | <strong>Fill:</strong> <code>true</code>
71
+ </td>
72
+ </tr>
73
+ </tbody>
74
+ </table>
75
+
76
+ ## Quick checklist
77
+
78
+ 1. Install `@tsparticles/engine` (or use the CDN bundle below)
79
+ 2. Call the package loader function(s) before `tsParticles.load(...)`
80
+ 3. Apply the package options in your `tsParticles.load(...)` config
81
+
15
82
  ## How to use it
16
83
 
17
84
  ### CDN / Vanilla JS / jQuery
@@ -64,6 +131,17 @@ Checkout the documentation in the component library repository and call the `loa
64
131
 
65
132
  The options shown above are valid for all the component libraries.
66
133
 
134
+ ## Common pitfalls
135
+
136
+ - Calling `tsParticles.load(...)` before `loadFireworksMulticolorPalette(...)`
137
+ - Verify required peer packages before enabling advanced options
138
+ - Change one option group at a time to isolate regressions quickly
139
+
140
+ ## Related docs
141
+
142
+ - Presets and palettes catalog: <https://github.com/tsparticles/palettes>
143
+ - Main docs: <https://particles.js.org/docs/>
144
+
67
145
  ---
68
146
 
69
147
  ```mermaid
package/browser/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const paletteName = "fireworks-multicolor";
2
2
  export async function loadFireworksMulticolorPalette(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
  }
@@ -1,17 +1,21 @@
1
1
  export const options = {
2
2
  name: "Fireworks - Multicolor",
3
- blendMode: "lighter",
4
3
  background: "#000000",
5
- fill: true,
6
- colors: [
7
- "#FF0000",
8
- "#FF4400",
9
- "#FFCC00",
10
- "#00FF44",
11
- "#00FFFF",
12
- "#0088FF",
13
- "#AA00FF",
14
- "#FF00AA",
15
- "#FFFFFF",
16
- ],
4
+ blendMode: "lighter",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#FF0000",
10
+ "#FF4400",
11
+ "#FFCC00",
12
+ "#00FF44",
13
+ "#00FFFF",
14
+ "#0088FF",
15
+ "#AA00FF",
16
+ "#FF00AA",
17
+ "#FFFFFF",
18
+ ],
19
+ },
20
+ },
17
21
  };
package/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const paletteName = "fireworks-multicolor";
2
2
  export async function loadFireworksMulticolorPalette(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
@@ -1,17 +1,21 @@
1
1
  export const options = {
2
2
  name: "Fireworks - Multicolor",
3
- blendMode: "lighter",
4
3
  background: "#000000",
5
- fill: true,
6
- colors: [
7
- "#FF0000",
8
- "#FF4400",
9
- "#FFCC00",
10
- "#00FF44",
11
- "#00FFFF",
12
- "#0088FF",
13
- "#AA00FF",
14
- "#FF00AA",
15
- "#FFFFFF",
16
- ],
4
+ blendMode: "lighter",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#FF0000",
10
+ "#FF4400",
11
+ "#FFCC00",
12
+ "#00FF44",
13
+ "#00FFFF",
14
+ "#0088FF",
15
+ "#AA00FF",
16
+ "#FF00AA",
17
+ "#FFFFFF",
18
+ ],
19
+ },
20
+ },
17
21
  };
@@ -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: \"Fireworks - Multicolor\",\n blendMode: \"lighter\",\n background: \"#000000\",\n fill: true,\n colors: [\n \"#FF0000\",\n \"#FF4400\",\n \"#FFCC00\",\n \"#00FF44\",\n \"#00FFFF\",\n \"#0088FF\",\n \"#AA00FF\",\n \"#FF00AA\",\n \"#FFFFFF\"\n ]\n};\n\n\n//# sourceURL=webpack://@tsparticles/palette-fireworks-multicolor/./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: \"Fireworks - Multicolor\",\n background: \"#000000\",\n blendMode: \"lighter\",\n colors: {\n fill: {\n enable: true,\n value: [\n \"#FF0000\",\n \"#FF4400\",\n \"#FFCC00\",\n \"#00FF44\",\n \"#00FFFF\",\n \"#0088FF\",\n \"#AA00FF\",\n \"#FF00AA\",\n \"#FFFFFF\"\n ]\n }\n }\n};\n\n\n//# sourceURL=webpack://@tsparticles/palette-fireworks-multicolor/./dist/browser/options.js?\n}");
27
27
 
28
28
  /***/ }
29
29
 
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const paletteName = "fireworks-multicolor";
2
2
  export async function loadFireworksMulticolorPalette(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
@@ -1,17 +1,21 @@
1
1
  export const options = {
2
2
  name: "Fireworks - Multicolor",
3
- blendMode: "lighter",
4
3
  background: "#000000",
5
- fill: true,
6
- colors: [
7
- "#FF0000",
8
- "#FF4400",
9
- "#FFCC00",
10
- "#00FF44",
11
- "#00FFFF",
12
- "#0088FF",
13
- "#AA00FF",
14
- "#FF00AA",
15
- "#FFFFFF",
16
- ],
4
+ blendMode: "lighter",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#FF0000",
10
+ "#FF4400",
11
+ "#FFCC00",
12
+ "#00FF44",
13
+ "#00FFFF",
14
+ "#0088FF",
15
+ "#AA00FF",
16
+ "#FF00AA",
17
+ "#FFFFFF",
18
+ ],
19
+ },
20
+ },
17
21
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@tsparticles/palette-fireworks-multicolor",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-beta.0",
4
4
  "description": "tsParticles fireworks - multicolor 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/fireworksMulticolor"
8
+ "url": "git+https://github.com/tsparticles/palettes.git",
9
+ "directory": "palettes/fireworks/fireworksMulticolor"
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"