tsparticles 2.0.4 → 2.0.5

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.
@@ -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
- * v2.0.4
7
+ * v2.0.5
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
@@ -11700,6 +11700,34 @@ function loadRollUpdater(engine) {
11700
11700
  yield engine.addParticleUpdater("roll", () => new RollUpdater());
11701
11701
  });
11702
11702
  }
11703
+ ;// CONCATENATED MODULE: ../pjs/dist/index.js
11704
+ const initPjs = engine => {
11705
+ const particlesJS = (tagId, options) => {
11706
+ return engine.load(tagId, options);
11707
+ };
11708
+
11709
+ particlesJS.load = (tagId, pathConfigJson, callback) => {
11710
+ engine.loadJSON(tagId, pathConfigJson).then(container => {
11711
+ if (container) {
11712
+ callback(container);
11713
+ }
11714
+ }).catch(() => {
11715
+ callback(undefined);
11716
+ });
11717
+ };
11718
+
11719
+ particlesJS.setOnClickHandler = callback => {
11720
+ engine.setOnClickHandler(callback);
11721
+ };
11722
+
11723
+ const pJSDom = engine.dom();
11724
+ return {
11725
+ particlesJS,
11726
+ pJSDom
11727
+ };
11728
+ };
11729
+
11730
+
11703
11731
  ;// CONCATENATED MODULE: ../../updaters/angle/dist/AngleUpdater.js
11704
11732
 
11705
11733
 
@@ -16670,6 +16698,7 @@ var slim_dist_awaiter = undefined && undefined.__awaiter || function (thisArg, _
16670
16698
 
16671
16699
 
16672
16700
 
16701
+
16673
16702
 
16674
16703
 
16675
16704
  function loadSlim(engine) {
@@ -16702,6 +16731,7 @@ function loadSlim(engine) {
16702
16731
  yield loadColorUpdater(engine);
16703
16732
  yield loadStrokeColorUpdater(engine);
16704
16733
  yield loadOutModesUpdater(engine);
16734
+ yield initPjs(engine);
16705
16735
  });
16706
16736
  }
16707
16737
  ;// CONCATENATED MODULE: ../../updaters/tilt/dist/TiltUpdater.js