@tsparticles/palette-fireworks-rainbow-stroke 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 -15
- 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 +15 -7
- package/report.html +4949 -94
- package/tsparticles.palette.palette-rainbowStroke.js +64 -0
- package/tsparticles.palette.palette-rainbowStroke.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-fireworks-rainbow-stroke.js +0 -307
- package/tsparticles.palette.palette-fireworks-rainbow-stroke.min.js +0 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[](https://particles.js.org)
|
|
2
2
|
|
|
3
|
-
# tsParticles
|
|
3
|
+
# tsParticles RainbowStroke Palette
|
|
4
4
|
|
|
5
|
-
[](https://www.jsdelivr.com/package/npm/@tsparticles/palette-rainbowStroke) [](https://www.npmjs.com/package/@tsparticles/palette-rainbowStroke) [](https://www.npmjs.com/package/@tsparticles/palette-rainbowStroke) [](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/rainbowStroke)
|
|
16
16
|
|
|
17
17
|
## Colors
|
|
18
18
|
|
|
@@ -21,15 +21,18 @@ See the palette source for stroke layer details.
|
|
|
21
21
|
## Quick checklist
|
|
22
22
|
|
|
23
23
|
1. Install `@tsparticles/engine` (or use the CDN bundle below)
|
|
24
|
-
2.
|
|
25
|
-
3. Apply the
|
|
24
|
+
2. Load a base package (for example `@tsparticles/basic`) and call `loadRainbowStrokePalette` before `tsParticles.load(...)`
|
|
25
|
+
3. Apply the palette plus a minimal particles configuration in your options
|
|
26
|
+
|
|
27
|
+
A palette defines colors, not complete behavior, so pair it with a runtime package and particle options.
|
|
26
28
|
|
|
27
29
|
## How to use it
|
|
28
30
|
|
|
29
31
|
### CDN / Vanilla JS / jQuery
|
|
30
32
|
|
|
31
33
|
```html
|
|
32
|
-
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/
|
|
34
|
+
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@4/tsparticles.basic.bundle.min.js"></script>
|
|
35
|
+
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-rainbowStroke@4/tsparticles.palette-coloredSmokeAmber.min.js"></script>
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
### Usage
|
|
@@ -37,16 +40,28 @@ See the palette source for stroke layer details.
|
|
|
37
40
|
Once the scripts are loaded you can set up `tsParticles` like this:
|
|
38
41
|
|
|
39
42
|
```javascript
|
|
40
|
-
(async
|
|
41
|
-
await
|
|
43
|
+
(async engine => {
|
|
44
|
+
await loadBasic(engine);
|
|
45
|
+
await loadRainbowStrokePalette(engine);
|
|
46
|
+
|
|
47
|
+
const options = {
|
|
48
|
+
particles: {
|
|
49
|
+
number: { value: 200 },
|
|
50
|
+
shape: { type: "circle" },
|
|
51
|
+
size: { value: { min: 10, max: 15 } },
|
|
52
|
+
move: {
|
|
53
|
+
enable: true,
|
|
54
|
+
speed: 2,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
palette: "rainbowStroke",
|
|
58
|
+
};
|
|
42
59
|
|
|
43
|
-
await
|
|
60
|
+
await engine.load({
|
|
44
61
|
id: "tsparticles",
|
|
45
|
-
options
|
|
46
|
-
palette: "fireworks-rainbow-stroke",
|
|
47
|
-
},
|
|
62
|
+
options,
|
|
48
63
|
});
|
|
49
|
-
})();
|
|
64
|
+
})(tsParticles);
|
|
50
65
|
```
|
|
51
66
|
|
|
52
67
|
#### Customization
|
|
@@ -56,7 +71,7 @@ You can override all the options defining the properties like in any standard `t
|
|
|
56
71
|
|
|
57
72
|
### Frameworks with a tsParticles component library
|
|
58
73
|
|
|
59
|
-
Checkout the documentation in the component library repository and call the `
|
|
74
|
+
Checkout the documentation in the component library repository and call the `loadRainbowStrokePalette` function.
|
|
60
75
|
|
|
61
76
|
## Related docs
|
|
62
77
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { loadFireworksRainbowStrokePalette } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadFireworksRainbowStrokePalette = loadFireworksRainbowStrokePalette;
|
|
5
|
+
export * from "./index.js";
|
package/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "fireworks-rainbow-stroke";
|
|
2
3
|
export async function loadFireworksRainbowStrokePalette(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 = "fireworks-rainbow-stroke";
|
|
2
|
+
export async function loadFireworksRainbowStrokePalette(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 { loadFireworksRainbowStrokePalette } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadFireworksRainbowStrokePalette = loadFireworksRainbowStrokePalette;
|
|
5
|
+
export * from "./index.js";
|
package/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "fireworks-rainbow-stroke";
|
|
2
3
|
export async function loadFireworksRainbowStrokePalette(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 = "fireworks-rainbow-stroke";
|
|
2
|
+
export async function loadFireworksRainbowStrokePalette(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 { loadFireworksRainbowStrokePalette } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadFireworksRainbowStrokePalette = loadFireworksRainbowStrokePalette;
|
|
5
|
+
export * from "./index.js";
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "fireworks-rainbow-stroke";
|
|
2
3
|
export async function loadFireworksRainbowStrokePalette(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 = "fireworks-rainbow-stroke";
|
|
2
|
+
export async function loadFireworksRainbowStrokePalette(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,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/palette-fireworks-rainbow-stroke",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.15",
|
|
4
4
|
"description": "tsParticles fireworks rainbow stroke palette",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/tsparticles/
|
|
9
|
-
"directory": "palettes/fireworks/
|
|
8
|
+
"url": "git+https://github.com/tsparticles/tsparticles.git",
|
|
9
|
+
"directory": "palettes/fireworks/rainbowStroke"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
12
12
|
"front-end",
|
|
@@ -95,14 +95,22 @@
|
|
|
95
95
|
"umd": "./umd/index.js",
|
|
96
96
|
"default": "./cjs/index.js"
|
|
97
97
|
},
|
|
98
|
-
"./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
|
+
}
|
|
99
107
|
},
|
|
100
108
|
"dependencies": {
|
|
101
|
-
"@tsparticles/engine": "
|
|
109
|
+
"@tsparticles/engine": "4.0.0-beta.15"
|
|
102
110
|
},
|
|
103
111
|
"type": "module",
|
|
104
|
-
"jsdelivr": "tsparticles.palette-
|
|
105
|
-
"unpkg": "tsparticles.palette-
|
|
112
|
+
"jsdelivr": "tsparticles.palette-colored-smoke-amber.min.js",
|
|
113
|
+
"unpkg": "tsparticles.palette-colored-smoke-amber.min.js",
|
|
106
114
|
"publishConfig": {
|
|
107
115
|
"access": "public"
|
|
108
116
|
}
|