@tsparticles/palette-ice-triad 4.0.0-beta.0 → 4.0.0-beta.15
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/README.md +30 -51
- package/browser/browser.js +5 -0
- package/browser/index.js +2 -2
- package/browser/index.lazy.js +7 -0
- package/cjs/browser.js +5 -0
- package/cjs/index.js +2 -2
- package/cjs/index.lazy.js +7 -0
- package/esm/browser.js +5 -0
- package/esm/index.js +2 -2
- package/esm/index.lazy.js +7 -0
- package/package.json +17 -8
- package/report.html +4949 -94
- package/tsparticles.palette.palette-iceTriad.js +40 -0
- package/tsparticles.palette.palette-iceTriad.min.js +1 -0
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/428.min.js +0 -1
- package/dist_browser_options_js.js +0 -30
- package/tsparticles.palette.palette-ice-triad.js +0 -307
- package/tsparticles.palette.palette-ice-triad.min.js +0 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[](https://particles.js.org)
|
|
2
2
|
|
|
3
|
-
# tsParticles
|
|
3
|
+
# tsParticles IceTriad Palette
|
|
4
4
|
|
|
5
|
-
[](https://www.jsdelivr.com/package/npm/@tsparticles/palette-iceTriad) [](https://www.npmjs.com/package/@tsparticles/palette-iceTriad) [](https://www.npmjs.com/package/@tsparticles/palette-iceTriad) [](https://github.com/sponsors/matteobruni)
|
|
6
6
|
|
|
7
|
-
[tsParticles](https://github.com/tsparticles/tsparticles) palette for
|
|
7
|
+
[tsParticles](https://github.com/tsparticles/tsparticles) palette for colored smoke amber.
|
|
8
8
|
|
|
9
9
|
[](https://discord.gg/hACwv45Hme) [](https://t.me/tsparticles)
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
## Sample
|
|
14
14
|
|
|
15
|
-
[](https://particles.js.org/samples/palettes/
|
|
15
|
+
[](https://particles.js.org/samples/palettes/iceTriad)
|
|
16
16
|
|
|
17
17
|
## Colors
|
|
18
18
|
|
|
@@ -50,15 +50,18 @@
|
|
|
50
50
|
## Quick checklist
|
|
51
51
|
|
|
52
52
|
1. Install `@tsparticles/engine` (or use the CDN bundle below)
|
|
53
|
-
2.
|
|
54
|
-
3. Apply the
|
|
53
|
+
2. Load a base package (for example `@tsparticles/basic`) and call `loadIceTriadPalette` before `tsParticles.load(...)`
|
|
54
|
+
3. Apply the palette plus a minimal particles configuration in your options
|
|
55
|
+
|
|
56
|
+
A palette defines colors, not complete behavior, so pair it with a runtime package and particle options.
|
|
55
57
|
|
|
56
58
|
## How to use it
|
|
57
59
|
|
|
58
60
|
### CDN / Vanilla JS / jQuery
|
|
59
61
|
|
|
60
62
|
```html
|
|
61
|
-
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/
|
|
63
|
+
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@4/tsparticles.basic.bundle.min.js"></script>
|
|
64
|
+
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-iceTriad@4/tsparticles.palette-coloredSmokeAmber.min.js"></script>
|
|
62
65
|
```
|
|
63
66
|
|
|
64
67
|
### Usage
|
|
@@ -66,16 +69,28 @@
|
|
|
66
69
|
Once the scripts are loaded you can set up `tsParticles` like this:
|
|
67
70
|
|
|
68
71
|
```javascript
|
|
69
|
-
(async
|
|
70
|
-
await
|
|
72
|
+
(async engine => {
|
|
73
|
+
await loadBasic(engine);
|
|
74
|
+
await loadIceTriadPalette(engine);
|
|
71
75
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
const options = {
|
|
77
|
+
particles: {
|
|
78
|
+
number: { value: 200 },
|
|
79
|
+
shape: { type: "circle" },
|
|
80
|
+
size: { value: { min: 10, max: 15 } },
|
|
81
|
+
move: {
|
|
82
|
+
enable: true,
|
|
83
|
+
speed: 2,
|
|
84
|
+
},
|
|
76
85
|
},
|
|
86
|
+
palette: "iceTriad",
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
await engine.load({
|
|
90
|
+
id: "tsparticles",
|
|
91
|
+
options,
|
|
77
92
|
});
|
|
78
|
-
})();
|
|
93
|
+
})(tsParticles);
|
|
79
94
|
```
|
|
80
95
|
|
|
81
96
|
#### Customization
|
|
@@ -83,47 +98,11 @@ Once the scripts are loaded you can set up `tsParticles` like this:
|
|
|
83
98
|
**Important ⚠️**
|
|
84
99
|
You can override all the options defining the properties like in any standard `tsParticles` installation.
|
|
85
100
|
|
|
86
|
-
```javascript
|
|
87
|
-
tsParticles.load({
|
|
88
|
-
id: "tsparticles",
|
|
89
|
-
options: {
|
|
90
|
-
particles: {
|
|
91
|
-
shape: {
|
|
92
|
-
type: "square", // starting from v2, this require the square shape script
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
palette: "ice-triad",
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
Like in the sample above, the circles will be replaced by squares.
|
|
101
|
-
|
|
102
101
|
### Frameworks with a tsParticles component library
|
|
103
102
|
|
|
104
|
-
Checkout the documentation in the component library repository and call the `loadIceTriadPalette` function
|
|
105
|
-
|
|
106
|
-
The options shown above are valid for all the component libraries.
|
|
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
|
|
103
|
+
Checkout the documentation in the component library repository and call the `loadIceTriadPalette` function.
|
|
113
104
|
|
|
114
105
|
## Related docs
|
|
115
106
|
|
|
116
107
|
- Presets and palettes catalog: <https://github.com/tsparticles/palettes>
|
|
117
108
|
- Main docs: <https://particles.js.org/docs/>
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
```mermaid
|
|
122
|
-
flowchart TD
|
|
123
|
-
|
|
124
|
-
subgraph pr [Palettes]
|
|
125
|
-
paiceTriad[Ice Triad]
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
e[tsParticles Engine] --> paiceTriad
|
|
129
|
-
```
|
package/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "ice-triad";
|
|
2
3
|
export async function loadIceTriadPalette(engine) {
|
|
3
|
-
await engine.pluginManager.register(
|
|
4
|
-
const { options } = await import("./options.js");
|
|
4
|
+
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addPalette(paletteName, options);
|
|
6
6
|
});
|
|
7
7
|
}
|
package/cjs/browser.js
ADDED
package/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "ice-triad";
|
|
2
3
|
export async function loadIceTriadPalette(engine) {
|
|
3
|
-
await engine.pluginManager.register(
|
|
4
|
-
const { options } = await import("./options.js");
|
|
4
|
+
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addPalette(paletteName, options);
|
|
6
6
|
});
|
|
7
7
|
}
|
package/esm/browser.js
ADDED
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "ice-triad";
|
|
2
3
|
export async function loadIceTriadPalette(engine) {
|
|
3
|
-
await engine.pluginManager.register(
|
|
4
|
-
const { options } = await import("./options.js");
|
|
4
|
+
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addPalette(paletteName, options);
|
|
6
6
|
});
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/palette-ice-triad",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.15",
|
|
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/
|
|
8
|
+
"url": "git+https://github.com/tsparticles/tsparticles.git",
|
|
9
9
|
"directory": "palettes/fantasy/iceTriad"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
@@ -81,8 +81,7 @@
|
|
|
81
81
|
"url": "https://www.buymeacoffee.com/matteobruni"
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
|
-
"
|
|
85
|
-
"unpkg": "tsparticles.palette.ice-triad.min.js",
|
|
84
|
+
"sideEffects": false,
|
|
86
85
|
"browser": "browser/index.js",
|
|
87
86
|
"main": "cjs/index.js",
|
|
88
87
|
"module": "esm/index.js",
|
|
@@ -96,13 +95,23 @@
|
|
|
96
95
|
"umd": "./umd/index.js",
|
|
97
96
|
"default": "./cjs/index.js"
|
|
98
97
|
},
|
|
99
|
-
"./package.json": "./package.json"
|
|
98
|
+
"./package.json": "./package.json",
|
|
99
|
+
"./lazy": {
|
|
100
|
+
"types": "./types/index.lazy.d.ts",
|
|
101
|
+
"browser": "./browser/index.lazy.js",
|
|
102
|
+
"import": "./esm/index.lazy.js",
|
|
103
|
+
"require": "./cjs/index.lazy.js",
|
|
104
|
+
"umd": "./umd/index.lazy.js",
|
|
105
|
+
"default": "./cjs/index.lazy.js"
|
|
106
|
+
}
|
|
100
107
|
},
|
|
101
108
|
"dependencies": {
|
|
102
|
-
"@tsparticles/engine": "
|
|
109
|
+
"@tsparticles/engine": "4.0.0-beta.15"
|
|
103
110
|
},
|
|
111
|
+
"type": "module",
|
|
112
|
+
"jsdelivr": "tsparticles.palette-colored-smoke-amber.min.js",
|
|
113
|
+
"unpkg": "tsparticles.palette-colored-smoke-amber.min.js",
|
|
104
114
|
"publishConfig": {
|
|
105
115
|
"access": "public"
|
|
106
|
-
}
|
|
107
|
-
"type": "module"
|
|
116
|
+
}
|
|
108
117
|
}
|