tsparticles 2.0.3 → 2.0.6
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/{107.js → 939.js} +3 -3
- package/README.md +18 -18
- package/{bundle.js → browser/bundle.js} +0 -0
- package/browser/index.js +20 -0
- package/cjs/bundle.js +23 -0
- package/cjs/index.js +24 -0
- package/esm/bundle.js +6 -0
- package/esm/index.js +20 -0
- package/package.json +26 -14
- package/report.html +2 -2
- package/tsparticles.bundle.js +4005 -5609
- package/tsparticles.bundle.min.js +2 -2
- package/tsparticles.js +76 -73
- package/tsparticles.min.js +2 -2
- package/{bundle.d.ts → types/bundle.d.ts} +0 -0
- package/{index.d.ts → types/index.d.ts} +0 -0
- package/umd/bundle.js +33 -0
- package/umd/index.js +34 -0
- package/index.js +0 -29
package/tsparticles.js
CHANGED
|
@@ -4,22 +4,29 @@
|
|
|
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
|
-
* v2.0.
|
|
7
|
+
* v2.0.6
|
|
8
8
|
*/
|
|
9
9
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
10
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
-
module.exports = factory(require("tsparticles-plugin-absorbers"), require("tsparticles-plugin-emitters"), require("tsparticles-interaction-external-trail"), require("tsparticles-plugin-polygon-mask"), require("tsparticles-updater-roll"), require("tsparticles-slim"), require("tsparticles-updater-tilt"), require("tsparticles-updater-wobble"));
|
|
11
|
+
module.exports = factory(require("tsparticles-plugin-absorbers"), require("tsparticles-plugin-emitters"), require("tsparticles-interaction-external-trail"), require("tsparticles-plugin-polygon-mask"), require("tsparticles-updater-roll"), require("tsparticles-slim"), require("tsparticles-updater-tilt"), require("tsparticles-engine"), require("tsparticles-updater-wobble"));
|
|
12
12
|
else if(typeof define === 'function' && define.amd)
|
|
13
|
-
define(["tsparticles-plugin-absorbers", "tsparticles-plugin-emitters", "tsparticles-interaction-external-trail", "tsparticles-plugin-polygon-mask", "tsparticles-updater-roll", "tsparticles-slim", "tsparticles-updater-tilt", "tsparticles-updater-wobble"], factory);
|
|
13
|
+
define(["tsparticles-plugin-absorbers", "tsparticles-plugin-emitters", "tsparticles-interaction-external-trail", "tsparticles-plugin-polygon-mask", "tsparticles-updater-roll", "tsparticles-slim", "tsparticles-updater-tilt", "tsparticles-engine", "tsparticles-updater-wobble"], factory);
|
|
14
14
|
else {
|
|
15
|
-
var a = typeof exports === 'object' ? factory(require("tsparticles-plugin-absorbers"), require("tsparticles-plugin-emitters"), require("tsparticles-interaction-external-trail"), require("tsparticles-plugin-polygon-mask"), require("tsparticles-updater-roll"), require("tsparticles-slim"), require("tsparticles-updater-tilt"), require("tsparticles-updater-wobble")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"]);
|
|
15
|
+
var a = typeof exports === 'object' ? factory(require("tsparticles-plugin-absorbers"), require("tsparticles-plugin-emitters"), require("tsparticles-interaction-external-trail"), require("tsparticles-plugin-polygon-mask"), require("tsparticles-updater-roll"), require("tsparticles-slim"), require("tsparticles-updater-tilt"), require("tsparticles-engine"), require("tsparticles-updater-wobble")) : factory(root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], root["window"], 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__502__, __WEBPACK_EXTERNAL_MODULE__949__, __WEBPACK_EXTERNAL_MODULE__165__, __WEBPACK_EXTERNAL_MODULE__742__, __WEBPACK_EXTERNAL_MODULE__281__, __WEBPACK_EXTERNAL_MODULE__208__, __WEBPACK_EXTERNAL_MODULE__950__, __WEBPACK_EXTERNAL_MODULE__818__, __WEBPACK_EXTERNAL_MODULE__304__) => {
|
|
19
19
|
return /******/ (() => { // webpackBootstrap
|
|
20
20
|
/******/ "use strict";
|
|
21
21
|
/******/ var __webpack_modules__ = ({
|
|
22
22
|
|
|
23
|
+
/***/ 818:
|
|
24
|
+
/***/ ((module) => {
|
|
25
|
+
|
|
26
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__818__;
|
|
27
|
+
|
|
28
|
+
/***/ }),
|
|
29
|
+
|
|
23
30
|
/***/ 165:
|
|
24
31
|
/***/ ((module) => {
|
|
25
32
|
|
|
@@ -103,18 +110,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__304__;
|
|
|
103
110
|
/******/ }
|
|
104
111
|
/******/
|
|
105
112
|
/************************************************************************/
|
|
106
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
107
|
-
/******/ (() => {
|
|
108
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
109
|
-
/******/ __webpack_require__.n = (module) => {
|
|
110
|
-
/******/ var getter = module && module.__esModule ?
|
|
111
|
-
/******/ () => (module['default']) :
|
|
112
|
-
/******/ () => (module);
|
|
113
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
114
|
-
/******/ return getter;
|
|
115
|
-
/******/ };
|
|
116
|
-
/******/ })();
|
|
117
|
-
/******/
|
|
118
113
|
/******/ /* webpack/runtime/define property getters */
|
|
119
114
|
/******/ (() => {
|
|
120
115
|
/******/ // define getter functions for harmony exports
|
|
@@ -147,57 +142,66 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__304__;
|
|
|
147
142
|
var __webpack_exports__ = {};
|
|
148
143
|
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
149
144
|
(() => {
|
|
145
|
+
// ESM COMPAT FLAG
|
|
150
146
|
__webpack_require__.r(__webpack_exports__);
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
147
|
+
|
|
148
|
+
// EXPORTS
|
|
149
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
150
|
+
"loadFull": () => (/* binding */ loadFull)
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
// EXTERNAL MODULE: external {"commonjs":"tsparticles-plugin-absorbers","commonjs2":"tsparticles-plugin-absorbers","amd":"tsparticles-plugin-absorbers","root":"window"}
|
|
154
|
+
var external_commonjs_tsparticles_plugin_absorbers_commonjs2_tsparticles_plugin_absorbers_amd_tsparticles_plugin_absorbers_root_window_ = __webpack_require__(502);
|
|
155
|
+
// EXTERNAL MODULE: external {"commonjs":"tsparticles-plugin-emitters","commonjs2":"tsparticles-plugin-emitters","amd":"tsparticles-plugin-emitters","root":"window"}
|
|
156
|
+
var external_commonjs_tsparticles_plugin_emitters_commonjs2_tsparticles_plugin_emitters_amd_tsparticles_plugin_emitters_root_window_ = __webpack_require__(949);
|
|
157
|
+
// EXTERNAL MODULE: external {"commonjs":"tsparticles-interaction-external-trail","commonjs2":"tsparticles-interaction-external-trail","amd":"tsparticles-interaction-external-trail","root":"window"}
|
|
158
|
+
var external_commonjs_tsparticles_interaction_external_trail_commonjs2_tsparticles_interaction_external_trail_amd_tsparticles_interaction_external_trail_root_window_ = __webpack_require__(165);
|
|
159
|
+
// EXTERNAL MODULE: external {"commonjs":"tsparticles-plugin-polygon-mask","commonjs2":"tsparticles-plugin-polygon-mask","amd":"tsparticles-plugin-polygon-mask","root":"window"}
|
|
160
|
+
var external_commonjs_tsparticles_plugin_polygon_mask_commonjs2_tsparticles_plugin_polygon_mask_amd_tsparticles_plugin_polygon_mask_root_window_ = __webpack_require__(742);
|
|
161
|
+
// EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-roll","commonjs2":"tsparticles-updater-roll","amd":"tsparticles-updater-roll","root":"window"}
|
|
162
|
+
var external_commonjs_tsparticles_updater_roll_commonjs2_tsparticles_updater_roll_amd_tsparticles_updater_roll_root_window_ = __webpack_require__(281);
|
|
163
|
+
// EXTERNAL MODULE: external {"commonjs":"tsparticles-slim","commonjs2":"tsparticles-slim","amd":"tsparticles-slim","root":"window"}
|
|
164
|
+
var external_commonjs_tsparticles_slim_commonjs2_tsparticles_slim_amd_tsparticles_slim_root_window_ = __webpack_require__(208);
|
|
165
|
+
// EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-tilt","commonjs2":"tsparticles-updater-tilt","amd":"tsparticles-updater-tilt","root":"window"}
|
|
166
|
+
var external_commonjs_tsparticles_updater_tilt_commonjs2_tsparticles_updater_tilt_amd_tsparticles_updater_tilt_root_window_ = __webpack_require__(950);
|
|
167
|
+
// EXTERNAL MODULE: external {"commonjs":"tsparticles-engine","commonjs2":"tsparticles-engine","amd":"tsparticles-engine","root":"window"}
|
|
168
|
+
var external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_ = __webpack_require__(818);
|
|
169
|
+
;// CONCATENATED MODULE: ../../updaters/twinkle/dist/esm/TwinkleUpdater.js
|
|
170
|
+
|
|
171
|
+
class TwinkleUpdater {
|
|
172
|
+
getColorStyles(particle, context, radius, opacity) {
|
|
173
|
+
const pOptions = particle.options,
|
|
174
|
+
twinkle = pOptions.twinkle.particles,
|
|
175
|
+
twinkling = twinkle.enable && Math.random() < twinkle.frequency,
|
|
176
|
+
zIndexOptions = particle.options.zIndex,
|
|
177
|
+
zOpacityFactor = (1 - particle.zIndexFactor) ** zIndexOptions.opacityRate,
|
|
178
|
+
twinklingOpacity = twinkling ? (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.getRangeValue)(twinkle.opacity) * zOpacityFactor : opacity,
|
|
179
|
+
twinkleRgb = (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.colorToHsl)(twinkle.color),
|
|
180
|
+
twinkleStyle = twinkleRgb ? (0,external_commonjs_tsparticles_engine_commonjs2_tsparticles_engine_amd_tsparticles_engine_root_window_.getStyleFromHsl)(twinkleRgb, twinklingOpacity) : undefined,
|
|
181
|
+
res = {},
|
|
182
|
+
needsTwinkle = twinkling && twinkleStyle;
|
|
183
|
+
res.fill = needsTwinkle ? twinkleStyle : undefined;
|
|
184
|
+
res.stroke = needsTwinkle ? twinkleStyle : undefined;
|
|
185
|
+
return res;
|
|
175
186
|
}
|
|
176
187
|
|
|
177
|
-
|
|
178
|
-
function fulfilled(value) {
|
|
179
|
-
try {
|
|
180
|
-
step(generator.next(value));
|
|
181
|
-
} catch (e) {
|
|
182
|
-
reject(e);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
188
|
+
init() {}
|
|
185
189
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
} catch (e) {
|
|
190
|
-
reject(e);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
190
|
+
isEnabled(particle) {
|
|
191
|
+
return particle.options.twinkle.particles.enable;
|
|
192
|
+
}
|
|
193
193
|
|
|
194
|
-
|
|
195
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
196
|
-
}
|
|
194
|
+
update() {}
|
|
197
195
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
196
|
+
}
|
|
197
|
+
;// CONCATENATED MODULE: ../../updaters/twinkle/dist/esm/index.js
|
|
198
|
+
|
|
199
|
+
async function loadTwinkleUpdater(engine) {
|
|
200
|
+
await engine.addParticleUpdater("twinkle", () => new TwinkleUpdater());
|
|
201
|
+
}
|
|
202
|
+
// EXTERNAL MODULE: external {"commonjs":"tsparticles-updater-wobble","commonjs2":"tsparticles-updater-wobble","amd":"tsparticles-updater-wobble","root":"window"}
|
|
203
|
+
var external_commonjs_tsparticles_updater_wobble_commonjs2_tsparticles_updater_wobble_amd_tsparticles_updater_wobble_root_window_ = __webpack_require__(304);
|
|
204
|
+
;// CONCATENATED MODULE: ./dist/browser/index.js
|
|
201
205
|
|
|
202
206
|
|
|
203
207
|
|
|
@@ -207,17 +211,16 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument
|
|
|
207
211
|
|
|
208
212
|
|
|
209
213
|
|
|
210
|
-
function loadFull(engine) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
});
|
|
214
|
+
async function loadFull(engine) {
|
|
215
|
+
await (0,external_commonjs_tsparticles_slim_commonjs2_tsparticles_slim_amd_tsparticles_slim_root_window_.loadSlim)(engine);
|
|
216
|
+
await (0,external_commonjs_tsparticles_updater_roll_commonjs2_tsparticles_updater_roll_amd_tsparticles_updater_roll_root_window_.loadRollUpdater)(engine);
|
|
217
|
+
await (0,external_commonjs_tsparticles_updater_tilt_commonjs2_tsparticles_updater_tilt_amd_tsparticles_updater_tilt_root_window_.loadTiltUpdater)(engine);
|
|
218
|
+
await loadTwinkleUpdater(engine);
|
|
219
|
+
await (0,external_commonjs_tsparticles_updater_wobble_commonjs2_tsparticles_updater_wobble_amd_tsparticles_updater_wobble_root_window_.loadWobbleUpdater)(engine);
|
|
220
|
+
await (0,external_commonjs_tsparticles_interaction_external_trail_commonjs2_tsparticles_interaction_external_trail_amd_tsparticles_interaction_external_trail_root_window_.loadExternalTrailInteraction)(engine);
|
|
221
|
+
await (0,external_commonjs_tsparticles_plugin_absorbers_commonjs2_tsparticles_plugin_absorbers_amd_tsparticles_plugin_absorbers_root_window_.loadAbsorbersPlugin)(engine);
|
|
222
|
+
await (0,external_commonjs_tsparticles_plugin_emitters_commonjs2_tsparticles_plugin_emitters_amd_tsparticles_plugin_emitters_root_window_.loadEmittersPlugin)(engine);
|
|
223
|
+
await (0,external_commonjs_tsparticles_plugin_polygon_mask_commonjs2_tsparticles_plugin_polygon_mask_amd_tsparticles_plugin_polygon_mask_root_window_.loadPolygonMaskPlugin)(engine);
|
|
221
224
|
}
|
|
222
225
|
})();
|
|
223
226
|
|
package/tsparticles.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v2.0.
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-plugin-absorbers"),require("tsparticles-plugin-emitters"),require("tsparticles-interaction-external-trail"),require("tsparticles-plugin-polygon-mask"),require("tsparticles-updater-roll"),require("tsparticles-slim"),require("tsparticles-updater-tilt"),require("tsparticles-updater-wobble"));else if("function"==typeof define&&define.amd)define(["tsparticles-plugin-absorbers","tsparticles-plugin-emitters","tsparticles-interaction-external-trail","tsparticles-plugin-polygon-mask","tsparticles-updater-roll","tsparticles-slim","tsparticles-updater-tilt","tsparticles-updater-wobble"],t);else{var r="object"==typeof exports?t(require("tsparticles-plugin-absorbers"),require("tsparticles-plugin-emitters"),require("tsparticles-interaction-external-trail"),require("tsparticles-plugin-polygon-mask"),require("tsparticles-updater-roll"),require("tsparticles-slim"),require("tsparticles-updater-tilt"),require("tsparticles-updater-wobble")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,(
|
|
1
|
+
/*! tsParticles v2.0.6 by Matteo Bruni */
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("tsparticles-plugin-absorbers"),require("tsparticles-plugin-emitters"),require("tsparticles-interaction-external-trail"),require("tsparticles-plugin-polygon-mask"),require("tsparticles-updater-roll"),require("tsparticles-slim"),require("tsparticles-updater-tilt"),require("tsparticles-engine"),require("tsparticles-updater-wobble"));else if("function"==typeof define&&define.amd)define(["tsparticles-plugin-absorbers","tsparticles-plugin-emitters","tsparticles-interaction-external-trail","tsparticles-plugin-polygon-mask","tsparticles-updater-roll","tsparticles-slim","tsparticles-updater-tilt","tsparticles-engine","tsparticles-updater-wobble"],t);else{var r="object"==typeof exports?t(require("tsparticles-plugin-absorbers"),require("tsparticles-plugin-emitters"),require("tsparticles-interaction-external-trail"),require("tsparticles-plugin-polygon-mask"),require("tsparticles-updater-roll"),require("tsparticles-slim"),require("tsparticles-updater-tilt"),require("tsparticles-engine"),require("tsparticles-updater-wobble")):t(e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window,e.window);for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(this,((e,t,r,i,a,o,l,s,n)=>(()=>{"use strict";var p={818:e=>{e.exports=s},165:e=>{e.exports=r},502:t=>{t.exports=e},949:e=>{e.exports=t},742:e=>{e.exports=i},208:e=>{e.exports=o},281:e=>{e.exports=a},950:e=>{e.exports=l},304:e=>{e.exports=n}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return p[e](r,r.exports,c),r.exports}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.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{c.r(d),c.d(d,{loadFull:()=>u});var e=c(502),t=c(949),r=c(165),i=c(742),a=c(281),o=c(208),l=c(950),s=c(818);class n{getColorStyles(e,t,r,i){const a=e.options.twinkle.particles,o=a.enable&&Math.random()<a.frequency,l=e.options.zIndex,n=(1-e.zIndexFactor)**l.opacityRate,p=o?(0,s.getRangeValue)(a.opacity)*n:i,u=(0,s.colorToHsl)(a.color),c=u?(0,s.getStyleFromHsl)(u,p):void 0,d={},w=o&&c;return d.fill=w?c:void 0,d.stroke=w?c:void 0,d}init(){}isEnabled(e){return e.options.twinkle.particles.enable}update(){}}var p=c(304);async function u(s){await(0,o.loadSlim)(s),await(0,a.loadRollUpdater)(s),await(0,l.loadTiltUpdater)(s),await async function(e){await e.addParticleUpdater("twinkle",(()=>new n))}(s),await(0,p.loadWobbleUpdater)(s),await(0,r.loadExternalTrailInteraction)(s),await(0,e.loadAbsorbersPlugin)(s),await(0,t.loadEmittersPlugin)(s),await(0,i.loadPolygonMaskPlugin)(s)}})(),d})()));
|
|
File without changes
|
|
File without changes
|
package/umd/bundle.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
13
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
14
|
+
};
|
|
15
|
+
(function (factory) {
|
|
16
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
17
|
+
var v = factory(require, exports);
|
|
18
|
+
if (v !== undefined) module.exports = v;
|
|
19
|
+
}
|
|
20
|
+
else if (typeof define === "function" && define.amd) {
|
|
21
|
+
define(["require", "exports", ".", "tsparticles-engine", "tsparticles-slim", "tsparticles-engine"], factory);
|
|
22
|
+
}
|
|
23
|
+
})(function (require, exports) {
|
|
24
|
+
"use strict";
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.loadFull = void 0;
|
|
27
|
+
const _1 = require(".");
|
|
28
|
+
Object.defineProperty(exports, "loadFull", { enumerable: true, get: function () { return _1.loadFull; } });
|
|
29
|
+
const tsparticles_engine_1 = require("tsparticles-engine");
|
|
30
|
+
(0, _1.loadFull)(tsparticles_engine_1.tsParticles);
|
|
31
|
+
__exportStar(require("tsparticles-slim"), exports);
|
|
32
|
+
__exportStar(require("tsparticles-engine"), exports);
|
|
33
|
+
});
|
package/umd/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "tsparticles-plugin-absorbers", "tsparticles-plugin-emitters", "tsparticles-interaction-external-trail", "tsparticles-plugin-polygon-mask", "tsparticles-updater-roll", "tsparticles-slim", "tsparticles-updater-tilt", "tsparticles-updater-twinkle", "tsparticles-updater-wobble"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.loadFull = void 0;
|
|
13
|
+
const tsparticles_plugin_absorbers_1 = require("tsparticles-plugin-absorbers");
|
|
14
|
+
const tsparticles_plugin_emitters_1 = require("tsparticles-plugin-emitters");
|
|
15
|
+
const tsparticles_interaction_external_trail_1 = require("tsparticles-interaction-external-trail");
|
|
16
|
+
const tsparticles_plugin_polygon_mask_1 = require("tsparticles-plugin-polygon-mask");
|
|
17
|
+
const tsparticles_updater_roll_1 = require("tsparticles-updater-roll");
|
|
18
|
+
const tsparticles_slim_1 = require("tsparticles-slim");
|
|
19
|
+
const tsparticles_updater_tilt_1 = require("tsparticles-updater-tilt");
|
|
20
|
+
const tsparticles_updater_twinkle_1 = require("tsparticles-updater-twinkle");
|
|
21
|
+
const tsparticles_updater_wobble_1 = require("tsparticles-updater-wobble");
|
|
22
|
+
async function loadFull(engine) {
|
|
23
|
+
await (0, tsparticles_slim_1.loadSlim)(engine);
|
|
24
|
+
await (0, tsparticles_updater_roll_1.loadRollUpdater)(engine);
|
|
25
|
+
await (0, tsparticles_updater_tilt_1.loadTiltUpdater)(engine);
|
|
26
|
+
await (0, tsparticles_updater_twinkle_1.loadTwinkleUpdater)(engine);
|
|
27
|
+
await (0, tsparticles_updater_wobble_1.loadWobbleUpdater)(engine);
|
|
28
|
+
await (0, tsparticles_interaction_external_trail_1.loadExternalTrailInteraction)(engine);
|
|
29
|
+
await (0, tsparticles_plugin_absorbers_1.loadAbsorbersPlugin)(engine);
|
|
30
|
+
await (0, tsparticles_plugin_emitters_1.loadEmittersPlugin)(engine);
|
|
31
|
+
await (0, tsparticles_plugin_polygon_mask_1.loadPolygonMaskPlugin)(engine);
|
|
32
|
+
}
|
|
33
|
+
exports.loadFull = loadFull;
|
|
34
|
+
});
|
package/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { loadAbsorbersPlugin } from "tsparticles-plugin-absorbers";
|
|
11
|
-
import { loadEmittersPlugin } from "tsparticles-plugin-emitters";
|
|
12
|
-
import { loadExternalTrailInteraction } from "tsparticles-interaction-external-trail";
|
|
13
|
-
import { loadPolygonMaskPlugin } from "tsparticles-plugin-polygon-mask";
|
|
14
|
-
import { loadRollUpdater } from "tsparticles-updater-roll";
|
|
15
|
-
import { loadSlim } from "tsparticles-slim";
|
|
16
|
-
import { loadTiltUpdater } from "tsparticles-updater-tilt";
|
|
17
|
-
import { loadWobbleUpdater } from "tsparticles-updater-wobble";
|
|
18
|
-
export function loadFull(engine) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
yield loadSlim(engine);
|
|
21
|
-
yield loadTiltUpdater(engine);
|
|
22
|
-
yield loadRollUpdater(engine);
|
|
23
|
-
yield loadWobbleUpdater(engine);
|
|
24
|
-
yield loadExternalTrailInteraction(engine);
|
|
25
|
-
yield loadAbsorbersPlugin(engine);
|
|
26
|
-
yield loadEmittersPlugin(engine);
|
|
27
|
-
yield loadPolygonMaskPlugin(engine);
|
|
28
|
-
});
|
|
29
|
-
}
|