@tsparticles/palette-full-fire-gradient 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-fullFireGradient.js +59 -0
- package/tsparticles.palette.palette-fullFireGradient.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-full-fire-gradient.js +0 -307
- package/tsparticles.palette.palette-full-fire-gradient.min.js +0 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[](https://particles.js.org)
|
|
2
2
|
|
|
3
|
-
# tsParticles
|
|
3
|
+
# tsParticles FullFireGradient Palette
|
|
4
4
|
|
|
5
|
-
[](https://www.jsdelivr.com/package/npm/@tsparticles/palette-fullFireGradient) [](https://www.npmjs.com/package/@tsparticles/palette-fullFireGradient) [](https://www.npmjs.com/package/@tsparticles/palette-fullFireGradient) [](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/fullFireGradient)
|
|
16
16
|
|
|
17
17
|
## Colors
|
|
18
18
|
|
|
@@ -134,15 +134,18 @@
|
|
|
134
134
|
## Quick checklist
|
|
135
135
|
|
|
136
136
|
1. Install `@tsparticles/engine` (or use the CDN bundle below)
|
|
137
|
-
2.
|
|
138
|
-
3. Apply the
|
|
137
|
+
2. Load a base package (for example `@tsparticles/basic`) and call `loadFullFireGradientPalette` before `tsParticles.load(...)`
|
|
138
|
+
3. Apply the palette plus a minimal particles configuration in your options
|
|
139
|
+
|
|
140
|
+
A palette defines colors, not complete behavior, so pair it with a runtime package and particle options.
|
|
139
141
|
|
|
140
142
|
## How to use it
|
|
141
143
|
|
|
142
144
|
### CDN / Vanilla JS / jQuery
|
|
143
145
|
|
|
144
146
|
```html
|
|
145
|
-
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/
|
|
147
|
+
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@4/tsparticles.basic.bundle.min.js"></script>
|
|
148
|
+
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-fullFireGradient@4/tsparticles.palette-coloredSmokeAmber.min.js"></script>
|
|
146
149
|
```
|
|
147
150
|
|
|
148
151
|
### Usage
|
|
@@ -150,16 +153,28 @@
|
|
|
150
153
|
Once the scripts are loaded you can set up `tsParticles` like this:
|
|
151
154
|
|
|
152
155
|
```javascript
|
|
153
|
-
(async
|
|
154
|
-
await
|
|
156
|
+
(async engine => {
|
|
157
|
+
await loadBasic(engine);
|
|
158
|
+
await loadFullFireGradientPalette(engine);
|
|
155
159
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
+
const options = {
|
|
161
|
+
particles: {
|
|
162
|
+
number: { value: 200 },
|
|
163
|
+
shape: { type: "circle" },
|
|
164
|
+
size: { value: { min: 10, max: 15 } },
|
|
165
|
+
move: {
|
|
166
|
+
enable: true,
|
|
167
|
+
speed: 2,
|
|
168
|
+
},
|
|
160
169
|
},
|
|
170
|
+
palette: "fullFireGradient",
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
await engine.load({
|
|
174
|
+
id: "tsparticles",
|
|
175
|
+
options,
|
|
161
176
|
});
|
|
162
|
-
})();
|
|
177
|
+
})(tsParticles);
|
|
163
178
|
```
|
|
164
179
|
|
|
165
180
|
#### Customization
|
|
@@ -167,47 +182,11 @@ Once the scripts are loaded you can set up `tsParticles` like this:
|
|
|
167
182
|
**Important ⚠️**
|
|
168
183
|
You can override all the options defining the properties like in any standard `tsParticles` installation.
|
|
169
184
|
|
|
170
|
-
```javascript
|
|
171
|
-
tsParticles.load({
|
|
172
|
-
id: "tsparticles",
|
|
173
|
-
options: {
|
|
174
|
-
particles: {
|
|
175
|
-
shape: {
|
|
176
|
-
type: "square", // starting from v2, this require the square shape script
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
palette: "full-fire-gradient",
|
|
180
|
-
},
|
|
181
|
-
});
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
Like in the sample above, the circles will be replaced by squares.
|
|
185
|
-
|
|
186
185
|
### Frameworks with a tsParticles component library
|
|
187
186
|
|
|
188
|
-
Checkout the documentation in the component library repository and call the `loadFullFireGradientPalette` function
|
|
189
|
-
|
|
190
|
-
The options shown above are valid for all the component libraries.
|
|
191
|
-
|
|
192
|
-
## Common pitfalls
|
|
193
|
-
|
|
194
|
-
- Calling `tsParticles.load(...)` before `loadFullFireGradientPalette(...)`
|
|
195
|
-
- Verify required peer packages before enabling advanced options
|
|
196
|
-
- Change one option group at a time to isolate regressions quickly
|
|
187
|
+
Checkout the documentation in the component library repository and call the `loadFullFireGradientPalette` function.
|
|
197
188
|
|
|
198
189
|
## Related docs
|
|
199
190
|
|
|
200
191
|
- Presets and palettes catalog: <https://github.com/tsparticles/palettes>
|
|
201
192
|
- Main docs: <https://particles.js.org/docs/>
|
|
202
|
-
|
|
203
|
-
---
|
|
204
|
-
|
|
205
|
-
```mermaid
|
|
206
|
-
flowchart TD
|
|
207
|
-
|
|
208
|
-
subgraph pr [Palettes]
|
|
209
|
-
pafullFireGradient[Full Fire Gradient]
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
e[tsParticles Engine] --> pafullFireGradient
|
|
213
|
-
```
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { loadFullFireGradientPalette } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadFullFireGradientPalette = loadFullFireGradientPalette;
|
|
5
|
+
export * from "./index.js";
|
package/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "full-fire-gradient";
|
|
2
3
|
export async function loadFullFireGradientPalette(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
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const paletteName = "full-fire-gradient";
|
|
2
|
+
export async function loadFullFireGradientPalette(engine) {
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const { options } = await import("./options.js");
|
|
5
|
+
e.pluginManager.addPalette(paletteName, options);
|
|
6
|
+
});
|
|
7
|
+
}
|
package/cjs/browser.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { loadFullFireGradientPalette } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadFullFireGradientPalette = loadFullFireGradientPalette;
|
|
5
|
+
export * from "./index.js";
|
package/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "full-fire-gradient";
|
|
2
3
|
export async function loadFullFireGradientPalette(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
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const paletteName = "full-fire-gradient";
|
|
2
|
+
export async function loadFullFireGradientPalette(engine) {
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const { options } = await import("./options.js");
|
|
5
|
+
e.pluginManager.addPalette(paletteName, options);
|
|
6
|
+
});
|
|
7
|
+
}
|
package/esm/browser.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { loadFullFireGradientPalette } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadFullFireGradientPalette = loadFullFireGradientPalette;
|
|
5
|
+
export * from "./index.js";
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "full-fire-gradient";
|
|
2
3
|
export async function loadFullFireGradientPalette(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
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const paletteName = "full-fire-gradient";
|
|
2
|
+
export async function loadFullFireGradientPalette(engine) {
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const { options } = await import("./options.js");
|
|
5
|
+
e.pluginManager.addPalette(paletteName, options);
|
|
6
|
+
});
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/palette-full-fire-gradient",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.15",
|
|
4
4
|
"description": "tsParticles full fire gradient 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/fire/fullFireGradient"
|
|
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.full-fire-gradient.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
|
}
|