@tsparticles/path-curves 4.0.0-alpha.5 → 4.0.0-alpha.8
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/152.min.js.LICENSE.txt +1 -1
- package/browser/CurvesPathGenerator.js +2 -1
- package/browser/index.js +1 -1
- package/cjs/CurvesPathGenerator.js +2 -1
- package/cjs/index.js +1 -1
- package/dist_browser_CurvesPathGenerator_js.js +1 -1
- package/esm/CurvesPathGenerator.js +2 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/report.html +3 -3
- package/tsparticles.path.curves.js +2 -2
- package/tsparticles.path.curves.min.js +1 -1
- package/tsparticles.path.curves.min.js.LICENSE.txt +1 -1
- package/umd/CurvesPathGenerator.js +2 -1
- package/umd/index.js +1 -1
package/152.min.js.LICENSE.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Curves Path v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Curves Path v4.0.0-alpha.8 by Matteo Bruni */
|
|
@@ -40,7 +40,8 @@ export class CurvesPathGenerator {
|
|
|
40
40
|
}
|
|
41
41
|
else if (isString(sourceOptions["rndFunc"])) {
|
|
42
42
|
options.rndFunc =
|
|
43
|
-
globalThis[sourceOptions["rndFunc"]] ??
|
|
43
|
+
globalThis[sourceOptions["rndFunc"]] ??
|
|
44
|
+
this.options.rndFunc;
|
|
44
45
|
}
|
|
45
46
|
options.period = sourceOptions["period"] ?? options.period;
|
|
46
47
|
options.nbHarmonics = sourceOptions["nbHarmonics"] ?? options.nbHarmonics;
|
package/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const curvesPathName = "curvesPathGenerator";
|
|
2
2
|
export async function loadCurvesPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
4
4
|
await engine.register(async (e) => {
|
|
5
5
|
const { CurvesPathGenerator } = await import("./CurvesPathGenerator.js");
|
|
6
6
|
e.addPathGenerator(curvesPathName, new CurvesPathGenerator());
|
|
@@ -40,7 +40,8 @@ export class CurvesPathGenerator {
|
|
|
40
40
|
}
|
|
41
41
|
else if (isString(sourceOptions["rndFunc"])) {
|
|
42
42
|
options.rndFunc =
|
|
43
|
-
globalThis[sourceOptions["rndFunc"]] ??
|
|
43
|
+
globalThis[sourceOptions["rndFunc"]] ??
|
|
44
|
+
this.options.rndFunc;
|
|
44
45
|
}
|
|
45
46
|
options.period = sourceOptions["period"] ?? options.period;
|
|
46
47
|
options.nbHarmonics = sourceOptions["nbHarmonics"] ?? options.nbHarmonics;
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const curvesPathName = "curvesPathGenerator";
|
|
2
2
|
export async function loadCurvesPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
4
4
|
await engine.register(async (e) => {
|
|
5
5
|
const { CurvesPathGenerator } = await import("./CurvesPathGenerator.js");
|
|
6
6
|
e.addPathGenerator(curvesPathName, new CurvesPathGenerator());
|
|
@@ -40,7 +40,8 @@ export class CurvesPathGenerator {
|
|
|
40
40
|
}
|
|
41
41
|
else if (isString(sourceOptions["rndFunc"])) {
|
|
42
42
|
options.rndFunc =
|
|
43
|
-
globalThis[sourceOptions["rndFunc"]] ??
|
|
43
|
+
globalThis[sourceOptions["rndFunc"]] ??
|
|
44
|
+
this.options.rndFunc;
|
|
44
45
|
}
|
|
45
46
|
options.period = sourceOptions["period"] ?? options.period;
|
|
46
47
|
options.nbHarmonics = sourceOptions["nbHarmonics"] ?? options.nbHarmonics;
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const curvesPathName = "curvesPathGenerator";
|
|
2
2
|
export async function loadCurvesPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
4
4
|
await engine.register(async (e) => {
|
|
5
5
|
const { CurvesPathGenerator } = await import("./CurvesPathGenerator.js");
|
|
6
6
|
e.addPathGenerator(curvesPathName, new CurvesPathGenerator());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/path-curves",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.8",
|
|
4
4
|
"description": "tsParticles curves path",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"./package.json": "./package.json"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@tsparticles/engine": "4.0.0-alpha.
|
|
107
|
+
"@tsparticles/engine": "4.0.0-alpha.8"
|
|
108
108
|
},
|
|
109
109
|
"type": "module"
|
|
110
110
|
}
|