tsparticles 2.0.0-beta.1 → 2.0.0-beta.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.
package/107.js CHANGED
@@ -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.0-beta.1
7
+ * v2.0.0-beta.5
8
8
  */
9
9
  "use strict";
10
10
  (this["webpackChunktsparticles"] = this["webpackChunktsparticles"] || []).push([[107],{
@@ -1188,9 +1188,9 @@
1188
1188
  if (!("getPathSegAtLength" in window.SVGPathElement.prototype)) {
1189
1189
  window.SVGPathElement.prototype.getPathSegAtLength = function (distance) {
1190
1190
  if (distance === undefined || !isFinite(distance)) throw "Invalid arguments.";
1191
- var measurementElement = document.createElementNS("http://www.w3.org/2000/svg", "path");
1191
+ const measurementElement = document.createElementNS("http://www.w3.org/2000/svg", "path");
1192
1192
  measurementElement.setAttribute("d", this.getAttribute("d"));
1193
- var lastPathSegment = measurementElement.pathSegList.numberOfItems - 1;
1193
+ let lastPathSegment = measurementElement.pathSegList.numberOfItems - 1;
1194
1194
  if (lastPathSegment <= 0) return 0;
1195
1195
 
1196
1196
  do {
@@ -1266,7 +1266,7 @@
1266
1266
 
1267
1267
  window.SVGPathSegList.prototype._updateListFromPathMutations = function (mutationRecords) {
1268
1268
  if (!this._pathElement) return;
1269
- var hasPathMutations = false;
1269
+ let hasPathMutations = false;
1270
1270
  mutationRecords.forEach(function (record) {
1271
1271
  if (record.attributeName == "d") hasPathMutations = true;
1272
1272
  });
@@ -1360,7 +1360,7 @@
1360
1360
 
1361
1361
  this._checkValidIndex(index);
1362
1362
 
1363
- var item = this._list[index];
1363
+ const item = this._list[index];
1364
1364
 
1365
1365
  this._list.splice(index, 1);
1366
1366
 
@@ -1386,8 +1386,8 @@
1386
1386
  };
1387
1387
 
1388
1388
  window.SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
1389
- var string = "";
1390
- var first = true;
1389
+ let string = "";
1390
+ let first = true;
1391
1391
  pathSegArray.forEach(function (pathSeg) {
1392
1392
  if (first) {
1393
1393
  first = false;
@@ -1401,9 +1401,9 @@
1401
1401
 
1402
1402
  window.SVGPathSegList.prototype._parsePath = function (string) {
1403
1403
  if (!string || string.length == 0) return [];
1404
- var owningPathSegList = this;
1404
+ const owningPathSegList = this;
1405
1405
 
1406
- var Builder = function () {
1406
+ const Builder = function () {
1407
1407
  this.pathSegList = [];
1408
1408
  };
1409
1409
 
@@ -1411,7 +1411,7 @@
1411
1411
  this.pathSegList.push(pathSeg);
1412
1412
  };
1413
1413
 
1414
- var Source = function (string) {
1414
+ const Source = function (string) {
1415
1415
  this._string = string;
1416
1416
  this._currentIndex = 0;
1417
1417
  this._endIndex = this._string.length;
@@ -1421,7 +1421,7 @@
1421
1421
  };
1422
1422
 
1423
1423
  Source.prototype._isCurrentSpace = function () {
1424
- var character = this._string[this._currentIndex];
1424
+ const character = this._string[this._currentIndex];
1425
1425
  return character <= " " && (character == " " || character == "\n" || character == "\t" || character == "\r" || character == "\f");
1426
1426
  };
1427
1427
 
@@ -1450,7 +1450,7 @@
1450
1450
  };
1451
1451
 
1452
1452
  Source.prototype.peekSegmentType = function () {
1453
- var lookahead = this._string[this._currentIndex];
1453
+ const lookahead = this._string[this._currentIndex];
1454
1454
  return this._pathSegTypeFromChar(lookahead);
1455
1455
  };
1456
1456
 
@@ -1531,18 +1531,18 @@
1531
1531
 
1532
1532
  Source.prototype.initialCommandIsMoveTo = function () {
1533
1533
  if (!this.hasMoreData()) return true;
1534
- var command = this.peekSegmentType();
1534
+ const command = this.peekSegmentType();
1535
1535
  return command == window.SVGPathSeg.PATHSEG_MOVETO_ABS || command == window.SVGPathSeg.PATHSEG_MOVETO_REL;
1536
1536
  };
1537
1537
 
1538
1538
  Source.prototype._parseNumber = function () {
1539
- var exponent = 0;
1540
- var integer = 0;
1541
- var frac = 1;
1542
- var decimal = 0;
1543
- var sign = 1;
1544
- var expsign = 1;
1545
- var startIndex = this._currentIndex;
1539
+ let exponent = 0;
1540
+ let integer = 0;
1541
+ let frac = 1;
1542
+ let decimal = 0;
1543
+ let sign = 1;
1544
+ let expsign = 1;
1545
+ const startIndex = this._currentIndex;
1546
1546
 
1547
1547
  this._skipOptionalSpaces();
1548
1548
 
@@ -1551,13 +1551,13 @@
1551
1551
  sign = -1;
1552
1552
  }
1553
1553
  if (this._currentIndex == this._endIndex || (this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") && this._string.charAt(this._currentIndex) != ".") return undefined;
1554
- var startIntPartIndex = this._currentIndex;
1554
+ const startIntPartIndex = this._currentIndex;
1555
1555
 
1556
1556
  while (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= "0" && this._string.charAt(this._currentIndex) <= "9") this._currentIndex++;
1557
1557
 
1558
1558
  if (this._currentIndex != startIntPartIndex) {
1559
- var scanIntPartIndex = this._currentIndex - 1;
1560
- var multiplier = 1;
1559
+ let scanIntPartIndex = this._currentIndex - 1;
1560
+ let multiplier = 1;
1561
1561
 
1562
1562
  while (scanIntPartIndex >= startIntPartIndex) {
1563
1563
  integer += multiplier * (this._string.charAt(scanIntPartIndex--) - "0");
@@ -1595,7 +1595,7 @@
1595
1595
  }
1596
1596
  }
1597
1597
 
1598
- var number = integer + decimal;
1598
+ let number = integer + decimal;
1599
1599
  number *= sign;
1600
1600
  if (exponent) number *= Math.pow(10, expsign * exponent);
1601
1601
  if (startIndex == this._currentIndex) return undefined;
@@ -1607,9 +1607,9 @@
1607
1607
 
1608
1608
  Source.prototype._parseArcFlag = function () {
1609
1609
  if (this._currentIndex >= this._endIndex) return undefined;
1610
- var flag = false;
1610
+ let flag = false;
1611
1611
 
1612
- var flagChar = this._string.charAt(this._currentIndex++);
1612
+ const flagChar = this._string.charAt(this._currentIndex++);
1613
1613
 
1614
1614
  if (flagChar == "0") flag = false;else if (flagChar == "1") flag = true;else return undefined;
1615
1615
 
@@ -1619,9 +1619,9 @@
1619
1619
  };
1620
1620
 
1621
1621
  Source.prototype.parseSegment = function () {
1622
- var lookahead = this._string[this._currentIndex];
1622
+ const lookahead = this._string[this._currentIndex];
1623
1623
 
1624
- var command = this._pathSegTypeFromChar(lookahead);
1624
+ let command = this._pathSegTypeFromChar(lookahead);
1625
1625
 
1626
1626
  if (command == window.SVGPathSeg.PATHSEG_UNKNOWN) {
1627
1627
  if (this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN) return null;
@@ -1632,6 +1632,7 @@
1632
1632
  }
1633
1633
 
1634
1634
  this._previousCommand = command;
1635
+ let points;
1635
1636
 
1636
1637
  switch (command) {
1637
1638
  case window.SVGPathSeg.PATHSEG_MOVETO_REL:
@@ -1664,7 +1665,7 @@
1664
1665
  return new window.SVGPathSegClosePath(owningPathSegList);
1665
1666
 
1666
1667
  case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:
1667
- var points = {
1668
+ points = {
1668
1669
  x1: this._parseNumber(),
1669
1670
  y1: this._parseNumber(),
1670
1671
  x2: this._parseNumber(),
@@ -1675,7 +1676,7 @@
1675
1676
  return new window.SVGPathSegCurvetoCubicRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);
1676
1677
 
1677
1678
  case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:
1678
- var points = {
1679
+ points = {
1679
1680
  x1: this._parseNumber(),
1680
1681
  y1: this._parseNumber(),
1681
1682
  x2: this._parseNumber(),
@@ -1686,7 +1687,7 @@
1686
1687
  return new window.SVGPathSegCurvetoCubicAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);
1687
1688
 
1688
1689
  case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:
1689
- var points = {
1690
+ points = {
1690
1691
  x2: this._parseNumber(),
1691
1692
  y2: this._parseNumber(),
1692
1693
  x: this._parseNumber(),
@@ -1695,7 +1696,7 @@
1695
1696
  return new window.SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, points.x, points.y, points.x2, points.y2);
1696
1697
 
1697
1698
  case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:
1698
- var points = {
1699
+ points = {
1699
1700
  x2: this._parseNumber(),
1700
1701
  y2: this._parseNumber(),
1701
1702
  x: this._parseNumber(),
@@ -1704,7 +1705,7 @@
1704
1705
  return new window.SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, points.x, points.y, points.x2, points.y2);
1705
1706
 
1706
1707
  case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:
1707
- var points = {
1708
+ points = {
1708
1709
  x1: this._parseNumber(),
1709
1710
  y1: this._parseNumber(),
1710
1711
  x: this._parseNumber(),
@@ -1713,7 +1714,7 @@
1713
1714
  return new window.SVGPathSegCurvetoQuadraticRel(owningPathSegList, points.x, points.y, points.x1, points.y1);
1714
1715
 
1715
1716
  case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:
1716
- var points = {
1717
+ points = {
1717
1718
  x1: this._parseNumber(),
1718
1719
  y1: this._parseNumber(),
1719
1720
  x: this._parseNumber(),
@@ -1728,7 +1729,7 @@
1728
1729
  return new window.SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, this._parseNumber(), this._parseNumber());
1729
1730
 
1730
1731
  case window.SVGPathSeg.PATHSEG_ARC_REL:
1731
- var points = {
1732
+ points = {
1732
1733
  x1: this._parseNumber(),
1733
1734
  y1: this._parseNumber(),
1734
1735
  arcAngle: this._parseNumber(),
@@ -1740,7 +1741,7 @@
1740
1741
  return new window.SVGPathSegArcRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);
1741
1742
 
1742
1743
  case window.SVGPathSeg.PATHSEG_ARC_ABS:
1743
- var points = {
1744
+ points = {
1744
1745
  x1: this._parseNumber(),
1745
1746
  y1: this._parseNumber(),
1746
1747
  arcAngle: this._parseNumber(),
@@ -1756,12 +1757,12 @@
1756
1757
  }
1757
1758
  };
1758
1759
 
1759
- var builder = new Builder();
1760
- var source = new Source(string);
1760
+ const builder = new Builder();
1761
+ const source = new Source(string);
1761
1762
  if (!source.initialCommandIsMoveTo()) return [];
1762
1763
 
1763
1764
  while (source.hasMoreData()) {
1764
- var pathSeg = source.parseSegment();
1765
+ const pathSeg = source.parseSegment();
1765
1766
  if (!pathSeg) return [];
1766
1767
  builder.appendSegment(pathSeg);
1767
1768
  }
package/README.md CHANGED
@@ -1,92 +1,87 @@
1
1
  [![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org)
2
2
 
3
- # tsParticles Bubbles Preset
3
+ # tsParticles Full Bundle
4
4
 
5
- [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-preset-bubbles/badge)](https://www.jsdelivr.com/package/npm/tsparticles) [![npmjs](https://badge.fury.io/js/tsparticles-preset-bubbles.svg)](https://www.npmjs.com/package/tsparticles-preset-bubbles) [![npmjs](https://img.shields.io/npm/dt/tsparticles-preset-bubbles)](https://www.npmjs.com/package/tsparticles-preset-bubbles)
5
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles/badge)](https://www.jsdelivr.com/package/npm/tsparticles) [![npmjs](https://badge.fury.io/js/tsparticles.svg)](https://www.npmjs.com/package/tsparticles) [![npmjs](https://img.shields.io/npm/dt/tsparticles)](https://www.npmjs.com/package/tsparticles)
6
6
 
7
- [tsParticles](https://github.com/matteobruni/tsparticles) preset for colored bubbles coming from the bottom of the
8
- screen on a white background.
7
+ [tsParticles](https://github.com/matteobruni/tsparticles) full bundle loads all the v1 features to
8
+ a `tsparticles-engine` instance.
9
9
 
10
- ## Sample
10
+ **Included Packages**
11
11
 
12
- ![demo](https://raw.githubusercontent.com/matteobruni/tsparticles/v1/presets/bubbles/images/sample.png)
12
+ - tsparticles-engine
13
+ - tsparticles-slim (and all its dependencies)
14
+ - tsparticles-interaction-external-trail
15
+ - tsparticles-plugin-absorbers
16
+ - tsparticles-plugin-emitters
17
+ - tsparticles-plugin-polygon-mask
18
+ - tsparticles-updater-roll
19
+ - tsparticles-updater-tilt
20
+ - tsparticles-updater-wobble
13
21
 
14
22
  ## How to use it
15
23
 
16
24
  ### CDN / Vanilla JS / jQuery
17
25
 
18
- The first step is installing [tsParticles](https://github.com/matteobruni/tsparticles) following the instructions for
19
- vanilla javascript in the main project [here](https://github.com/matteobruni/tsparticles)
26
+ The CDN/Vanilla version JS has two different files:
20
27
 
21
- Once installed you need one more script to be included in your page (or you can download that
22
- from [jsDelivr](https://www.jsdelivr.com/package/npm/tsparticles-preset-bubbles):
23
-
24
- ```html
25
- <script src="https://cdn.jsdelivr.net/npm/tsparticles"></script>
26
- <script src="https://cdn.jsdelivr.net/npm/tsparticles-preset-bubbles"></script>
27
- ```
28
-
29
- This script **MUST** be placed after the `tsParticles` one.
28
+ - One is a bundle file with all the scripts included in a single file
29
+ - One is a file including just the `loadFull` function to load the tsParticles full preset, all dependencies must be
30
+ included manually
30
31
 
31
32
  #### Bundle
32
33
 
33
- A bundled script can also be used, this will include every needed plugin needed by the preset.
34
+ Including the `tsparticles.bundle.min.js` file will work exactly like `v1`, you can start using the `tsParticles`
35
+ instance in the same way.
34
36
 
35
- ```html
36
- <script src="https://cdn.jsdelivr.net/npm/tsparticles-preset-bubbles/dist/tsparticles.preset.bubbles.bundle.min.js"></script>
37
- ```
37
+ This is the easiest usage, since it's a single file with the same `v1` features.
38
38
 
39
- ### Usage
39
+ All new features will be added as external packages, this bundle is recommended for migrating from `v1` easily.
40
40
 
41
- Once the scripts are loaded you can set up `tsParticles` like this:
41
+ #### Not Bundle
42
42
 
43
- ```javascript
44
- loadBubblesPreset(tsParticles);
43
+ This installation requires more work since all dependencies must be included in the page. Some lines above are all
44
+ specified in the **Included Packages** section.
45
45
 
46
- tsParticles.load("tsparticles", {
47
- preset: "bubbles",
48
- });
49
- ```
46
+ A note about `tsparticles-slim` can be made: it's not mandatory to include all of its dependencies, the slim bundle file
47
+ is enough, and if this is done the `tsparticles-engine` is not needed, since it's already bundled in the slim bundle.
50
48
 
51
- #### Customization
49
+ ### Usage
52
50
 
53
- **Important ⚠️**
54
- You can override all the options defining the properties like in any standard `tsParticles` installation.
51
+ Once the scripts are loaded you can set up `tsParticles` like this:
55
52
 
56
53
  ```javascript
54
+ loadFull(tsParticles); // not needed if using the bundle script, required for any other installation
55
+
57
56
  tsParticles.load("tsparticles", {
58
- particles: {
59
- shape: {
60
- type: "square",
61
- },
62
- },
63
- preset: "bubbles",
57
+ /* options */
64
58
  });
65
59
  ```
66
60
 
67
- Like in the sample above, the circles will be replaced by squares.
68
-
69
61
  ### React.js / Preact / Inferno
70
62
 
71
63
  _The syntax for `React.js`, `Preact` and `Inferno` is the same_.
72
64
 
73
65
  This sample uses the class component syntax, but you can use hooks as well (if the library supports it).
74
66
 
75
- ```javascript
67
+ _Class Components_
68
+
69
+ ```typescript jsx
70
+ import React from "react";
76
71
  import Particles from "react-tsparticles";
77
- import { Main } from "tsparticles-engine";
78
- import { loadBubblesPreset } from "tsparticles-preset-bubbles";
72
+ import type { Engine } from "tsparticles-engine";
73
+ import { loadFull } from "tsparticles";
79
74
 
80
- export class ParticlesContainer extends React.PureComponent<IProps> {
75
+ export class ParticlesContainer extends PureComponent<unknown> {
81
76
  // this customizes the component tsParticles installation
82
- customInit(main: Main) {
83
- // this adds the preset to tsParticles, you can safely use the
84
- loadBubblesPreset(main);
77
+ customInit(engine: Engine) {
78
+ // this adds the bundle to tsParticles
79
+ loadFull(engine);
85
80
  }
86
81
 
87
82
  render() {
88
83
  const options = {
89
- preset: "bubbles",
84
+ /* custom options */
90
85
  };
91
86
 
92
87
  return <Particles options={options} init={this.customInit} />;
@@ -94,6 +89,29 @@ export class ParticlesContainer extends React.PureComponent<IProps> {
94
89
  }
95
90
  ```
96
91
 
92
+ _Hooks / Functional Components_
93
+
94
+ ```typescript jsx
95
+ import React, { useCallback } from "react";
96
+ import Particles from "react-tsparticles";
97
+ import type { Engine } from "tsparticles-engine";
98
+ import { loadFull } from "tsparticles";
99
+
100
+ export function ParticlesContainer(props: unknown) {
101
+ // this customizes the component tsParticles installation
102
+ const customInit = useCallback((engine: Engine) => {
103
+ // this adds the bundle to tsParticles
104
+ loadFull(engine);
105
+ });
106
+
107
+ const options = {
108
+ /* custom options */
109
+ };
110
+
111
+ return <Particles options={options} init={this.customInit} />;
112
+ }
113
+ ```
114
+
97
115
  ### Vue (2.x and 3.x)
98
116
 
99
117
  _The syntax for `Vue.js 2.x` and `3.x` is the same_
@@ -103,8 +121,8 @@ _The syntax for `Vue.js 2.x` and `3.x` is the same_
103
121
  ```
104
122
 
105
123
  ```js
106
- function particlesInit(main: Main) {
107
- loadBubblesPreset(main);
124
+ function particlesInit(engine: Engine) {
125
+ loadFull(engine);
108
126
  }
109
127
  ```
110
128
 
@@ -120,8 +138,8 @@ function particlesInit(main: Main) {
120
138
  ```
121
139
 
122
140
  ```ts
123
- function particlesInit(main: Main): void {
124
- loadBubblesPreset(main);
141
+ function particlesInit(engine: Engine): void {
142
+ loadFull(engine);
125
143
  }
126
144
  ```
127
145
 
@@ -137,7 +155,7 @@ function particlesInit(main: Main): void {
137
155
  ```
138
156
 
139
157
  ```js
140
- let onParticlesInit = (main) => {
141
- loadBubblesPreset(main);
158
+ let onParticlesInit = (engine) => {
159
+ loadFull(engine);
142
160
  };
143
161
  ```
package/bundle.js CHANGED
@@ -1,5 +1,5 @@
1
- import { tsParticles } from "tsparticles-engine";
2
1
  import { loadFull } from ".";
2
+ import { tsParticles } from "tsparticles-engine";
3
3
  loadFull(tsParticles);
4
4
  export { loadFull };
5
5
  export * from "tsparticles-slim";
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import type { Main } from "tsparticles-engine";
2
- export declare function loadFull(tsParticles: Main): void;
1
+ import type { Engine } from "tsparticles-engine";
2
+ export declare function loadFull(engine: Engine): Promise<void>;
package/index.js CHANGED
@@ -1,12 +1,29 @@
1
- import { loadSlim } from "tsparticles-slim";
2
- import { loadExternalTrailInteraction } from "tsparticles-interaction-external-trail";
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
+ };
3
10
  import { loadAbsorbersPlugin } from "tsparticles-plugin-absorbers";
4
11
  import { loadEmittersPlugin } from "tsparticles-plugin-emitters";
12
+ import { loadExternalTrailInteraction } from "tsparticles-interaction-external-trail";
5
13
  import { loadPolygonMaskPlugin } from "tsparticles-plugin-polygon-mask";
6
- export function loadFull(tsParticles) {
7
- loadSlim(tsParticles);
8
- loadExternalTrailInteraction(tsParticles);
9
- loadAbsorbersPlugin(tsParticles);
10
- loadEmittersPlugin(tsParticles);
11
- loadPolygonMaskPlugin(tsParticles);
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
+ });
12
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsparticles",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.5",
4
4
  "description": "Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.",
5
5
  "homepage": "https://particles.js.org/",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/matteobruni/tsparticles.git",
12
- "directory": "core/main"
12
+ "directory": "bundles/full"
13
13
  },
14
14
  "keywords": [
15
15
  "tsparticles",
@@ -51,11 +51,6 @@
51
51
  "background"
52
52
  ],
53
53
  "author": "Matteo Bruni <matteo.bruni@me.com>",
54
- "contributors": [
55
- "Gabriel Barker (https://github.com/gabrielbarker)",
56
- "Tyler Burnett (https://github.com/TylerBurnett)",
57
- "Jonathan Adams (https://github.com/PieceMaker)"
58
- ],
59
54
  "license": "MIT",
60
55
  "bugs": {
61
56
  "url": "https://github.com/matteobruni/tsparticles/issues"
@@ -71,11 +66,14 @@
71
66
  "browser": "index.js",
72
67
  "types": "index.d.ts",
73
68
  "dependencies": {
74
- "tsparticles-engine": "^2.0.0-beta.0",
75
- "tsparticles-interaction-external-trail": "^2.0.0-beta.1",
76
- "tsparticles-plugin-absorbers": "^2.0.0-beta.1",
77
- "tsparticles-plugin-emitters": "^2.0.0-beta.1",
78
- "tsparticles-plugin-polygon-mask": "^2.0.0-beta.1",
79
- "tsparticles-slim": "^2.0.0-beta.1"
69
+ "tsparticles-engine": "^2.0.0-beta.4",
70
+ "tsparticles-interaction-external-trail": "^2.0.0-beta.5",
71
+ "tsparticles-plugin-absorbers": "^2.0.0-beta.5",
72
+ "tsparticles-plugin-emitters": "^2.0.0-beta.5",
73
+ "tsparticles-plugin-polygon-mask": "^2.0.0-beta.5",
74
+ "tsparticles-slim": "^2.0.0-beta.5",
75
+ "tsparticles-updater-roll": "^2.0.0-beta.5",
76
+ "tsparticles-updater-tilt": "^2.0.0-beta.5",
77
+ "tsparticles-updater-wobble": "^2.0.0-beta.5"
80
78
  }
81
79
  }