@tsparticles/preset-triangles 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.
Files changed (78) hide show
  1. package/browser/browser.js +5 -0
  2. package/browser/bundle.js +4 -0
  3. package/browser/index.js +5 -6
  4. package/browser/index.lazy.js +19 -0
  5. package/cjs/browser.js +5 -0
  6. package/cjs/bundle.js +4 -0
  7. package/cjs/index.js +5 -6
  8. package/cjs/index.lazy.js +19 -0
  9. package/esm/browser.js +5 -0
  10. package/esm/bundle.js +4 -0
  11. package/esm/index.js +5 -6
  12. package/esm/index.lazy.js +19 -0
  13. package/package.json +13 -6
  14. package/report.html +4949 -94
  15. package/tsparticles.preset.triangles.bundle.js +7151 -967
  16. package/tsparticles.preset.triangles.bundle.min.js +1 -2
  17. package/tsparticles.preset.triangles.js +63 -362
  18. package/tsparticles.preset.triangles.min.js +1 -2
  19. package/types/browser.d.ts +1 -0
  20. package/types/index.lazy.d.ts +2 -0
  21. package/153.min.js +0 -1
  22. package/170.min.js +0 -1
  23. package/172.min.js +0 -1
  24. package/188.min.js +0 -1
  25. package/215.min.js +0 -1
  26. package/220.min.js +0 -1
  27. package/260.min.js +0 -1
  28. package/304.min.js +0 -1
  29. package/361.min.js +0 -1
  30. package/392.min.js +0 -1
  31. package/404.min.js +0 -1
  32. package/467.min.js +0 -1
  33. package/48.min.js +0 -1
  34. package/512.min.js +0 -1
  35. package/592.min.js +0 -1
  36. package/63.min.js +0 -1
  37. package/632.min.js +0 -1
  38. package/659.min.js +0 -1
  39. package/700.min.js +0 -1
  40. package/714.min.js +0 -1
  41. package/719.min.js +0 -1
  42. package/72.min.js +0 -1
  43. package/74.min.js +0 -1
  44. package/750.min.js +0 -1
  45. package/857.min.js +0 -1
  46. package/86.min.js +0 -1
  47. package/892.min.js +0 -1
  48. package/929.min.js +0 -1
  49. package/957.min.js +0 -1
  50. package/dist_browser_options_js.js +0 -30
  51. package/node_modules_pnpm_tsparticles_basic_4_0_0-beta_11_node_modules_tsparticles_basic_browser_index_js.js +0 -30
  52. package/node_modules_pnpm_tsparticles_interaction-particles-links_4_0_0-beta_11__tsparticles_canvas-u-806af0.js +0 -60
  53. package/node_modules_pnpm_tsparticles_interaction-particles-links_4_0_0-beta_11__tsparticles_canvas-u-9987aa.js +0 -30
  54. package/node_modules_pnpm_tsparticles_interaction-particles-links_4_0_0-beta_11__tsparticles_canvas-u-e325aa.js +0 -40
  55. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-5e0ff2.js +0 -30
  56. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-b0d0ee.js +0 -30
  57. package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-060416.js +0 -30
  58. package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-a6d106.js +0 -30
  59. package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_4_0_0-be-47e198.js +0 -120
  60. package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_4_0_0-be-710e43.js +0 -70
  61. package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-3a792b.js +0 -30
  62. package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-e1bc4b.js +0 -30
  63. package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-d9836d.js +0 -30
  64. package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-f22022.js +0 -30
  65. package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-7552ae.js +0 -40
  66. package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-b06fc7.js +0 -30
  67. package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-8f9e09.js +0 -30
  68. package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-da77ce.js +0 -30
  69. package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_-df7144.js +0 -30
  70. package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-589482.js +0 -30
  71. package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-b1f330.js +0 -30
  72. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a47b81.js +0 -30
  73. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-d2508a.js +0 -30
  74. package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_11_node_modules_tsparticles_engine_br-ca098e.js +0 -100
  75. package/vendors-node_modules_pnpm_tsparticles_interaction-particles-links_4_0_0-beta_11__tsparticles_-ecbc0d.js +0 -140
  76. package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_-32e86c.js +0 -50
  77. package/vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-bet-5f2b78.js +0 -40
  78. package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0-09fa1a.js +0 -80
@@ -1,367 +1,68 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v4.0.0-beta.0
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/plugin-interactivity"), require("@tsparticles/interaction-particles-links"), require("@tsparticles/basic"));
20
- else if(typeof define === 'function' && define.amd)
21
- define(["@tsparticles/plugin-interactivity", "@tsparticles/interaction-particles-links", "@tsparticles/basic"], factory);
22
- else {
23
- var a = typeof exports === 'object' ? factory(require("@tsparticles/plugin-interactivity"), require("@tsparticles/interaction-particles-links"), require("@tsparticles/basic")) : factory(root["window"], root["window"], root["window"]);
24
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
25
- }
26
- })(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_interactivity__, __WEBPACK_EXTERNAL_MODULE__tsparticles_interaction_particles_links__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__) => {
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
+ /* Preset v4.0.0-beta.15 */
3
+ (function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/basic'), require('@tsparticles/plugin-interactivity'), require('@tsparticles/interaction-particles-links')) :
5
+ typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/basic', '@tsparticles/plugin-interactivity', '@tsparticles/interaction-particles-links'], factory) :
6
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.presets = global.__tsParticlesInternals.presets || {}, global.__tsParticlesInternals.presets.triangles = global.__tsParticlesInternals.presets.triangles || {}), global.__tsParticlesInternals.bundles.basic, global.__tsParticlesInternals.plugins.interactivity, global.__tsParticlesInternals.interactions.particlesLinks));
7
+ })(this, (function (exports, basic, pluginInteractivity, interactionParticlesLinks) { 'use strict';
30
8
 
31
- /***/ "@tsparticles/basic"
32
- /*!******************************************************************************************************************************!*\
33
- !*** external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"} ***!
34
- \******************************************************************************************************************************/
35
- (module) {
9
+ const options = {
10
+ background: {
11
+ color: "#000000",
12
+ },
13
+ particles: {
14
+ number: {
15
+ value: 100,
16
+ },
17
+ links: {
18
+ distance: 125,
19
+ enable: true,
20
+ triangles: {
21
+ enable: true,
22
+ opacity: 0.1,
23
+ },
24
+ },
25
+ move: {
26
+ enable: true,
27
+ speed: 5,
28
+ },
29
+ paint: {
30
+ fill: {
31
+ color: {
32
+ value: "#ffffff",
33
+ },
34
+ },
35
+ },
36
+ size: {
37
+ value: 1,
38
+ },
39
+ shape: {
40
+ type: "circle",
41
+ },
42
+ },
43
+ };
36
44
 
37
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__;
45
+ const presetName = "triangles";
46
+ async function loadTrianglesPreset(engine) {
47
+ await engine.pluginManager.register(async (e) => {
48
+ const loadInteractivityForTriangles = async (e) => {
49
+ await pluginInteractivity.loadInteractivityPlugin(e);
50
+ await interactionParticlesLinks.loadParticlesLinksInteraction(e);
51
+ };
52
+ await Promise.all([
53
+ basic.loadBasic(e),
54
+ loadInteractivityForTriangles(e),
55
+ ]);
56
+ e.pluginManager.addPreset(presetName, options);
57
+ });
58
+ }
38
59
 
39
- /***/ },
60
+ const globalObject = globalThis;
61
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
62
+ globalObject.loadTrianglesPreset = loadTrianglesPreset;
40
63
 
41
- /***/ "@tsparticles/interaction-particles-links"
42
- /*!************************************************************************************************************************************************************************************************!*\
43
- !*** external {"commonjs":"@tsparticles/interaction-particles-links","commonjs2":"@tsparticles/interaction-particles-links","amd":"@tsparticles/interaction-particles-links","root":"window"} ***!
44
- \************************************************************************************************************************************************************************************************/
45
- (module) {
64
+ exports.loadTrianglesPreset = loadTrianglesPreset;
46
65
 
47
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_interaction_particles_links__;
48
-
49
- /***/ },
50
-
51
- /***/ "@tsparticles/plugin-interactivity"
52
- /*!***************************************************************************************************************************************************************************!*\
53
- !*** external {"commonjs":"@tsparticles/plugin-interactivity","commonjs2":"@tsparticles/plugin-interactivity","amd":"@tsparticles/plugin-interactivity","root":"window"} ***!
54
- \***************************************************************************************************************************************************************************/
55
- (module) {
56
-
57
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_interactivity__;
58
-
59
- /***/ },
60
-
61
- /***/ "./dist/browser/index.js"
62
- /*!*******************************!*\
63
- !*** ./dist/browser/index.js ***!
64
- \*******************************/
65
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
66
-
67
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadTrianglesPreset: () => (/* binding */ loadTrianglesPreset)\n/* harmony export */ });\nconst presetName = \"triangles\";\nasync function loadTrianglesPreset(engine) {\n await engine.pluginManager.register(async (e)=>{\n const [{ loadBasic }, { loadParticlesLinksInteraction }, { loadInteractivityPlugin }, { options }] = await Promise.all([\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/interaction-particles-links */ \"@tsparticles/interaction-particles-links\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-interactivity */ \"@tsparticles/plugin-interactivity\", 19)),\n __webpack_require__.e(/*! import() */ \"dist_browser_options_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./options.js */ \"./dist/browser/options.js\"))\n ]), loadInteractivityForTriangles = async (e)=>{\n await loadInteractivityPlugin(e);\n await loadParticlesLinksInteraction(e);\n };\n await Promise.all([\n loadBasic(e),\n loadInteractivityForTriangles(e)\n ]);\n e.pluginManager.addPreset(presetName, options);\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-triangles/./dist/browser/index.js?\n}");
68
-
69
- /***/ }
70
-
71
- /******/ });
72
- /************************************************************************/
73
- /******/ // The module cache
74
- /******/ var __webpack_module_cache__ = {};
75
- /******/
76
- /******/ // The require function
77
- /******/ function __webpack_require__(moduleId) {
78
- /******/ // Check if module is in cache
79
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
80
- /******/ if (cachedModule !== undefined) {
81
- /******/ return cachedModule.exports;
82
- /******/ }
83
- /******/ // Create a new module (and put it into the cache)
84
- /******/ var module = __webpack_module_cache__[moduleId] = {
85
- /******/ // no module.id needed
86
- /******/ // no module.loaded needed
87
- /******/ exports: {}
88
- /******/ };
89
- /******/
90
- /******/ // Execute the module function
91
- /******/ if (!(moduleId in __webpack_modules__)) {
92
- /******/ delete __webpack_module_cache__[moduleId];
93
- /******/ var e = new Error("Cannot find module '" + moduleId + "'");
94
- /******/ e.code = 'MODULE_NOT_FOUND';
95
- /******/ throw e;
96
- /******/ }
97
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
98
- /******/
99
- /******/ // Return the exports of the module
100
- /******/ return module.exports;
101
- /******/ }
102
- /******/
103
- /******/ // expose the modules object (__webpack_modules__)
104
- /******/ __webpack_require__.m = __webpack_modules__;
105
- /******/
106
- /************************************************************************/
107
- /******/ /* webpack/runtime/create fake namespace object */
108
- /******/ (() => {
109
- /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
110
- /******/ var leafPrototypes;
111
- /******/ // create a fake namespace object
112
- /******/ // mode & 1: value is a module id, require it
113
- /******/ // mode & 2: merge all properties of value into the ns
114
- /******/ // mode & 4: return value when already ns object
115
- /******/ // mode & 16: return value when it's Promise-like
116
- /******/ // mode & 8|1: behave like require
117
- /******/ __webpack_require__.t = function(value, mode) {
118
- /******/ if(mode & 1) value = this(value);
119
- /******/ if(mode & 8) return value;
120
- /******/ if(typeof value === 'object' && value) {
121
- /******/ if((mode & 4) && value.__esModule) return value;
122
- /******/ if((mode & 16) && typeof value.then === 'function') return value;
123
- /******/ }
124
- /******/ var ns = Object.create(null);
125
- /******/ __webpack_require__.r(ns);
126
- /******/ var def = {};
127
- /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
128
- /******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
129
- /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
130
- /******/ }
131
- /******/ def['default'] = () => (value);
132
- /******/ __webpack_require__.d(ns, def);
133
- /******/ return ns;
134
- /******/ };
135
- /******/ })();
136
- /******/
137
- /******/ /* webpack/runtime/define property getters */
138
- /******/ (() => {
139
- /******/ // define getter functions for harmony exports
140
- /******/ __webpack_require__.d = (exports, definition) => {
141
- /******/ for(var key in definition) {
142
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
143
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
144
- /******/ }
145
- /******/ }
146
- /******/ };
147
- /******/ })();
148
- /******/
149
- /******/ /* webpack/runtime/ensure chunk */
150
- /******/ (() => {
151
- /******/ __webpack_require__.f = {};
152
- /******/ // This file contains only the entry chunk.
153
- /******/ // The chunk loading function for additional chunks
154
- /******/ __webpack_require__.e = (chunkId) => {
155
- /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
156
- /******/ __webpack_require__.f[key](chunkId, promises);
157
- /******/ return promises;
158
- /******/ }, []));
159
- /******/ };
160
- /******/ })();
161
- /******/
162
- /******/ /* webpack/runtime/get javascript chunk filename */
163
- /******/ (() => {
164
- /******/ // This function allow to reference async chunks
165
- /******/ __webpack_require__.u = (chunkId) => {
166
- /******/ // return url for filenames based on template
167
- /******/ return "" + chunkId + ".js";
168
- /******/ };
169
- /******/ })();
170
- /******/
171
- /******/ /* webpack/runtime/global */
172
- /******/ (() => {
173
- /******/ __webpack_require__.g = (function() {
174
- /******/ if (typeof globalThis === 'object') return globalThis;
175
- /******/ try {
176
- /******/ return this || new Function('return this')();
177
- /******/ } catch (e) {
178
- /******/ if (typeof window === 'object') return window;
179
- /******/ }
180
- /******/ })();
181
- /******/ })();
182
- /******/
183
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
184
- /******/ (() => {
185
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
186
- /******/ })();
187
- /******/
188
- /******/ /* webpack/runtime/load script */
189
- /******/ (() => {
190
- /******/ var inProgress = {};
191
- /******/ var dataWebpackPrefix = "@tsparticles/preset-triangles:";
192
- /******/ // loadScript function to load a script via script tag
193
- /******/ __webpack_require__.l = (url, done, key, chunkId) => {
194
- /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
195
- /******/ var script, needAttach;
196
- /******/ if(key !== undefined) {
197
- /******/ var scripts = document.getElementsByTagName("script");
198
- /******/ for(var i = 0; i < scripts.length; i++) {
199
- /******/ var s = scripts[i];
200
- /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
201
- /******/ }
202
- /******/ }
203
- /******/ if(!script) {
204
- /******/ needAttach = true;
205
- /******/ script = document.createElement('script');
206
- /******/
207
- /******/ script.charset = 'utf-8';
208
- /******/ if (__webpack_require__.nc) {
209
- /******/ script.setAttribute("nonce", __webpack_require__.nc);
210
- /******/ }
211
- /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
212
- /******/
213
- /******/ script.src = url;
214
- /******/ }
215
- /******/ inProgress[url] = [done];
216
- /******/ var onScriptComplete = (prev, event) => {
217
- /******/ // avoid mem leaks in IE.
218
- /******/ script.onerror = script.onload = null;
219
- /******/ clearTimeout(timeout);
220
- /******/ var doneFns = inProgress[url];
221
- /******/ delete inProgress[url];
222
- /******/ script.parentNode && script.parentNode.removeChild(script);
223
- /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
224
- /******/ if(prev) return prev(event);
225
- /******/ }
226
- /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
227
- /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
228
- /******/ script.onload = onScriptComplete.bind(null, script.onload);
229
- /******/ needAttach && document.head.appendChild(script);
230
- /******/ };
231
- /******/ })();
232
- /******/
233
- /******/ /* webpack/runtime/make namespace object */
234
- /******/ (() => {
235
- /******/ // define __esModule on exports
236
- /******/ __webpack_require__.r = (exports) => {
237
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
238
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
239
- /******/ }
240
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
241
- /******/ };
242
- /******/ })();
243
- /******/
244
- /******/ /* webpack/runtime/publicPath */
245
- /******/ (() => {
246
- /******/ var scriptUrl;
247
- /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
248
- /******/ var document = __webpack_require__.g.document;
249
- /******/ if (!scriptUrl && document) {
250
- /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
251
- /******/ scriptUrl = document.currentScript.src;
252
- /******/ if (!scriptUrl) {
253
- /******/ var scripts = document.getElementsByTagName("script");
254
- /******/ if(scripts.length) {
255
- /******/ var i = scripts.length - 1;
256
- /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
257
- /******/ }
258
- /******/ }
259
- /******/ }
260
- /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
261
- /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
262
- /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
263
- /******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
264
- /******/ __webpack_require__.p = scriptUrl;
265
- /******/ })();
266
- /******/
267
- /******/ /* webpack/runtime/jsonp chunk loading */
268
- /******/ (() => {
269
- /******/ // no baseURI
270
- /******/
271
- /******/ // object to store loaded and loading chunks
272
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
273
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
274
- /******/ var installedChunks = {
275
- /******/ "tsparticles.preset.triangles": 0
276
- /******/ };
277
- /******/
278
- /******/ __webpack_require__.f.j = (chunkId, promises) => {
279
- /******/ // JSONP chunk loading for javascript
280
- /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
281
- /******/ if(installedChunkData !== 0) { // 0 means "already installed".
282
- /******/
283
- /******/ // a Promise means "currently loading".
284
- /******/ if(installedChunkData) {
285
- /******/ promises.push(installedChunkData[2]);
286
- /******/ } else {
287
- /******/ if(true) { // all chunks have JS
288
- /******/ // setup Promise in chunk cache
289
- /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
290
- /******/ promises.push(installedChunkData[2] = promise);
291
- /******/
292
- /******/ // start chunk loading
293
- /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
294
- /******/ // create error before stack unwound to get useful stacktrace later
295
- /******/ var error = new Error();
296
- /******/ var loadingEnded = (event) => {
297
- /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
298
- /******/ installedChunkData = installedChunks[chunkId];
299
- /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
300
- /******/ if(installedChunkData) {
301
- /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
302
- /******/ var realSrc = event && event.target && event.target.src;
303
- /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
304
- /******/ error.name = 'ChunkLoadError';
305
- /******/ error.type = errorType;
306
- /******/ error.request = realSrc;
307
- /******/ installedChunkData[1](error);
308
- /******/ }
309
- /******/ }
310
- /******/ };
311
- /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
312
- /******/ }
313
- /******/ }
314
- /******/ }
315
- /******/ };
316
- /******/
317
- /******/ // no prefetching
318
- /******/
319
- /******/ // no preloaded
320
- /******/
321
- /******/ // no HMR
322
- /******/
323
- /******/ // no HMR manifest
324
- /******/
325
- /******/ // no on chunks loaded
326
- /******/
327
- /******/ // install a JSONP callback for chunk loading
328
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
329
- /******/ var [chunkIds, moreModules, runtime] = data;
330
- /******/ // add "moreModules" to the modules object,
331
- /******/ // then flag all "chunkIds" as loaded and fire callback
332
- /******/ var moduleId, chunkId, i = 0;
333
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
334
- /******/ for(moduleId in moreModules) {
335
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
336
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
337
- /******/ }
338
- /******/ }
339
- /******/ if(runtime) var result = runtime(__webpack_require__);
340
- /******/ }
341
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
342
- /******/ for(;i < chunkIds.length; i++) {
343
- /******/ chunkId = chunkIds[i];
344
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
345
- /******/ installedChunks[chunkId][0]();
346
- /******/ }
347
- /******/ installedChunks[chunkId] = 0;
348
- /******/ }
349
- /******/
350
- /******/ }
351
- /******/
352
- /******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_preset_triangles"] = this["webpackChunk_tsparticles_preset_triangles"] || [];
353
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
354
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
355
- /******/ })();
356
- /******/
357
- /************************************************************************/
358
- /******/
359
- /******/ // startup
360
- /******/ // Load entry module and return exports
361
- /******/ // This entry module can't be inlined because the eval devtool is used.
362
- /******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
363
- /******/
364
- /******/ return __webpack_exports__;
365
- /******/ })()
366
- ;
367
- });
66
+ }));
67
+ Object.assign(globalThis.window || globalThis, { loadTrianglesPreset: (globalThis.__tsParticlesInternals.presets.triangles || {}).loadTrianglesPreset });
68
+ delete (globalThis.window || globalThis).tsparticlesInternalExports;
@@ -1,2 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/plugin-interactivity"),require("@tsparticles/interaction-particles-links"),require("@tsparticles/basic"));else if("function"==typeof define&&define.amd)define(["@tsparticles/plugin-interactivity","@tsparticles/interaction-particles-links","@tsparticles/basic"],t);else{var r="object"==typeof exports?t(require("@tsparticles/plugin-interactivity"),require("@tsparticles/interaction-particles-links"),require("@tsparticles/basic")):t(e.window,e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,(e,t,r)=>(()=>{"use strict";var i,o,n,a={145(e){e.exports=r},613(e){e.exports=t},702(t){t.exports=e}},s={};function l(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return a[e](r,r.exports,l),r.exports}l.m=a,p=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);l.r(r);var i={};c=c||[null,p({}),p([]),p(p)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~c.indexOf(o);o=p(o))Object.getOwnPropertyNames(o).forEach(t=>i[t]=()=>e[t]);return i.default=()=>e,l.d(r,i),r},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((t,r)=>(l.f[r](e,t),t),[])),l.u=e=>""+e+".min.js",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u={},l.l=(e,t,r,i)=>{if(u[e])return void u[e].push(t);if(void 0!==r)for(var o,n,a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var c=a[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="@tsparticles/preset-triangles:"+r){o=c;break}}o||(n=!0,(o=document.createElement("script")).charset="utf-8",l.nc&&o.setAttribute("nonce",l.nc),o.setAttribute("data-webpack","@tsparticles/preset-triangles:"+r),o.src=e),u[e]=[t];var p=(t,r)=>{o.onerror=o.onload=null,clearTimeout(d);var i=u[e];if(delete u[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach(e=>e(r)),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),n&&document.head.appendChild(o)},l.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.g.importScripts&&(d=l.g.location+"");var c,p,u,d,f=l.g.document;if(!d&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(d=f.currentScript.src),!d)){var b=f.getElementsByTagName("script");if(b.length)for(var g=b.length-1;g>-1&&(!d||!/^http(s?):/.test(d));)d=b[g--].src}if(!d)throw Error("Automatic publicPath is not supported in this browser");l.p=d=d.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i={859:0},l.f.j=(e,t)=>{var r=l.o(i,e)?i[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var o=new Promise((t,o)=>r=i[e]=[t,o]);t.push(r[2]=o);var n=l.p+l.u(e),a=Error();l.l(n,t=>{if(l.o(i,e)&&(0!==(r=i[e])&&(i[e]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;a.message="Loading chunk "+e+` failed.
2
- (`+o+": "+n+")",a.name="ChunkLoadError",a.type=o,a.request=n,r[1](a)}},"chunk-"+e,e)}},o=(e,t)=>{var r,o,[n,a,s]=t,c=0;if(n.some(e=>0!==i[e])){for(r in a)l.o(a,r)&&(l.m[r]=a[r]);s&&s(l)}for(e&&e(t);c<n.length;c++)o=n[c],l.o(i,o)&&i[o]&&i[o][0](),i[o]=0},(n=this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n));var h={};async function m(e){await e.pluginManager.register(async e=>{let[{loadBasic:t},{loadParticlesLinksInteraction:r},{loadInteractivityPlugin:i},{options:o}]=await Promise.all([Promise.resolve().then(l.t.bind(l,145,19)),Promise.resolve().then(l.t.bind(l,613,19)),Promise.resolve().then(l.t.bind(l,702,19)),l.e(361).then(l.bind(l,361))]),n=async e=>{await i(e),await r(e)};await Promise.all([t(e),n(e)]),e.pluginManager.addPreset("triangles",o)})}return l.r(h),l.d(h,{loadTrianglesPreset:()=>m}),h})());
1
+ !function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.bundles=s.__tsParticlesInternals.bundles||{},s.__tsParticlesInternals.effects=s.__tsParticlesInternals.effects||{},s.__tsParticlesInternals.engine=s.__tsParticlesInternals.engine||{},s.__tsParticlesInternals.interactions=s.__tsParticlesInternals.interactions||{},s.__tsParticlesInternals.palettes=s.__tsParticlesInternals.palettes||{},s.__tsParticlesInternals.paths=s.__tsParticlesInternals.paths||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.emittersShapes=s.__tsParticlesInternals.plugins.emittersShapes||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.updaters=s.__tsParticlesInternals.updaters||{},s.__tsParticlesInternals.utils=s.__tsParticlesInternals.utils||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas.utils=s.__tsParticlesInternals.canvas.utils||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path.utils=s.__tsParticlesInternals.path.utils||{};var t="undefined"!=typeof Proxy?function(s){return new Proxy(s,{get:function(s,t){return t in s||(s[t]={}),s[t]}})}:function(s){return s};s.__tsParticlesInternals.bundles=t(s.__tsParticlesInternals.bundles),s.__tsParticlesInternals.effects=t(s.__tsParticlesInternals.effects),s.__tsParticlesInternals.interactions=t(s.__tsParticlesInternals.interactions),s.__tsParticlesInternals.palettes=t(s.__tsParticlesInternals.palettes),s.__tsParticlesInternals.paths=t(s.__tsParticlesInternals.paths),s.__tsParticlesInternals.plugins=t(s.__tsParticlesInternals.plugins),s.__tsParticlesInternals.plugins.emittersShapes=t(s.__tsParticlesInternals.plugins.emittersShapes),s.__tsParticlesInternals.presets=t(s.__tsParticlesInternals.presets),s.__tsParticlesInternals.shapes=t(s.__tsParticlesInternals.shapes),s.__tsParticlesInternals.updaters=t(s.__tsParticlesInternals.updaters),s.__tsParticlesInternals.utils=t(s.__tsParticlesInternals.utils),s.__tsParticlesInternals.canvas=t(s.__tsParticlesInternals.canvas),s.__tsParticlesInternals.path=t(s.__tsParticlesInternals.path),s.tsparticlesInternalExports=s.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tsparticles/basic"),require("@tsparticles/plugin-interactivity"),require("@tsparticles/interaction-particles-links")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/basic","@tsparticles/plugin-interactivity","@tsparticles/interaction-particles-links"],t):t(((s="undefined"!=typeof globalThis?globalThis:s||self).__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.presets.triangles=s.__tsParticlesInternals.presets.triangles||{}),s.__tsParticlesInternals.bundles.basic,s.__tsParticlesInternals.plugins.interactivity,s.__tsParticlesInternals.interactions.particlesLinks)}(this,function(s,t,e,a){"use strict";const n={background:{color:"#000000"},particles:{number:{value:100},links:{distance:125,enable:!0,triangles:{enable:!0,opacity:.1}},move:{enable:!0,speed:5},paint:{fill:{color:{value:"#ffffff"}}},size:{value:1},shape:{type:"circle"}}};async function l(s){await s.pluginManager.register(async s=>{await Promise.all([t.loadBasic(s),(async s=>{await e.loadInteractivityPlugin(s),await a.loadParticlesLinksInteraction(s)})(s)]),s.pluginManager.addPreset("triangles",n)})}const r=globalThis;r.__tsParticlesInternals=r.__tsParticlesInternals??{},r.loadTrianglesPreset=l,s.loadTrianglesPreset=l}),Object.assign(globalThis.window||globalThis,{loadTrianglesPreset:(globalThis.__tsParticlesInternals.presets.triangles||{}).loadTrianglesPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
@@ -0,0 +1 @@
1
+ export * from "./index.js";
@@ -0,0 +1,2 @@
1
+ import type { Engine } from "@tsparticles/engine/lazy";
2
+ export declare function loadTrianglesPreset(engine: Engine): Promise<void>;
package/153.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[153],{7530(e,t,n){var r,a;n.d(t,{Q:()=>r}),(a=r||(r={})).circle="circle",a.rectangle="rectangle"},6081(e,t,n){var r,a;n.d(t,{h:()=>r}),(a=r||(r={})).canvas="canvas",a.parent="parent",a.window="window"},5814(e,t,n){var r,a;n.d(t,{e:()=>r}),(a=r||(r={})).external="external",a.particles="particles"},4650(e,t,n){n.d(t,{Bp:()=>l,DG:()=>d,G3:()=>u,Rb:()=>s,Z0:()=>o,ms:()=>a,s7:()=>c,vo:()=>i,xO:()=>r});let r="click",a="pointerdown",i="pointerup",o="pointerleave",s="pointermove",c="touchstart",l="touchend",d="touchmove",u="touchcancel"},7777(e,t,n){n.d(t,{G:()=>i});var r=n(3227),a=n(7530);class i{enable;mode;selectors;type;constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=a.Q.circle}load(e){(0,r.kZJ)(e)||(void 0!==e.selectors&&(this.selectors=e.selectors),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.type&&(this.type=e.type))}}},9985(e,t,n){n.d(t,{d:()=>a});var r=n(3227);class a{_container;_pluginManager;constructor(e,t){this._pluginManager=e,this._container=t}load(e){if((0,r.kZJ)(e)||!this._container)return;let t=this._pluginManager.interactors?.get(this._container);if(t)for(let n of t)n.loadModeOptions&&n.loadModeOptions(this,e)}}},3153(e,t,n){n.r(t),n.d(t,{DivEvent:()=>h.G,DivType:()=>c.Q,ExternalInteractorBase:()=>i,InteractivityDetect:()=>l.h,InteractorType:()=>a.e,Modes:()=>g.d,ParticlesInteractorBase:()=>o,clickEvent:()=>s.xO,divMode:()=>p,divModeExecute:()=>u,ensureInteractivityPluginLoaded:()=>M,isDivModeEnabled:()=>d,loadInteractivityPlugin:()=>w,mouseDownEvent:()=>s.ms,mouseLeaveEvent:()=>s.Z0,mouseMoveEvent:()=>s.Rb,mouseUpEvent:()=>s.vo,singleDivModeExecute:()=>v,touchCancelEvent:()=>s.G3,touchEndEvent:()=>s.Bp,touchMoveEvent:()=>s.DG,touchStartEvent:()=>s.s7});var r=n(3227),a=n(5814);class i{type=a.e.external;container;constructor(e){this.container=e}}class o{type=a.e.particles;container;constructor(e){this.container=e}}var s=n(4650),c=n(7530),l=n(6081);function d(e,t){return!!(0,r.w3Z)(t,t=>t.enable&&(0,r.hnD)(e,t.mode))}function u(e,t,n){(0,r.wJ2)(t,t=>{let a=t.mode;t.enable&&(0,r.hnD)(e,a)&&v(t,n)})}function v(e,t){let n=e.selectors;(0,r.wJ2)(n,n=>{t(n,e)})}function p(e,t){if(t&&e)return(0,r.w3Z)(e,e=>{var n;let a;return n=e.selectors,a=(0,r.wJ2)(n,e=>t.matches(e)),(0,r.cyL)(a)?a.some(e=>e):a})}var h=n(7777),g=n(9985);async function w(e){e.checkVersion("4.0.0-beta.11"),await e.pluginManager.register(async e=>{let t=e.pluginManager,{InteractivityPlugin:a}=await n.e(260).then(n.bind(n,7260));t.addPlugin(new a(t)),t.initializers.interactors??=new Map,t.interactors??=new Map,t.addInteractor=(e,n)=>{t.initializers.interactors??=new Map,t.initializers.interactors.set(e,n)},t.getInteractors=async(e,n=!1)=>(t.interactors??=new Map,t.initializers.interactors??=new Map,(0,r.HQK)(e,t.interactors,t.initializers.interactors,n)),t.setOnClickHandler=t=>{let{items:n}=e;if(!n.length)throw Error("Click handlers can only be set after calling tsParticles.load()");n.forEach(e=>{e.addClickHandler?.(t)})}})}function M(e){if(!e.pluginManager.addInteractor)throw Error("tsParticles Interactivity Plugin is not loaded")}}}]);
package/170.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[170],{6170(n,e,s){s.r(e),s.d(e,{LinksPlugin:()=>t});class t{id="links";_pluginManager;constructor(n){this._pluginManager=n}async getPlugin(n){let{LinkInstance:e}=await s.e(215).then(s.bind(s,5215));return new e(this._pluginManager,n)}loadOptions(){}needsPlugin(){return!0}}}}]);
package/172.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[172],{3172(e,t,n){n.d(t,{MovePlugin:()=>s});class s{id="move";_pluginManager;constructor(e){this._pluginManager=e}async getPlugin(e){let{MovePluginInstance:t}=await n.e(714).then(n.bind(n,6714));return new t(this._pluginManager,e)}loadOptions(){}needsPlugin(){return!0}}}}]);
package/188.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[188],{188(e,a,t){t.d(a,{CircleDrawer:()=>n});var i=t(3227);class n{draw(e){!function(e){let{context:a,particle:t,radius:n}=e;t.circleRange??={min:0,max:i.R1e};let r=t.circleRange;a.arc(i.boI.x,i.boI.y,n,r.min,r.max,!1)}(e)}getSidesCount(){return 12}particleInit(e,a){let t=a.shapeData,n=t?.angle??{max:360,min:0};a.circleRange=(0,i.Gvm)(n)?{min:(0,i.puj)(n.min),max:(0,i.puj)(n.max)}:{min:0,max:(0,i.puj)(n)}}}}}]);
package/215.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[215],{5215(e,i,t){t.d(i,{LinkInstance:()=>l});var n=t(3227);function s(e,i){let t=[...e.map(e=>e.id)].sort((e,i)=>e-i).join("_"),s=i.get(t);return void 0===s&&(s=(0,n.G0i)(),i.set(t,s)),s}class l{_colorCache=new Map;_container;_freqs;_pluginManager;constructor(e,i){this._pluginManager=e,this._container=i,this._freqs={links:new Map,triangles:new Map}}drawParticle(e,i){let{links:t,options:s}=i;if(!t?.length||!s.links)return;let l=s.links,a=i.retina.linksWidth??0,r=i.getPosition(),o=i.options.twinkle?.links,c=l.triangles.enable,h=c?new Set(t.map(e=>e.destination.id)):null,g=e.globalAlpha,p="",d=-1,_=-1,k=!1,u=()=>{k&&(e.stroke(),k=!1)};for(let g of t){if(l.frequency<1&&this._getLinkFrequency(i,g.destination)>l.frequency)continue;let t=g.destination.getPosition();if(c&&!g.isWarped&&h&&(u(),this._drawTriangles(s,i,g,h,r,t,e)),g.opacity<=0||a<=0||!l.enable)continue;let y=g.opacity,f=g.color,b=o?.enable&&(0,n.G0i)()<o.frequency?(0,n.BN0)(this._pluginManager,o.color):void 0;if(o&&b&&(f=b,y=(0,n.VGA)(o.opacity)),!f){let e=void 0!==l.id?this._container.particles.linksColors.get(l.id):this._container.particles.linksColor;f=(0,n._hh)(i,g.destination,e)}if(!f)continue;let x=this._getCachedStyle(f);if((x!==p||a!==d||y!==_)&&(u(),e.strokeStyle=x,e.lineWidth=a,e.globalAlpha=y,p=x,d=a,_=y,e.beginPath(),k=!0),g.isWarped){let i=this._container.canvas.size,s=t.x-r.x,l=t.y-r.y,a=n.boI.x,o=n.boI.y;Math.abs(s)>i.width*n.MXx&&(a=s>0?-i.width:i.width),Math.abs(l)>i.height*n.MXx&&(o=l>0?-i.height:i.height),e.moveTo(r.x,r.y),e.lineTo(t.x+a,t.y+o),e.moveTo(r.x-a,r.y-o),e.lineTo(t.x,t.y)}else e.moveTo(r.x,r.y),e.lineTo(t.x,t.y)}u(),e.globalAlpha=g}init(){return this._freqs.links.clear(),this._freqs.triangles.clear(),this._colorCache.clear(),Promise.resolve()}particleCreated(e){if(e.links=[],!e.options.links)return;e.linksDistance=e.options.links.distance,e.linksWidth=e.options.links.width;let i=this._container.retina.pixelRatio;e.retina.linksDistance=e.linksDistance*i,e.retina.linksWidth=e.linksWidth*i}particleDestroyed(e){e.links=[]}_drawTriangles(e,i,t,s,l,a,r){let o=t.destination,c=e.links?.triangles;if(!c?.enable||!o.options.links?.triangles.enable)return;let h=o.links;if(h?.length)for(let g of h){if(g.isWarped||this._getLinkFrequency(o,g.destination)>o.options.links.frequency||!s.has(g.destination.id))continue;let h=g.destination;if(this._getTriangleFrequency(i,o,h)>(e.links?.triangles.frequency??0))continue;let p=c.opacity??(t.opacity+g.opacity)*n.MXx,d=(0,n.BN0)(this._pluginManager,c.color)??t.color;if(!d||p<=0)continue;let _=h.getPosition();r.save(),r.fillStyle=this._getCachedStyle(d),r.globalAlpha=p,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(a.x,a.y),r.lineTo(_.x,_.y),r.closePath(),r.fill(),r.restore()}}_getCachedStyle(e){let i=`${e.r},${e.g},${e.b}`,t=this._colorCache.get(i);return t||(t=(0,n.xxz)(e,this._container.hdr),this._colorCache.set(i,t)),t}_getLinkFrequency(e,i){return s([e,i],this._freqs.links)}_getTriangleFrequency(e,i,t){return s([e,i,t],this._freqs.triangles)}}}}]);
package/220.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[220],{2220(t,e,i){i.d(e,{InteractivityPluginInstance:()=>h});var n=i(3227),s=i(4650),a=i(6081);class r{_canPush=!0;_clickPositionPlugins;_container;_handlers;_interactionManager;_touches;constructor(t,e){this._container=t,this._clickPositionPlugins=[],this._interactionManager=e,this._touches=new Map,this._handlers={mouseDown:()=>{this._mouseDown()},mouseLeave:()=>{this._mouseTouchFinish()},mouseMove:t=>{this._mouseTouchMove(t)},mouseUp:t=>{this._mouseTouchClick(t)},touchStart:t=>{this._touchStart(t)},touchMove:t=>{this._mouseTouchMove(t)},touchEnd:t=>{this._touchEnd(t)},touchCancel:t=>{this._touchEnd(t)},touchEndClick:t=>{this._touchEndClick(t)},visibilityChange:()=>{this._handleVisibilityChange()}}}addListeners(){this._manageListeners(!0)}init(){for(let t of(this._clickPositionPlugins.length=0,this._container.plugins.filter(t=>!!t.clickPositionValid)))this._clickPositionPlugins.push(t)}removeListeners(){this._manageListeners(!1)}_doMouseTouchClick=t=>{let e=this._container,i=this._interactionManager,s=e.actualOptions;if(this._canPush){let t=i.interactivityData.mouse,e=t.position;if(!e)return;t.clickPosition={...e},t.clickTime=performance.now();let a=s.interactivity?.events.onClick;if(!a?.mode)return;(0,n.wJ2)(a.mode,t=>{i.handleClickMode(t)})}"touchend"===t.type&&setTimeout(()=>{this._mouseTouchFinish()},500)};_handleVisibilityChange=()=>{this._mouseTouchFinish()};_manageInteractivityListeners=t=>{let e=this._handlers,i=this._container,a=this._interactionManager,r=i.actualOptions,o=a.interactivityData.element;if(!o)return;let c=i.canvas;c.setPointerEvents(o===c.element?"initial":"none"),(!t||r.interactivity?.events.onHover.enable||r.interactivity?.events.onClick.enable)&&((0,n.KpY)(o,s.Rb,e.mouseMove,t),(0,n.KpY)(o,s.s7,e.touchStart,t),(0,n.KpY)(o,s.DG,e.touchMove,t),t?r.interactivity?.events.onClick.enable?((0,n.KpY)(o,s.Bp,e.touchEndClick,t),(0,n.KpY)(o,s.vo,e.mouseUp,t),(0,n.KpY)(o,s.ms,e.mouseDown,t)):(0,n.KpY)(o,s.Bp,e.touchEnd,t):((0,n.KpY)(o,s.Bp,e.touchEndClick,t),(0,n.KpY)(o,s.vo,e.mouseUp,t),(0,n.KpY)(o,s.ms,e.mouseDown,t),(0,n.KpY)(o,s.Bp,e.touchEnd,t)),(0,n.KpY)(o,s.Z0,e.mouseLeave,t),(0,n.KpY)(o,s.G3,e.touchCancel,t))};_manageListeners=t=>{let e=this._handlers,i=this._container,s=this._interactionManager,r=i.actualOptions,o=r.interactivity?.detectsOn,c=i.canvas.element;o===a.h.window?s.interactivityData.element=(0,n.T5G)():o===a.h.parent&&c?s.interactivityData.element=c.parentElement??c.parentNode:s.interactivityData.element=c,this._manageInteractivityListeners(t),(0,n.KpY)(document,n.nKi,e.visibilityChange,t,!1)};_mouseDown=()=>{let{interactivityData:t}=this._interactionManager,{mouse:e}=t;e.clicking=!0,e.downPosition=e.position};_mouseTouchClick=t=>{let e=this._container,i=this._interactionManager,n=e.actualOptions,{mouse:s}=i.interactivityData;s.inside=!0;let a=!1,r=s.position;if(r&&n.interactivity?.events.onClick.enable){for(let t of this._clickPositionPlugins)if(a=t.clickPositionValid?.(r)??!1)break;a||this._doMouseTouchClick(t),s.clicking=!1}};_mouseTouchFinish=()=>{let{interactivityData:t}=this._interactionManager,{mouse:e}=t;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=s.Z0,e.inside=!1,e.clicking=!1};_mouseTouchMove=t=>{let e,i=this._container,r=this._interactionManager,o=i.actualOptions,c=r.interactivityData,l=i.canvas.element;if(!c.element)return;if(c.mouse.inside=!0,t.type.startsWith("pointer"))if(this._canPush=!0,c.element===(0,n.T5G)()){if(l){let i=l.getBoundingClientRect();e={x:t.clientX-i.left,y:t.clientY-i.top}}}else if(o.interactivity?.detectsOn===a.h.parent){let i=t.target,s=t.currentTarget;if(l){let a=i.getBoundingClientRect(),r=s.getBoundingClientRect(),o=l.getBoundingClientRect();e={x:t.offsetX+n.gdl*a.left-(r.left+o.left),y:t.offsetY+n.gdl*a.top-(r.top+o.top)}}else e={x:t.offsetX,y:t.offsetY}}else t.target===l&&(e={x:t.offsetX,y:t.offsetY});else if(this._canPush="touchmove"!==t.type,l){let i=t.touches[t.touches.length-n.K3],s=l.getBoundingClientRect();if(!i)return;e={x:i.clientX-s.left,y:i.clientY-s.top}}let h=i.retina.pixelRatio;e&&(e.x*=h,e.y*=h),c.mouse.position=e,c.status=s.Rb};_touchEnd=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchFinish()};_touchEndClick=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchClick(t)};_touchStart=t=>{for(let e of Array.from(t.changedTouches))this._touches.set(e.identifier,performance.now());this._mouseTouchMove(t)}}var o=i(5814);class c{container;interactivityData;_clickHandlers;_eventListeners;_externalInteractors;_interactors;_intersectionObserver;_particleInteractors;_pluginManager;constructor(t,e){this.container=e,this._pluginManager=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[],this._clickHandlers=new Map,this._eventListeners=new r(e,this),this.interactivityData={mouse:{clicking:!1,inside:!1}},this._intersectionObserver=(0,n.BRq)(t=>{this._intersectionManager(t)})}addClickHandler(t){let{container:e,interactivityData:i}=this;if(e.destroyed)return;let n=i.element;if(!n)return;let a=(i,n,s)=>{if(e.destroyed)return;let a=e.retina.pixelRatio,r={x:n.x*a,y:n.y*a};t(i,e.particles.grid.queryCircle(r,s*a))},r=!1,o=!1;for(let[t,i]of(this._clickHandlers.set(s.xO,t=>{if(e.destroyed)return;let i={x:t.offsetX,y:t.offsetY};a(t,i,1)}),this._clickHandlers.set(s.s7,()=>{e.destroyed||(r=!0,o=!1)}),this._clickHandlers.set(s.DG,()=>{e.destroyed||(o=!0)}),this._clickHandlers.set(s.Bp,t=>{if(!e.destroyed){if(r&&!o){let i=t.touches[t.touches.length-1];if(!i)return;let n=e.canvas.element,s=n?n.getBoundingClientRect():void 0;a(t,{x:i.clientX-(s?s.left:0),y:i.clientY-(s?s.top:0)},Math.max(i.radiusX,i.radiusY))}r=!1,o=!1}}),this._clickHandlers.set(s.G3,()=>{e.destroyed||(r=!1,o=!1)}),this._clickHandlers))n.addEventListener(t,i)}addListeners(){this._eventListeners.addListeners()}clearClickHandlers(){let{container:t,interactivityData:e}=this;if(!t.destroyed){for(let[t,i]of this._clickHandlers)e.element?.removeEventListener(t,i);this._clickHandlers.clear()}}externalInteract(t){for(let e of this._externalInteractors){let{interactivityData:i}=this;e.isEnabled(i)&&e.interact(i,t)}}handleClickMode(t){if(this.container.destroyed)return;let{interactivityData:e}=this;for(let i of this._externalInteractors)i.handleClickMode?.(t,e)}init(){for(let t of(this._eventListeners.init(),this._interactors)){switch(t.type){case o.e.external:this._externalInteractors.push(t);break;case o.e.particles:this._particleInteractors.push(t)}t.init()}}async initInteractors(){let t=await this._pluginManager.getInteractors?.(this.container,!0);t&&(this._interactors=t,this._externalInteractors=[],this._particleInteractors=[])}particlesInteract(t,e){let{interactivityData:i}=this;for(let i of this._externalInteractors)i.clear(t,e);for(let n of this._particleInteractors)n.isEnabled(t,i)&&n.interact(t,i,e)}removeListeners(){this._eventListeners.removeListeners()}reset(t){let{interactivityData:e}=this;for(let i of this._externalInteractors)i.isEnabled(e)&&i.reset(e,t);for(let i of this._particleInteractors)i.isEnabled(t,e)&&i.reset(e,t)}startObserving(){let{interactivityData:t}=this;t.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(t.element)}stopObserving(){let{interactivityData:t}=this;t.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(t.element)}updateMaxDistance(){let t=0;for(let e of this._interactors)e.maxDistance>t&&(t=e.maxDistance);let e=this.container;e.particles.grid.setCellSize(t*e.retina.pixelRatio)}_intersectionManager=t=>{let{container:e}=this;if(!e.destroyed&&e.actualOptions.pauseOnOutsideViewport)for(let i of t)i.target===this.interactivityData.element&&(i.isIntersecting?e.play():e.pause())}}var l=i(6373);class h{interactionManager;_container;_pluginManager;constructor(t,e){this._container=e,this._pluginManager=t,this.interactionManager=new c(t,e),this._container.addClickHandler=t=>{this.interactionManager.addClickHandler(t)}}addClickHandler(t){this.interactionManager.addClickHandler(t)}clearClickHandlers(){this.interactionManager.clearClickHandlers()}destroy(){this.clearClickHandlers(),this._pluginManager.interactors?.delete(this._container)}particleCreated(t){let e=new l.k(this._pluginManager,this._container);e.load(this._container.actualOptions.interactivity),e.load(t.options.interactivity),t.interactivity=e}particleReset(t){this.interactionManager.reset(t)}postParticleUpdate(t,e){this.interactionManager.particlesInteract(t,e)}postUpdate(t){this.interactionManager.externalInteract(t),this.interactionManager.updateMaxDistance()}async preInit(){await this.interactionManager.initInteractors(),this.interactionManager.init()}async redrawInit(){await this.interactionManager.initInteractors(),this.interactionManager.init()}start(){return this.interactionManager.addListeners(),this.interactionManager.startObserving(),Promise.resolve()}stop(){this.interactionManager.removeListeners(),this.interactionManager.stopObserving()}}}}]);
package/260.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[260],{7260(e,t,i){i.d(t,{InteractivityPlugin:()=>o});var n=i(3227),s=i(6373);class o{id="interactivity";_pluginManager;constructor(e){this._pluginManager=e}async getPlugin(e){let{InteractivityPluginInstance:t}=await i.e(220).then(i.bind(i,2220));return new t(this._pluginManager,e)}loadOptions(e,t,i){if(!this.needsPlugin())return;let n=t.interactivity;n?.load||(t.interactivity=n=new s.k(this._pluginManager,e)),n.load(i?.interactivity);let o=this._pluginManager.interactors?.get(e);if(o)for(let e of o)e.loadOptions&&e.loadOptions(t,i)}loadParticlesOptions(e,t,i){i?.interactivity&&(t.interactivity=(0,n.zwS)({},i.interactivity));let s=this._pluginManager.interactors?.get(e);if(s)for(let e of s)e.loadParticlesOptions?.(t,i)}needsPlugin(){return!0}}},6373(e,t,i){i.d(t,{k:()=>c});var n=i(3227);class s{enable;mode;constructor(){this.enable=!1,this.mode=[]}load(e){(0,n.kZJ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode))}}var o=i(7777);class a{enable;mode;constructor(){this.enable=!1,this.mode=[]}load(e){(0,n.kZJ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode))}}class l{onClick;onDiv;onHover;constructor(){this.onClick=new s,this.onDiv=new o.G,this.onHover=new a}load(e){if((0,n.kZJ)(e))return;this.onClick.load(e.onClick);let t=e.onDiv;void 0!==t&&(this.onDiv=(0,n.wJ2)(t,e=>{let t=new o.G;return t.load(e),t})),this.onHover.load(e.onHover)}}var r=i(6081),d=i(9985);class c{detectsOn;events;modes;constructor(e,t){this.detectsOn=r.h.window,this.events=new l,this.modes=new d.d(e,t)}load(e){if((0,n.kZJ)(e))return;let t=e.detectsOn;void 0!==t&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}}}]);
package/304.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[304],{8304(e,t,a){async function i(e){e.checkVersion("4.0.0-beta.11"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("size",async e=>{let{SizeUpdater:t}=await a.e(750).then(a.bind(a,4750));return new t(e)})})}a.r(t),a.d(t,{loadSizeUpdater:()=>i})}}]);
package/361.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[361],{1361(e,s,t){t.r(s),t.d(s,{options:()=>a});let a={background:{color:"#000000"},particles:{number:{value:100},links:{distance:125,enable:!0,triangles:{enable:!0,opacity:.1}},move:{enable:!0,speed:5},paint:{fill:{color:{value:"#ffffff"}}},size:{value:1},shape:{type:"circle"}}}}}]);
package/392.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[392],{9392(e,a,s){async function t(e){e.checkVersion("4.0.0-beta.11"),await e.pluginManager.register(async e=>{let{HslColorManager:a}=await s.e(857).then(s.bind(s,5857));e.pluginManager.addColorManager("hsl",new a)})}s.r(a),s.d(a,{loadHslColorPlugin:()=>t})}}]);
package/404.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[]).push([[404],{7404(e,a,t){async function n(e){e.checkVersion("4.0.0-beta.11"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("paint",async a=>{let{PaintUpdater:n}=await t.e(659).then(t.bind(t,3659));return new n(e.pluginManager,a)})})}t.r(a),t.d(a,{loadPaintUpdater:()=>n})}}]);