@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.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![npmjs](https://badge.fury.io/js/@tsparticles/path-curves.svg)](https://www.npmjs.com/package/@tsparticles/path-curves)
7
7
  [![npmjs](https://img.shields.io/npm/dt/@tsparticles/path-curves)](https://www.npmjs.com/package/@tsparticles/path-curves) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
8
8
 
9
- [tsParticles](https://github.com/matteobruni/tsparticles) path plugin for curves movement.
9
+ [tsParticles](https://github.com/tsparticles/tsparticles) path plugin for curves movement.
10
10
 
11
11
  ## How to use it
12
12
 
@@ -1,5 +1,5 @@
1
1
  import { Vector, getRandom, isFunction, isString } from "@tsparticles/engine";
2
- import { CurvesPathGen } from "./Curves";
2
+ import { CurvesPathGen } from "./Curves.js";
3
3
  export class CurvesPathGenerator {
4
4
  constructor() {
5
5
  this.options = {
package/browser/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { CurvesPathGenerator } from "./CurvesPathGenerator";
1
+ import { CurvesPathGenerator } from "./CurvesPathGenerator.js";
2
2
  export const curvesPathName = "curvesPathGenerator";
3
3
  export async function loadCurvesPath(engine, refresh = true) {
4
4
  await engine.addPathGenerator(curvesPathName, new CurvesPathGenerator(), refresh);
@@ -0,0 +1 @@
1
+ { "type": "module" }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CurvesPathGenerator = void 0;
4
4
  const engine_1 = require("@tsparticles/engine");
5
- const Curves_1 = require("./Curves");
5
+ const Curves_js_1 = require("./Curves.js");
6
6
  class CurvesPathGenerator {
7
7
  constructor() {
8
8
  this.options = {
@@ -17,7 +17,7 @@ class CurvesPathGenerator {
17
17
  generate(p) {
18
18
  if (!p.pathGen) {
19
19
  const options = this.options;
20
- p.pathGen = (0, Curves_1.CurvesPathGen)(options.rndFunc, options.period, options.nbHarmonics, options.attenHarmonics, options.lowValue, options.highValue);
20
+ p.pathGen = (0, Curves_js_1.CurvesPathGen)(options.rndFunc, options.period, options.nbHarmonics, options.attenHarmonics, options.lowValue, options.highValue);
21
21
  }
22
22
  if (!p.curveVelocity) {
23
23
  p.curveVelocity = engine_1.Vector.origin;
package/cjs/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadCurvesPath = exports.curvesPathName = void 0;
4
- const CurvesPathGenerator_1 = require("./CurvesPathGenerator");
4
+ const CurvesPathGenerator_js_1 = require("./CurvesPathGenerator.js");
5
5
  exports.curvesPathName = "curvesPathGenerator";
6
6
  async function loadCurvesPath(engine, refresh = true) {
7
- await engine.addPathGenerator(exports.curvesPathName, new CurvesPathGenerator_1.CurvesPathGenerator(), refresh);
7
+ await engine.addPathGenerator(exports.curvesPathName, new CurvesPathGenerator_js_1.CurvesPathGenerator(), refresh);
8
8
  }
9
9
  exports.loadCurvesPath = loadCurvesPath;
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
@@ -1,5 +1,5 @@
1
1
  import { Vector, getRandom, isFunction, isString } from "@tsparticles/engine";
2
- import { CurvesPathGen } from "./Curves";
2
+ import { CurvesPathGen } from "./Curves.js";
3
3
  export class CurvesPathGenerator {
4
4
  constructor() {
5
5
  this.options = {
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { CurvesPathGenerator } from "./CurvesPathGenerator";
1
+ import { CurvesPathGenerator } from "./CurvesPathGenerator.js";
2
2
  export const curvesPathName = "curvesPathGenerator";
3
3
  export async function loadCurvesPath(engine, refresh = true) {
4
4
  await engine.addPathGenerator(curvesPathName, new CurvesPathGenerator(), refresh);
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/path-curves",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "tsParticles curves path",
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": "paths/curves"
10
10
  },
11
11
  "keywords": [
@@ -69,7 +69,7 @@
69
69
  "author": "Matteo Bruni <matteo.bruni@me.com>",
70
70
  "license": "MIT",
71
71
  "bugs": {
72
- "url": "https://github.com/matteobruni/tsparticles/issues"
72
+ "url": "https://github.com/tsparticles/tsparticles/issues"
73
73
  },
74
74
  "funding": [
75
75
  {
@@ -85,13 +85,25 @@
85
85
  "url": "https://www.buymeacoffee.com/matteobruni"
86
86
  }
87
87
  ],
88
- "main": "cjs/index.js",
88
+ "sideEffects": false,
89
89
  "jsdelivr": "tsparticles.path.curves.min.js",
90
90
  "unpkg": "tsparticles.path.curves.min.js",
91
+ "browser": "browser/index.js",
92
+ "main": "cjs/index.js",
91
93
  "module": "esm/index.js",
92
94
  "types": "types/index.d.ts",
93
- "sideEffects": false,
95
+ "exports": {
96
+ ".": {
97
+ "types": "./types/index.d.ts",
98
+ "browser": "./browser/index.js",
99
+ "import": "./esm/index.js",
100
+ "require": "./cjs/index.js",
101
+ "umd": "./umd/index.js",
102
+ "default": "./cjs/index.js"
103
+ },
104
+ "./package.json": "./package.json"
105
+ },
94
106
  "dependencies": {
95
- "@tsparticles/engine": "^3.0.0-beta.0"
107
+ "@tsparticles/engine": "^3.0.0-beta.2"
96
108
  }
97
109
  }