@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 +1 -1
- package/browser/CurvesPathGenerator.js +1 -1
- package/browser/index.js +1 -1
- package/browser/package.json +1 -0
- package/cjs/CurvesPathGenerator.js +2 -2
- package/cjs/index.js +2 -2
- package/cjs/package.json +1 -0
- package/esm/CurvesPathGenerator.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.path.curves.js +1 -1
- package/tsparticles.path.curves.min.js.LICENSE.txt +1 -1
- package/types/CurvesPathGenerator.d.ts +2 -2
- package/umd/CurvesPathGenerator.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/path-curves)
|
|
7
7
|
[](https://www.npmjs.com/package/@tsparticles/path-curves) [](https://github.com/sponsors/matteobruni)
|
|
8
8
|
|
|
9
|
-
[tsParticles](https://github.com/
|
|
9
|
+
[tsParticles](https://github.com/tsparticles/tsparticles) path plugin for curves movement.
|
|
10
10
|
|
|
11
11
|
## How to use it
|
|
12
12
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
7
|
+
await engine.addPathGenerator(exports.curvesPathName, new CurvesPathGenerator_js_1.CurvesPathGenerator(), refresh);
|
|
8
8
|
}
|
|
9
9
|
exports.loadCurvesPath = loadCurvesPath;
|
package/cjs/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
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);
|
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/path-curves",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
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/
|
|
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/
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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.
|
|
107
|
+
"@tsparticles/engine": "^3.0.0-beta.2"
|
|
96
108
|
}
|
|
97
109
|
}
|