@tsparticles/palette-tetris 4.0.0-beta.16
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 +21 -0
- package/README.md +133 -0
- package/browser/browser.js +5 -0
- package/browser/index.js +7 -0
- package/browser/index.lazy.js +7 -0
- package/browser/options.js +19 -0
- package/browser/package.json +1 -0
- package/cjs/browser.js +5 -0
- package/cjs/index.js +7 -0
- package/cjs/index.lazy.js +7 -0
- package/cjs/options.js +19 -0
- package/cjs/package.json +1 -0
- package/esm/browser.js +5 -0
- package/esm/index.js +7 -0
- package/esm/index.lazy.js +7 -0
- package/esm/options.js +19 -0
- package/esm/package.json +1 -0
- package/package.json +119 -0
- package/report.html +4950 -0
- package/tsparticles.palette.palette-tetris.js +44 -0
- package/tsparticles.palette.palette-tetris.min.js +1 -0
- package/types/browser.js +5 -0
- package/types/index.js +7 -0
- package/types/index.lazy.js +7 -0
- package/types/options.js +19 -0
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/* Palette v4.0.0-beta.16 */
|
|
3
|
+
(function (global, factory) {
|
|
4
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
5
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
6
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.palettes = global.__tsParticlesInternals.palettes || {}, global.__tsParticlesInternals.palettes.paletteTetris = global.__tsParticlesInternals.palettes.paletteTetris || {})));
|
|
7
|
+
})(this, (function (exports) { 'use strict';
|
|
8
|
+
|
|
9
|
+
const options = {
|
|
10
|
+
name: "Tetris",
|
|
11
|
+
background: "#0B0B1A",
|
|
12
|
+
blendMode: "screen",
|
|
13
|
+
colors: {
|
|
14
|
+
fill: {
|
|
15
|
+
enable: true,
|
|
16
|
+
value: [
|
|
17
|
+
"#6CE9ED",
|
|
18
|
+
"#0000E2",
|
|
19
|
+
"#E5A238",
|
|
20
|
+
"#F0F14F",
|
|
21
|
+
"#6DEA46",
|
|
22
|
+
"#911CE7",
|
|
23
|
+
"#D92F20",
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const paletteName = "tetris";
|
|
30
|
+
async function loadTetrisPalette(engine) {
|
|
31
|
+
await engine.pluginManager.register(e => {
|
|
32
|
+
e.pluginManager.addPalette(paletteName, options);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const globalObject = globalThis;
|
|
37
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
38
|
+
globalObject.loadTetrisPalette = loadTetrisPalette;
|
|
39
|
+
|
|
40
|
+
exports.loadTetrisPalette = loadTetrisPalette;
|
|
41
|
+
|
|
42
|
+
}));
|
|
43
|
+
Object.assign(globalThis.window || globalThis, { loadTetrisPalette: (globalThis.__tsParticlesInternals.palettes.paletteTetris || {}).loadTetrisPalette });
|
|
44
|
+
delete (globalThis.window || globalThis).tsparticlesInternalExports;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var s="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,s){return s in t||(t[s]={}),t[s]}})}:function(t){return t};t.__tsParticlesInternals.bundles=s(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=s(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=s(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=s(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=s(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=s(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=s(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=s(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=s(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=s(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=s(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=s(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=s(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports):"function"==typeof define&&define.amd?define(["exports"],s):s(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.palettes.paletteTetris=t.__tsParticlesInternals.palettes.paletteTetris||{}))}(this,function(t){"use strict";const s={name:"Tetris",background:"#0B0B1A",blendMode:"screen",colors:{fill:{enable:!0,value:["#6CE9ED","#0000E2","#E5A238","#F0F14F","#6DEA46","#911CE7","#D92F20"]}}};async function e(t){await t.pluginManager.register(t=>{t.pluginManager.addPalette("tetris",s)})}const a=globalThis;a.__tsParticlesInternals=a.__tsParticlesInternals??{},a.loadTetrisPalette=e,t.loadTetrisPalette=e}),Object.assign(globalThis.window||globalThis,{loadTetrisPalette:(globalThis.__tsParticlesInternals.palettes.paletteTetris||{}).loadTetrisPalette}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
|
package/types/browser.js
ADDED
package/types/index.js
ADDED
package/types/options.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const options = {
|
|
2
|
+
name: "Tetris",
|
|
3
|
+
background: "#0B0B1A",
|
|
4
|
+
blendMode: "screen",
|
|
5
|
+
colors: {
|
|
6
|
+
fill: {
|
|
7
|
+
enable: true,
|
|
8
|
+
value: [
|
|
9
|
+
"#6CE9ED",
|
|
10
|
+
"#0000E2",
|
|
11
|
+
"#E5A238",
|
|
12
|
+
"#F0F14F",
|
|
13
|
+
"#6DEA46",
|
|
14
|
+
"#911CE7",
|
|
15
|
+
"#D92F20",
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|