@tsparticles/preset-triangles 3.2.0 → 4.0.0-alpha.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/1.min.js +2 -0
- package/1.min.js.LICENSE.txt +1 -0
- package/125.min.js +2 -0
- package/125.min.js.LICENSE.txt +1 -0
- package/171.min.js +2 -0
- package/171.min.js.LICENSE.txt +1 -0
- package/213.min.js +2 -0
- package/213.min.js.LICENSE.txt +1 -0
- package/248.min.js +2 -0
- package/248.min.js.LICENSE.txt +1 -0
- package/264.min.js +2 -0
- package/264.min.js.LICENSE.txt +1 -0
- package/267.min.js +2 -0
- package/267.min.js.LICENSE.txt +1 -0
- package/283.min.js +2 -0
- package/283.min.js.LICENSE.txt +1 -0
- package/313.min.js +2 -0
- package/313.min.js.LICENSE.txt +1 -0
- package/330.min.js +2 -0
- package/330.min.js.LICENSE.txt +1 -0
- package/349.min.js +2 -0
- package/349.min.js.LICENSE.txt +1 -0
- package/40.min.js +2 -0
- package/40.min.js.LICENSE.txt +1 -0
- package/418.min.js +2 -0
- package/418.min.js.LICENSE.txt +1 -0
- package/453.min.js +2 -0
- package/453.min.js.LICENSE.txt +1 -0
- package/455.min.js +2 -0
- package/455.min.js.LICENSE.txt +1 -0
- package/459.min.js +2 -0
- package/459.min.js.LICENSE.txt +1 -0
- package/481.min.js +2 -0
- package/481.min.js.LICENSE.txt +1 -0
- package/509.min.js +2 -0
- package/509.min.js.LICENSE.txt +1 -0
- package/597.min.js +2 -0
- package/597.min.js.LICENSE.txt +1 -0
- package/633.min.js +2 -0
- package/633.min.js.LICENSE.txt +1 -0
- package/751.min.js +2 -0
- package/751.min.js.LICENSE.txt +1 -0
- package/802.min.js +2 -0
- package/802.min.js.LICENSE.txt +1 -0
- package/803.min.js +2 -0
- package/803.min.js.LICENSE.txt +1 -0
- package/819.min.js +2 -0
- package/819.min.js.LICENSE.txt +1 -0
- package/926.min.js +2 -0
- package/926.min.js.LICENSE.txt +1 -0
- package/98.min.js +2 -0
- package/98.min.js.LICENSE.txt +1 -0
- package/browser/bundle.js +2 -3
- package/browser/index.js +7 -8
- package/browser/options.js +1 -0
- package/cjs/bundle.js +2 -7
- package/cjs/index.js +7 -12
- package/cjs/options.js +2 -4
- package/dist_browser_options_js.js +30 -0
- package/esm/bundle.js +2 -3
- package/esm/index.js +7 -8
- package/esm/options.js +1 -0
- package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_2_node_modules_tsparticles_basic_browser_index_js.js +30 -0
- package/node_modules_pnpm_tsparticles_interaction-particles-links_4_0_0-alpha_2_node_modules_tspartic-100d2d.js +30 -0
- package/node_modules_pnpm_tsparticles_interaction-particles-links_4_0_0-alpha_2_node_modules_tspartic-2be21a.js +30 -0
- package/node_modules_pnpm_tsparticles_interaction-particles-links_4_0_0-alpha_2_node_modules_tspartic-b975fc.js +60 -0
- package/node_modules_pnpm_tsparticles_interaction-particles-links_4_0_0-alpha_2_node_modules_tspartic-d9c3ec.js +40 -0
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-7d79eb.js +40 -0
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-fb148a.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--91288b.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--d06b2a.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--70976c.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--e141e9.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--60c9df.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--732407.js +30 -0
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-c98489.js +40 -0
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-ce96e8.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-210bd6.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-6ff909.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--4e8c57.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--ac14ff.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticles_update-cd317f.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-53e0fe.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-aaa117.js +30 -0
- package/package.json +19 -6
- package/report.html +5 -4
- package/tsparticles.preset.triangles.bundle.js +772 -2141
- package/tsparticles.preset.triangles.bundle.min.js +1 -1
- package/tsparticles.preset.triangles.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.preset.triangles.js +242 -33
- package/tsparticles.preset.triangles.min.js +1 -1
- package/tsparticles.preset.triangles.min.js.LICENSE.txt +1 -1
- package/types/bundle.d.ts +2 -3
- package/types/index.d.ts +1 -1
- package/types/options.d.ts +1 -0
- package/umd/bundle.js +2 -2
- package/umd/index.js +43 -11
- package/umd/options.js +2 -1
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_2_node_modules_tsparticles_engine_br-9c0a0f.js +100 -0
- package/vendors-node_modules_pnpm_tsparticles_interaction-particles-links_4_0_0-alpha_2_node_modules_-9dae0c.js +50 -0
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticle-124574.js +80 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
*
|
|
7
|
+
* v4.0.0-alpha.0
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
10
|
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
@@ -16,57 +16,47 @@
|
|
|
16
16
|
*/
|
|
17
17
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
18
18
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
19
|
-
module.exports = factory(require("@tsparticles/
|
|
19
|
+
module.exports = factory(require("@tsparticles/interaction-particles-links"), require("@tsparticles/basic"));
|
|
20
20
|
else if(typeof define === 'function' && define.amd)
|
|
21
|
-
define(["@tsparticles/
|
|
21
|
+
define(["@tsparticles/interaction-particles-links", "@tsparticles/basic"], factory);
|
|
22
22
|
else {
|
|
23
|
-
var a = typeof exports === 'object' ? factory(require("@tsparticles/
|
|
23
|
+
var a = typeof exports === 'object' ? factory(require("@tsparticles/interaction-particles-links"), require("@tsparticles/basic")) : factory(root["window"], root["window"]);
|
|
24
24
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
25
25
|
}
|
|
26
|
-
})(this, (
|
|
26
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_interaction_particles_links__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__) => {
|
|
27
27
|
return /******/ (() => { // webpackBootstrap
|
|
28
28
|
/******/ "use strict";
|
|
29
29
|
/******/ var __webpack_modules__ = ({
|
|
30
30
|
|
|
31
|
-
/***/ "./dist/browser/index.js"
|
|
31
|
+
/***/ "./dist/browser/index.js"
|
|
32
32
|
/*!*******************************!*\
|
|
33
33
|
!*** ./dist/browser/index.js ***!
|
|
34
34
|
\*******************************/
|
|
35
|
-
|
|
35
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36
36
|
|
|
37
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadTrianglesPreset: () => (/* binding */ loadTrianglesPreset)\n/* harmony export */ });\n
|
|
37
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadTrianglesPreset: () => (/* binding */ loadTrianglesPreset)\n/* harmony export */ });\nfunction loadTrianglesPreset(engine) {\n engine.register(async e => {\n const {\n loadBasic\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 19)),\n {\n loadParticlesLinksInteraction\n } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/interaction-particles-links */ \"@tsparticles/interaction-particles-links\", 19)),\n {\n options,\n presetName\n } = await __webpack_require__.e(/*! import() */ \"dist_browser_options_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./options.js */ \"./dist/browser/options.js\"));\n loadBasic(e);\n loadParticlesLinksInteraction(e);\n e.addPreset(presetName, options);\n });\n}\n\n//# sourceURL=webpack://@tsparticles/preset-triangles/./dist/browser/index.js?\n}");
|
|
38
38
|
|
|
39
|
-
/***/ }
|
|
39
|
+
/***/ },
|
|
40
40
|
|
|
41
|
-
/***/ "
|
|
42
|
-
/*!*********************************!*\
|
|
43
|
-
!*** ./dist/browser/options.js ***!
|
|
44
|
-
\*********************************/
|
|
45
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
46
|
-
|
|
47
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ options: () => (/* binding */ options)\n/* harmony export */ });\nconst options = {\n background: {\n color: \"#000000\"\n },\n particles: {\n number: {\n value: 100\n },\n links: {\n distance: 125,\n enable: true,\n triangles: {\n enable: true,\n opacity: 0.1\n }\n },\n move: {\n enable: true,\n speed: 5\n },\n size: {\n value: 1\n },\n shape: {\n type: \"circle\"\n }\n }\n};\n\n//# sourceURL=webpack://@tsparticles/preset-triangles/./dist/browser/options.js?");
|
|
48
|
-
|
|
49
|
-
/***/ }),
|
|
50
|
-
|
|
51
|
-
/***/ "@tsparticles/basic":
|
|
41
|
+
/***/ "@tsparticles/basic"
|
|
52
42
|
/*!******************************************************************************************************************************!*\
|
|
53
43
|
!*** external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"} ***!
|
|
54
44
|
\******************************************************************************************************************************/
|
|
55
|
-
|
|
45
|
+
(module) {
|
|
56
46
|
|
|
57
47
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__;
|
|
58
48
|
|
|
59
|
-
/***/ }
|
|
49
|
+
/***/ },
|
|
60
50
|
|
|
61
|
-
/***/ "@tsparticles/interaction-particles-links"
|
|
51
|
+
/***/ "@tsparticles/interaction-particles-links"
|
|
62
52
|
/*!************************************************************************************************************************************************************************************************!*\
|
|
63
53
|
!*** external {"commonjs":"@tsparticles/interaction-particles-links","commonjs2":"@tsparticles/interaction-particles-links","amd":"@tsparticles/interaction-particles-links","root":"window"} ***!
|
|
64
54
|
\************************************************************************************************************************************************************************************************/
|
|
65
|
-
|
|
55
|
+
(module) {
|
|
66
56
|
|
|
67
57
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_interaction_particles_links__;
|
|
68
58
|
|
|
69
|
-
/***/ }
|
|
59
|
+
/***/ }
|
|
70
60
|
|
|
71
61
|
/******/ });
|
|
72
62
|
/************************************************************************/
|
|
@@ -80,6 +70,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_interaction_particles_li
|
|
|
80
70
|
/******/ if (cachedModule !== undefined) {
|
|
81
71
|
/******/ return cachedModule.exports;
|
|
82
72
|
/******/ }
|
|
73
|
+
/******/ // Check if module exists (development only)
|
|
74
|
+
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
75
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
76
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
77
|
+
/******/ throw e;
|
|
78
|
+
/******/ }
|
|
83
79
|
/******/ // Create a new module (and put it into the cache)
|
|
84
80
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
85
81
|
/******/ // no module.id needed
|
|
@@ -94,16 +90,37 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_interaction_particles_li
|
|
|
94
90
|
/******/ return module.exports;
|
|
95
91
|
/******/ }
|
|
96
92
|
/******/
|
|
93
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
94
|
+
/******/ __webpack_require__.m = __webpack_modules__;
|
|
95
|
+
/******/
|
|
97
96
|
/************************************************************************/
|
|
98
|
-
/******/ /* webpack/runtime/
|
|
97
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
99
98
|
/******/ (() => {
|
|
100
|
-
/******/
|
|
101
|
-
/******/
|
|
102
|
-
/******/
|
|
103
|
-
/******/
|
|
104
|
-
/******/
|
|
105
|
-
/******/
|
|
106
|
-
/******/
|
|
99
|
+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
|
|
100
|
+
/******/ var leafPrototypes;
|
|
101
|
+
/******/ // create a fake namespace object
|
|
102
|
+
/******/ // mode & 1: value is a module id, require it
|
|
103
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
104
|
+
/******/ // mode & 4: return value when already ns object
|
|
105
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
106
|
+
/******/ // mode & 8|1: behave like require
|
|
107
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
108
|
+
/******/ if(mode & 1) value = this(value);
|
|
109
|
+
/******/ if(mode & 8) return value;
|
|
110
|
+
/******/ if(typeof value === 'object' && value) {
|
|
111
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
112
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
113
|
+
/******/ }
|
|
114
|
+
/******/ var ns = Object.create(null);
|
|
115
|
+
/******/ __webpack_require__.r(ns);
|
|
116
|
+
/******/ var def = {};
|
|
117
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
118
|
+
/******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
119
|
+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
|
|
120
|
+
/******/ }
|
|
121
|
+
/******/ def['default'] = () => (value);
|
|
122
|
+
/******/ __webpack_require__.d(ns, def);
|
|
123
|
+
/******/ return ns;
|
|
107
124
|
/******/ };
|
|
108
125
|
/******/ })();
|
|
109
126
|
/******/
|
|
@@ -119,11 +136,90 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_interaction_particles_li
|
|
|
119
136
|
/******/ };
|
|
120
137
|
/******/ })();
|
|
121
138
|
/******/
|
|
139
|
+
/******/ /* webpack/runtime/ensure chunk */
|
|
140
|
+
/******/ (() => {
|
|
141
|
+
/******/ __webpack_require__.f = {};
|
|
142
|
+
/******/ // This file contains only the entry chunk.
|
|
143
|
+
/******/ // The chunk loading function for additional chunks
|
|
144
|
+
/******/ __webpack_require__.e = (chunkId) => {
|
|
145
|
+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
|
|
146
|
+
/******/ __webpack_require__.f[key](chunkId, promises);
|
|
147
|
+
/******/ return promises;
|
|
148
|
+
/******/ }, []));
|
|
149
|
+
/******/ };
|
|
150
|
+
/******/ })();
|
|
151
|
+
/******/
|
|
152
|
+
/******/ /* webpack/runtime/get javascript chunk filename */
|
|
153
|
+
/******/ (() => {
|
|
154
|
+
/******/ // This function allow to reference async chunks
|
|
155
|
+
/******/ __webpack_require__.u = (chunkId) => {
|
|
156
|
+
/******/ // return url for filenames based on template
|
|
157
|
+
/******/ return "" + chunkId + ".js";
|
|
158
|
+
/******/ };
|
|
159
|
+
/******/ })();
|
|
160
|
+
/******/
|
|
161
|
+
/******/ /* webpack/runtime/global */
|
|
162
|
+
/******/ (() => {
|
|
163
|
+
/******/ __webpack_require__.g = (function() {
|
|
164
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
165
|
+
/******/ try {
|
|
166
|
+
/******/ return this || new Function('return this')();
|
|
167
|
+
/******/ } catch (e) {
|
|
168
|
+
/******/ if (typeof window === 'object') return window;
|
|
169
|
+
/******/ }
|
|
170
|
+
/******/ })();
|
|
171
|
+
/******/ })();
|
|
172
|
+
/******/
|
|
122
173
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
123
174
|
/******/ (() => {
|
|
124
175
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
125
176
|
/******/ })();
|
|
126
177
|
/******/
|
|
178
|
+
/******/ /* webpack/runtime/load script */
|
|
179
|
+
/******/ (() => {
|
|
180
|
+
/******/ var inProgress = {};
|
|
181
|
+
/******/ var dataWebpackPrefix = "@tsparticles/preset-triangles:";
|
|
182
|
+
/******/ // loadScript function to load a script via script tag
|
|
183
|
+
/******/ __webpack_require__.l = (url, done, key, chunkId) => {
|
|
184
|
+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
|
|
185
|
+
/******/ var script, needAttach;
|
|
186
|
+
/******/ if(key !== undefined) {
|
|
187
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
188
|
+
/******/ for(var i = 0; i < scripts.length; i++) {
|
|
189
|
+
/******/ var s = scripts[i];
|
|
190
|
+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
|
|
191
|
+
/******/ }
|
|
192
|
+
/******/ }
|
|
193
|
+
/******/ if(!script) {
|
|
194
|
+
/******/ needAttach = true;
|
|
195
|
+
/******/ script = document.createElement('script');
|
|
196
|
+
/******/
|
|
197
|
+
/******/ script.charset = 'utf-8';
|
|
198
|
+
/******/ if (__webpack_require__.nc) {
|
|
199
|
+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
|
200
|
+
/******/ }
|
|
201
|
+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
|
|
202
|
+
/******/
|
|
203
|
+
/******/ script.src = url;
|
|
204
|
+
/******/ }
|
|
205
|
+
/******/ inProgress[url] = [done];
|
|
206
|
+
/******/ var onScriptComplete = (prev, event) => {
|
|
207
|
+
/******/ // avoid mem leaks in IE.
|
|
208
|
+
/******/ script.onerror = script.onload = null;
|
|
209
|
+
/******/ clearTimeout(timeout);
|
|
210
|
+
/******/ var doneFns = inProgress[url];
|
|
211
|
+
/******/ delete inProgress[url];
|
|
212
|
+
/******/ script.parentNode && script.parentNode.removeChild(script);
|
|
213
|
+
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
|
|
214
|
+
/******/ if(prev) return prev(event);
|
|
215
|
+
/******/ }
|
|
216
|
+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
|
|
217
|
+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
|
|
218
|
+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
|
|
219
|
+
/******/ needAttach && document.head.appendChild(script);
|
|
220
|
+
/******/ };
|
|
221
|
+
/******/ })();
|
|
222
|
+
/******/
|
|
127
223
|
/******/ /* webpack/runtime/make namespace object */
|
|
128
224
|
/******/ (() => {
|
|
129
225
|
/******/ // define __esModule on exports
|
|
@@ -135,6 +231,119 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_interaction_particles_li
|
|
|
135
231
|
/******/ };
|
|
136
232
|
/******/ })();
|
|
137
233
|
/******/
|
|
234
|
+
/******/ /* webpack/runtime/publicPath */
|
|
235
|
+
/******/ (() => {
|
|
236
|
+
/******/ var scriptUrl;
|
|
237
|
+
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
238
|
+
/******/ var document = __webpack_require__.g.document;
|
|
239
|
+
/******/ if (!scriptUrl && document) {
|
|
240
|
+
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
|
|
241
|
+
/******/ scriptUrl = document.currentScript.src;
|
|
242
|
+
/******/ if (!scriptUrl) {
|
|
243
|
+
/******/ var scripts = document.getElementsByTagName("script");
|
|
244
|
+
/******/ if(scripts.length) {
|
|
245
|
+
/******/ var i = scripts.length - 1;
|
|
246
|
+
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
247
|
+
/******/ }
|
|
248
|
+
/******/ }
|
|
249
|
+
/******/ }
|
|
250
|
+
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
251
|
+
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
252
|
+
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
253
|
+
/******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
254
|
+
/******/ __webpack_require__.p = scriptUrl;
|
|
255
|
+
/******/ })();
|
|
256
|
+
/******/
|
|
257
|
+
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
258
|
+
/******/ (() => {
|
|
259
|
+
/******/ // no baseURI
|
|
260
|
+
/******/
|
|
261
|
+
/******/ // object to store loaded and loading chunks
|
|
262
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
263
|
+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
264
|
+
/******/ var installedChunks = {
|
|
265
|
+
/******/ "tsparticles.preset.triangles": 0
|
|
266
|
+
/******/ };
|
|
267
|
+
/******/
|
|
268
|
+
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
269
|
+
/******/ // JSONP chunk loading for javascript
|
|
270
|
+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
|
|
271
|
+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
|
272
|
+
/******/
|
|
273
|
+
/******/ // a Promise means "currently loading".
|
|
274
|
+
/******/ if(installedChunkData) {
|
|
275
|
+
/******/ promises.push(installedChunkData[2]);
|
|
276
|
+
/******/ } else {
|
|
277
|
+
/******/ if(true) { // all chunks have JS
|
|
278
|
+
/******/ // setup Promise in chunk cache
|
|
279
|
+
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
280
|
+
/******/ promises.push(installedChunkData[2] = promise);
|
|
281
|
+
/******/
|
|
282
|
+
/******/ // start chunk loading
|
|
283
|
+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
|
|
284
|
+
/******/ // create error before stack unwound to get useful stacktrace later
|
|
285
|
+
/******/ var error = new Error();
|
|
286
|
+
/******/ var loadingEnded = (event) => {
|
|
287
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
|
|
288
|
+
/******/ installedChunkData = installedChunks[chunkId];
|
|
289
|
+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
|
|
290
|
+
/******/ if(installedChunkData) {
|
|
291
|
+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
292
|
+
/******/ var realSrc = event && event.target && event.target.src;
|
|
293
|
+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
|
294
|
+
/******/ error.name = 'ChunkLoadError';
|
|
295
|
+
/******/ error.type = errorType;
|
|
296
|
+
/******/ error.request = realSrc;
|
|
297
|
+
/******/ installedChunkData[1](error);
|
|
298
|
+
/******/ }
|
|
299
|
+
/******/ }
|
|
300
|
+
/******/ };
|
|
301
|
+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
302
|
+
/******/ }
|
|
303
|
+
/******/ }
|
|
304
|
+
/******/ }
|
|
305
|
+
/******/ };
|
|
306
|
+
/******/
|
|
307
|
+
/******/ // no prefetching
|
|
308
|
+
/******/
|
|
309
|
+
/******/ // no preloaded
|
|
310
|
+
/******/
|
|
311
|
+
/******/ // no HMR
|
|
312
|
+
/******/
|
|
313
|
+
/******/ // no HMR manifest
|
|
314
|
+
/******/
|
|
315
|
+
/******/ // no on chunks loaded
|
|
316
|
+
/******/
|
|
317
|
+
/******/ // install a JSONP callback for chunk loading
|
|
318
|
+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
319
|
+
/******/ var [chunkIds, moreModules, runtime] = data;
|
|
320
|
+
/******/ // add "moreModules" to the modules object,
|
|
321
|
+
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
322
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
323
|
+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
|
324
|
+
/******/ for(moduleId in moreModules) {
|
|
325
|
+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
|
326
|
+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
327
|
+
/******/ }
|
|
328
|
+
/******/ }
|
|
329
|
+
/******/ if(runtime) var result = runtime(__webpack_require__);
|
|
330
|
+
/******/ }
|
|
331
|
+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
|
332
|
+
/******/ for(;i < chunkIds.length; i++) {
|
|
333
|
+
/******/ chunkId = chunkIds[i];
|
|
334
|
+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
335
|
+
/******/ installedChunks[chunkId][0]();
|
|
336
|
+
/******/ }
|
|
337
|
+
/******/ installedChunks[chunkId] = 0;
|
|
338
|
+
/******/ }
|
|
339
|
+
/******/
|
|
340
|
+
/******/ }
|
|
341
|
+
/******/
|
|
342
|
+
/******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_preset_triangles"] = this["webpackChunk_tsparticles_preset_triangles"] || [];
|
|
343
|
+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
344
|
+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
345
|
+
/******/ })();
|
|
346
|
+
/******/
|
|
138
347
|
/************************************************************************/
|
|
139
348
|
/******/
|
|
140
349
|
/******/ // startup
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.preset.triangles.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/interaction-particles-links"),require("@tsparticles/basic"));else if("function"==typeof define&&define.amd)define(["@tsparticles/interaction-particles-links","@tsparticles/basic"],t);else{var r="object"==typeof exports?t(require("@tsparticles/interaction-particles-links"),require("@tsparticles/basic")):t(e.window,e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(e,t)=>(()=>{var r,o,i,n,a={145(e){e.exports=t},613(t){t.exports=e}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return a[e](r,r.exports,c),r.exports}c.m=a,o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var i=Object.create(null);c.r(i);var n={};r=r||[null,o({}),o([]),o(o)];for(var a=2&t&&e;("object"==typeof a||"function"==typeof a)&&!~r.indexOf(a);a=o(a))Object.getOwnPropertyNames(a).forEach(t=>n[t]=()=>e[t]);return n.default=()=>e,c.d(i,n),i},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,r)=>(c.f[r](e,t),t),[])),c.u=e=>e+".min.js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i={},n="@tsparticles/preset-triangles:",c.l=(e,t,r,o)=>{if(i[e])i[e].push(t);else{var a,s;if(void 0!==r)for(var l=document.getElementsByTagName("script"),p=0;p<l.length;p++){var u=l[p];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==n+r){a=u;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",n+r),a.src=e),i[e]=[t];var f=(t,r)=>{a.onerror=a.onload=null,clearTimeout(d);var o=i[e];if(delete i[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(e=>e(r)),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;c.g.importScripts&&(e=c.g.location+"");var t=c.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e})(),(()=>{var e={859:0};c.f.j=(t,r)=>{var o=c.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((r,i)=>o=e[t]=[r,i]);r.push(o[2]=i);var n=c.p+c.u(t),a=new Error;c.l(n,r=>{if(c.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+n+")",a.name="ChunkLoadError",a.type=i,a.request=n,o[1](a)}},"chunk-"+t,t)}};var t=(t,r)=>{var o,i,[n,a,s]=r,l=0;if(n.some(t=>0!==e[t])){for(o in a)c.o(a,o)&&(c.m[o]=a[o]);if(s)s(c)}for(t&&t(r);l<n.length;l++)i=n[l],c.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=this.webpackChunk_tsparticles_preset_triangles=this.webpackChunk_tsparticles_preset_triangles||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var l={};function p(e){e.register(async e=>{const{loadBasic:t}=await Promise.resolve().then(c.t.bind(c,145,19)),{loadParticlesLinksInteraction:r}=await Promise.resolve().then(c.t.bind(c,613,19)),{options:o,presetName:i}=await c.e(283).then(c.bind(c,283));t(e),r(e),e.addPreset(i,o)})}return c.r(l),c.d(l,{loadTrianglesPreset:()=>p}),l})());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Triangles Preset
|
|
1
|
+
/*! tsParticles Triangles Preset v4.0.0-alpha.0 by Matteo Bruni */
|
package/types/bundle.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { loadTrianglesPreset, tsParticles };
|
|
1
|
+
export { loadTrianglesPreset } from "./index.js";
|
|
2
|
+
export { tsParticles } from "@tsparticles/engine";
|
package/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "@tsparticles/engine";
|
|
2
|
-
export declare function loadTrianglesPreset(engine: Engine
|
|
2
|
+
export declare function loadTrianglesPreset(engine: Engine): void;
|
package/types/options.d.ts
CHANGED
package/umd/bundle.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.tsParticles = exports.loadTrianglesPreset = void 0;
|
|
13
|
-
|
|
13
|
+
var index_js_1 = require("./index.js");
|
|
14
14
|
Object.defineProperty(exports, "loadTrianglesPreset", { enumerable: true, get: function () { return index_js_1.loadTrianglesPreset; } });
|
|
15
|
-
|
|
15
|
+
var engine_1 = require("@tsparticles/engine");
|
|
16
16
|
Object.defineProperty(exports, "tsParticles", { enumerable: true, get: function () { return engine_1.tsParticles; } });
|
|
17
17
|
});
|
package/umd/index.js
CHANGED
|
@@ -1,23 +1,55 @@
|
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
8
|
+
}) : (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
o[k2] = m[k];
|
|
11
|
+
}));
|
|
12
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
+
}) : function(o, v) {
|
|
15
|
+
o["default"] = v;
|
|
16
|
+
});
|
|
17
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
18
|
+
var ownKeys = function(o) {
|
|
19
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
20
|
+
var ar = [];
|
|
21
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
22
|
+
return ar;
|
|
23
|
+
};
|
|
24
|
+
return ownKeys(o);
|
|
25
|
+
};
|
|
26
|
+
return function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
})();
|
|
1
34
|
(function (factory) {
|
|
2
35
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
36
|
var v = factory(require, exports);
|
|
4
37
|
if (v !== undefined) module.exports = v;
|
|
5
38
|
}
|
|
6
39
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports"
|
|
40
|
+
define(["require", "exports"], factory);
|
|
8
41
|
}
|
|
9
42
|
})(function (require, exports) {
|
|
10
43
|
"use strict";
|
|
44
|
+
var __syncRequire = typeof module === "object" && typeof module.exports === "object";
|
|
11
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.loadTrianglesPreset = void 0;
|
|
13
|
-
const basic_1 = require("@tsparticles/basic");
|
|
14
|
-
const interaction_particles_links_1 = require("@tsparticles/interaction-particles-links");
|
|
15
|
-
const options_js_1 = require("./options.js");
|
|
16
|
-
async function loadTrianglesPreset(engine, refresh = true) {
|
|
17
|
-
await (0, basic_1.loadBasic)(engine, false);
|
|
18
|
-
await (0, interaction_particles_links_1.loadParticlesLinksInteraction)(engine, false);
|
|
19
|
-
await engine.addPreset("triangles", options_js_1.options, false);
|
|
20
|
-
await engine.refresh(refresh);
|
|
21
|
-
}
|
|
22
46
|
exports.loadTrianglesPreset = loadTrianglesPreset;
|
|
47
|
+
function loadTrianglesPreset(engine) {
|
|
48
|
+
engine.register(async (e) => {
|
|
49
|
+
const { loadBasic } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/basic"))) : new Promise((resolve_1, reject_1) => { require(["@tsparticles/basic"], resolve_1, reject_1); }).then(__importStar)), { loadParticlesLinksInteraction } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("@tsparticles/interaction-particles-links"))) : new Promise((resolve_2, reject_2) => { require(["@tsparticles/interaction-particles-links"], resolve_2, reject_2); }).then(__importStar)), { options, presetName } = await (__syncRequire ? Promise.resolve().then(() => __importStar(require("./options.js"))) : new Promise((resolve_3, reject_3) => { require(["./options.js"], resolve_3, reject_3); }).then(__importStar));
|
|
50
|
+
loadBasic(e);
|
|
51
|
+
loadParticlesLinksInteraction(e);
|
|
52
|
+
e.addPreset(presetName, options);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
23
55
|
});
|
package/umd/options.js
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.options = void 0;
|
|
12
|
+
exports.options = exports.presetName = void 0;
|
|
13
|
+
exports.presetName = "triangles";
|
|
13
14
|
exports.options = {
|
|
14
15
|
background: {
|
|
15
16
|
color: "#000000",
|