@tsparticles/path-curves 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 Curves Path v3.0.0-beta.0 by Matteo Bruni */
1
+ /*! tsParticles Curves Path v3.0.0-beta.2 by Matteo Bruni */
@@ -1,6 +1,6 @@
1
1
  import { type Container, type IMovePathGenerator, Vector } from "@tsparticles/engine";
2
- import type { CurvesPathParticle } from "./CurvesPathParticle";
3
- import type { ICurvesOptions } from "./ICurvesOptions";
2
+ import type { CurvesPathParticle } from "./CurvesPathParticle.js";
3
+ import type { ICurvesOptions } from "./ICurvesOptions.js";
4
4
  declare global {
5
5
  interface Window {
6
6
  [key: string]: unknown;
@@ -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", "./Curves"], factory);
7
+ define(["require", "exports", "@tsparticles/engine", "./Curves.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CurvesPathGenerator = void 0;
13
13
  const engine_1 = require("@tsparticles/engine");
14
- const Curves_1 = require("./Curves");
14
+ const Curves_js_1 = require("./Curves.js");
15
15
  class CurvesPathGenerator {
16
16
  constructor() {
17
17
  this.options = {
@@ -26,7 +26,7 @@
26
26
  generate(p) {
27
27
  if (!p.pathGen) {
28
28
  const options = this.options;
29
- p.pathGen = (0, Curves_1.CurvesPathGen)(options.rndFunc, options.period, options.nbHarmonics, options.attenHarmonics, options.lowValue, options.highValue);
29
+ p.pathGen = (0, Curves_js_1.CurvesPathGen)(options.rndFunc, options.period, options.nbHarmonics, options.attenHarmonics, options.lowValue, options.highValue);
30
30
  }
31
31
  if (!p.curveVelocity) {
32
32
  p.curveVelocity = engine_1.Vector.origin;
package/umd/index.js CHANGED
@@ -4,16 +4,16 @@
4
4
  if (v !== undefined) module.exports = v;
5
5
  }
6
6
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./CurvesPathGenerator"], factory);
7
+ define(["require", "exports", "./CurvesPathGenerator.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.loadCurvesPath = exports.curvesPathName = void 0;
13
- const CurvesPathGenerator_1 = require("./CurvesPathGenerator");
13
+ const CurvesPathGenerator_js_1 = require("./CurvesPathGenerator.js");
14
14
  exports.curvesPathName = "curvesPathGenerator";
15
15
  async function loadCurvesPath(engine, refresh = true) {
16
- await engine.addPathGenerator(exports.curvesPathName, new CurvesPathGenerator_1.CurvesPathGenerator(), refresh);
16
+ await engine.addPathGenerator(exports.curvesPathName, new CurvesPathGenerator_js_1.CurvesPathGenerator(), refresh);
17
17
  }
18
18
  exports.loadCurvesPath = loadCurvesPath;
19
19
  });