@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.
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v3.0.0-beta.0
7
+ * v3.0.0-beta.2
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
@@ -1 +1 @@
1
- /*! tsParticles Repulse Particles Interaction v3.0.0-beta.0 by Matteo Bruni */
1
+ /*! tsParticles Repulse Particles Interaction v3.0.0-beta.2 by Matteo Bruni */
@@ -1,5 +1,5 @@
1
1
  import { type IOptionLoader, type RangeValue, type RecursivePartial, ValueWithRandom } from "@tsparticles/engine";
2
- import type { IParticlesRepulse } from "../Interfaces/IParticlesRepulse";
2
+ import type { IParticlesRepulse } from "../Interfaces/IParticlesRepulse.js";
3
3
  export declare class ParticlesRepulse extends ValueWithRandom implements IParticlesRepulse, IOptionLoader<IParticlesRepulse> {
4
4
  distance: RangeValue;
5
5
  duration: RangeValue;
@@ -1,5 +1,5 @@
1
1
  import { type Container, type Particle, ParticlesInteractorBase, type RecursivePartial } from "@tsparticles/engine";
2
- import type { IRepulseParticlesOptions, RepulseParticlesOptions } from "./Types";
2
+ import type { IRepulseParticlesOptions, RepulseParticlesOptions } from "./Types.js";
3
3
  type RepulseParticle = Particle & {
4
4
  options: RepulseParticlesOptions;
5
5
  repulse?: {
package/types/Types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { IParticlesOptions, ParticlesOptions } from "@tsparticles/engine";
2
- import type { IParticlesRepulse } from "./Options/Interfaces/IParticlesRepulse";
3
- import type { ParticlesRepulse } from "./Options/Classes/ParticlesRepulse";
2
+ import type { IParticlesRepulse } from "./Options/Interfaces/IParticlesRepulse.js";
3
+ import type { ParticlesRepulse } from "./Options/Classes/ParticlesRepulse.js";
4
4
  export type RepulseParticlesOptions = ParticlesOptions & {
5
5
  repulse?: ParticlesRepulse;
6
6
  };
package/umd/Repulser.js CHANGED
@@ -4,14 +4,14 @@
4
4
  if (v !== undefined) module.exports = v;
5
5
  }
6
6
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "@tsparticles/engine", "./Options/Classes/ParticlesRepulse"], factory);
7
+ define(["require", "exports", "@tsparticles/engine", "./Options/Classes/ParticlesRepulse.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Repulser = void 0;
13
13
  const engine_1 = require("@tsparticles/engine");
14
- const ParticlesRepulse_1 = require("./Options/Classes/ParticlesRepulse");
14
+ const ParticlesRepulse_js_1 = require("./Options/Classes/ParticlesRepulse.js");
15
15
  class Repulser extends engine_1.ParticlesInteractorBase {
16
16
  constructor(container) {
17
17
  super(container);
@@ -57,7 +57,7 @@
57
57
  }
58
58
  loadParticlesOptions(options, ...sources) {
59
59
  if (!options.repulse) {
60
- options.repulse = new ParticlesRepulse_1.ParticlesRepulse();
60
+ options.repulse = new ParticlesRepulse_js_1.ParticlesRepulse();
61
61
  }
62
62
  for (const source of sources) {
63
63
  options.repulse.load(source?.repulse);
package/umd/index.js CHANGED
@@ -4,15 +4,15 @@
4
4
  if (v !== undefined) module.exports = v;
5
5
  }
6
6
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./Repulser"], factory);
7
+ define(["require", "exports", "./Repulser.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.loadParticlesRepulseInteraction = void 0;
13
- const Repulser_1 = require("./Repulser");
13
+ const Repulser_js_1 = require("./Repulser.js");
14
14
  async function loadParticlesRepulseInteraction(engine, refresh = true) {
15
- await engine.addInteractor("particlesRepulse", (container) => new Repulser_1.Repulser(container), refresh);
15
+ await engine.addInteractor("particlesRepulse", (container) => new Repulser_js_1.Repulser(container), refresh);
16
16
  }
17
17
  exports.loadParticlesRepulseInteraction = loadParticlesRepulseInteraction;
18
18
  });