@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 CHANGED
@@ -6,7 +6,7 @@
6
6
  [![npmjs](https://badge.fury.io/js/@tsparticles/interaction-particles-repulse.svg)](https://www.npmjs.com/package/@tsparticles/interaction-particles-repulse)
7
7
  [![npmjs](https://img.shields.io/npm/dt/@tsparticles/interaction-particles-repulse)](https://www.npmjs.com/package/@tsparticles/interaction-particles-repulse) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
8
8
 
9
- [tsParticles](https://github.com/matteobruni/tsparticles) interaction plugin for repulse effect between particles.
9
+ [tsParticles](https://github.com/tsparticles/tsparticles) interaction plugin for repulse effect between particles.
10
10
 
11
11
  ## How to use it
12
12
 
@@ -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
@@ -1,4 +1,4 @@
1
- import { Repulser } from "./Repulser";
1
+ import { Repulser } from "./Repulser.js";
2
2
  export async function loadParticlesRepulseInteraction(engine, refresh = true) {
3
3
  await engine.addInteractor("particlesRepulse", (container) => new Repulser(container), refresh);
4
4
  }
@@ -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 ParticlesRepulse_1 = require("./Options/Classes/ParticlesRepulse");
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 ParticlesRepulse_1.ParticlesRepulse();
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 Repulser_1 = require("./Repulser");
4
+ const Repulser_js_1 = require("./Repulser.js");
5
5
  async function loadParticlesRepulseInteraction(engine, refresh = true) {
6
- await engine.addInteractor("particlesRepulse", (container) => new Repulser_1.Repulser(container), refresh);
6
+ await engine.addInteractor("particlesRepulse", (container) => new Repulser_js_1.Repulser(container), refresh);
7
7
  }
8
8
  exports.loadParticlesRepulseInteraction = loadParticlesRepulseInteraction;
@@ -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
@@ -1,4 +1,4 @@
1
- import { Repulser } from "./Repulser";
1
+ import { Repulser } from "./Repulser.js";
2
2
  export async function loadParticlesRepulseInteraction(engine, refresh = true) {
3
3
  await engine.addInteractor("particlesRepulse", (container) => new Repulser(container), refresh);
4
4
  }
@@ -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.0",
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/matteobruni/tsparticles.git",
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/matteobruni/tsparticles/issues"
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
- "main": "cjs/index.js",
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
- "sideEffects": false,
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.0"
104
+ "@tsparticles/engine": "^3.0.0-beta.2"
93
105
  },
94
106
  "publishConfig": {
95
107
  "access": "public"