tsparticles 2.8.0 → 3.0.0-alpha.1
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 +6 -3
- package/browser/bundle.js +3 -3
- package/browser/index.js +9 -9
- package/cjs/bundle.js +4 -4
- package/cjs/index.js +18 -18
- package/esm/bundle.js +3 -3
- package/esm/index.js +9 -9
- package/package.json +14 -11
- package/report.html +2 -2
- package/tsparticles.bundle.js +595 -676
- package/tsparticles.bundle.min.js +1 -1
- package/tsparticles.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.js +50 -50
- package/tsparticles.min.js +1 -1
- package/tsparticles.min.js.LICENSE.txt +1 -1
- package/types/bundle.d.ts +2 -2
- package/types/index.d.ts +1 -1
- package/umd/bundle.js +5 -5
- package/umd/index.js +19 -19
package/README.md
CHANGED
|
@@ -53,8 +53,11 @@ Once the scripts are loaded you can set up `tsParticles` like this:
|
|
|
53
53
|
(async () => {
|
|
54
54
|
await loadFull(tsParticles); // not needed if using the bundle script, required for any other installation
|
|
55
55
|
|
|
56
|
-
await tsParticles.load(
|
|
57
|
-
|
|
56
|
+
await tsParticles.load({
|
|
57
|
+
id: "tsparticles",
|
|
58
|
+
options: {
|
|
59
|
+
/* options */
|
|
60
|
+
},
|
|
58
61
|
});
|
|
59
62
|
})();
|
|
60
63
|
```
|
|
@@ -134,7 +137,7 @@ async function particlesInit(engine: Engine): Promise<void> {
|
|
|
134
137
|
### Angular
|
|
135
138
|
|
|
136
139
|
```html
|
|
137
|
-
<
|
|
140
|
+
<angular-particles [id]="id" [options]="options" [particlesInit]="particlesInit"></angular-particles>
|
|
138
141
|
```
|
|
139
142
|
|
|
140
143
|
```ts
|
package/browser/bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadFull } from ".";
|
|
2
|
-
import { tsParticles } from "tsparticles
|
|
2
|
+
import { tsParticles } from "@tsparticles/engine";
|
|
3
3
|
loadFull(tsParticles);
|
|
4
4
|
export { loadFull };
|
|
5
|
-
export * from "tsparticles
|
|
6
|
-
export * from "tsparticles
|
|
5
|
+
export * from "@tsparticles/slim";
|
|
6
|
+
export * from "@tsparticles/engine";
|
package/browser/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { loadAbsorbersPlugin } from "tsparticles
|
|
2
|
-
import { loadDestroyUpdater } from "tsparticles
|
|
3
|
-
import { loadEmittersPlugin } from "tsparticles
|
|
4
|
-
import { loadExternalTrailInteraction } from "tsparticles
|
|
5
|
-
import { loadRollUpdater } from "tsparticles
|
|
6
|
-
import { loadSlim } from "tsparticles
|
|
7
|
-
import { loadTiltUpdater } from "tsparticles
|
|
8
|
-
import { loadTwinkleUpdater } from "tsparticles
|
|
9
|
-
import { loadWobbleUpdater } from "tsparticles
|
|
1
|
+
import { loadAbsorbersPlugin } from "@tsparticles/plugin-absorbers";
|
|
2
|
+
import { loadDestroyUpdater } from "@tsparticles/updater-destroy";
|
|
3
|
+
import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
|
|
4
|
+
import { loadExternalTrailInteraction } from "@tsparticles/interaction-external-trail";
|
|
5
|
+
import { loadRollUpdater } from "@tsparticles/updater-roll";
|
|
6
|
+
import { loadSlim } from "@tsparticles/slim";
|
|
7
|
+
import { loadTiltUpdater } from "@tsparticles/updater-tilt";
|
|
8
|
+
import { loadTwinkleUpdater } from "@tsparticles/updater-twinkle";
|
|
9
|
+
import { loadWobbleUpdater } from "@tsparticles/updater-wobble";
|
|
10
10
|
export async function loadFull(engine) {
|
|
11
11
|
await loadSlim(engine);
|
|
12
12
|
await loadDestroyUpdater(engine);
|
package/cjs/bundle.js
CHANGED
|
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.loadFull = void 0;
|
|
18
18
|
const _1 = require(".");
|
|
19
19
|
Object.defineProperty(exports, "loadFull", { enumerable: true, get: function () { return _1.loadFull; } });
|
|
20
|
-
const
|
|
21
|
-
(0, _1.loadFull)(
|
|
22
|
-
__exportStar(require("tsparticles
|
|
23
|
-
__exportStar(require("tsparticles
|
|
20
|
+
const engine_1 = require("@tsparticles/engine");
|
|
21
|
+
(0, _1.loadFull)(engine_1.tsParticles);
|
|
22
|
+
__exportStar(require("@tsparticles/slim"), exports);
|
|
23
|
+
__exportStar(require("@tsparticles/engine"), exports);
|
package/cjs/index.js
CHANGED
|
@@ -10,26 +10,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.loadFull = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
13
|
+
const plugin_absorbers_1 = require("@tsparticles/plugin-absorbers");
|
|
14
|
+
const updater_destroy_1 = require("@tsparticles/updater-destroy");
|
|
15
|
+
const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
|
|
16
|
+
const interaction_external_trail_1 = require("@tsparticles/interaction-external-trail");
|
|
17
|
+
const updater_roll_1 = require("@tsparticles/updater-roll");
|
|
18
|
+
const slim_1 = require("@tsparticles/slim");
|
|
19
|
+
const updater_tilt_1 = require("@tsparticles/updater-tilt");
|
|
20
|
+
const updater_twinkle_1 = require("@tsparticles/updater-twinkle");
|
|
21
|
+
const updater_wobble_1 = require("@tsparticles/updater-wobble");
|
|
22
22
|
function loadFull(engine) {
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
yield (0,
|
|
25
|
-
yield (0,
|
|
26
|
-
yield (0,
|
|
27
|
-
yield (0,
|
|
28
|
-
yield (0,
|
|
29
|
-
yield (0,
|
|
30
|
-
yield (0,
|
|
31
|
-
yield (0,
|
|
32
|
-
yield (0,
|
|
24
|
+
yield (0, slim_1.loadSlim)(engine);
|
|
25
|
+
yield (0, updater_destroy_1.loadDestroyUpdater)(engine);
|
|
26
|
+
yield (0, updater_roll_1.loadRollUpdater)(engine);
|
|
27
|
+
yield (0, updater_tilt_1.loadTiltUpdater)(engine);
|
|
28
|
+
yield (0, updater_twinkle_1.loadTwinkleUpdater)(engine);
|
|
29
|
+
yield (0, updater_wobble_1.loadWobbleUpdater)(engine);
|
|
30
|
+
yield (0, interaction_external_trail_1.loadExternalTrailInteraction)(engine);
|
|
31
|
+
yield (0, plugin_absorbers_1.loadAbsorbersPlugin)(engine);
|
|
32
|
+
yield (0, plugin_emitters_1.loadEmittersPlugin)(engine);
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
exports.loadFull = loadFull;
|
package/esm/bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadFull } from ".";
|
|
2
|
-
import { tsParticles } from "tsparticles
|
|
2
|
+
import { tsParticles } from "@tsparticles/engine";
|
|
3
3
|
loadFull(tsParticles);
|
|
4
4
|
export { loadFull };
|
|
5
|
-
export * from "tsparticles
|
|
6
|
-
export * from "tsparticles
|
|
5
|
+
export * from "@tsparticles/slim";
|
|
6
|
+
export * from "@tsparticles/engine";
|
package/esm/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { loadAbsorbersPlugin } from "tsparticles
|
|
2
|
-
import { loadDestroyUpdater } from "tsparticles
|
|
3
|
-
import { loadEmittersPlugin } from "tsparticles
|
|
4
|
-
import { loadExternalTrailInteraction } from "tsparticles
|
|
5
|
-
import { loadRollUpdater } from "tsparticles
|
|
6
|
-
import { loadSlim } from "tsparticles
|
|
7
|
-
import { loadTiltUpdater } from "tsparticles
|
|
8
|
-
import { loadTwinkleUpdater } from "tsparticles
|
|
9
|
-
import { loadWobbleUpdater } from "tsparticles
|
|
1
|
+
import { loadAbsorbersPlugin } from "@tsparticles/plugin-absorbers";
|
|
2
|
+
import { loadDestroyUpdater } from "@tsparticles/updater-destroy";
|
|
3
|
+
import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
|
|
4
|
+
import { loadExternalTrailInteraction } from "@tsparticles/interaction-external-trail";
|
|
5
|
+
import { loadRollUpdater } from "@tsparticles/updater-roll";
|
|
6
|
+
import { loadSlim } from "@tsparticles/slim";
|
|
7
|
+
import { loadTiltUpdater } from "@tsparticles/updater-tilt";
|
|
8
|
+
import { loadTwinkleUpdater } from "@tsparticles/updater-twinkle";
|
|
9
|
+
import { loadWobbleUpdater } from "@tsparticles/updater-wobble";
|
|
10
10
|
export async function loadFull(engine) {
|
|
11
11
|
await loadSlim(engine);
|
|
12
12
|
await loadDestroyUpdater(engine);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsparticles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.1",
|
|
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
|
"repository": {
|
|
@@ -75,16 +75,19 @@
|
|
|
75
75
|
"jsdelivr": "tsparticles.bundle.min.js",
|
|
76
76
|
"unpkg": "tsparticles.bundle.min.js",
|
|
77
77
|
"types": "types/index.d.ts",
|
|
78
|
+
"publishConfig": {
|
|
79
|
+
"access": "public"
|
|
80
|
+
},
|
|
78
81
|
"dependencies": {
|
|
79
|
-
"tsparticles
|
|
80
|
-
"tsparticles
|
|
81
|
-
"tsparticles
|
|
82
|
-
"tsparticles
|
|
83
|
-
"tsparticles
|
|
84
|
-
"tsparticles
|
|
85
|
-
"tsparticles
|
|
86
|
-
"tsparticles
|
|
87
|
-
"tsparticles
|
|
88
|
-
"tsparticles
|
|
82
|
+
"@tsparticles/engine": "^3.0.0-alpha.1",
|
|
83
|
+
"@tsparticles/interaction-external-trail": "^3.0.0-alpha.1",
|
|
84
|
+
"@tsparticles/plugin-absorbers": "^3.0.0-alpha.1",
|
|
85
|
+
"@tsparticles/plugin-emitters": "^3.0.0-alpha.1",
|
|
86
|
+
"@tsparticles/slim": "^3.0.0-alpha.1",
|
|
87
|
+
"@tsparticles/updater-destroy": "^3.0.0-alpha.1",
|
|
88
|
+
"@tsparticles/updater-roll": "^3.0.0-alpha.1",
|
|
89
|
+
"@tsparticles/updater-tilt": "^3.0.0-alpha.1",
|
|
90
|
+
"@tsparticles/updater-twinkle": "^3.0.0-alpha.1",
|
|
91
|
+
"@tsparticles/updater-wobble": "^3.0.0-alpha.1"
|
|
89
92
|
}
|
|
90
93
|
}
|