@tsparticles/interaction-particles-repulse 4.0.0-beta.12 → 4.0.0-beta.16
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/browser.js +5 -0
- package/browser/index.js +6 -6
- package/browser/index.lazy.js +11 -0
- package/cjs/browser.js +5 -0
- package/cjs/index.js +6 -6
- package/cjs/index.lazy.js +11 -0
- package/esm/browser.js +5 -0
- package/esm/index.js +6 -6
- package/esm/index.lazy.js +11 -0
- package/package.json +10 -3
- package/report.html +4949 -94
- package/tsparticles.interaction.particles.repulse.js +126 -351
- package/tsparticles.interaction.particles.repulse.min.js +1 -2
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/57.min.js +0 -1
- package/dist_browser_Repulser_js.js +0 -40
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { loadParticlesRepulseInteraction } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadParticlesRepulseInteraction = loadParticlesRepulseInteraction;
|
|
5
|
+
export * from "./index.js";
|
package/browser/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { ensureInteractivityPluginLoaded } from "@tsparticles/plugin-interactivity";
|
|
2
|
+
import { Repulser } from "./Repulser.js";
|
|
1
3
|
export async function loadParticlesRepulseInteraction(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
3
|
-
await engine.pluginManager.register(
|
|
4
|
-
const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity");
|
|
4
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
5
|
+
await engine.pluginManager.register((e) => {
|
|
5
6
|
ensureInteractivityPluginLoaded(e);
|
|
6
|
-
e.pluginManager.addInteractor?.("particlesRepulse",
|
|
7
|
-
|
|
8
|
-
return new Repulser(container);
|
|
7
|
+
e.pluginManager.addInteractor?.("particlesRepulse", container => {
|
|
8
|
+
return Promise.resolve(new Repulser(container));
|
|
9
9
|
});
|
|
10
10
|
});
|
|
11
11
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export async function loadParticlesRepulseInteraction(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity/lazy");
|
|
5
|
+
ensureInteractivityPluginLoaded(e);
|
|
6
|
+
e.pluginManager.addInteractor?.("particlesRepulse", async (container) => {
|
|
7
|
+
const { Repulser } = await import("./Repulser.js");
|
|
8
|
+
return new Repulser(container);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
}
|
package/cjs/browser.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { loadParticlesRepulseInteraction } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadParticlesRepulseInteraction = loadParticlesRepulseInteraction;
|
|
5
|
+
export * from "./index.js";
|
package/cjs/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { ensureInteractivityPluginLoaded } from "@tsparticles/plugin-interactivity";
|
|
2
|
+
import { Repulser } from "./Repulser.js";
|
|
1
3
|
export async function loadParticlesRepulseInteraction(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
3
|
-
await engine.pluginManager.register(
|
|
4
|
-
const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity");
|
|
4
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
5
|
+
await engine.pluginManager.register((e) => {
|
|
5
6
|
ensureInteractivityPluginLoaded(e);
|
|
6
|
-
e.pluginManager.addInteractor?.("particlesRepulse",
|
|
7
|
-
|
|
8
|
-
return new Repulser(container);
|
|
7
|
+
e.pluginManager.addInteractor?.("particlesRepulse", container => {
|
|
8
|
+
return Promise.resolve(new Repulser(container));
|
|
9
9
|
});
|
|
10
10
|
});
|
|
11
11
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export async function loadParticlesRepulseInteraction(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity/lazy");
|
|
5
|
+
ensureInteractivityPluginLoaded(e);
|
|
6
|
+
e.pluginManager.addInteractor?.("particlesRepulse", async (container) => {
|
|
7
|
+
const { Repulser } = await import("./Repulser.js");
|
|
8
|
+
return new Repulser(container);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
}
|
package/esm/browser.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { loadParticlesRepulseInteraction } from "./index.js";
|
|
2
|
+
const globalObject = globalThis;
|
|
3
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
4
|
+
globalObject.loadParticlesRepulseInteraction = loadParticlesRepulseInteraction;
|
|
5
|
+
export * from "./index.js";
|
package/esm/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { ensureInteractivityPluginLoaded } from "@tsparticles/plugin-interactivity";
|
|
2
|
+
import { Repulser } from "./Repulser.js";
|
|
1
3
|
export async function loadParticlesRepulseInteraction(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
3
|
-
await engine.pluginManager.register(
|
|
4
|
-
const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity");
|
|
4
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
5
|
+
await engine.pluginManager.register((e) => {
|
|
5
6
|
ensureInteractivityPluginLoaded(e);
|
|
6
|
-
e.pluginManager.addInteractor?.("particlesRepulse",
|
|
7
|
-
|
|
8
|
-
return new Repulser(container);
|
|
7
|
+
e.pluginManager.addInteractor?.("particlesRepulse", container => {
|
|
8
|
+
return Promise.resolve(new Repulser(container));
|
|
9
9
|
});
|
|
10
10
|
});
|
|
11
11
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export async function loadParticlesRepulseInteraction(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-beta.16");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const { ensureInteractivityPluginLoaded } = await import("@tsparticles/plugin-interactivity/lazy");
|
|
5
|
+
ensureInteractivityPluginLoaded(e);
|
|
6
|
+
e.pluginManager.addInteractor?.("particlesRepulse", async (container) => {
|
|
7
|
+
const { Repulser } = await import("./Repulser.js");
|
|
8
|
+
return new Repulser(container);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/interaction-particles-repulse",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.16",
|
|
4
4
|
"description": "tsParticles repulse particles interaction",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -97,11 +97,18 @@
|
|
|
97
97
|
"require": "./cjs/index.js",
|
|
98
98
|
"default": "./esm/index.js"
|
|
99
99
|
},
|
|
100
|
+
"./lazy": {
|
|
101
|
+
"types": "./types/index.lazy.d.ts",
|
|
102
|
+
"browser": "./browser/index.lazy.js",
|
|
103
|
+
"import": "./esm/index.lazy.js",
|
|
104
|
+
"require": "./cjs/index.lazy.js",
|
|
105
|
+
"default": "./esm/index.lazy.js"
|
|
106
|
+
},
|
|
100
107
|
"./package.json": "./package.json"
|
|
101
108
|
},
|
|
102
109
|
"peerDependencies": {
|
|
103
|
-
"@tsparticles/engine": "4.0.0-beta.
|
|
104
|
-
"@tsparticles/plugin-interactivity": "4.0.0-beta.
|
|
110
|
+
"@tsparticles/engine": "4.0.0-beta.16",
|
|
111
|
+
"@tsparticles/plugin-interactivity": "4.0.0-beta.16"
|
|
105
112
|
},
|
|
106
113
|
"publishConfig": {
|
|
107
114
|
"access": "public"
|