@tsparticles/preset-links 3.0.0-alpha.1 → 3.0.0-beta.2
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 +13 -37
- package/browser/bundle.js +1 -3
- package/browser/index.js +5 -15
- package/browser/options.js +3 -0
- package/browser/package.json +1 -0
- package/cjs/bundle.js +1 -12
- package/cjs/index.js +5 -26
- package/cjs/options.js +3 -0
- package/cjs/package.json +1 -0
- package/esm/bundle.js +1 -3
- package/esm/index.js +5 -15
- package/esm/options.js +3 -0
- package/esm/package.json +1 -0
- package/package.json +11 -15
- package/report.html +5 -5
- package/tsparticles.preset.links.bundle.js +2416 -2582
- package/tsparticles.preset.links.bundle.min.js +1 -1
- package/tsparticles.preset.links.bundle.min.js.LICENSE.txt +1 -8
- package/tsparticles.preset.links.js +19 -71
- package/tsparticles.preset.links.min.js +1 -1
- package/tsparticles.preset.links.min.js.LICENSE.txt +1 -8
- package/types/index.d.ts +1 -1
- package/types/options.d.ts +23 -2
- package/umd/bundle.js +1 -3
- package/umd/index.js +6 -16
- package/umd/options.js +3 -0
|
@@ -4,68 +4,33 @@
|
|
|
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.0-
|
|
7
|
+
* v3.0.0-beta.2
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
-
module.exports = factory(require("@tsparticles/
|
|
11
|
+
module.exports = factory(require("@tsparticles/basic"), require("@tsparticles/interaction-particles-links"));
|
|
12
12
|
else if(typeof define === 'function' && define.amd)
|
|
13
|
-
define(["@tsparticles/
|
|
13
|
+
define(["@tsparticles/basic", "@tsparticles/interaction-particles-links"], factory);
|
|
14
14
|
else {
|
|
15
|
-
var a = typeof exports === 'object' ? factory(require("@tsparticles/
|
|
15
|
+
var a = typeof exports === 'object' ? factory(require("@tsparticles/basic"), require("@tsparticles/interaction-particles-links")) : factory(root["window"], root["window"]);
|
|
16
16
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
17
|
}
|
|
18
|
-
})(this, (
|
|
18
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__574__, __WEBPACK_EXTERNAL_MODULE__164__) => {
|
|
19
19
|
return /******/ (() => { // webpackBootstrap
|
|
20
20
|
/******/ "use strict";
|
|
21
21
|
/******/ var __webpack_modules__ = ({
|
|
22
22
|
|
|
23
|
-
/***/
|
|
24
|
-
/***/ ((module) => {
|
|
25
|
-
|
|
26
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__164__;
|
|
27
|
-
|
|
28
|
-
/***/ }),
|
|
29
|
-
|
|
30
|
-
/***/ 619:
|
|
31
|
-
/***/ ((module) => {
|
|
32
|
-
|
|
33
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__619__;
|
|
34
|
-
|
|
35
|
-
/***/ }),
|
|
36
|
-
|
|
37
|
-
/***/ 163:
|
|
23
|
+
/***/ 574:
|
|
38
24
|
/***/ ((module) => {
|
|
39
25
|
|
|
40
|
-
module.exports =
|
|
26
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__574__;
|
|
41
27
|
|
|
42
28
|
/***/ }),
|
|
43
29
|
|
|
44
|
-
/***/
|
|
45
|
-
/***/ ((module) => {
|
|
46
|
-
|
|
47
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__501__;
|
|
48
|
-
|
|
49
|
-
/***/ }),
|
|
50
|
-
|
|
51
|
-
/***/ 686:
|
|
52
|
-
/***/ ((module) => {
|
|
53
|
-
|
|
54
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__686__;
|
|
55
|
-
|
|
56
|
-
/***/ }),
|
|
57
|
-
|
|
58
|
-
/***/ 290:
|
|
59
|
-
/***/ ((module) => {
|
|
60
|
-
|
|
61
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__290__;
|
|
62
|
-
|
|
63
|
-
/***/ }),
|
|
64
|
-
|
|
65
|
-
/***/ 2:
|
|
30
|
+
/***/ 164:
|
|
66
31
|
/***/ ((module) => {
|
|
67
32
|
|
|
68
|
-
module.exports =
|
|
33
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__164__;
|
|
69
34
|
|
|
70
35
|
/***/ })
|
|
71
36
|
|
|
@@ -133,29 +98,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
133
98
|
|
|
134
99
|
// EXPORTS
|
|
135
100
|
__webpack_require__.d(__webpack_exports__, {
|
|
136
|
-
|
|
101
|
+
loadLinksPreset: () => (/* binding */ loadLinksPreset)
|
|
137
102
|
});
|
|
138
103
|
|
|
139
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/
|
|
140
|
-
var
|
|
141
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/shape-circle","commonjs2":"@tsparticles/shape-circle","amd":"@tsparticles/shape-circle","root":"window"}
|
|
142
|
-
var shape_circle_root_window_ = __webpack_require__(163);
|
|
143
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-color","commonjs2":"@tsparticles/updater-color","amd":"@tsparticles/updater-color","root":"window"}
|
|
144
|
-
var updater_color_root_window_ = __webpack_require__(501);
|
|
145
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-opacity","commonjs2":"@tsparticles/updater-opacity","amd":"@tsparticles/updater-opacity","root":"window"}
|
|
146
|
-
var updater_opacity_root_window_ = __webpack_require__(686);
|
|
147
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-out-modes","commonjs2":"@tsparticles/updater-out-modes","amd":"@tsparticles/updater-out-modes","root":"window"}
|
|
148
|
-
var updater_out_modes_root_window_ = __webpack_require__(290);
|
|
104
|
+
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"}
|
|
105
|
+
var basic_root_window_ = __webpack_require__(574);
|
|
149
106
|
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/interaction-particles-links","commonjs2":"@tsparticles/interaction-particles-links","amd":"@tsparticles/interaction-particles-links","root":"window"}
|
|
150
107
|
var interaction_particles_links_root_window_ = __webpack_require__(164);
|
|
151
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-size","commonjs2":"@tsparticles/updater-size","amd":"@tsparticles/updater-size","root":"window"}
|
|
152
|
-
var updater_size_root_window_ = __webpack_require__(2);
|
|
153
108
|
;// CONCATENATED MODULE: ./dist/browser/options.js
|
|
154
109
|
const options = {
|
|
155
110
|
background: {
|
|
156
111
|
color: "#000000"
|
|
157
112
|
},
|
|
158
113
|
particles: {
|
|
114
|
+
number: {
|
|
115
|
+
value: 100
|
|
116
|
+
},
|
|
159
117
|
links: {
|
|
160
118
|
distance: 150,
|
|
161
119
|
enable: true
|
|
@@ -175,20 +133,10 @@ const options = {
|
|
|
175
133
|
|
|
176
134
|
|
|
177
135
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
async function loadLinksPreset(engine) {
|
|
184
|
-
await (0,move_base_root_window_.loadBaseMover)(engine);
|
|
185
|
-
await (0,shape_circle_root_window_.loadCircleShape)(engine);
|
|
186
|
-
await (0,updater_color_root_window_.loadColorUpdater)(engine);
|
|
187
|
-
await (0,interaction_particles_links_root_window_.loadParticlesLinksInteraction)(engine);
|
|
188
|
-
await (0,updater_out_modes_root_window_.loadOutModesUpdater)(engine);
|
|
189
|
-
await (0,updater_opacity_root_window_.loadOpacityUpdater)(engine);
|
|
190
|
-
await (0,updater_size_root_window_.loadSizeUpdater)(engine);
|
|
191
|
-
await engine.addPreset("links", options);
|
|
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);
|
|
192
140
|
}
|
|
193
141
|
})();
|
|
194
142
|
|
|
@@ -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/
|
|
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)=>(()=>{"use strict";var r={574:t=>{t.exports=e},164: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(574),t=o(164);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,o)}})(),a})()));
|
|
@@ -1,8 +1 @@
|
|
|
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
|
-
* v3.0.0-alpha.1
|
|
8
|
-
*/
|
|
1
|
+
/*! tsParticles Links Preset v3.0.0-beta.2 by Matteo Bruni */
|
package/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Engine } from "@tsparticles/engine";
|
|
2
|
-
export declare function loadLinksPreset(engine: Engine): Promise<void>;
|
|
2
|
+
export declare function loadLinksPreset(engine: Engine, refresh?: boolean): Promise<void>;
|
package/types/options.d.ts
CHANGED
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const options: {
|
|
2
|
+
background: {
|
|
3
|
+
color: string;
|
|
4
|
+
};
|
|
5
|
+
particles: {
|
|
6
|
+
number: {
|
|
7
|
+
value: number;
|
|
8
|
+
};
|
|
9
|
+
links: {
|
|
10
|
+
distance: number;
|
|
11
|
+
enable: boolean;
|
|
12
|
+
};
|
|
13
|
+
move: {
|
|
14
|
+
enable: boolean;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
value: number;
|
|
18
|
+
};
|
|
19
|
+
shape: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
package/umd/bundle.js
CHANGED
|
@@ -14,7 +14,5 @@
|
|
|
14
14
|
Object.defineProperty(exports, "loadLinksPreset", { enumerable: true, get: function () { return _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
|
-
(
|
|
18
|
-
await (0, _1.loadLinksPreset)(engine_1.tsParticles);
|
|
19
|
-
})();
|
|
17
|
+
(0, _1.loadLinksPreset)(engine_1.tsParticles);
|
|
20
18
|
});
|
package/umd/index.js
CHANGED
|
@@ -4,29 +4,19 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "@tsparticles/
|
|
7
|
+
define(["require", "exports", "@tsparticles/basic", "@tsparticles/interaction-particles-links", "./options"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.loadLinksPreset = void 0;
|
|
13
|
-
const
|
|
14
|
-
const shape_circle_1 = require("@tsparticles/shape-circle");
|
|
15
|
-
const updater_color_1 = require("@tsparticles/updater-color");
|
|
16
|
-
const updater_opacity_1 = require("@tsparticles/updater-opacity");
|
|
17
|
-
const updater_out_modes_1 = require("@tsparticles/updater-out-modes");
|
|
13
|
+
const basic_1 = require("@tsparticles/basic");
|
|
18
14
|
const interaction_particles_links_1 = require("@tsparticles/interaction-particles-links");
|
|
19
|
-
const updater_size_1 = require("@tsparticles/updater-size");
|
|
20
15
|
const options_1 = require("./options");
|
|
21
|
-
async function loadLinksPreset(engine) {
|
|
22
|
-
await (0,
|
|
23
|
-
await (0,
|
|
24
|
-
await (
|
|
25
|
-
await (0, interaction_particles_links_1.loadParticlesLinksInteraction)(engine);
|
|
26
|
-
await (0, updater_out_modes_1.loadOutModesUpdater)(engine);
|
|
27
|
-
await (0, updater_opacity_1.loadOpacityUpdater)(engine);
|
|
28
|
-
await (0, updater_size_1.loadSizeUpdater)(engine);
|
|
29
|
-
await engine.addPreset("links", options_1.options);
|
|
16
|
+
async function loadLinksPreset(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("links", options_1.options, refresh);
|
|
30
20
|
}
|
|
31
21
|
exports.loadLinksPreset = loadLinksPreset;
|
|
32
22
|
});
|