@tsparticles/plugin-named-color 4.0.0-beta.9 → 4.0.0
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/browser/browser.js +5 -0
- package/browser/index.js +3 -3
- package/browser/index.lazy.js +7 -0
- package/cjs/browser.js +5 -0
- package/cjs/index.js +3 -3
- package/cjs/index.lazy.js +7 -0
- package/esm/browser.js +5 -0
- package/esm/index.js +3 -3
- package/esm/index.lazy.js +7 -0
- package/package.json +10 -3
- package/report.html +4949 -94
- package/tsparticles.plugin.namedColor.js +195 -312
- package/tsparticles.plugin.namedColor.min.js +1 -2
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/645.min.js +0 -1
- package/dist_browser_NamedColorManager_js.js +0 -30
|
@@ -1,317 +1,200 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
/*
|
|
10
|
-
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
11
|
-
* This devtool is neither made for production nor for readable output files.
|
|
12
|
-
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
13
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
14
|
-
* or disable the default devtool with "devtool: false".
|
|
15
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
16
|
-
*/
|
|
17
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
18
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
19
|
-
module.exports = factory(require("@tsparticles/engine"));
|
|
20
|
-
else if(typeof define === 'function' && define.amd)
|
|
21
|
-
define(["@tsparticles/engine"], factory);
|
|
22
|
-
else {
|
|
23
|
-
var a = typeof exports === 'object' ? factory(require("@tsparticles/engine")) : factory(root["window"]);
|
|
24
|
-
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
25
|
-
}
|
|
26
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_engine__) => {
|
|
27
|
-
return /******/ (() => { // webpackBootstrap
|
|
28
|
-
/******/ "use strict";
|
|
29
|
-
/******/ var __webpack_modules__ = ({
|
|
1
|
+
(function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
|
|
2
|
+
/* Plugin v4.0.0 */
|
|
3
|
+
(function (global, factory) {
|
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/engine')) :
|
|
5
|
+
typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/engine'], factory) :
|
|
6
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.plugins = global.__tsParticlesInternals.plugins || {}, global.__tsParticlesInternals.plugins.namedColor = global.__tsParticlesInternals.plugins.namedColor || {}), global.__tsParticlesInternals.engine));
|
|
7
|
+
})(this, (function (exports, engine) { 'use strict';
|
|
30
8
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
9
|
+
const namedColors = new Map([
|
|
10
|
+
["aliceblue", { r: 240, g: 248, b: 255 }],
|
|
11
|
+
["antiquewhite", { r: 250, g: 235, b: 215 }],
|
|
12
|
+
["aqua", { r: 0, g: 255, b: 255 }],
|
|
13
|
+
["aquamarine", { r: 127, g: 255, b: 212 }],
|
|
14
|
+
["azure", { r: 240, g: 255, b: 255 }],
|
|
15
|
+
["beige", { r: 245, g: 245, b: 220 }],
|
|
16
|
+
["bisque", { r: 255, g: 228, b: 196 }],
|
|
17
|
+
["black", { r: 0, g: 0, b: 0 }],
|
|
18
|
+
["blanchedalmond", { r: 255, g: 235, b: 205 }],
|
|
19
|
+
["blue", { r: 0, g: 0, b: 255 }],
|
|
20
|
+
["blueviolet", { r: 138, g: 43, b: 226 }],
|
|
21
|
+
["brown", { r: 165, g: 42, b: 42 }],
|
|
22
|
+
["burlywood", { r: 222, g: 184, b: 135 }],
|
|
23
|
+
["cadetblue", { r: 95, g: 158, b: 160 }],
|
|
24
|
+
["chartreuse", { r: 127, g: 255, b: 0 }],
|
|
25
|
+
["chocolate", { r: 210, g: 105, b: 30 }],
|
|
26
|
+
["coral", { r: 255, g: 127, b: 80 }],
|
|
27
|
+
["cornflowerblue", { r: 100, g: 149, b: 237 }],
|
|
28
|
+
["cornsilk", { r: 255, g: 248, b: 220 }],
|
|
29
|
+
["crimson", { r: 220, g: 20, b: 60 }],
|
|
30
|
+
["cyan", { r: 0, g: 255, b: 255 }],
|
|
31
|
+
["darkblue", { r: 0, g: 0, b: 139 }],
|
|
32
|
+
["darkcyan", { r: 0, g: 139, b: 139 }],
|
|
33
|
+
["darkgoldenrod", { r: 184, g: 134, b: 11 }],
|
|
34
|
+
["darkgray", { r: 169, g: 169, b: 169 }],
|
|
35
|
+
["darkgreen", { r: 0, g: 100, b: 0 }],
|
|
36
|
+
["darkgrey", { r: 169, g: 169, b: 169 }],
|
|
37
|
+
["darkkhaki", { r: 189, g: 183, b: 107 }],
|
|
38
|
+
["darkmagenta", { r: 139, g: 0, b: 139 }],
|
|
39
|
+
["darkolivegreen", { r: 85, g: 107, b: 47 }],
|
|
40
|
+
["darkorange", { r: 255, g: 140, b: 0 }],
|
|
41
|
+
["darkorchid", { r: 153, g: 50, b: 204 }],
|
|
42
|
+
["darkred", { r: 139, g: 0, b: 0 }],
|
|
43
|
+
["darksalmon", { r: 233, g: 150, b: 122 }],
|
|
44
|
+
["darkseagreen", { r: 143, g: 188, b: 143 }],
|
|
45
|
+
["darkslateblue", { r: 72, g: 61, b: 139 }],
|
|
46
|
+
["darkslategray", { r: 47, g: 79, b: 79 }],
|
|
47
|
+
["darkslategrey", { r: 47, g: 79, b: 79 }],
|
|
48
|
+
["darkturquoise", { r: 0, g: 206, b: 209 }],
|
|
49
|
+
["darkviolet", { r: 148, g: 0, b: 211 }],
|
|
50
|
+
["deeppink", { r: 255, g: 20, b: 147 }],
|
|
51
|
+
["deepskyblue", { r: 0, g: 191, b: 255 }],
|
|
52
|
+
["dimgray", { r: 105, g: 105, b: 105 }],
|
|
53
|
+
["dimgrey", { r: 105, g: 105, b: 105 }],
|
|
54
|
+
["dodgerblue", { r: 30, g: 144, b: 255 }],
|
|
55
|
+
["firebrick", { r: 178, g: 34, b: 34 }],
|
|
56
|
+
["floralwhite", { r: 255, g: 250, b: 240 }],
|
|
57
|
+
["forestgreen", { r: 34, g: 139, b: 34 }],
|
|
58
|
+
["fuchsia", { r: 255, g: 0, b: 255 }],
|
|
59
|
+
["gainsboro", { r: 220, g: 220, b: 220 }],
|
|
60
|
+
["ghostwhite", { r: 248, g: 248, b: 255 }],
|
|
61
|
+
["gold", { r: 255, g: 215, b: 0 }],
|
|
62
|
+
["goldenrod", { r: 218, g: 165, b: 32 }],
|
|
63
|
+
["gray", { r: 128, g: 128, b: 128 }],
|
|
64
|
+
["green", { r: 0, g: 128, b: 0 }],
|
|
65
|
+
["greenyellow", { r: 173, g: 255, b: 47 }],
|
|
66
|
+
["grey", { r: 128, g: 128, b: 128 }],
|
|
67
|
+
["honeydew", { r: 240, g: 255, b: 240 }],
|
|
68
|
+
["hotpink", { r: 255, g: 105, b: 180 }],
|
|
69
|
+
["indianred", { r: 205, g: 92, b: 92 }],
|
|
70
|
+
["indigo", { r: 75, g: 0, b: 130 }],
|
|
71
|
+
["ivory", { r: 255, g: 255, b: 240 }],
|
|
72
|
+
["khaki", { r: 240, g: 230, b: 140 }],
|
|
73
|
+
["lavender", { r: 230, g: 230, b: 250 }],
|
|
74
|
+
["lavenderblush", { r: 255, g: 240, b: 245 }],
|
|
75
|
+
["lawngreen", { r: 124, g: 252, b: 0 }],
|
|
76
|
+
["lemonchiffon", { r: 255, g: 250, b: 205 }],
|
|
77
|
+
["lightblue", { r: 173, g: 216, b: 230 }],
|
|
78
|
+
["lightcoral", { r: 240, g: 128, b: 128 }],
|
|
79
|
+
["lightcyan", { r: 224, g: 255, b: 255 }],
|
|
80
|
+
["lightgoldenrodyellow", { r: 250, g: 250, b: 210 }],
|
|
81
|
+
["lightgray", { r: 211, g: 211, b: 211 }],
|
|
82
|
+
["lightgreen", { r: 144, g: 238, b: 144 }],
|
|
83
|
+
["lightgrey", { r: 211, g: 211, b: 211 }],
|
|
84
|
+
["lightpink", { r: 255, g: 182, b: 193 }],
|
|
85
|
+
["lightsalmon", { r: 255, g: 160, b: 122 }],
|
|
86
|
+
["lightseagreen", { r: 32, g: 178, b: 170 }],
|
|
87
|
+
["lightskyblue", { r: 135, g: 206, b: 250 }],
|
|
88
|
+
["lightslategray", { r: 119, g: 136, b: 153 }],
|
|
89
|
+
["lightslategrey", { r: 119, g: 136, b: 153 }],
|
|
90
|
+
["lightsteelblue", { r: 176, g: 196, b: 222 }],
|
|
91
|
+
["lightyellow", { r: 255, g: 255, b: 224 }],
|
|
92
|
+
["lime", { r: 0, g: 255, b: 0 }],
|
|
93
|
+
["limegreen", { r: 50, g: 205, b: 50 }],
|
|
94
|
+
["linen", { r: 250, g: 240, b: 230 }],
|
|
95
|
+
["magenta", { r: 255, g: 0, b: 255 }],
|
|
96
|
+
["maroon", { r: 128, g: 0, b: 0 }],
|
|
97
|
+
["mediumaquamarine", { r: 102, g: 205, b: 170 }],
|
|
98
|
+
["mediumblue", { r: 0, g: 0, b: 205 }],
|
|
99
|
+
["mediumorchid", { r: 186, g: 85, b: 211 }],
|
|
100
|
+
["mediumpurple", { r: 147, g: 112, b: 219 }],
|
|
101
|
+
["mediumseagreen", { r: 60, g: 179, b: 113 }],
|
|
102
|
+
["mediumslateblue", { r: 123, g: 104, b: 238 }],
|
|
103
|
+
["mediumspringgreen", { r: 0, g: 250, b: 154 }],
|
|
104
|
+
["mediumturquoise", { r: 72, g: 209, b: 204 }],
|
|
105
|
+
["mediumvioletred", { r: 199, g: 21, b: 133 }],
|
|
106
|
+
["midnightblue", { r: 25, g: 25, b: 112 }],
|
|
107
|
+
["mintcream", { r: 245, g: 255, b: 250 }],
|
|
108
|
+
["mistyrose", { r: 255, g: 228, b: 225 }],
|
|
109
|
+
["moccasin", { r: 255, g: 228, b: 181 }],
|
|
110
|
+
["navajowhite", { r: 255, g: 222, b: 173 }],
|
|
111
|
+
["navy", { r: 0, g: 0, b: 128 }],
|
|
112
|
+
["oldlace", { r: 253, g: 245, b: 230 }],
|
|
113
|
+
["olive", { r: 128, g: 128, b: 0 }],
|
|
114
|
+
["olivedrab", { r: 107, g: 142, b: 35 }],
|
|
115
|
+
["orange", { r: 255, g: 165, b: 0 }],
|
|
116
|
+
["orangered", { r: 255, g: 69, b: 0 }],
|
|
117
|
+
["orchid", { r: 218, g: 112, b: 214 }],
|
|
118
|
+
["palegoldenrod", { r: 238, g: 232, b: 170 }],
|
|
119
|
+
["palegreen", { r: 152, g: 251, b: 152 }],
|
|
120
|
+
["paleturquoise", { r: 175, g: 238, b: 238 }],
|
|
121
|
+
["palevioletred", { r: 219, g: 112, b: 147 }],
|
|
122
|
+
["papayawhip", { r: 255, g: 239, b: 213 }],
|
|
123
|
+
["peachpuff", { r: 255, g: 218, b: 185 }],
|
|
124
|
+
["peru", { r: 205, g: 133, b: 63 }],
|
|
125
|
+
["pink", { r: 255, g: 192, b: 203 }],
|
|
126
|
+
["plum", { r: 221, g: 160, b: 221 }],
|
|
127
|
+
["powderblue", { r: 176, g: 224, b: 230 }],
|
|
128
|
+
["purple", { r: 128, g: 0, b: 128 }],
|
|
129
|
+
["rebeccapurple", { r: 102, g: 51, b: 153 }],
|
|
130
|
+
["red", { r: 255, g: 0, b: 0 }],
|
|
131
|
+
["rosybrown", { r: 188, g: 143, b: 143 }],
|
|
132
|
+
["royalblue", { r: 65, g: 105, b: 225 }],
|
|
133
|
+
["saddlebrown", { r: 139, g: 69, b: 19 }],
|
|
134
|
+
["salmon", { r: 250, g: 128, b: 114 }],
|
|
135
|
+
["sandybrown", { r: 244, g: 164, b: 96 }],
|
|
136
|
+
["seagreen", { r: 46, g: 139, b: 87 }],
|
|
137
|
+
["seashell", { r: 255, g: 245, b: 238 }],
|
|
138
|
+
["sienna", { r: 160, g: 82, b: 45 }],
|
|
139
|
+
["silver", { r: 192, g: 192, b: 192 }],
|
|
140
|
+
["skyblue", { r: 135, g: 206, b: 235 }],
|
|
141
|
+
["slateblue", { r: 106, g: 90, b: 205 }],
|
|
142
|
+
["slategray", { r: 112, g: 128, b: 144 }],
|
|
143
|
+
["slategrey", { r: 112, g: 128, b: 144 }],
|
|
144
|
+
["snow", { r: 255, g: 250, b: 250 }],
|
|
145
|
+
["springgreen", { r: 0, g: 255, b: 127 }],
|
|
146
|
+
["steelblue", { r: 70, g: 130, b: 180 }],
|
|
147
|
+
["tan", { r: 210, g: 180, b: 140 }],
|
|
148
|
+
["teal", { r: 0, g: 128, b: 128 }],
|
|
149
|
+
["thistle", { r: 216, g: 191, b: 216 }],
|
|
150
|
+
["tomato", { r: 255, g: 99, b: 71 }],
|
|
151
|
+
["turquoise", { r: 64, g: 224, b: 208 }],
|
|
152
|
+
["violet", { r: 238, g: 130, b: 238 }],
|
|
153
|
+
["wheat", { r: 245, g: 222, b: 179 }],
|
|
154
|
+
["white", { r: 255, g: 255, b: 255 }],
|
|
155
|
+
["whitesmoke", { r: 245, g: 245, b: 245 }],
|
|
156
|
+
["yellow", { r: 255, g: 255, b: 0 }],
|
|
157
|
+
["yellowgreen", { r: 154, g: 205, b: 50 }],
|
|
158
|
+
]);
|
|
159
|
+
class NamedColorManager {
|
|
160
|
+
accepts(input) {
|
|
161
|
+
return namedColors.has(input.toLowerCase());
|
|
162
|
+
}
|
|
163
|
+
handleColor(color) {
|
|
164
|
+
return this._parseString(color.value);
|
|
165
|
+
}
|
|
166
|
+
handleRangeColor(color) {
|
|
167
|
+
return this._parseString(color.value);
|
|
168
|
+
}
|
|
169
|
+
parseString(input) {
|
|
170
|
+
return this._parseString(input);
|
|
171
|
+
}
|
|
172
|
+
_parseString(input) {
|
|
173
|
+
if (!input || typeof input !== "string") {
|
|
174
|
+
return undefined;
|
|
175
|
+
}
|
|
176
|
+
const rgbColor = namedColors.get(input.toLowerCase());
|
|
177
|
+
if (!rgbColor) {
|
|
178
|
+
engine.getLogger().error("Color not found", input);
|
|
179
|
+
return undefined;
|
|
180
|
+
}
|
|
181
|
+
return { ...rgbColor, a: 255 };
|
|
182
|
+
}
|
|
183
|
+
}
|
|
36
184
|
|
|
37
|
-
|
|
185
|
+
async function loadNamedColorPlugin(engine) {
|
|
186
|
+
engine.checkVersion("4.0.0");
|
|
187
|
+
await engine.pluginManager.register(e => {
|
|
188
|
+
e.pluginManager.addColorManager("named", new NamedColorManager());
|
|
189
|
+
});
|
|
190
|
+
}
|
|
38
191
|
|
|
39
|
-
|
|
192
|
+
const globalObject = globalThis;
|
|
193
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
194
|
+
globalObject.loadNamedColorPlugin = loadNamedColorPlugin;
|
|
40
195
|
|
|
41
|
-
|
|
42
|
-
/*!*******************************!*\
|
|
43
|
-
!*** ./dist/browser/index.js ***!
|
|
44
|
-
\*******************************/
|
|
45
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
196
|
+
exports.loadNamedColorPlugin = loadNamedColorPlugin;
|
|
46
197
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/******/ });
|
|
52
|
-
/************************************************************************/
|
|
53
|
-
/******/ // The module cache
|
|
54
|
-
/******/ var __webpack_module_cache__ = {};
|
|
55
|
-
/******/
|
|
56
|
-
/******/ // The require function
|
|
57
|
-
/******/ function __webpack_require__(moduleId) {
|
|
58
|
-
/******/ // Check if module is in cache
|
|
59
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
60
|
-
/******/ if (cachedModule !== undefined) {
|
|
61
|
-
/******/ return cachedModule.exports;
|
|
62
|
-
/******/ }
|
|
63
|
-
/******/ // Create a new module (and put it into the cache)
|
|
64
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
65
|
-
/******/ // no module.id needed
|
|
66
|
-
/******/ // no module.loaded needed
|
|
67
|
-
/******/ exports: {}
|
|
68
|
-
/******/ };
|
|
69
|
-
/******/
|
|
70
|
-
/******/ // Execute the module function
|
|
71
|
-
/******/ if (!(moduleId in __webpack_modules__)) {
|
|
72
|
-
/******/ delete __webpack_module_cache__[moduleId];
|
|
73
|
-
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
74
|
-
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
75
|
-
/******/ throw e;
|
|
76
|
-
/******/ }
|
|
77
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
78
|
-
/******/
|
|
79
|
-
/******/ // Return the exports of the module
|
|
80
|
-
/******/ return module.exports;
|
|
81
|
-
/******/ }
|
|
82
|
-
/******/
|
|
83
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
84
|
-
/******/ __webpack_require__.m = __webpack_modules__;
|
|
85
|
-
/******/
|
|
86
|
-
/************************************************************************/
|
|
87
|
-
/******/ /* webpack/runtime/define property getters */
|
|
88
|
-
/******/ (() => {
|
|
89
|
-
/******/ // define getter functions for harmony exports
|
|
90
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
91
|
-
/******/ for(var key in definition) {
|
|
92
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
93
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
94
|
-
/******/ }
|
|
95
|
-
/******/ }
|
|
96
|
-
/******/ };
|
|
97
|
-
/******/ })();
|
|
98
|
-
/******/
|
|
99
|
-
/******/ /* webpack/runtime/ensure chunk */
|
|
100
|
-
/******/ (() => {
|
|
101
|
-
/******/ __webpack_require__.f = {};
|
|
102
|
-
/******/ // This file contains only the entry chunk.
|
|
103
|
-
/******/ // The chunk loading function for additional chunks
|
|
104
|
-
/******/ __webpack_require__.e = (chunkId) => {
|
|
105
|
-
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
|
|
106
|
-
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
107
|
-
/******/ return promises;
|
|
108
|
-
/******/ }, []));
|
|
109
|
-
/******/ };
|
|
110
|
-
/******/ })();
|
|
111
|
-
/******/
|
|
112
|
-
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
113
|
-
/******/ (() => {
|
|
114
|
-
/******/ // This function allow to reference async chunks
|
|
115
|
-
/******/ __webpack_require__.u = (chunkId) => {
|
|
116
|
-
/******/ // return url for filenames based on template
|
|
117
|
-
/******/ return "" + chunkId + ".js";
|
|
118
|
-
/******/ };
|
|
119
|
-
/******/ })();
|
|
120
|
-
/******/
|
|
121
|
-
/******/ /* webpack/runtime/global */
|
|
122
|
-
/******/ (() => {
|
|
123
|
-
/******/ __webpack_require__.g = (function() {
|
|
124
|
-
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
125
|
-
/******/ try {
|
|
126
|
-
/******/ return this || new Function('return this')();
|
|
127
|
-
/******/ } catch (e) {
|
|
128
|
-
/******/ if (typeof window === 'object') return window;
|
|
129
|
-
/******/ }
|
|
130
|
-
/******/ })();
|
|
131
|
-
/******/ })();
|
|
132
|
-
/******/
|
|
133
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
134
|
-
/******/ (() => {
|
|
135
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
136
|
-
/******/ })();
|
|
137
|
-
/******/
|
|
138
|
-
/******/ /* webpack/runtime/load script */
|
|
139
|
-
/******/ (() => {
|
|
140
|
-
/******/ var inProgress = {};
|
|
141
|
-
/******/ var dataWebpackPrefix = "@tsparticles/plugin-named-color:";
|
|
142
|
-
/******/ // loadScript function to load a script via script tag
|
|
143
|
-
/******/ __webpack_require__.l = (url, done, key, chunkId) => {
|
|
144
|
-
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
145
|
-
/******/ var script, needAttach;
|
|
146
|
-
/******/ if(key !== undefined) {
|
|
147
|
-
/******/ var scripts = document.getElementsByTagName("script");
|
|
148
|
-
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
149
|
-
/******/ var s = scripts[i];
|
|
150
|
-
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
151
|
-
/******/ }
|
|
152
|
-
/******/ }
|
|
153
|
-
/******/ if(!script) {
|
|
154
|
-
/******/ needAttach = true;
|
|
155
|
-
/******/ script = document.createElement('script');
|
|
156
|
-
/******/
|
|
157
|
-
/******/ script.charset = 'utf-8';
|
|
158
|
-
/******/ if (__webpack_require__.nc) {
|
|
159
|
-
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
160
|
-
/******/ }
|
|
161
|
-
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
162
|
-
/******/
|
|
163
|
-
/******/ script.src = url;
|
|
164
|
-
/******/ }
|
|
165
|
-
/******/ inProgress[url] = [done];
|
|
166
|
-
/******/ var onScriptComplete = (prev, event) => {
|
|
167
|
-
/******/ // avoid mem leaks in IE.
|
|
168
|
-
/******/ script.onerror = script.onload = null;
|
|
169
|
-
/******/ clearTimeout(timeout);
|
|
170
|
-
/******/ var doneFns = inProgress[url];
|
|
171
|
-
/******/ delete inProgress[url];
|
|
172
|
-
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
173
|
-
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
174
|
-
/******/ if(prev) return prev(event);
|
|
175
|
-
/******/ }
|
|
176
|
-
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
177
|
-
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
178
|
-
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
179
|
-
/******/ needAttach && document.head.appendChild(script);
|
|
180
|
-
/******/ };
|
|
181
|
-
/******/ })();
|
|
182
|
-
/******/
|
|
183
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
184
|
-
/******/ (() => {
|
|
185
|
-
/******/ // define __esModule on exports
|
|
186
|
-
/******/ __webpack_require__.r = (exports) => {
|
|
187
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
188
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
189
|
-
/******/ }
|
|
190
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
191
|
-
/******/ };
|
|
192
|
-
/******/ })();
|
|
193
|
-
/******/
|
|
194
|
-
/******/ /* webpack/runtime/publicPath */
|
|
195
|
-
/******/ (() => {
|
|
196
|
-
/******/ var scriptUrl;
|
|
197
|
-
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
198
|
-
/******/ var document = __webpack_require__.g.document;
|
|
199
|
-
/******/ if (!scriptUrl && document) {
|
|
200
|
-
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
|
|
201
|
-
/******/ scriptUrl = document.currentScript.src;
|
|
202
|
-
/******/ if (!scriptUrl) {
|
|
203
|
-
/******/ var scripts = document.getElementsByTagName("script");
|
|
204
|
-
/******/ if(scripts.length) {
|
|
205
|
-
/******/ var i = scripts.length - 1;
|
|
206
|
-
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
207
|
-
/******/ }
|
|
208
|
-
/******/ }
|
|
209
|
-
/******/ }
|
|
210
|
-
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
211
|
-
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
212
|
-
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
213
|
-
/******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
214
|
-
/******/ __webpack_require__.p = scriptUrl;
|
|
215
|
-
/******/ })();
|
|
216
|
-
/******/
|
|
217
|
-
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
218
|
-
/******/ (() => {
|
|
219
|
-
/******/ // no baseURI
|
|
220
|
-
/******/
|
|
221
|
-
/******/ // object to store loaded and loading chunks
|
|
222
|
-
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
223
|
-
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
224
|
-
/******/ var installedChunks = {
|
|
225
|
-
/******/ "tsparticles.plugin.namedColor": 0
|
|
226
|
-
/******/ };
|
|
227
|
-
/******/
|
|
228
|
-
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
229
|
-
/******/ // JSONP chunk loading for javascript
|
|
230
|
-
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
231
|
-
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
232
|
-
/******/
|
|
233
|
-
/******/ // a Promise means "currently loading".
|
|
234
|
-
/******/ if(installedChunkData) {
|
|
235
|
-
/******/ promises.push(installedChunkData[2]);
|
|
236
|
-
/******/ } else {
|
|
237
|
-
/******/ if(true) { // all chunks have JS
|
|
238
|
-
/******/ // setup Promise in chunk cache
|
|
239
|
-
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
240
|
-
/******/ promises.push(installedChunkData[2] = promise);
|
|
241
|
-
/******/
|
|
242
|
-
/******/ // start chunk loading
|
|
243
|
-
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
244
|
-
/******/ // create error before stack unwound to get useful stacktrace later
|
|
245
|
-
/******/ var error = new Error();
|
|
246
|
-
/******/ var loadingEnded = (event) => {
|
|
247
|
-
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
248
|
-
/******/ installedChunkData = installedChunks[chunkId];
|
|
249
|
-
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
250
|
-
/******/ if(installedChunkData) {
|
|
251
|
-
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
252
|
-
/******/ var realSrc = event && event.target && event.target.src;
|
|
253
|
-
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
254
|
-
/******/ error.name = 'ChunkLoadError';
|
|
255
|
-
/******/ error.type = errorType;
|
|
256
|
-
/******/ error.request = realSrc;
|
|
257
|
-
/******/ installedChunkData[1](error);
|
|
258
|
-
/******/ }
|
|
259
|
-
/******/ }
|
|
260
|
-
/******/ };
|
|
261
|
-
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
262
|
-
/******/ }
|
|
263
|
-
/******/ }
|
|
264
|
-
/******/ }
|
|
265
|
-
/******/ };
|
|
266
|
-
/******/
|
|
267
|
-
/******/ // no prefetching
|
|
268
|
-
/******/
|
|
269
|
-
/******/ // no preloaded
|
|
270
|
-
/******/
|
|
271
|
-
/******/ // no HMR
|
|
272
|
-
/******/
|
|
273
|
-
/******/ // no HMR manifest
|
|
274
|
-
/******/
|
|
275
|
-
/******/ // no on chunks loaded
|
|
276
|
-
/******/
|
|
277
|
-
/******/ // install a JSONP callback for chunk loading
|
|
278
|
-
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
279
|
-
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
280
|
-
/******/ // add "moreModules" to the modules object,
|
|
281
|
-
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
282
|
-
/******/ var moduleId, chunkId, i = 0;
|
|
283
|
-
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
284
|
-
/******/ for(moduleId in moreModules) {
|
|
285
|
-
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
286
|
-
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
287
|
-
/******/ }
|
|
288
|
-
/******/ }
|
|
289
|
-
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
290
|
-
/******/ }
|
|
291
|
-
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
292
|
-
/******/ for(;i < chunkIds.length; i++) {
|
|
293
|
-
/******/ chunkId = chunkIds[i];
|
|
294
|
-
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
295
|
-
/******/ installedChunks[chunkId][0]();
|
|
296
|
-
/******/ }
|
|
297
|
-
/******/ installedChunks[chunkId] = 0;
|
|
298
|
-
/******/ }
|
|
299
|
-
/******/
|
|
300
|
-
/******/ }
|
|
301
|
-
/******/
|
|
302
|
-
/******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_plugin_named_color"] = this["webpackChunk_tsparticles_plugin_named_color"] || [];
|
|
303
|
-
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
304
|
-
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
305
|
-
/******/ })();
|
|
306
|
-
/******/
|
|
307
|
-
/************************************************************************/
|
|
308
|
-
/******/
|
|
309
|
-
/******/ // startup
|
|
310
|
-
/******/ // Load entry module and return exports
|
|
311
|
-
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
312
|
-
/******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
|
|
313
|
-
/******/
|
|
314
|
-
/******/ return __webpack_exports__;
|
|
315
|
-
/******/ })()
|
|
316
|
-
;
|
|
317
|
-
});
|
|
198
|
+
}));
|
|
199
|
+
Object.assign(globalThis.window || globalThis, { loadNamedColorPlugin: (globalThis.__tsParticlesInternals.plugins.namedColor || {}).loadNamedColorPlugin });
|
|
200
|
+
delete (globalThis.window || globalThis).tsparticlesInternalExports;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
!function(e,
|
|
2
|
-
(`+n+": "+i+")",l.name="ChunkLoadError",l.type=n,l.request=i,o[1](l)}},"chunk-"+e,e)}},r=(e,r)=>{var o,n,[i,l,s]=r,c=0;if(i.some(e=>0!==t[e])){for(o in l)a.o(l,o)&&(a.m[o]=l[o]);s&&s(a)}for(e&&e(r);c<i.length;c++)n=i[c],a.o(t,n)&&t[n]&&t[n][0](),t[n]=0},(o=this.webpackChunk_tsparticles_plugin_named_color=this.webpackChunk_tsparticles_plugin_named_color||[]).forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o));var d={};async function f(e){e.checkVersion("4.0.0-beta.9"),await e.pluginManager.register(async e=>{let{NamedColorManager:t}=await a.e(645).then(a.bind(a,645));e.pluginManager.addColorManager("named",new t)})}return a.r(d),a.d(d,{loadNamedColorPlugin:()=>f}),d})());
|
|
1
|
+
!function(r){r.__tsParticlesInternals=r.__tsParticlesInternals||{},r.__tsParticlesInternals.bundles=r.__tsParticlesInternals.bundles||{},r.__tsParticlesInternals.effects=r.__tsParticlesInternals.effects||{},r.__tsParticlesInternals.engine=r.__tsParticlesInternals.engine||{},r.__tsParticlesInternals.interactions=r.__tsParticlesInternals.interactions||{},r.__tsParticlesInternals.palettes=r.__tsParticlesInternals.palettes||{},r.__tsParticlesInternals.paths=r.__tsParticlesInternals.paths||{},r.__tsParticlesInternals.plugins=r.__tsParticlesInternals.plugins||{},r.__tsParticlesInternals.plugins=r.__tsParticlesInternals.plugins||{},r.__tsParticlesInternals.plugins.emittersShapes=r.__tsParticlesInternals.plugins.emittersShapes||{},r.__tsParticlesInternals.presets=r.__tsParticlesInternals.presets||{},r.__tsParticlesInternals.shapes=r.__tsParticlesInternals.shapes||{},r.__tsParticlesInternals.updaters=r.__tsParticlesInternals.updaters||{},r.__tsParticlesInternals.utils=r.__tsParticlesInternals.utils||{},r.__tsParticlesInternals.canvas=r.__tsParticlesInternals.canvas||{},r.__tsParticlesInternals.canvas=r.__tsParticlesInternals.canvas||{},r.__tsParticlesInternals.canvas.utils=r.__tsParticlesInternals.canvas.utils||{},r.__tsParticlesInternals.path=r.__tsParticlesInternals.path||{},r.__tsParticlesInternals.path=r.__tsParticlesInternals.path||{},r.__tsParticlesInternals.path.utils=r.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(r){return new Proxy(r,{get:function(r,e){return e in r||(r[e]={}),r[e]}})}:function(r){return r};r.__tsParticlesInternals.bundles=e(r.__tsParticlesInternals.bundles),r.__tsParticlesInternals.effects=e(r.__tsParticlesInternals.effects),r.__tsParticlesInternals.interactions=e(r.__tsParticlesInternals.interactions),r.__tsParticlesInternals.palettes=e(r.__tsParticlesInternals.palettes),r.__tsParticlesInternals.paths=e(r.__tsParticlesInternals.paths),r.__tsParticlesInternals.plugins=e(r.__tsParticlesInternals.plugins),r.__tsParticlesInternals.plugins.emittersShapes=e(r.__tsParticlesInternals.plugins.emittersShapes),r.__tsParticlesInternals.presets=e(r.__tsParticlesInternals.presets),r.__tsParticlesInternals.shapes=e(r.__tsParticlesInternals.shapes),r.__tsParticlesInternals.updaters=e(r.__tsParticlesInternals.updaters),r.__tsParticlesInternals.utils=e(r.__tsParticlesInternals.utils),r.__tsParticlesInternals.canvas=e(r.__tsParticlesInternals.canvas),r.__tsParticlesInternals.path=e(r.__tsParticlesInternals.path),r.tsparticlesInternalExports=r.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/engine"],e):e(((r="undefined"!=typeof globalThis?globalThis:r||self).__tsParticlesInternals=r.__tsParticlesInternals||{},r.__tsParticlesInternals.plugins=r.__tsParticlesInternals.plugins||{},r.__tsParticlesInternals.plugins.namedColor=r.__tsParticlesInternals.plugins.namedColor||{}),r.__tsParticlesInternals.engine)}(this,function(r,e){"use strict";const t=new Map([["aliceblue",{r:240,g:248,b:255}],["antiquewhite",{r:250,g:235,b:215}],["aqua",{r:0,g:255,b:255}],["aquamarine",{r:127,g:255,b:212}],["azure",{r:240,g:255,b:255}],["beige",{r:245,g:245,b:220}],["bisque",{r:255,g:228,b:196}],["black",{r:0,g:0,b:0}],["blanchedalmond",{r:255,g:235,b:205}],["blue",{r:0,g:0,b:255}],["blueviolet",{r:138,g:43,b:226}],["brown",{r:165,g:42,b:42}],["burlywood",{r:222,g:184,b:135}],["cadetblue",{r:95,g:158,b:160}],["chartreuse",{r:127,g:255,b:0}],["chocolate",{r:210,g:105,b:30}],["coral",{r:255,g:127,b:80}],["cornflowerblue",{r:100,g:149,b:237}],["cornsilk",{r:255,g:248,b:220}],["crimson",{r:220,g:20,b:60}],["cyan",{r:0,g:255,b:255}],["darkblue",{r:0,g:0,b:139}],["darkcyan",{r:0,g:139,b:139}],["darkgoldenrod",{r:184,g:134,b:11}],["darkgray",{r:169,g:169,b:169}],["darkgreen",{r:0,g:100,b:0}],["darkgrey",{r:169,g:169,b:169}],["darkkhaki",{r:189,g:183,b:107}],["darkmagenta",{r:139,g:0,b:139}],["darkolivegreen",{r:85,g:107,b:47}],["darkorange",{r:255,g:140,b:0}],["darkorchid",{r:153,g:50,b:204}],["darkred",{r:139,g:0,b:0}],["darksalmon",{r:233,g:150,b:122}],["darkseagreen",{r:143,g:188,b:143}],["darkslateblue",{r:72,g:61,b:139}],["darkslategray",{r:47,g:79,b:79}],["darkslategrey",{r:47,g:79,b:79}],["darkturquoise",{r:0,g:206,b:209}],["darkviolet",{r:148,g:0,b:211}],["deeppink",{r:255,g:20,b:147}],["deepskyblue",{r:0,g:191,b:255}],["dimgray",{r:105,g:105,b:105}],["dimgrey",{r:105,g:105,b:105}],["dodgerblue",{r:30,g:144,b:255}],["firebrick",{r:178,g:34,b:34}],["floralwhite",{r:255,g:250,b:240}],["forestgreen",{r:34,g:139,b:34}],["fuchsia",{r:255,g:0,b:255}],["gainsboro",{r:220,g:220,b:220}],["ghostwhite",{r:248,g:248,b:255}],["gold",{r:255,g:215,b:0}],["goldenrod",{r:218,g:165,b:32}],["gray",{r:128,g:128,b:128}],["green",{r:0,g:128,b:0}],["greenyellow",{r:173,g:255,b:47}],["grey",{r:128,g:128,b:128}],["honeydew",{r:240,g:255,b:240}],["hotpink",{r:255,g:105,b:180}],["indianred",{r:205,g:92,b:92}],["indigo",{r:75,g:0,b:130}],["ivory",{r:255,g:255,b:240}],["khaki",{r:240,g:230,b:140}],["lavender",{r:230,g:230,b:250}],["lavenderblush",{r:255,g:240,b:245}],["lawngreen",{r:124,g:252,b:0}],["lemonchiffon",{r:255,g:250,b:205}],["lightblue",{r:173,g:216,b:230}],["lightcoral",{r:240,g:128,b:128}],["lightcyan",{r:224,g:255,b:255}],["lightgoldenrodyellow",{r:250,g:250,b:210}],["lightgray",{r:211,g:211,b:211}],["lightgreen",{r:144,g:238,b:144}],["lightgrey",{r:211,g:211,b:211}],["lightpink",{r:255,g:182,b:193}],["lightsalmon",{r:255,g:160,b:122}],["lightseagreen",{r:32,g:178,b:170}],["lightskyblue",{r:135,g:206,b:250}],["lightslategray",{r:119,g:136,b:153}],["lightslategrey",{r:119,g:136,b:153}],["lightsteelblue",{r:176,g:196,b:222}],["lightyellow",{r:255,g:255,b:224}],["lime",{r:0,g:255,b:0}],["limegreen",{r:50,g:205,b:50}],["linen",{r:250,g:240,b:230}],["magenta",{r:255,g:0,b:255}],["maroon",{r:128,g:0,b:0}],["mediumaquamarine",{r:102,g:205,b:170}],["mediumblue",{r:0,g:0,b:205}],["mediumorchid",{r:186,g:85,b:211}],["mediumpurple",{r:147,g:112,b:219}],["mediumseagreen",{r:60,g:179,b:113}],["mediumslateblue",{r:123,g:104,b:238}],["mediumspringgreen",{r:0,g:250,b:154}],["mediumturquoise",{r:72,g:209,b:204}],["mediumvioletred",{r:199,g:21,b:133}],["midnightblue",{r:25,g:25,b:112}],["mintcream",{r:245,g:255,b:250}],["mistyrose",{r:255,g:228,b:225}],["moccasin",{r:255,g:228,b:181}],["navajowhite",{r:255,g:222,b:173}],["navy",{r:0,g:0,b:128}],["oldlace",{r:253,g:245,b:230}],["olive",{r:128,g:128,b:0}],["olivedrab",{r:107,g:142,b:35}],["orange",{r:255,g:165,b:0}],["orangered",{r:255,g:69,b:0}],["orchid",{r:218,g:112,b:214}],["palegoldenrod",{r:238,g:232,b:170}],["palegreen",{r:152,g:251,b:152}],["paleturquoise",{r:175,g:238,b:238}],["palevioletred",{r:219,g:112,b:147}],["papayawhip",{r:255,g:239,b:213}],["peachpuff",{r:255,g:218,b:185}],["peru",{r:205,g:133,b:63}],["pink",{r:255,g:192,b:203}],["plum",{r:221,g:160,b:221}],["powderblue",{r:176,g:224,b:230}],["purple",{r:128,g:0,b:128}],["rebeccapurple",{r:102,g:51,b:153}],["red",{r:255,g:0,b:0}],["rosybrown",{r:188,g:143,b:143}],["royalblue",{r:65,g:105,b:225}],["saddlebrown",{r:139,g:69,b:19}],["salmon",{r:250,g:128,b:114}],["sandybrown",{r:244,g:164,b:96}],["seagreen",{r:46,g:139,b:87}],["seashell",{r:255,g:245,b:238}],["sienna",{r:160,g:82,b:45}],["silver",{r:192,g:192,b:192}],["skyblue",{r:135,g:206,b:235}],["slateblue",{r:106,g:90,b:205}],["slategray",{r:112,g:128,b:144}],["slategrey",{r:112,g:128,b:144}],["snow",{r:255,g:250,b:250}],["springgreen",{r:0,g:255,b:127}],["steelblue",{r:70,g:130,b:180}],["tan",{r:210,g:180,b:140}],["teal",{r:0,g:128,b:128}],["thistle",{r:216,g:191,b:216}],["tomato",{r:255,g:99,b:71}],["turquoise",{r:64,g:224,b:208}],["violet",{r:238,g:130,b:238}],["wheat",{r:245,g:222,b:179}],["white",{r:255,g:255,b:255}],["whitesmoke",{r:245,g:245,b:245}],["yellow",{r:255,g:255,b:0}],["yellowgreen",{r:154,g:205,b:50}]]);class s{accepts(r){return t.has(r.toLowerCase())}handleColor(r){return this._parseString(r.value)}handleRangeColor(r){return this._parseString(r.value)}parseString(r){return this._parseString(r)}_parseString(r){if(!r||"string"!=typeof r)return;const s=t.get(r.toLowerCase());if(s)return{...s,a:255};e.getLogger().error("Color not found",r)}}async function a(r){r.checkVersion("4.0.0"),await r.pluginManager.register(r=>{r.pluginManager.addColorManager("named",new s)})}const n=globalThis;n.__tsParticlesInternals=n.__tsParticlesInternals??{},n.loadNamedColorPlugin=a,r.loadNamedColorPlugin=a}),Object.assign(globalThis.window||globalThis,{loadNamedColorPlugin:(globalThis.__tsParticlesInternals.plugins.namedColor||{}).loadNamedColorPlugin}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index.js";
|
package/645.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_plugin_named_color=this.webpackChunk_tsparticles_plugin_named_color||[]).push([[645],{645(r,g,e){e.d(g,{NamedColorManager:()=>l});var b=e(303);let a=new Map([["aliceblue",{r:240,g:248,b:255}],["antiquewhite",{r:250,g:235,b:215}],["aqua",{r:0,g:255,b:255}],["aquamarine",{r:127,g:255,b:212}],["azure",{r:240,g:255,b:255}],["beige",{r:245,g:245,b:220}],["bisque",{r:255,g:228,b:196}],["black",{r:0,g:0,b:0}],["blanchedalmond",{r:255,g:235,b:205}],["blue",{r:0,g:0,b:255}],["blueviolet",{r:138,g:43,b:226}],["brown",{r:165,g:42,b:42}],["burlywood",{r:222,g:184,b:135}],["cadetblue",{r:95,g:158,b:160}],["chartreuse",{r:127,g:255,b:0}],["chocolate",{r:210,g:105,b:30}],["coral",{r:255,g:127,b:80}],["cornflowerblue",{r:100,g:149,b:237}],["cornsilk",{r:255,g:248,b:220}],["crimson",{r:220,g:20,b:60}],["cyan",{r:0,g:255,b:255}],["darkblue",{r:0,g:0,b:139}],["darkcyan",{r:0,g:139,b:139}],["darkgoldenrod",{r:184,g:134,b:11}],["darkgray",{r:169,g:169,b:169}],["darkgreen",{r:0,g:100,b:0}],["darkgrey",{r:169,g:169,b:169}],["darkkhaki",{r:189,g:183,b:107}],["darkmagenta",{r:139,g:0,b:139}],["darkolivegreen",{r:85,g:107,b:47}],["darkorange",{r:255,g:140,b:0}],["darkorchid",{r:153,g:50,b:204}],["darkred",{r:139,g:0,b:0}],["darksalmon",{r:233,g:150,b:122}],["darkseagreen",{r:143,g:188,b:143}],["darkslateblue",{r:72,g:61,b:139}],["darkslategray",{r:47,g:79,b:79}],["darkslategrey",{r:47,g:79,b:79}],["darkturquoise",{r:0,g:206,b:209}],["darkviolet",{r:148,g:0,b:211}],["deeppink",{r:255,g:20,b:147}],["deepskyblue",{r:0,g:191,b:255}],["dimgray",{r:105,g:105,b:105}],["dimgrey",{r:105,g:105,b:105}],["dodgerblue",{r:30,g:144,b:255}],["firebrick",{r:178,g:34,b:34}],["floralwhite",{r:255,g:250,b:240}],["forestgreen",{r:34,g:139,b:34}],["fuchsia",{r:255,g:0,b:255}],["gainsboro",{r:220,g:220,b:220}],["ghostwhite",{r:248,g:248,b:255}],["gold",{r:255,g:215,b:0}],["goldenrod",{r:218,g:165,b:32}],["gray",{r:128,g:128,b:128}],["green",{r:0,g:128,b:0}],["greenyellow",{r:173,g:255,b:47}],["grey",{r:128,g:128,b:128}],["honeydew",{r:240,g:255,b:240}],["hotpink",{r:255,g:105,b:180}],["indianred",{r:205,g:92,b:92}],["indigo",{r:75,g:0,b:130}],["ivory",{r:255,g:255,b:240}],["khaki",{r:240,g:230,b:140}],["lavender",{r:230,g:230,b:250}],["lavenderblush",{r:255,g:240,b:245}],["lawngreen",{r:124,g:252,b:0}],["lemonchiffon",{r:255,g:250,b:205}],["lightblue",{r:173,g:216,b:230}],["lightcoral",{r:240,g:128,b:128}],["lightcyan",{r:224,g:255,b:255}],["lightgoldenrodyellow",{r:250,g:250,b:210}],["lightgray",{r:211,g:211,b:211}],["lightgreen",{r:144,g:238,b:144}],["lightgrey",{r:211,g:211,b:211}],["lightpink",{r:255,g:182,b:193}],["lightsalmon",{r:255,g:160,b:122}],["lightseagreen",{r:32,g:178,b:170}],["lightskyblue",{r:135,g:206,b:250}],["lightslategray",{r:119,g:136,b:153}],["lightslategrey",{r:119,g:136,b:153}],["lightsteelblue",{r:176,g:196,b:222}],["lightyellow",{r:255,g:255,b:224}],["lime",{r:0,g:255,b:0}],["limegreen",{r:50,g:205,b:50}],["linen",{r:250,g:240,b:230}],["magenta",{r:255,g:0,b:255}],["maroon",{r:128,g:0,b:0}],["mediumaquamarine",{r:102,g:205,b:170}],["mediumblue",{r:0,g:0,b:205}],["mediumorchid",{r:186,g:85,b:211}],["mediumpurple",{r:147,g:112,b:219}],["mediumseagreen",{r:60,g:179,b:113}],["mediumslateblue",{r:123,g:104,b:238}],["mediumspringgreen",{r:0,g:250,b:154}],["mediumturquoise",{r:72,g:209,b:204}],["mediumvioletred",{r:199,g:21,b:133}],["midnightblue",{r:25,g:25,b:112}],["mintcream",{r:245,g:255,b:250}],["mistyrose",{r:255,g:228,b:225}],["moccasin",{r:255,g:228,b:181}],["navajowhite",{r:255,g:222,b:173}],["navy",{r:0,g:0,b:128}],["oldlace",{r:253,g:245,b:230}],["olive",{r:128,g:128,b:0}],["olivedrab",{r:107,g:142,b:35}],["orange",{r:255,g:165,b:0}],["orangered",{r:255,g:69,b:0}],["orchid",{r:218,g:112,b:214}],["palegoldenrod",{r:238,g:232,b:170}],["palegreen",{r:152,g:251,b:152}],["paleturquoise",{r:175,g:238,b:238}],["palevioletred",{r:219,g:112,b:147}],["papayawhip",{r:255,g:239,b:213}],["peachpuff",{r:255,g:218,b:185}],["peru",{r:205,g:133,b:63}],["pink",{r:255,g:192,b:203}],["plum",{r:221,g:160,b:221}],["powderblue",{r:176,g:224,b:230}],["purple",{r:128,g:0,b:128}],["rebeccapurple",{r:102,g:51,b:153}],["red",{r:255,g:0,b:0}],["rosybrown",{r:188,g:143,b:143}],["royalblue",{r:65,g:105,b:225}],["saddlebrown",{r:139,g:69,b:19}],["salmon",{r:250,g:128,b:114}],["sandybrown",{r:244,g:164,b:96}],["seagreen",{r:46,g:139,b:87}],["seashell",{r:255,g:245,b:238}],["sienna",{r:160,g:82,b:45}],["silver",{r:192,g:192,b:192}],["skyblue",{r:135,g:206,b:235}],["slateblue",{r:106,g:90,b:205}],["slategray",{r:112,g:128,b:144}],["slategrey",{r:112,g:128,b:144}],["snow",{r:255,g:250,b:250}],["springgreen",{r:0,g:255,b:127}],["steelblue",{r:70,g:130,b:180}],["tan",{r:210,g:180,b:140}],["teal",{r:0,g:128,b:128}],["thistle",{r:216,g:191,b:216}],["tomato",{r:255,g:99,b:71}],["turquoise",{r:64,g:224,b:208}],["violet",{r:238,g:130,b:238}],["wheat",{r:245,g:222,b:179}],["white",{r:255,g:255,b:255}],["whitesmoke",{r:245,g:245,b:245}],["yellow",{r:255,g:255,b:0}],["yellowgreen",{r:154,g:205,b:50}]]);class l{accepts(r){return a.has(r.toLowerCase())}handleColor(r){return this._parseString(r.value)}handleRangeColor(r){return this._parseString(r.value)}parseString(r){return this._parseString(r)}_parseString(r){if(!r||"string"!=typeof r)return;let g=a.get(r.toLowerCase());return g?{...g,a:255}:void(0,b.getLogger)().error("Color not found",r)}}}}]);
|