@tsparticles/palette-monochrome-silver 4.0.0-beta.12 → 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 +9 -9
- 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 +13 -5
- package/report.html +4949 -94
- package/tsparticles.palette.palette-silver.js +43 -0
- package/tsparticles.palette.palette-silver.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-monochrome-silver.js +0 -307
- package/tsparticles.palette.palette-monochrome-silver.min.js +0 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[](https://particles.js.org)
|
|
2
2
|
|
|
3
|
-
# tsParticles
|
|
3
|
+
# tsParticles Silver Palette
|
|
4
4
|
|
|
5
|
-
[](https://www.jsdelivr.com/package/npm/@tsparticles/palette-silver) [](https://www.npmjs.com/package/@tsparticles/palette-silver) [](https://www.npmjs.com/package/@tsparticles/palette-silver) [](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/silver)
|
|
16
16
|
|
|
17
17
|
## Colors
|
|
18
18
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
## Quick checklist
|
|
65
65
|
|
|
66
66
|
1. Install `@tsparticles/engine` (or use the CDN bundle below)
|
|
67
|
-
2. Load a base package (for example `@tsparticles/basic`) and call `
|
|
67
|
+
2. Load a base package (for example `@tsparticles/basic`) and call `loadSilverPalette` before `tsParticles.load(...)`
|
|
68
68
|
3. Apply the palette plus a minimal particles configuration in your options
|
|
69
69
|
|
|
70
70
|
A palette defines colors, not complete behavior, so pair it with a runtime package and particle options.
|
|
@@ -75,7 +75,7 @@ A palette defines colors, not complete behavior, so pair it with a runtime packa
|
|
|
75
75
|
|
|
76
76
|
```html
|
|
77
77
|
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@4/tsparticles.basic.bundle.min.js"></script>
|
|
78
|
-
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-
|
|
78
|
+
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-silver@4/tsparticles.palette-coloredSmokeAmber.min.js"></script>
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
### Usage
|
|
@@ -85,7 +85,7 @@ Once the scripts are loaded you can set up `tsParticles` like this:
|
|
|
85
85
|
```javascript
|
|
86
86
|
(async engine => {
|
|
87
87
|
await loadBasic(engine);
|
|
88
|
-
await
|
|
88
|
+
await loadSilverPalette(engine);
|
|
89
89
|
|
|
90
90
|
const options = {
|
|
91
91
|
particles: {
|
|
@@ -97,7 +97,7 @@ Once the scripts are loaded you can set up `tsParticles` like this:
|
|
|
97
97
|
speed: 2,
|
|
98
98
|
},
|
|
99
99
|
},
|
|
100
|
-
palette: "
|
|
100
|
+
palette: "silver",
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
await engine.load({
|
|
@@ -114,7 +114,7 @@ You can override all the options defining the properties like in any standard `t
|
|
|
114
114
|
|
|
115
115
|
### Frameworks with a tsParticles component library
|
|
116
116
|
|
|
117
|
-
Checkout the documentation in the component library repository and call the `
|
|
117
|
+
Checkout the documentation in the component library repository and call the `loadSilverPalette` function.
|
|
118
118
|
|
|
119
119
|
## Related docs
|
|
120
120
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { loadMonochromeSilverPalette } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadMonochromeSilverPalette = loadMonochromeSilverPalette;
|
|
5
|
+
export * from "./index.js";
|
package/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "monochrome-silver";
|
|
2
3
|
export async function loadMonochromeSilverPalette(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 = "monochrome-silver";
|
|
2
|
+
export async function loadMonochromeSilverPalette(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 { loadMonochromeSilverPalette } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadMonochromeSilverPalette = loadMonochromeSilverPalette;
|
|
5
|
+
export * from "./index.js";
|
package/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "monochrome-silver";
|
|
2
3
|
export async function loadMonochromeSilverPalette(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 = "monochrome-silver";
|
|
2
|
+
export async function loadMonochromeSilverPalette(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 { loadMonochromeSilverPalette } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadMonochromeSilverPalette = loadMonochromeSilverPalette;
|
|
5
|
+
export * from "./index.js";
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { options } from "./options.js";
|
|
1
2
|
const paletteName = "monochrome-silver";
|
|
2
3
|
export async function loadMonochromeSilverPalette(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 = "monochrome-silver";
|
|
2
|
+
export async function loadMonochromeSilverPalette(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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/palette-monochrome-silver",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.15",
|
|
4
4
|
"description": "tsParticles monochrome silver palette",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -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": "4.0.0-beta.
|
|
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
|
}
|