@tsparticles/palette-mermaid 4.0.0-beta.12

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,199 @@
1
+ [![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org)
2
+
3
+ # tsParticles Mermaid Palette
4
+
5
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/palette-mermaid/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/palette-mermaid) [![npmjs](https://badge.fury.io/js/%40tsparticles%2Fpalette-mermaid.svg)](https://www.npmjs.com/package/@tsparticles/palette-mermaid) [![npmjs](https://img.shields.io/npm/dt/%40tsparticles%2Fpalette-coloredSmokeAmber)](https://www.npmjs.com/package/@tsparticles/palette-mermaid) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
6
+
7
+ [tsParticles](https://github.com/tsparticles/tsparticles) palette for colored smoke amber.
8
+
9
+ [![Discord](https://particles.js.org/images/discord.png)](https://discord.gg/hACwv45Hme) [![Telegram](https://particles.js.org/images/telegram.png)](https://t.me/tsparticles)
10
+
11
+ [![tsParticles Product Hunt](https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=186113&theme=light)](https://www.producthunt.com/posts/tsparticles?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-tsparticles") <a href="https://www.buymeacoffee.com/matteobruni"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a beer&emoji=🍺&slug=matteobruni&button_colour=5F7FFF&font_colour=ffffff&font_family=Arial&outline_colour=000000&coffee_colour=FFDD00"></a>
12
+
13
+ ## Sample
14
+
15
+ [![demo](https://raw.githubusercontent.com/tsparticles/palettes/main/palettes/fantasy/mermaid/images/sample.png)](https://particles.js.org/samples/palettes/mermaid)
16
+
17
+ ## Colors
18
+
19
+ <table>
20
+ <tbody>
21
+ <tr>
22
+ <td align="center">
23
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#1A1000"><rect width="32" height="32" fill="#1A1000" /></svg><br />
24
+ <code>#1A1000</code>
25
+ </td>
26
+ <td align="center">
27
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#3A2200"><rect width="32" height="32" fill="#3A2200" /></svg><br />
28
+ <code>#3A2200</code>
29
+ </td>
30
+ <td align="center">
31
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#6B3D00"><rect width="32" height="32" fill="#6B3D00" /></svg><br />
32
+ <code>#6B3D00</code>
33
+ </td>
34
+ <td align="center">
35
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#A65A00"><rect width="32" height="32" fill="#A65A00" /></svg><br />
36
+ <code>#A65A00</code>
37
+ </td>
38
+ <td align="center">
39
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#D98A1A"><rect width="32" height="32" fill="#D98A1A" /></svg><br />
40
+ <code>#D98A1A</code>
41
+ </td>
42
+ </tr>
43
+ <tr>
44
+ <td align="center">
45
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#FFC266"><rect width="32" height="32" fill="#FFC266" /></svg><br />
46
+ <code>#FFC266</code>
47
+ </td>
48
+ <td align="center">
49
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#090500"><rect width="32" height="32" fill="#090500" /></svg><br />
50
+ <code>#090500</code>
51
+ </td>
52
+ <td align="center">
53
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#04101A"><rect width="32" height="32" fill="#04101A" /></svg><br />
54
+ <code>#04101A</code>
55
+ </td>
56
+ <td align="center">
57
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#B3E5FC"><rect width="32" height="32" fill="#B3E5FC" /></svg><br />
58
+ <code>#B3E5FC</code>
59
+ </td>
60
+ <td align="center">
61
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#4DD0E1"><rect width="32" height="32" fill="#4DD0E1" /></svg><br />
62
+ <code>#4DD0E1</code>
63
+ </td>
64
+ </tr>
65
+ <tr>
66
+ <td align="center">
67
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#26A69A"><rect width="32" height="32" fill="#26A69A" /></svg><br />
68
+ <code>#26A69A</code>
69
+ </td>
70
+ <td align="center">
71
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#00897B"><rect width="32" height="32" fill="#00897B" /></svg><br />
72
+ <code>#00897B</code>
73
+ </td>
74
+ <td align="center">
75
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#006064"><rect width="32" height="32" fill="#006064" /></svg><br />
76
+ <code>#006064</code>
77
+ </td>
78
+ <td align="center">
79
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#FFA500"><rect width="32" height="32" fill="#FFA500" /></svg><br />
80
+ <code>#FFA500</code>
81
+ </td>
82
+ <td align="center">
83
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#FFEFD7"><rect width="32" height="32" fill="#FFEFD7" /></svg><br />
84
+ <code>#FFEFD7</code>
85
+ </td>
86
+ </tr>
87
+ <tr>
88
+ <td align="center">
89
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#000000"><rect width="32" height="32" fill="#000000" /></svg><br />
90
+ <code>#000000</code>
91
+ </td>
92
+ <td align="center">
93
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#FFFFFF"><rect width="32" height="32" fill="#FFFFFF" /></svg><br />
94
+ <code>#FFFFFF</code>
95
+ </td>
96
+ <td align="center">
97
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#F5F5F5"><rect width="32" height="32" fill="#F5F5F5" /></svg><br />
98
+ <code>#F5F5F5</code>
99
+ </td>
100
+ <td align="center">
101
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#1E1E1E"><rect width="32" height="32" fill="#1E1E1E" /></svg><br />
102
+ <code>#1E1E1E</code>
103
+ </td>
104
+ <td align="center">
105
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#252525"><rect width="32" height="32" fill="#252525" /></svg><br />
106
+ <code>#252525</code>
107
+ </td>
108
+ </tr>
109
+ <tr>
110
+ <td align="center">
111
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#E0E0E0"><rect width="32" height="32" fill="#E0E0E0" /></svg><br />
112
+ <code>#E0E0E0</code>
113
+ </td>
114
+ <td align="center">
115
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#A0A0A0"><rect width="32" height="32" fill="#A0A0A0" /></svg><br />
116
+ <code>#A0A0A0</code>
117
+ </td>
118
+ <td align="center">
119
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#404040"><rect width="32" height="32" fill="#404040" /></svg><br />
120
+ <code>#404040</code>
121
+ </td>
122
+ <td align="center">
123
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#1D3557"><rect width="32" height="32" fill="#1D3557" /></svg><br />
124
+ <code>#1D3557</code>
125
+ </td>
126
+ </tr>
127
+ <tr>
128
+ <td colspan="5" align="center">
129
+ <svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#1A1000"><rect width="40" height="40" fill="#1A1000" /></svg><br />
130
+ <strong>Background</strong><br />
131
+ <code>#1A1000</code>
132
+ </td>
133
+ </tr>
134
+ <tr>
135
+ <td colspan="5" align="center">
136
+ <strong>Blend mode:</strong> <code>source-over</code> | <strong>Fill:</strong> <code>true</code>
137
+ </td>
138
+ </tr>
139
+ </tbody>
140
+ </table>
141
+ ## Quick checklist
142
+
143
+ 1. Install `@tsparticles/engine` (or use the CDN bundle below)
144
+ 2. Load a base package (for example `@tsparticles/basic`) and call `loadMermaidPalette` before `tsParticles.load(...)`
145
+ 3. Apply the palette plus a minimal particles configuration in your options
146
+
147
+ A palette defines colors, not complete behavior, so pair it with a runtime package and particle options.
148
+
149
+ ## How to use it
150
+
151
+ ### CDN / Vanilla JS / jQuery
152
+
153
+ ```html
154
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@4/tsparticles.basic.bundle.min.js"></script>
155
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-mermaid@4/tsparticles.palette-coloredSmokeAmber.min.js"></script>
156
+ ```
157
+
158
+ ### Usage
159
+
160
+ Once the scripts are loaded you can set up `tsParticles` like this:
161
+
162
+ ```javascript
163
+ (async engine => {
164
+ await loadBasic(engine);
165
+ await loadMermaidPalette(engine);
166
+
167
+ const options = {
168
+ particles: {
169
+ number: { value: 200 },
170
+ shape: { type: "circle" },
171
+ size: { value: { min: 10, max: 15 } },
172
+ move: {
173
+ enable: true,
174
+ speed: 2,
175
+ },
176
+ },
177
+ palette: "mermaid",
178
+ };
179
+
180
+ await engine.load({
181
+ id: "tsparticles",
182
+ options,
183
+ });
184
+ })(tsParticles);
185
+ ```
186
+
187
+ #### Customization
188
+
189
+ **Important ⚠️**
190
+ You can override all the options defining the properties like in any standard `tsParticles` installation.
191
+
192
+ ### Frameworks with a tsParticles component library
193
+
194
+ Checkout the documentation in the component library repository and call the `loadMermaidPalette` function.
195
+
196
+ ## Related docs
197
+
198
+ - Presets and palettes catalog: <https://github.com/tsparticles/palettes>
199
+ - Main docs: <https://particles.js.org/docs/>
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "mermaid";
3
+ export async function loadMermaidPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "mermaid";
3
+ export async function loadMermaidPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,17 @@
1
+ export const options = {
2
+ name: "Mermaid",
3
+ background: "#04101a",
4
+ blendMode: "screen",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#B3E5FC",
10
+ "#4DD0E1",
11
+ "#26A69A",
12
+ "#00897B",
13
+ "#006064",
14
+ ],
15
+ },
16
+ },
17
+ };
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/cjs/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "mermaid";
3
+ export async function loadMermaidPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "mermaid";
3
+ export async function loadMermaidPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
package/cjs/options.js ADDED
@@ -0,0 +1,17 @@
1
+ export const options = {
2
+ name: "Mermaid",
3
+ background: "#04101a",
4
+ blendMode: "screen",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#B3E5FC",
10
+ "#4DD0E1",
11
+ "#26A69A",
12
+ "#00897B",
13
+ "#006064",
14
+ ],
15
+ },
16
+ },
17
+ };
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/esm/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "mermaid";
3
+ export async function loadMermaidPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "mermaid";
3
+ export async function loadMermaidPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
package/esm/options.js ADDED
@@ -0,0 +1,17 @@
1
+ export const options = {
2
+ name: "Mermaid",
3
+ background: "#04101a",
4
+ blendMode: "screen",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#B3E5FC",
10
+ "#4DD0E1",
11
+ "#26A69A",
12
+ "#00897B",
13
+ "#006064",
14
+ ],
15
+ },
16
+ },
17
+ };
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json ADDED
@@ -0,0 +1,117 @@
1
+ {
2
+ "name": "@tsparticles/palette-mermaid",
3
+ "version": "4.0.0-beta.12",
4
+ "description": "tsParticles mermaid palette",
5
+ "homepage": "https://particles.js.org",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/tsparticles/tsparticles.git",
9
+ "directory": "palettes/fantasy/mermaid"
10
+ },
11
+ "keywords": [
12
+ "front-end",
13
+ "frontend",
14
+ "tsparticles",
15
+ "particles.js",
16
+ "particlesjs",
17
+ "particles",
18
+ "particle",
19
+ "canvas",
20
+ "jsparticles",
21
+ "xparticles",
22
+ "particles-js",
23
+ "particles-bg",
24
+ "particles-bg-vue",
25
+ "particles-ts",
26
+ "particles.ts",
27
+ "react-particles-js",
28
+ "react-particles.js",
29
+ "react-particles",
30
+ "react",
31
+ "reactjs",
32
+ "vue-particles",
33
+ "ngx-particles",
34
+ "angular-particles",
35
+ "particleground",
36
+ "vue",
37
+ "vuejs",
38
+ "preact",
39
+ "preactjs",
40
+ "jquery",
41
+ "angularjs",
42
+ "angular",
43
+ "typescript",
44
+ "javascript",
45
+ "animation",
46
+ "web",
47
+ "html5",
48
+ "web-design",
49
+ "webdesign",
50
+ "css",
51
+ "html",
52
+ "css3",
53
+ "animated",
54
+ "background",
55
+ "confetti",
56
+ "canvas",
57
+ "fireworks",
58
+ "fireworks-js",
59
+ "confetti-js",
60
+ "confettijs",
61
+ "fireworksjs",
62
+ "canvas-confetti",
63
+ "tsparticles-palette"
64
+ ],
65
+ "author": "Matteo Bruni <matteo.bruni@me.com>",
66
+ "license": "MIT",
67
+ "bugs": {
68
+ "url": "https://github.com/tsparticles/palettes/issues"
69
+ },
70
+ "funding": [
71
+ {
72
+ "type": "github",
73
+ "url": "https://github.com/sponsors/matteobruni"
74
+ },
75
+ {
76
+ "type": "github",
77
+ "url": "https://github.com/sponsors/tsparticles"
78
+ },
79
+ {
80
+ "type": "buymeacoffee",
81
+ "url": "https://www.buymeacoffee.com/matteobruni"
82
+ }
83
+ ],
84
+ "sideEffects": false,
85
+ "browser": "browser/index.js",
86
+ "main": "cjs/index.js",
87
+ "module": "esm/index.js",
88
+ "types": "types/index.d.ts",
89
+ "exports": {
90
+ ".": {
91
+ "types": "./types/index.d.ts",
92
+ "browser": "./browser/index.js",
93
+ "import": "./esm/index.js",
94
+ "require": "./cjs/index.js",
95
+ "umd": "./umd/index.js",
96
+ "default": "./cjs/index.js"
97
+ },
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
+ }
107
+ },
108
+ "dependencies": {
109
+ "@tsparticles/engine": "4.0.0-beta.12"
110
+ },
111
+ "type": "module",
112
+ "jsdelivr": "tsparticles.palette-colored-smoke-amber.min.js",
113
+ "unpkg": "tsparticles.palette-colored-smoke-amber.min.js",
114
+ "publishConfig": {
115
+ "access": "public"
116
+ }
117
+ }