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 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("tsparticles", {
57
- /* options */
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
- <ng-particles [id]="id" [options]="options" [particlesInit]="particlesInit"></ng-particles>
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-engine";
2
+ import { tsParticles } from "@tsparticles/engine";
3
3
  loadFull(tsParticles);
4
4
  export { loadFull };
5
- export * from "tsparticles-slim";
6
- export * from "tsparticles-engine";
5
+ export * from "@tsparticles/slim";
6
+ export * from "@tsparticles/engine";
package/browser/index.js CHANGED
@@ -1,12 +1,12 @@
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";
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 tsparticles_engine_1 = require("tsparticles-engine");
21
- (0, _1.loadFull)(tsparticles_engine_1.tsParticles);
22
- __exportStar(require("tsparticles-slim"), exports);
23
- __exportStar(require("tsparticles-engine"), exports);
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 tsparticles_plugin_absorbers_1 = require("tsparticles-plugin-absorbers");
14
- const tsparticles_updater_destroy_1 = require("tsparticles-updater-destroy");
15
- const tsparticles_plugin_emitters_1 = require("tsparticles-plugin-emitters");
16
- const tsparticles_interaction_external_trail_1 = require("tsparticles-interaction-external-trail");
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");
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, tsparticles_slim_1.loadSlim)(engine);
25
- yield (0, tsparticles_updater_destroy_1.loadDestroyUpdater)(engine);
26
- yield (0, tsparticles_updater_roll_1.loadRollUpdater)(engine);
27
- yield (0, tsparticles_updater_tilt_1.loadTiltUpdater)(engine);
28
- yield (0, tsparticles_updater_twinkle_1.loadTwinkleUpdater)(engine);
29
- yield (0, tsparticles_updater_wobble_1.loadWobbleUpdater)(engine);
30
- yield (0, tsparticles_interaction_external_trail_1.loadExternalTrailInteraction)(engine);
31
- yield (0, tsparticles_plugin_absorbers_1.loadAbsorbersPlugin)(engine);
32
- yield (0, tsparticles_plugin_emitters_1.loadEmittersPlugin)(engine);
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-engine";
2
+ import { tsParticles } from "@tsparticles/engine";
3
3
  loadFull(tsParticles);
4
4
  export { loadFull };
5
- export * from "tsparticles-slim";
6
- export * from "tsparticles-engine";
5
+ export * from "@tsparticles/slim";
6
+ export * from "@tsparticles/engine";
package/esm/index.js CHANGED
@@ -1,12 +1,12 @@
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";
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": "2.8.0",
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-engine": "^2.8.0",
80
- "tsparticles-interaction-external-trail": "^2.8.0",
81
- "tsparticles-plugin-absorbers": "^2.8.0",
82
- "tsparticles-plugin-emitters": "^2.8.0",
83
- "tsparticles-slim": "^2.8.0",
84
- "tsparticles-updater-destroy": "^2.8.0",
85
- "tsparticles-updater-roll": "^2.8.0",
86
- "tsparticles-updater-tilt": "^2.8.0",
87
- "tsparticles-updater-twinkle": "^2.8.0",
88
- "tsparticles-updater-wobble": "^2.8.0"
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
  }