@tsparticles/particles 4.0.4 → 4.1.0
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/browser/ParticlesInstance.js +5 -5
- package/browser/particles.js +2 -2
- package/browser/particles.lazy.js +2 -2
- package/cjs/ParticlesInstance.js +5 -5
- package/cjs/particles.js +2 -2
- package/cjs/particles.lazy.js +2 -2
- package/esm/ParticlesInstance.js +5 -5
- package/esm/particles.js +2 -2
- package/esm/particles.lazy.js +2 -2
- package/package.json +6 -6
- package/report.html +1 -1
- package/tsparticles.particles.bundle.js +1090 -1000
- package/tsparticles.particles.bundle.min.js +1 -1
- package/tsparticles.particles.js +8 -8
- package/tsparticles.particles.min.js +1 -1
- package/types/ParticlesInstance.d.ts +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export class ParticlesInstance {
|
|
2
|
-
|
|
2
|
+
#container;
|
|
3
3
|
constructor(container) {
|
|
4
|
-
this
|
|
4
|
+
this.#container = container;
|
|
5
5
|
}
|
|
6
6
|
pause() {
|
|
7
|
-
this.
|
|
7
|
+
this.#container.pause();
|
|
8
8
|
}
|
|
9
9
|
play() {
|
|
10
|
-
this.
|
|
10
|
+
this.#container.play();
|
|
11
11
|
}
|
|
12
12
|
stop() {
|
|
13
|
-
this.
|
|
13
|
+
this.#container.stop();
|
|
14
14
|
}
|
|
15
15
|
}
|
package/browser/particles.js
CHANGED
|
@@ -6,7 +6,7 @@ import { loadParticlesCollisionsInteraction } from "@tsparticles/interaction-par
|
|
|
6
6
|
import { loadParticlesLinksInteraction } from "@tsparticles/interaction-particles-links";
|
|
7
7
|
let initPromise = null;
|
|
8
8
|
async function doInitPlugins(engine) {
|
|
9
|
-
engine.checkVersion("4.0
|
|
9
|
+
engine.checkVersion("4.1.0");
|
|
10
10
|
await engine.pluginManager.register(async (e) => {
|
|
11
11
|
const loadParticlesInteractivity = async (e) => {
|
|
12
12
|
await loadInteractivityPlugin(e);
|
|
@@ -49,5 +49,5 @@ particles.create = async (canvas, options) => {
|
|
|
49
49
|
particles.init = async () => {
|
|
50
50
|
await initPlugins(tsParticles);
|
|
51
51
|
};
|
|
52
|
-
particles.version = "4.0
|
|
52
|
+
particles.version = "4.1.0";
|
|
53
53
|
globalThis.particles = particles;
|
|
@@ -2,7 +2,7 @@ import { isString, tsParticles } from "@tsparticles/engine/lazy";
|
|
|
2
2
|
import { getParticlesInstance } from "./utils.js";
|
|
3
3
|
let initPromise = null;
|
|
4
4
|
async function doInitPlugins(engine) {
|
|
5
|
-
engine.checkVersion("4.0
|
|
5
|
+
engine.checkVersion("4.1.0");
|
|
6
6
|
await engine.pluginManager.register(async (e) => {
|
|
7
7
|
const [{ loadBasic }, { loadInteractivityPlugin }, { loadParticlesCollisionsInteraction }, { loadParticlesLinksInteraction },] = await Promise.all([
|
|
8
8
|
import("@tsparticles/basic/lazy"),
|
|
@@ -50,5 +50,5 @@ particles.create = async (canvas, options) => {
|
|
|
50
50
|
particles.init = async () => {
|
|
51
51
|
await initPlugins(tsParticles);
|
|
52
52
|
};
|
|
53
|
-
particles.version = "4.0
|
|
53
|
+
particles.version = "4.1.0";
|
|
54
54
|
globalThis.particles = particles;
|
package/cjs/ParticlesInstance.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export class ParticlesInstance {
|
|
2
|
-
|
|
2
|
+
#container;
|
|
3
3
|
constructor(container) {
|
|
4
|
-
this
|
|
4
|
+
this.#container = container;
|
|
5
5
|
}
|
|
6
6
|
pause() {
|
|
7
|
-
this.
|
|
7
|
+
this.#container.pause();
|
|
8
8
|
}
|
|
9
9
|
play() {
|
|
10
|
-
this.
|
|
10
|
+
this.#container.play();
|
|
11
11
|
}
|
|
12
12
|
stop() {
|
|
13
|
-
this.
|
|
13
|
+
this.#container.stop();
|
|
14
14
|
}
|
|
15
15
|
}
|
package/cjs/particles.js
CHANGED
|
@@ -6,7 +6,7 @@ import { loadParticlesCollisionsInteraction } from "@tsparticles/interaction-par
|
|
|
6
6
|
import { loadParticlesLinksInteraction } from "@tsparticles/interaction-particles-links";
|
|
7
7
|
let initPromise = null;
|
|
8
8
|
async function doInitPlugins(engine) {
|
|
9
|
-
engine.checkVersion("4.0
|
|
9
|
+
engine.checkVersion("4.1.0");
|
|
10
10
|
await engine.pluginManager.register(async (e) => {
|
|
11
11
|
const loadParticlesInteractivity = async (e) => {
|
|
12
12
|
await loadInteractivityPlugin(e);
|
|
@@ -49,5 +49,5 @@ particles.create = async (canvas, options) => {
|
|
|
49
49
|
particles.init = async () => {
|
|
50
50
|
await initPlugins(tsParticles);
|
|
51
51
|
};
|
|
52
|
-
particles.version = "4.0
|
|
52
|
+
particles.version = "4.1.0";
|
|
53
53
|
globalThis.particles = particles;
|
package/cjs/particles.lazy.js
CHANGED
|
@@ -2,7 +2,7 @@ import { isString, tsParticles } from "@tsparticles/engine/lazy";
|
|
|
2
2
|
import { getParticlesInstance } from "./utils.js";
|
|
3
3
|
let initPromise = null;
|
|
4
4
|
async function doInitPlugins(engine) {
|
|
5
|
-
engine.checkVersion("4.0
|
|
5
|
+
engine.checkVersion("4.1.0");
|
|
6
6
|
await engine.pluginManager.register(async (e) => {
|
|
7
7
|
const [{ loadBasic }, { loadInteractivityPlugin }, { loadParticlesCollisionsInteraction }, { loadParticlesLinksInteraction },] = await Promise.all([
|
|
8
8
|
import("@tsparticles/basic/lazy"),
|
|
@@ -50,5 +50,5 @@ particles.create = async (canvas, options) => {
|
|
|
50
50
|
particles.init = async () => {
|
|
51
51
|
await initPlugins(tsParticles);
|
|
52
52
|
};
|
|
53
|
-
particles.version = "4.0
|
|
53
|
+
particles.version = "4.1.0";
|
|
54
54
|
globalThis.particles = particles;
|
package/esm/ParticlesInstance.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export class ParticlesInstance {
|
|
2
|
-
|
|
2
|
+
#container;
|
|
3
3
|
constructor(container) {
|
|
4
|
-
this
|
|
4
|
+
this.#container = container;
|
|
5
5
|
}
|
|
6
6
|
pause() {
|
|
7
|
-
this.
|
|
7
|
+
this.#container.pause();
|
|
8
8
|
}
|
|
9
9
|
play() {
|
|
10
|
-
this.
|
|
10
|
+
this.#container.play();
|
|
11
11
|
}
|
|
12
12
|
stop() {
|
|
13
|
-
this.
|
|
13
|
+
this.#container.stop();
|
|
14
14
|
}
|
|
15
15
|
}
|
package/esm/particles.js
CHANGED
|
@@ -6,7 +6,7 @@ import { loadParticlesCollisionsInteraction } from "@tsparticles/interaction-par
|
|
|
6
6
|
import { loadParticlesLinksInteraction } from "@tsparticles/interaction-particles-links";
|
|
7
7
|
let initPromise = null;
|
|
8
8
|
async function doInitPlugins(engine) {
|
|
9
|
-
engine.checkVersion("4.0
|
|
9
|
+
engine.checkVersion("4.1.0");
|
|
10
10
|
await engine.pluginManager.register(async (e) => {
|
|
11
11
|
const loadParticlesInteractivity = async (e) => {
|
|
12
12
|
await loadInteractivityPlugin(e);
|
|
@@ -49,5 +49,5 @@ particles.create = async (canvas, options) => {
|
|
|
49
49
|
particles.init = async () => {
|
|
50
50
|
await initPlugins(tsParticles);
|
|
51
51
|
};
|
|
52
|
-
particles.version = "4.0
|
|
52
|
+
particles.version = "4.1.0";
|
|
53
53
|
globalThis.particles = particles;
|
package/esm/particles.lazy.js
CHANGED
|
@@ -2,7 +2,7 @@ import { isString, tsParticles } from "@tsparticles/engine/lazy";
|
|
|
2
2
|
import { getParticlesInstance } from "./utils.js";
|
|
3
3
|
let initPromise = null;
|
|
4
4
|
async function doInitPlugins(engine) {
|
|
5
|
-
engine.checkVersion("4.0
|
|
5
|
+
engine.checkVersion("4.1.0");
|
|
6
6
|
await engine.pluginManager.register(async (e) => {
|
|
7
7
|
const [{ loadBasic }, { loadInteractivityPlugin }, { loadParticlesCollisionsInteraction }, { loadParticlesLinksInteraction },] = await Promise.all([
|
|
8
8
|
import("@tsparticles/basic/lazy"),
|
|
@@ -50,5 +50,5 @@ particles.create = async (canvas, options) => {
|
|
|
50
50
|
particles.init = async () => {
|
|
51
51
|
await initPlugins(tsParticles);
|
|
52
52
|
};
|
|
53
|
-
particles.version = "4.0
|
|
53
|
+
particles.version = "4.1.0";
|
|
54
54
|
globalThis.particles = particles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/particles",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
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": {
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"./package.json": "./package.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@tsparticles/basic": "4.0
|
|
44
|
-
"@tsparticles/engine": "4.0
|
|
45
|
-
"@tsparticles/interaction-particles-collisions": "4.0
|
|
46
|
-
"@tsparticles/interaction-particles-links": "4.0
|
|
47
|
-
"@tsparticles/plugin-interactivity": "4.0
|
|
43
|
+
"@tsparticles/basic": "4.1.0",
|
|
44
|
+
"@tsparticles/engine": "4.1.0",
|
|
45
|
+
"@tsparticles/interaction-particles-collisions": "4.1.0",
|
|
46
|
+
"@tsparticles/interaction-particles-links": "4.1.0",
|
|
47
|
+
"@tsparticles/plugin-interactivity": "4.1.0"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|