@tsparticles/interaction-external-bubble 4.0.0-alpha.4 → 4.0.0-alpha.8
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/132.min.js.LICENSE.txt +1 -1
- package/browser/Bubbler.js +1 -2
- package/browser/index.js +4 -4
- package/cjs/Bubbler.js +1 -2
- package/cjs/index.js +4 -4
- package/dist_browser_Bubbler_js.js +1 -1
- package/esm/Bubbler.js +1 -2
- package/esm/index.js +4 -4
- package/package.json +3 -3
- package/report.html +3 -3
- package/tsparticles.interaction.external.bubble.js +2 -2
- package/tsparticles.interaction.external.bubble.min.js +1 -1
- package/tsparticles.interaction.external.bubble.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/umd/Bubbler.js +1 -2
- package/umd/index.js +4 -4
package/132.min.js.LICENSE.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Bubble External Interaction v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Bubble External Interaction v4.0.0-alpha.8 by Matteo Bruni */
|
package/browser/Bubbler.js
CHANGED
|
@@ -23,8 +23,7 @@ export class Bubbler extends ExternalInteractorBase {
|
|
|
23
23
|
continue;
|
|
24
24
|
}
|
|
25
25
|
particle.bubble.inRange = !bubble.durationEnd;
|
|
26
|
-
const pos = particle.getPosition(), distMouse = getDistance(pos, mouseClickPos), timeSpent = (new Date().getTime() - (interactivityData.mouse.clickTime ?? defaultClickTime)) /
|
|
27
|
-
millisecondsToSeconds;
|
|
26
|
+
const pos = particle.getPosition(), distMouse = getDistance(pos, mouseClickPos), timeSpent = (new Date().getTime() - (interactivityData.mouse.clickTime ?? defaultClickTime)) / millisecondsToSeconds;
|
|
28
27
|
if (timeSpent > bubbleOptions.duration) {
|
|
29
28
|
bubble.durationEnd = true;
|
|
30
29
|
}
|
package/browser/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export function loadExternalBubbleInteraction(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadExternalBubbleInteraction(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { loadInteractivityPlugin } = await import("@tsparticles/plugin-interactivity");
|
|
5
|
-
loadInteractivityPlugin(e);
|
|
5
|
+
await loadInteractivityPlugin(e);
|
|
6
6
|
e.addInteractor?.("externalBubble", async (container) => {
|
|
7
7
|
const { Bubbler } = await import("./Bubbler.js");
|
|
8
8
|
return new Bubbler(e, container);
|
package/cjs/Bubbler.js
CHANGED
|
@@ -23,8 +23,7 @@ export class Bubbler extends ExternalInteractorBase {
|
|
|
23
23
|
continue;
|
|
24
24
|
}
|
|
25
25
|
particle.bubble.inRange = !bubble.durationEnd;
|
|
26
|
-
const pos = particle.getPosition(), distMouse = getDistance(pos, mouseClickPos), timeSpent = (new Date().getTime() - (interactivityData.mouse.clickTime ?? defaultClickTime)) /
|
|
27
|
-
millisecondsToSeconds;
|
|
26
|
+
const pos = particle.getPosition(), distMouse = getDistance(pos, mouseClickPos), timeSpent = (new Date().getTime() - (interactivityData.mouse.clickTime ?? defaultClickTime)) / millisecondsToSeconds;
|
|
28
27
|
if (timeSpent > bubbleOptions.duration) {
|
|
29
28
|
bubble.durationEnd = true;
|
|
30
29
|
}
|
package/cjs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export function loadExternalBubbleInteraction(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadExternalBubbleInteraction(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { loadInteractivityPlugin } = await import("@tsparticles/plugin-interactivity");
|
|
5
|
-
loadInteractivityPlugin(e);
|
|
5
|
+
await loadInteractivityPlugin(e);
|
|
6
6
|
e.addInteractor?.("externalBubble", async (container) => {
|
|
7
7
|
const { Bubbler } = await import("./Bubbler.js");
|
|
8
8
|
return new Bubbler(e, container);
|
package/esm/Bubbler.js
CHANGED
|
@@ -23,8 +23,7 @@ export class Bubbler extends ExternalInteractorBase {
|
|
|
23
23
|
continue;
|
|
24
24
|
}
|
|
25
25
|
particle.bubble.inRange = !bubble.durationEnd;
|
|
26
|
-
const pos = particle.getPosition(), distMouse = getDistance(pos, mouseClickPos), timeSpent = (new Date().getTime() - (interactivityData.mouse.clickTime ?? defaultClickTime)) /
|
|
27
|
-
millisecondsToSeconds;
|
|
26
|
+
const pos = particle.getPosition(), distMouse = getDistance(pos, mouseClickPos), timeSpent = (new Date().getTime() - (interactivityData.mouse.clickTime ?? defaultClickTime)) / millisecondsToSeconds;
|
|
28
27
|
if (timeSpent > bubbleOptions.duration) {
|
|
29
28
|
bubble.durationEnd = true;
|
|
30
29
|
}
|
package/esm/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export function loadExternalBubbleInteraction(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadExternalBubbleInteraction(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { loadInteractivityPlugin } = await import("@tsparticles/plugin-interactivity");
|
|
5
|
-
loadInteractivityPlugin(e);
|
|
5
|
+
await loadInteractivityPlugin(e);
|
|
6
6
|
e.addInteractor?.("externalBubble", async (container) => {
|
|
7
7
|
const { Bubbler } = await import("./Bubbler.js");
|
|
8
8
|
return new Bubbler(e, container);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/interaction-external-bubble",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.8",
|
|
4
4
|
"description": "tsParticles bubble external interaction",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"./package.json": "./package.json"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@tsparticles/engine": "4.0.0-alpha.
|
|
91
|
-
"@tsparticles/plugin-interactivity": "4.0.0-alpha.
|
|
90
|
+
"@tsparticles/engine": "4.0.0-alpha.8",
|
|
91
|
+
"@tsparticles/plugin-interactivity": "4.0.0-alpha.8"
|
|
92
92
|
},
|
|
93
93
|
"publishConfig": {
|
|
94
94
|
"access": "public"
|