@tsparticles/palette-ice-triad 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_ice_triad=this.webpackChunk_tsparticles_palette_ice_triad||[]).push([[428],{428(e,a,t){t.d(a,{options:()=>i});let i={name:"Ice Triad",background:"#0a0d1a",blendMode:"source-over",colors:{fill:{enable:!0,value:["#ffffff","#aaddff","#88bbff"]}}}}}]);
package/README.md CHANGED
@@ -10,8 +10,49 @@
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/iceTriad/images/sample.png)](https://particles.js.org/samples/palettes/ice-triad)
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="#aaddff"><rect width="32" height="32" fill="#aaddff" /></svg><br />
28
+ <code>#aaddff</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="#88bbff"><rect width="32" height="32" fill="#88bbff" /></svg><br />
32
+ <code>#88bbff</code>
33
+ </td>
34
+ </tr>
35
+ <tr>
36
+ <td colspan="3" align="center">
37
+ <svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#0a0d1a"><rect width="40" height="40" fill="#0a0d1a" /></svg><br />
38
+ <strong>Background</strong><br />
39
+ <code>#0a0d1a</code>
40
+ </td>
41
+ </tr>
42
+ <tr>
43
+ <td colspan="3" align="center">
44
+ <strong>Blend mode:</strong> <code>source-over</code> | <strong>Fill:</strong> <code>true</code>
45
+ </td>
46
+ </tr>
47
+ </tbody>
48
+ </table>
49
+
50
+ ## Quick checklist
51
+
52
+ 1. Install `@tsparticles/engine` (or use the CDN bundle below)
53
+ 2. Call the package loader function(s) before `tsParticles.load(...)`
54
+ 3. Apply the package options in your `tsParticles.load(...)` config
55
+
15
56
  ## How to use it
16
57
 
17
58
  ### CDN / Vanilla JS / jQuery
@@ -64,6 +105,17 @@ Checkout the documentation in the component library repository and call the `loa
64
105
 
65
106
  The options shown above are valid for all the component libraries.
66
107
 
108
+ ## Common pitfalls
109
+
110
+ - Calling `tsParticles.load(...)` before `loadIceTriadPalette(...)`
111
+ - Verify required peer packages before enabling advanced options
112
+ - Change one option group at a time to isolate regressions quickly
113
+
114
+ ## Related docs
115
+
116
+ - Presets and palettes catalog: <https://github.com/tsparticles/palettes>
117
+ - Main docs: <https://particles.js.org/docs/>
118
+
67
119
  ---
68
120
 
69
121
  ```mermaid
package/browser/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const paletteName = "ice-triad";
2
2
  export async function loadIceTriadPalette(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
  }
@@ -2,6 +2,14 @@ export const options = {
2
2
  name: "Ice Triad",
3
3
  background: "#0a0d1a",
4
4
  blendMode: "source-over",
5
- colors: ["#ffffff", "#aaddff", "#88bbff"],
6
- fill: true,
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#ffffff",
10
+ "#aaddff",
11
+ "#88bbff",
12
+ ],
13
+ },
14
+ },
7
15
  };
package/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const paletteName = "ice-triad";
2
2
  export async function loadIceTriadPalette(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
@@ -2,6 +2,14 @@ export const options = {
2
2
  name: "Ice Triad",
3
3
  background: "#0a0d1a",
4
4
  blendMode: "source-over",
5
- colors: ["#ffffff", "#aaddff", "#88bbff"],
6
- fill: true,
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#ffffff",
10
+ "#aaddff",
11
+ "#88bbff",
12
+ ],
13
+ },
14
+ },
7
15
  };
@@ -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: \"Ice Triad\",\n background: \"#0a0d1a\",\n blendMode: \"source-over\",\n colors: [\n \"#ffffff\",\n \"#aaddff\",\n \"#88bbff\"\n ],\n fill: true\n};\n\n\n//# sourceURL=webpack://@tsparticles/palette-ice-triad/./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: \"Ice Triad\",\n background: \"#0a0d1a\",\n blendMode: \"source-over\",\n colors: {\n fill: {\n enable: true,\n value: [\n \"#ffffff\",\n \"#aaddff\",\n \"#88bbff\"\n ]\n }\n }\n};\n\n\n//# sourceURL=webpack://@tsparticles/palette-ice-triad/./dist/browser/options.js?\n}");
27
27
 
28
28
  /***/ }
29
29
 
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const paletteName = "ice-triad";
2
2
  export async function loadIceTriadPalette(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
@@ -2,6 +2,14 @@ export const options = {
2
2
  name: "Ice Triad",
3
3
  background: "#0a0d1a",
4
4
  blendMode: "source-over",
5
- colors: ["#ffffff", "#aaddff", "#88bbff"],
6
- fill: true,
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#ffffff",
10
+ "#aaddff",
11
+ "#88bbff",
12
+ ],
13
+ },
14
+ },
7
15
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@tsparticles/palette-ice-triad",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-beta.0",
4
4
  "description": "tsParticles ice triad 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/iceTriad"
8
+ "url": "git+https://github.com/tsparticles/palettes.git",
9
+ "directory": "palettes/fantasy/iceTriad"
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"