@tsparticles/preset-links 3.0.1 → 3.1.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/README.md +21 -115
- package/browser/bundle.js +0 -1
- package/browser/index.js +2 -1
- package/cjs/bundle.js +0 -1
- package/cjs/index.js +2 -1
- package/esm/bundle.js +0 -1
- package/esm/index.js +2 -1
- package/package.json +4 -4
- package/report.html +3 -3
- package/tsparticles.preset.links.bundle.js +2337 -6525
- package/tsparticles.preset.links.bundle.min.js +1 -1
- package/tsparticles.preset.links.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.preset.links.js +58 -56
- package/tsparticles.preset.links.min.js +1 -1
- package/tsparticles.preset.links.min.js.LICENSE.txt +1 -1
- package/umd/bundle.js +0 -1
- package/umd/index.js +2 -1
|
@@ -4,7 +4,15 @@
|
|
|
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
|
-
* v3.0
|
|
7
|
+
* v3.1.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/).
|
|
8
16
|
*/
|
|
9
17
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
18
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -15,22 +23,48 @@
|
|
|
15
23
|
var a = typeof exports === 'object' ? factory(require("@tsparticles/basic"), require("@tsparticles/interaction-particles-links")) : factory(root["window"], root["window"]);
|
|
16
24
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
25
|
}
|
|
18
|
-
})(this, (
|
|
26
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_basic__, __WEBPACK_EXTERNAL_MODULE__tsparticles_interaction_particles_links__) => {
|
|
19
27
|
return /******/ (() => { // webpackBootstrap
|
|
20
28
|
/******/ "use strict";
|
|
21
29
|
/******/ var __webpack_modules__ = ({
|
|
22
30
|
|
|
23
|
-
/***/
|
|
31
|
+
/***/ "./dist/browser/index.js":
|
|
32
|
+
/*!*******************************!*\
|
|
33
|
+
!*** ./dist/browser/index.js ***!
|
|
34
|
+
\*******************************/
|
|
35
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
36
|
+
|
|
37
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadLinksPreset: () => (/* binding */ loadLinksPreset)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_basic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/basic */ \"@tsparticles/basic\");\n/* harmony import */ var _tsparticles_basic__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_basic__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _tsparticles_interaction_particles_links__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tsparticles/interaction-particles-links */ \"@tsparticles/interaction-particles-links\");\n/* harmony import */ var _tsparticles_interaction_particles_links__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tsparticles_interaction_particles_links__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _options_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./options.js */ \"./dist/browser/options.js\");\n\n\n\nasync function loadLinksPreset(engine, refresh = true) {\n await (0,_tsparticles_basic__WEBPACK_IMPORTED_MODULE_0__.loadBasic)(engine, false);\n await (0,_tsparticles_interaction_particles_links__WEBPACK_IMPORTED_MODULE_1__.loadParticlesLinksInteraction)(engine, false);\n await engine.addPreset(\"links\", _options_js__WEBPACK_IMPORTED_MODULE_2__.options, false);\n await engine.refresh(refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/preset-links/./dist/browser/index.js?");
|
|
38
|
+
|
|
39
|
+
/***/ }),
|
|
40
|
+
|
|
41
|
+
/***/ "./dist/browser/options.js":
|
|
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: 150,\n enable: true\n },\n move: {\n enable: true\n },\n size: {\n value: 1\n },\n shape: {\n type: \"circle\"\n }\n }\n};\n\n//# sourceURL=webpack://@tsparticles/preset-links/./dist/browser/options.js?");
|
|
48
|
+
|
|
49
|
+
/***/ }),
|
|
50
|
+
|
|
51
|
+
/***/ "@tsparticles/basic":
|
|
52
|
+
/*!******************************************************************************************************************************!*\
|
|
53
|
+
!*** external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"} ***!
|
|
54
|
+
\******************************************************************************************************************************/
|
|
24
55
|
/***/ ((module) => {
|
|
25
56
|
|
|
26
|
-
module.exports =
|
|
57
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__;
|
|
27
58
|
|
|
28
59
|
/***/ }),
|
|
29
60
|
|
|
30
|
-
/***/
|
|
61
|
+
/***/ "@tsparticles/interaction-particles-links":
|
|
62
|
+
/*!************************************************************************************************************************************************************************************************!*\
|
|
63
|
+
!*** external {"commonjs":"@tsparticles/interaction-particles-links","commonjs2":"@tsparticles/interaction-particles-links","amd":"@tsparticles/interaction-particles-links","root":"window"} ***!
|
|
64
|
+
\************************************************************************************************************************************************************************************************/
|
|
31
65
|
/***/ ((module) => {
|
|
32
66
|
|
|
33
|
-
module.exports =
|
|
67
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_interaction_particles_links__;
|
|
34
68
|
|
|
35
69
|
/***/ })
|
|
36
70
|
|
|
@@ -61,6 +95,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__164__;
|
|
|
61
95
|
/******/ }
|
|
62
96
|
/******/
|
|
63
97
|
/************************************************************************/
|
|
98
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
99
|
+
/******/ (() => {
|
|
100
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
101
|
+
/******/ __webpack_require__.n = (module) => {
|
|
102
|
+
/******/ var getter = module && module.__esModule ?
|
|
103
|
+
/******/ () => (module['default']) :
|
|
104
|
+
/******/ () => (module);
|
|
105
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
106
|
+
/******/ return getter;
|
|
107
|
+
/******/ };
|
|
108
|
+
/******/ })();
|
|
109
|
+
/******/
|
|
64
110
|
/******/ /* webpack/runtime/define property getters */
|
|
65
111
|
/******/ (() => {
|
|
66
112
|
/******/ // define getter functions for harmony exports
|
|
@@ -90,56 +136,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__164__;
|
|
|
90
136
|
/******/ })();
|
|
91
137
|
/******/
|
|
92
138
|
/************************************************************************/
|
|
93
|
-
|
|
94
|
-
//
|
|
95
|
-
|
|
96
|
-
//
|
|
97
|
-
__webpack_require__.
|
|
98
|
-
|
|
99
|
-
// EXPORTS
|
|
100
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
101
|
-
loadLinksPreset: () => (/* binding */ loadLinksPreset)
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"}
|
|
105
|
-
var basic_root_window_ = __webpack_require__(574);
|
|
106
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/interaction-particles-links","commonjs2":"@tsparticles/interaction-particles-links","amd":"@tsparticles/interaction-particles-links","root":"window"}
|
|
107
|
-
var interaction_particles_links_root_window_ = __webpack_require__(164);
|
|
108
|
-
;// CONCATENATED MODULE: ./dist/browser/options.js
|
|
109
|
-
const options = {
|
|
110
|
-
background: {
|
|
111
|
-
color: "#000000"
|
|
112
|
-
},
|
|
113
|
-
particles: {
|
|
114
|
-
number: {
|
|
115
|
-
value: 100
|
|
116
|
-
},
|
|
117
|
-
links: {
|
|
118
|
-
distance: 150,
|
|
119
|
-
enable: true
|
|
120
|
-
},
|
|
121
|
-
move: {
|
|
122
|
-
enable: true
|
|
123
|
-
},
|
|
124
|
-
size: {
|
|
125
|
-
value: 1
|
|
126
|
-
},
|
|
127
|
-
shape: {
|
|
128
|
-
type: "circle"
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
;// CONCATENATED MODULE: ./dist/browser/index.js
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
async function loadLinksPreset(engine, refresh = true) {
|
|
137
|
-
await (0,basic_root_window_.loadBasic)(engine, false);
|
|
138
|
-
await (0,interaction_particles_links_root_window_.loadParticlesLinksInteraction)(engine, false);
|
|
139
|
-
await engine.addPreset("links", options, refresh);
|
|
140
|
-
}
|
|
141
|
-
})();
|
|
142
|
-
|
|
139
|
+
/******/
|
|
140
|
+
/******/ // startup
|
|
141
|
+
/******/ // Load entry module and return exports
|
|
142
|
+
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
143
|
+
/******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
|
|
144
|
+
/******/
|
|
143
145
|
/******/ return __webpack_exports__;
|
|
144
146
|
/******/ })()
|
|
145
147
|
;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.preset.links.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/basic"),require("@tsparticles/interaction-particles-links"));else if("function"==typeof define&&define.amd)define(["@tsparticles/basic","@tsparticles/interaction-particles-links"],t);else{var r="object"==typeof exports?t(require("@tsparticles/basic"),require("@tsparticles/interaction-particles-links")):t(e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,((e,t)=>(()=>{
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/basic"),require("@tsparticles/interaction-particles-links"));else if("function"==typeof define&&define.amd)define(["@tsparticles/basic","@tsparticles/interaction-particles-links"],t);else{var r="object"==typeof exports?t(require("@tsparticles/basic"),require("@tsparticles/interaction-particles-links")):t(e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,((e,t)=>(()=>{var r={145:t=>{t.exports=e},613:e=>{e.exports=t}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var a=i[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{loadLinksPreset:()=>i});var e=o(145),t=o(613);const r={background:{color:"#000000"},particles:{number:{value:100},links:{distance:150,enable:!0},move:{enable:!0},size:{value:1},shape:{type:"circle"}}};async function i(i,o=!0){await(0,e.loadBasic)(i,!1),await(0,t.loadParticlesLinksInteraction)(i,!1),await i.addPreset("links",r,!1),await i.refresh(o)}})(),a})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Links Preset v3.0
|
|
1
|
+
/*! tsParticles Links Preset v3.1.0 by Matteo Bruni */
|
package/umd/bundle.js
CHANGED
|
@@ -14,5 +14,4 @@
|
|
|
14
14
|
Object.defineProperty(exports, "loadLinksPreset", { enumerable: true, get: function () { return index_js_1.loadLinksPreset; } });
|
|
15
15
|
const engine_1 = require("@tsparticles/engine");
|
|
16
16
|
Object.defineProperty(exports, "tsParticles", { enumerable: true, get: function () { return engine_1.tsParticles; } });
|
|
17
|
-
void (0, index_js_1.loadLinksPreset)(engine_1.tsParticles);
|
|
18
17
|
});
|
package/umd/index.js
CHANGED
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
async function loadLinksPreset(engine, refresh = true) {
|
|
17
17
|
await (0, basic_1.loadBasic)(engine, false);
|
|
18
18
|
await (0, interaction_particles_links_1.loadParticlesLinksInteraction)(engine, false);
|
|
19
|
-
await engine.addPreset("links", options_js_1.options,
|
|
19
|
+
await engine.addPreset("links", options_js_1.options, false);
|
|
20
|
+
await engine.refresh(refresh);
|
|
20
21
|
}
|
|
21
22
|
exports.loadLinksPreset = loadLinksPreset;
|
|
22
23
|
});
|