@tsparticles/palette-smoke-warm 4.0.0-beta.12 → 4.0.0-beta.16
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 +7 -43
- 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 +16 -7
- package/report.html +4949 -94
- package/tsparticles.palette.palette-smokeWarm.js +42 -0
- package/tsparticles.palette.palette-smokeWarm.min.js +1 -0
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/264.min.js +0 -1
- package/dist_browser_options_js.js +0 -30
- package/tsparticles.palette.palette-smoke-warm.js +0 -307
- package/tsparticles.palette.palette-smoke-warm.min.js +0 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[](https://particles.js.org)
|
|
2
2
|
|
|
3
|
-
# tsParticles
|
|
3
|
+
# tsParticles SmokeWarm Palette
|
|
4
4
|
|
|
5
|
-
[](https://www.jsdelivr.com/package/npm/@tsparticles/palette-smokeWarm) [](https://www.npmjs.com/package/@tsparticles/palette-smokeWarm) [](https://www.npmjs.com/package/@tsparticles/palette-smokeWarm) [](https://github.com/sponsors/matteobruni)
|
|
6
6
|
|
|
7
|
-
[tsParticles](https://github.com/tsparticles/tsparticles) palette for smoke
|
|
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/smokeWarm)
|
|
16
16
|
|
|
17
17
|
## Colors
|
|
18
18
|
|
|
@@ -69,7 +69,7 @@ A palette defines colors, not complete behavior, so pair it with a runtime packa
|
|
|
69
69
|
|
|
70
70
|
```html
|
|
71
71
|
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@4/tsparticles.basic.bundle.min.js"></script>
|
|
72
|
-
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-
|
|
72
|
+
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-smokeWarm@4/tsparticles.palette-coloredSmokeAmber.min.js"></script>
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
### Usage
|
|
@@ -91,7 +91,7 @@ Once the scripts are loaded you can set up `tsParticles` like this:
|
|
|
91
91
|
speed: 2,
|
|
92
92
|
},
|
|
93
93
|
},
|
|
94
|
-
palette: "
|
|
94
|
+
palette: "smokeWarm",
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
await engine.load({
|
|
@@ -106,47 +106,11 @@ Once the scripts are loaded you can set up `tsParticles` like this:
|
|
|
106
106
|
**Important ⚠️**
|
|
107
107
|
You can override all the options defining the properties like in any standard `tsParticles` installation.
|
|
108
108
|
|
|
109
|
-
```javascript
|
|
110
|
-
tsParticles.load({
|
|
111
|
-
id: "tsparticles",
|
|
112
|
-
options: {
|
|
113
|
-
particles: {
|
|
114
|
-
shape: {
|
|
115
|
-
type: "square", // starting from v2, this require the square shape script
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
palette: "smoke-warm",
|
|
119
|
-
},
|
|
120
|
-
});
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
Like in the sample above, the circles will be replaced by squares.
|
|
124
|
-
|
|
125
109
|
### Frameworks with a tsParticles component library
|
|
126
110
|
|
|
127
|
-
Checkout the documentation in the component library repository and call the `loadSmokeWarmPalette` function
|
|
128
|
-
|
|
129
|
-
The options shown above are valid for all the component libraries.
|
|
130
|
-
|
|
131
|
-
## Common pitfalls
|
|
132
|
-
|
|
133
|
-
- Calling `tsParticles.load(...)` before `loadSmokeWarmPalette(...)`
|
|
134
|
-
- Verify required peer packages before enabling advanced options
|
|
135
|
-
- Change one option group at a time to isolate regressions quickly
|
|
111
|
+
Checkout the documentation in the component library repository and call the `loadSmokeWarmPalette` function.
|
|
136
112
|
|
|
137
113
|
## Related docs
|
|
138
114
|
|
|
139
115
|
- Presets and palettes catalog: <https://github.com/tsparticles/palettes>
|
|
140
116
|
- Main docs: <https://particles.js.org/docs/>
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
```mermaid
|
|
145
|
-
flowchart TD
|
|
146
|
-
|
|
147
|
-
subgraph pr [Palettes]
|
|
148
|
-
pasmokeWarm[Smoke Warm]
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
e[tsParticles Engine] --> pasmokeWarm
|
|
152
|
-
```
|
package/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "smoke-warm";
|
|
2
3
|
export async function loadSmokeWarmPalette(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 = "smoke-warm";
|
|
2
3
|
export async function loadSmokeWarmPalette(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 = "smoke-warm";
|
|
2
3
|
export async function loadSmokeWarmPalette(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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/palette-smoke-warm",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.16",
|
|
4
4
|
"description": "tsParticles smoke - warm palette",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -81,8 +81,7 @@
|
|
|
81
81
|
"url": "https://www.buymeacoffee.com/matteobruni"
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
|
-
"
|
|
85
|
-
"unpkg": "tsparticles.palette.smoke-warm.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": "4.0.0-beta.
|
|
109
|
+
"@tsparticles/engine": "4.0.0-beta.16"
|
|
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
|
}
|