@tsparticles/preset-bubbles 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 -33
- package/browser/bundle.js +1 -3
- package/browser/index.js +5 -15
- package/browser/options.js +0 -3
- package/browser/package.json +1 -0
- package/cjs/bundle.js +1 -12
- package/cjs/index.js +5 -26
- package/cjs/options.js +0 -3
- package/cjs/package.json +1 -0
- package/esm/bundle.js +1 -3
- package/esm/index.js +5 -15
- package/esm/options.js +0 -3
- package/esm/package.json +1 -0
- package/package.json +12 -16
- package/report.html +5 -5
- package/tsparticles.preset.bubbles.bundle.js +3125 -3278
- package/tsparticles.preset.bubbles.bundle.min.js +1 -1
- package/tsparticles.preset.bubbles.bundle.min.js.LICENSE.txt +1 -8
- package/tsparticles.preset.bubbles.js +14 -72
- package/tsparticles.preset.bubbles.min.js +1 -1
- package/tsparticles.preset.bubbles.min.js.LICENSE.txt +1 -8
- package/types/index.d.ts +1 -1
- package/types/options.d.ts +1 -1
- package/umd/bundle.js +1 -3
- package/umd/index.js +6 -16
- package/umd/options.js +0 -3
|
@@ -4,26 +4,26 @@
|
|
|
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/plugin-emitters"));
|
|
12
12
|
else if(typeof define === 'function' && define.amd)
|
|
13
|
-
define(["@tsparticles/
|
|
13
|
+
define(["@tsparticles/basic", "@tsparticles/plugin-emitters"], 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/plugin-emitters")) : 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__68__) => {
|
|
19
19
|
return /******/ (() => { // webpackBootstrap
|
|
20
20
|
/******/ "use strict";
|
|
21
21
|
/******/ var __webpack_modules__ = ({
|
|
22
22
|
|
|
23
|
-
/***/
|
|
23
|
+
/***/ 574:
|
|
24
24
|
/***/ ((module) => {
|
|
25
25
|
|
|
26
|
-
module.exports =
|
|
26
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__574__;
|
|
27
27
|
|
|
28
28
|
/***/ }),
|
|
29
29
|
|
|
@@ -32,41 +32,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__619__;
|
|
|
32
32
|
|
|
33
33
|
module.exports = __WEBPACK_EXTERNAL_MODULE__68__;
|
|
34
34
|
|
|
35
|
-
/***/ }),
|
|
36
|
-
|
|
37
|
-
/***/ 163:
|
|
38
|
-
/***/ ((module) => {
|
|
39
|
-
|
|
40
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__163__;
|
|
41
|
-
|
|
42
|
-
/***/ }),
|
|
43
|
-
|
|
44
|
-
/***/ 501:
|
|
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:
|
|
66
|
-
/***/ ((module) => {
|
|
67
|
-
|
|
68
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
69
|
-
|
|
70
35
|
/***/ })
|
|
71
36
|
|
|
72
37
|
/******/ });
|
|
@@ -133,30 +98,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
133
98
|
|
|
134
99
|
// EXPORTS
|
|
135
100
|
__webpack_require__.d(__webpack_exports__, {
|
|
136
|
-
|
|
101
|
+
loadBubblesPreset: () => (/* binding */ loadBubblesPreset)
|
|
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);
|
|
104
|
+
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"}
|
|
105
|
+
var basic_root_window_ = __webpack_require__(574);
|
|
145
106
|
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/plugin-emitters","commonjs2":"@tsparticles/plugin-emitters","amd":"@tsparticles/plugin-emitters","root":"window"}
|
|
146
107
|
var plugin_emitters_root_window_ = __webpack_require__(68);
|
|
147
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-opacity","commonjs2":"@tsparticles/updater-opacity","amd":"@tsparticles/updater-opacity","root":"window"}
|
|
148
|
-
var updater_opacity_root_window_ = __webpack_require__(686);
|
|
149
|
-
// EXTERNAL MODULE: external {"commonjs":"@tsparticles/updater-out-modes","commonjs2":"@tsparticles/updater-out-modes","amd":"@tsparticles/updater-out-modes","root":"window"}
|
|
150
|
-
var updater_out_modes_root_window_ = __webpack_require__(290);
|
|
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
|
fpsLimit: 120,
|
|
156
111
|
particles: {
|
|
157
|
-
number: {
|
|
158
|
-
value: 0
|
|
159
|
-
},
|
|
160
112
|
color: {
|
|
161
113
|
value: "random"
|
|
162
114
|
},
|
|
@@ -207,20 +159,10 @@ const options = {
|
|
|
207
159
|
|
|
208
160
|
|
|
209
161
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
async function loadBubblesPreset(engine) {
|
|
216
|
-
await (0,move_base_root_window_.loadBaseMover)(engine);
|
|
217
|
-
await (0,shape_circle_root_window_.loadCircleShape)(engine);
|
|
218
|
-
await (0,updater_color_root_window_.loadColorUpdater)(engine);
|
|
219
|
-
await (0,updater_size_root_window_.loadSizeUpdater)(engine);
|
|
220
|
-
await (0,updater_opacity_root_window_.loadOpacityUpdater)(engine);
|
|
221
|
-
await (0,updater_out_modes_root_window_.loadOutModesUpdater)(engine);
|
|
222
|
-
await (0,plugin_emitters_root_window_.loadEmittersPlugin)(engine);
|
|
223
|
-
await engine.addPreset("bubbles", options);
|
|
162
|
+
async function loadBubblesPreset(engine, refresh = true) {
|
|
163
|
+
await (0,basic_root_window_.loadBasic)(engine, false);
|
|
164
|
+
await (0,plugin_emitters_root_window_.loadEmittersPlugin)(engine, false);
|
|
165
|
+
await engine.addPreset("bubbles", options, refresh);
|
|
224
166
|
}
|
|
225
167
|
})();
|
|
226
168
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.preset.bubbles.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/plugin-emitters"));else if("function"==typeof define&&define.amd)define(["@tsparticles/basic","@tsparticles/plugin-emitters"],t);else{var r="object"==typeof exports?t(require("@tsparticles/basic"),require("@tsparticles/plugin-emitters")):t(e.window,e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,((e,t)=>(()=>{"use strict";var r={574:t=>{t.exports=e},68:e=>{e.exports=t}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,i),a.exports}i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{loadBubblesPreset:()=>o});var e=i(574),t=i(68);const r={fpsLimit:120,particles:{color:{value:"random"},shape:{type:"circle"},opacity:{value:.3},size:{value:{min:5,max:10}},move:{angle:{offset:0,value:30},enable:!0,speed:15,direction:"top",random:!1,straight:!1,outModes:{default:"destroy"}}},detectRetina:!0,background:{color:"#fff"},emitters:[{direction:"top",position:{y:100},life:{duration:3,delay:5,count:0}}]};async function o(o,i=!0){await(0,e.loadBasic)(o,!1),await(0,t.loadEmittersPlugin)(o,!1),await o.addPreset("bubbles",r,i)}})(),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 Bubbles 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 loadBubblesPreset(engine: Engine): Promise<void>;
|
|
2
|
+
export declare function loadBubblesPreset(engine: Engine, refresh?: boolean): Promise<void>;
|
package/types/options.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ISourceOptions } from "@tsparticles/engine";
|
|
2
2
|
export declare const options: ISourceOptions;
|
package/umd/bundle.js
CHANGED
|
@@ -14,7 +14,5 @@
|
|
|
14
14
|
Object.defineProperty(exports, "loadBubblesPreset", { enumerable: true, get: function () { return _1.loadBubblesPreset; } });
|
|
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.loadBubblesPreset)(engine_1.tsParticles);
|
|
19
|
-
})();
|
|
17
|
+
(0, _1.loadBubblesPreset)(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/plugin-emitters", "./options"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.loadBubblesPreset = void 0;
|
|
13
|
-
const
|
|
14
|
-
const shape_circle_1 = require("@tsparticles/shape-circle");
|
|
15
|
-
const updater_color_1 = require("@tsparticles/updater-color");
|
|
13
|
+
const basic_1 = require("@tsparticles/basic");
|
|
16
14
|
const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
|
|
17
|
-
const updater_opacity_1 = require("@tsparticles/updater-opacity");
|
|
18
|
-
const updater_out_modes_1 = require("@tsparticles/updater-out-modes");
|
|
19
|
-
const updater_size_1 = require("@tsparticles/updater-size");
|
|
20
15
|
const options_1 = require("./options");
|
|
21
|
-
async function loadBubblesPreset(engine) {
|
|
22
|
-
await (0,
|
|
23
|
-
await (0,
|
|
24
|
-
await (
|
|
25
|
-
await (0, updater_size_1.loadSizeUpdater)(engine);
|
|
26
|
-
await (0, updater_opacity_1.loadOpacityUpdater)(engine);
|
|
27
|
-
await (0, updater_out_modes_1.loadOutModesUpdater)(engine);
|
|
28
|
-
await (0, plugin_emitters_1.loadEmittersPlugin)(engine);
|
|
29
|
-
await engine.addPreset("bubbles", options_1.options);
|
|
16
|
+
async function loadBubblesPreset(engine, refresh = true) {
|
|
17
|
+
await (0, basic_1.loadBasic)(engine, false);
|
|
18
|
+
await (0, plugin_emitters_1.loadEmittersPlugin)(engine, false);
|
|
19
|
+
await engine.addPreset("bubbles", options_1.options, refresh);
|
|
30
20
|
}
|
|
31
21
|
exports.loadBubblesPreset = loadBubblesPreset;
|
|
32
22
|
});
|