@tsparticles/interaction-particles-repulse 3.0.0-beta.0 → 3.0.0-beta.2
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 +1 -1
- package/browser/Repulser.js +1 -1
- package/browser/index.js +1 -1
- package/browser/package.json +1 -0
- package/cjs/Repulser.js +2 -2
- package/cjs/index.js +2 -2
- package/cjs/package.json +1 -0
- package/esm/Repulser.js +1 -1
- package/esm/index.js +1 -1
- package/esm/package.json +1 -0
- package/package.json +18 -6
- package/report.html +23 -5
- package/tsparticles.interaction.particles.repulse.js +1 -1
- package/tsparticles.interaction.particles.repulse.min.js.LICENSE.txt +1 -1
- package/types/Options/Classes/ParticlesRepulse.d.ts +1 -1
- package/types/Repulser.d.ts +1 -1
- package/types/Types.d.ts +2 -2
- package/umd/Repulser.js +3 -3
- package/umd/index.js +3 -3
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@tsparticles/interaction-particles-repulse)
|
|
7
7
|
[](https://www.npmjs.com/package/@tsparticles/interaction-particles-repulse) [](https://github.com/sponsors/matteobruni)
|
|
8
8
|
|
|
9
|
-
[tsParticles](https://github.com/
|
|
9
|
+
[tsParticles](https://github.com/tsparticles/tsparticles) interaction plugin for repulse effect between particles.
|
|
10
10
|
|
|
11
11
|
## How to use it
|
|
12
12
|
|
package/browser/Repulser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ParticlesInteractorBase, Vector, clamp, getDistances, getRangeValue, } from "@tsparticles/engine";
|
|
2
|
-
import { ParticlesRepulse } from "./Options/Classes/ParticlesRepulse";
|
|
2
|
+
import { ParticlesRepulse } from "./Options/Classes/ParticlesRepulse.js";
|
|
3
3
|
export class Repulser extends ParticlesInteractorBase {
|
|
4
4
|
constructor(container) {
|
|
5
5
|
super(container);
|
package/browser/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
package/cjs/Repulser.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Repulser = void 0;
|
|
4
4
|
const engine_1 = require("@tsparticles/engine");
|
|
5
|
-
const
|
|
5
|
+
const ParticlesRepulse_js_1 = require("./Options/Classes/ParticlesRepulse.js");
|
|
6
6
|
class Repulser extends engine_1.ParticlesInteractorBase {
|
|
7
7
|
constructor(container) {
|
|
8
8
|
super(container);
|
|
@@ -48,7 +48,7 @@ class Repulser extends engine_1.ParticlesInteractorBase {
|
|
|
48
48
|
}
|
|
49
49
|
loadParticlesOptions(options, ...sources) {
|
|
50
50
|
if (!options.repulse) {
|
|
51
|
-
options.repulse = new
|
|
51
|
+
options.repulse = new ParticlesRepulse_js_1.ParticlesRepulse();
|
|
52
52
|
}
|
|
53
53
|
for (const source of sources) {
|
|
54
54
|
options.repulse.load(source?.repulse);
|
package/cjs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadParticlesRepulseInteraction = void 0;
|
|
4
|
-
const
|
|
4
|
+
const Repulser_js_1 = require("./Repulser.js");
|
|
5
5
|
async function loadParticlesRepulseInteraction(engine, refresh = true) {
|
|
6
|
-
await engine.addInteractor("particlesRepulse", (container) => new
|
|
6
|
+
await engine.addInteractor("particlesRepulse", (container) => new Repulser_js_1.Repulser(container), refresh);
|
|
7
7
|
}
|
|
8
8
|
exports.loadParticlesRepulseInteraction = loadParticlesRepulseInteraction;
|
package/cjs/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
package/esm/Repulser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ParticlesInteractorBase, Vector, clamp, getDistances, getRangeValue, } from "@tsparticles/engine";
|
|
2
|
-
import { ParticlesRepulse } from "./Options/Classes/ParticlesRepulse";
|
|
2
|
+
import { ParticlesRepulse } from "./Options/Classes/ParticlesRepulse.js";
|
|
3
3
|
export class Repulser extends ParticlesInteractorBase {
|
|
4
4
|
constructor(container) {
|
|
5
5
|
super(container);
|
package/esm/index.js
CHANGED
package/esm/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/interaction-particles-repulse",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.2",
|
|
4
4
|
"description": "tsParticles repulse particles interaction",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/tsparticles/tsparticles.git",
|
|
9
9
|
"directory": "interactions/particles/repulse"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"author": "Matteo Bruni <matteo.bruni@me.com>",
|
|
67
67
|
"license": "MIT",
|
|
68
68
|
"bugs": {
|
|
69
|
-
"url": "https://github.com/
|
|
69
|
+
"url": "https://github.com/tsparticles/tsparticles/issues"
|
|
70
70
|
},
|
|
71
71
|
"funding": [
|
|
72
72
|
{
|
|
@@ -82,14 +82,26 @@
|
|
|
82
82
|
"url": "https://www.buymeacoffee.com/matteobruni"
|
|
83
83
|
}
|
|
84
84
|
],
|
|
85
|
-
"
|
|
85
|
+
"sideEffects": false,
|
|
86
86
|
"jsdelivr": "tsparticles.interaction.particles.repulse.min.js",
|
|
87
87
|
"unpkg": "tsparticles.interaction.particles.repulse.min.js",
|
|
88
|
+
"browser": "browser/index.js",
|
|
89
|
+
"main": "cjs/index.js",
|
|
88
90
|
"module": "esm/index.js",
|
|
89
91
|
"types": "types/index.d.ts",
|
|
90
|
-
"
|
|
92
|
+
"exports": {
|
|
93
|
+
".": {
|
|
94
|
+
"types": "./types/index.d.ts",
|
|
95
|
+
"browser": "./browser/index.js",
|
|
96
|
+
"import": "./esm/index.js",
|
|
97
|
+
"require": "./cjs/index.js",
|
|
98
|
+
"umd": "./umd/index.js",
|
|
99
|
+
"default": "./cjs/index.js"
|
|
100
|
+
},
|
|
101
|
+
"./package.json": "./package.json"
|
|
102
|
+
},
|
|
91
103
|
"dependencies": {
|
|
92
|
-
"@tsparticles/engine": "^3.0.0-beta.
|
|
104
|
+
"@tsparticles/engine": "^3.0.0-beta.2"
|
|
93
105
|
},
|
|
94
106
|
"publishConfig": {
|
|
95
107
|
"access": "public"
|