@tsparticles/path-curves 3.9.0 → 4.0.0-alpha.0
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/298.min.js +2 -0
- package/298.min.js.LICENSE.txt +1 -0
- package/browser/CurvesPathGenerator.js +10 -11
- package/browser/index.js +6 -4
- package/cjs/Curves.js +3 -6
- package/cjs/CurvesPathGenerator.js +16 -21
- package/cjs/CurvesPathParticle.js +1 -2
- package/cjs/ICurvesOptions.js +1 -2
- package/cjs/index.js +7 -9
- package/dist_browser_CurvesPathGenerator_js.js +40 -0
- package/esm/CurvesPathGenerator.js +10 -11
- package/esm/index.js +6 -4
- package/package.json +4 -3
- package/report.html +5 -4
- package/tsparticles.path.curves.js +209 -40
- package/tsparticles.path.curves.min.js +1 -1
- package/tsparticles.path.curves.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/umd/CurvesPathGenerator.js +11 -12
- package/umd/index.js +41 -5
package/298.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 298.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_path_curves=this.webpackChunk_tsparticles_path_curves||[]).push([[298],{298(e,n,t){t.d(n,{CurvesPathGenerator:()=>r});var o=t(303);class r{constructor(){this.options={rndFunc:null,period:100,nbHarmonics:2,attenHarmonics:.8,lowValue:-.03,highValue:.03}}generate(e){if(!e.pathGen){const n=this.options;e.pathGen=function(e,n,t,r,c=0,i=1){const a=[],l=[],u=[],s=[],h=[],p=e??o.getRandom;let d=0;t<1&&(t=1);for(let e=1;e<=t;++e)a[e]=p(),l[e]=p(),u[e]=1===e?1:u[e-1]*r,d+=u[e],s[e]=e/n,h[e]=p();return u.forEach(((e,n)=>u[n]=e/d*(i-c))),()=>{let e,n,o=0;for(let r=t;r>=1;--r)e=h[r]+=s[r],h[r]>=1&&(e=h[r]-=1,a[r]=l[r],l[r]=p()),n=e**2*(3-2*e),o+=(a[r]*(1-n)+l[r]*n)*u[r];return o+c}}(n.rndFunc,n.period,n.nbHarmonics,n.attenHarmonics,n.lowValue,n.highValue)}return e.curveVelocity?(e.curveVelocity.length+=.01,e.curveVelocity.angle=(e.curveVelocity.angle+e.pathGen())%o.doublePI):(e.curveVelocity=o.Vector.origin,e.curveVelocity.length=.6*(0,o.getRandom)()+.8,e.curveVelocity.angle=(0,o.getRandom)()*o.doublePI),e.velocity.x=0,e.velocity.y=0,e.curveVelocity}init(e){const n=e.actualOptions.particles.move.path.options,{options:t}=this;(0,o.isFunction)(n.rndFunc)?t.rndFunc=n.rndFunc:(0,o.isString)(n.rndFunc)&&(t.rndFunc=globalThis[n.rndFunc]??this.options.rndFunc),t.period=n.period??t.period,t.nbHarmonics=n.nbHarmonics??t.nbHarmonics,t.attenHarmonics=n.attenHarmonics??t.attenHarmonics,t.lowValue=n.lowValue??t.lowValue,t.highValue=n.highValue??t.highValue}reset(e){delete e.pathGen,delete e.curveVelocity}update(){}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Curves Path v4.0.0-alpha.0 by Matteo Bruni */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Vector, getRandom, isFunction, isString } from "@tsparticles/engine";
|
|
1
|
+
import { Vector, doublePI, getRandom, isFunction, isString, } from "@tsparticles/engine";
|
|
2
2
|
import { CurvesPathGen } from "./Curves.js";
|
|
3
|
-
const double = 2, doublePI = Math.PI * double;
|
|
4
3
|
function randomVelocity() {
|
|
5
4
|
const offset = 0.8, factor = 0.6;
|
|
6
5
|
return getRandom() * factor + offset;
|
|
@@ -36,18 +35,18 @@ export class CurvesPathGenerator {
|
|
|
36
35
|
}
|
|
37
36
|
init(container) {
|
|
38
37
|
const sourceOptions = container.actualOptions.particles.move.path.options, { options } = this;
|
|
39
|
-
if (isFunction(sourceOptions
|
|
40
|
-
options.rndFunc = sourceOptions
|
|
38
|
+
if (isFunction(sourceOptions["rndFunc"])) {
|
|
39
|
+
options.rndFunc = sourceOptions["rndFunc"];
|
|
41
40
|
}
|
|
42
|
-
else if (isString(sourceOptions
|
|
41
|
+
else if (isString(sourceOptions["rndFunc"])) {
|
|
43
42
|
options.rndFunc =
|
|
44
|
-
|
|
43
|
+
globalThis[sourceOptions["rndFunc"]] ?? this.options.rndFunc;
|
|
45
44
|
}
|
|
46
|
-
options.period = sourceOptions
|
|
47
|
-
options.nbHarmonics = sourceOptions
|
|
48
|
-
options.attenHarmonics = sourceOptions
|
|
49
|
-
options.lowValue = sourceOptions
|
|
50
|
-
options.highValue = sourceOptions
|
|
45
|
+
options.period = sourceOptions["period"] ?? options.period;
|
|
46
|
+
options.nbHarmonics = sourceOptions["nbHarmonics"] ?? options.nbHarmonics;
|
|
47
|
+
options.attenHarmonics = sourceOptions["attenHarmonics"] ?? options.attenHarmonics;
|
|
48
|
+
options.lowValue = sourceOptions["lowValue"] ?? options.lowValue;
|
|
49
|
+
options.highValue = sourceOptions["highValue"] ?? options.highValue;
|
|
51
50
|
}
|
|
52
51
|
reset(particle) {
|
|
53
52
|
delete particle.pathGen;
|
package/browser/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { CurvesPathGenerator } from "./CurvesPathGenerator.js";
|
|
2
1
|
export const curvesPathName = "curvesPathGenerator";
|
|
3
|
-
export
|
|
4
|
-
engine.checkVersion("
|
|
5
|
-
|
|
2
|
+
export function loadCurvesPath(engine) {
|
|
3
|
+
engine.checkVersion("4.0.0-alpha.0");
|
|
4
|
+
engine.register(async (e) => {
|
|
5
|
+
const { CurvesPathGenerator } = await import("./CurvesPathGenerator.js");
|
|
6
|
+
e.addPathGenerator(curvesPathName, new CurvesPathGenerator());
|
|
7
|
+
});
|
|
6
8
|
}
|
package/cjs/Curves.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const engine_1 = require("@tsparticles/engine");
|
|
5
|
-
function CurvesPathGen(rndFunc, period, nbHarmonics, attenHarmonics, lowValue = 0, highValue = 1) {
|
|
6
|
-
const arP0 = [], arP1 = [], amplitudes = [], increments = [], phases = [], randomFunc = rndFunc ?? engine_1.getRandom;
|
|
1
|
+
import { getRandom } from "@tsparticles/engine";
|
|
2
|
+
export function CurvesPathGen(rndFunc, period, nbHarmonics, attenHarmonics, lowValue = 0, highValue = 1) {
|
|
3
|
+
const arP0 = [], arP1 = [], amplitudes = [], increments = [], phases = [], randomFunc = rndFunc ?? getRandom;
|
|
7
4
|
let globAmplitude = 0;
|
|
8
5
|
if (nbHarmonics < 1)
|
|
9
6
|
nbHarmonics = 1;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.CurvesPathGenerator = void 0;
|
|
4
|
-
const engine_1 = require("@tsparticles/engine");
|
|
5
|
-
const Curves_js_1 = require("./Curves.js");
|
|
6
|
-
const double = 2, doublePI = Math.PI * double;
|
|
1
|
+
import { Vector, doublePI, getRandom, isFunction, isString, } from "@tsparticles/engine";
|
|
2
|
+
import { CurvesPathGen } from "./Curves.js";
|
|
7
3
|
function randomVelocity() {
|
|
8
4
|
const offset = 0.8, factor = 0.6;
|
|
9
|
-
return
|
|
5
|
+
return getRandom() * factor + offset;
|
|
10
6
|
}
|
|
11
|
-
class CurvesPathGenerator {
|
|
7
|
+
export class CurvesPathGenerator {
|
|
12
8
|
constructor() {
|
|
13
9
|
this.options = {
|
|
14
10
|
rndFunc: null,
|
|
@@ -22,12 +18,12 @@ class CurvesPathGenerator {
|
|
|
22
18
|
generate(p) {
|
|
23
19
|
if (!p.pathGen) {
|
|
24
20
|
const options = this.options;
|
|
25
|
-
p.pathGen =
|
|
21
|
+
p.pathGen = CurvesPathGen(options.rndFunc, options.period, options.nbHarmonics, options.attenHarmonics, options.lowValue, options.highValue);
|
|
26
22
|
}
|
|
27
23
|
if (!p.curveVelocity) {
|
|
28
|
-
p.curveVelocity =
|
|
24
|
+
p.curveVelocity = Vector.origin;
|
|
29
25
|
p.curveVelocity.length = randomVelocity();
|
|
30
|
-
p.curveVelocity.angle =
|
|
26
|
+
p.curveVelocity.angle = getRandom() * doublePI;
|
|
31
27
|
}
|
|
32
28
|
else {
|
|
33
29
|
p.curveVelocity.length += 0.01;
|
|
@@ -39,18 +35,18 @@ class CurvesPathGenerator {
|
|
|
39
35
|
}
|
|
40
36
|
init(container) {
|
|
41
37
|
const sourceOptions = container.actualOptions.particles.move.path.options, { options } = this;
|
|
42
|
-
if (
|
|
43
|
-
options.rndFunc = sourceOptions
|
|
38
|
+
if (isFunction(sourceOptions["rndFunc"])) {
|
|
39
|
+
options.rndFunc = sourceOptions["rndFunc"];
|
|
44
40
|
}
|
|
45
|
-
else if (
|
|
41
|
+
else if (isString(sourceOptions["rndFunc"])) {
|
|
46
42
|
options.rndFunc =
|
|
47
|
-
|
|
43
|
+
globalThis[sourceOptions["rndFunc"]] ?? this.options.rndFunc;
|
|
48
44
|
}
|
|
49
|
-
options.period = sourceOptions
|
|
50
|
-
options.nbHarmonics = sourceOptions
|
|
51
|
-
options.attenHarmonics = sourceOptions
|
|
52
|
-
options.lowValue = sourceOptions
|
|
53
|
-
options.highValue = sourceOptions
|
|
45
|
+
options.period = sourceOptions["period"] ?? options.period;
|
|
46
|
+
options.nbHarmonics = sourceOptions["nbHarmonics"] ?? options.nbHarmonics;
|
|
47
|
+
options.attenHarmonics = sourceOptions["attenHarmonics"] ?? options.attenHarmonics;
|
|
48
|
+
options.lowValue = sourceOptions["lowValue"] ?? options.lowValue;
|
|
49
|
+
options.highValue = sourceOptions["highValue"] ?? options.highValue;
|
|
54
50
|
}
|
|
55
51
|
reset(particle) {
|
|
56
52
|
delete particle.pathGen;
|
|
@@ -59,4 +55,3 @@ class CurvesPathGenerator {
|
|
|
59
55
|
update() {
|
|
60
56
|
}
|
|
61
57
|
}
|
|
62
|
-
exports.CurvesPathGenerator = CurvesPathGenerator;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/cjs/ICurvesOptions.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/cjs/index.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
engine.checkVersion("3.9.0");
|
|
9
|
-
await engine.addPathGenerator(exports.curvesPathName, new CurvesPathGenerator_js_1.CurvesPathGenerator(), refresh);
|
|
1
|
+
export const curvesPathName = "curvesPathGenerator";
|
|
2
|
+
export function loadCurvesPath(engine) {
|
|
3
|
+
engine.checkVersion("4.0.0-alpha.0");
|
|
4
|
+
engine.register(async (e) => {
|
|
5
|
+
const { CurvesPathGenerator } = await import("./CurvesPathGenerator.js");
|
|
6
|
+
e.addPathGenerator(curvesPathName, new CurvesPathGenerator());
|
|
7
|
+
});
|
|
10
8
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Author : Matteo Bruni
|
|
3
|
+
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
+
* Demo / Generator : https://particles.js.org/
|
|
5
|
+
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
+
* How to use? : Check the GitHub README
|
|
7
|
+
* v4.0.0-alpha.0
|
|
8
|
+
*/
|
|
9
|
+
"use strict";
|
|
10
|
+
/*
|
|
11
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
+
* This devtool is neither made for production nor for readable output files.
|
|
13
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
+
* or disable the default devtool with "devtool: false".
|
|
16
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
+
*/
|
|
18
|
+
(this["webpackChunk_tsparticles_path_curves"] = this["webpackChunk_tsparticles_path_curves"] || []).push([["dist_browser_CurvesPathGenerator_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "./dist/browser/Curves.js"
|
|
21
|
+
/*!********************************!*\
|
|
22
|
+
!*** ./dist/browser/Curves.js ***!
|
|
23
|
+
\********************************/
|
|
24
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
+
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ CurvesPathGen: () => (/* binding */ CurvesPathGen)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n\nfunction CurvesPathGen(rndFunc, period, nbHarmonics, attenHarmonics, lowValue = 0, highValue = 1) {\n const arP0 = [],\n arP1 = [],\n amplitudes = [],\n increments = [],\n phases = [],\n randomFunc = rndFunc ?? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom;\n let globAmplitude = 0;\n if (nbHarmonics < 1) nbHarmonics = 1;\n for (let kh = 1; kh <= nbHarmonics; ++kh) {\n arP0[kh] = randomFunc();\n arP1[kh] = randomFunc();\n amplitudes[kh] = kh === 1 ? 1 : amplitudes[kh - 1] * attenHarmonics;\n globAmplitude += amplitudes[kh];\n increments[kh] = kh / period;\n phases[kh] = randomFunc();\n }\n amplitudes.forEach((value, kh) => amplitudes[kh] = value / globAmplitude * (highValue - lowValue));\n return () => {\n let pf,\n pfl,\n signal = 0;\n for (let kh = nbHarmonics; kh >= 1; --kh) {\n pf = phases[kh] += increments[kh];\n if (phases[kh] >= 1) {\n pf = phases[kh] -= 1;\n arP0[kh] = arP1[kh];\n arP1[kh] = randomFunc();\n }\n pfl = pf ** 2 * (3 - 2 * pf);\n signal += (arP0[kh] * (1 - pfl) + arP1[kh] * pfl) * amplitudes[kh];\n }\n return signal + lowValue;\n };\n}\n\n//# sourceURL=webpack://@tsparticles/path-curves/./dist/browser/Curves.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "./dist/browser/CurvesPathGenerator.js"
|
|
31
|
+
/*!*********************************************!*\
|
|
32
|
+
!*** ./dist/browser/CurvesPathGenerator.js ***!
|
|
33
|
+
\*********************************************/
|
|
34
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
|
+
|
|
36
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ CurvesPathGenerator: () => (/* binding */ CurvesPathGenerator)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _Curves_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Curves.js */ \"./dist/browser/Curves.js\");\n\n\nfunction randomVelocity() {\n const offset = 0.8,\n factor = 0.6;\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * factor + offset;\n}\nclass CurvesPathGenerator {\n constructor() {\n this.options = {\n rndFunc: null,\n period: 100,\n nbHarmonics: 2,\n attenHarmonics: 0.8,\n lowValue: -0.03,\n highValue: 0.03\n };\n }\n generate(p) {\n if (!p.pathGen) {\n const options = this.options;\n p.pathGen = (0,_Curves_js__WEBPACK_IMPORTED_MODULE_1__.CurvesPathGen)(options.rndFunc, options.period, options.nbHarmonics, options.attenHarmonics, options.lowValue, options.highValue);\n }\n if (!p.curveVelocity) {\n p.curveVelocity = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin;\n p.curveVelocity.length = randomVelocity();\n p.curveVelocity.angle = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.doublePI;\n } else {\n p.curveVelocity.length += 0.01;\n p.curveVelocity.angle = (p.curveVelocity.angle + p.pathGen()) % _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.doublePI;\n }\n p.velocity.x = 0;\n p.velocity.y = 0;\n return p.curveVelocity;\n }\n init(container) {\n const sourceOptions = container.actualOptions.particles.move.path.options,\n {\n options\n } = this;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isFunction)(sourceOptions[\"rndFunc\"])) {\n options.rndFunc = sourceOptions[\"rndFunc\"];\n } else if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(sourceOptions[\"rndFunc\"])) {\n options.rndFunc = globalThis[sourceOptions[\"rndFunc\"]] ?? this.options.rndFunc;\n }\n options.period = sourceOptions[\"period\"] ?? options.period;\n options.nbHarmonics = sourceOptions[\"nbHarmonics\"] ?? options.nbHarmonics;\n options.attenHarmonics = sourceOptions[\"attenHarmonics\"] ?? options.attenHarmonics;\n options.lowValue = sourceOptions[\"lowValue\"] ?? options.lowValue;\n options.highValue = sourceOptions[\"highValue\"] ?? options.highValue;\n }\n reset(particle) {\n delete particle.pathGen;\n delete particle.curveVelocity;\n }\n update() {}\n}\n\n//# sourceURL=webpack://@tsparticles/path-curves/./dist/browser/CurvesPathGenerator.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ }
|
|
39
|
+
|
|
40
|
+
}]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Vector, getRandom, isFunction, isString } from "@tsparticles/engine";
|
|
1
|
+
import { Vector, doublePI, getRandom, isFunction, isString, } from "@tsparticles/engine";
|
|
2
2
|
import { CurvesPathGen } from "./Curves.js";
|
|
3
|
-
const double = 2, doublePI = Math.PI * double;
|
|
4
3
|
function randomVelocity() {
|
|
5
4
|
const offset = 0.8, factor = 0.6;
|
|
6
5
|
return getRandom() * factor + offset;
|
|
@@ -36,18 +35,18 @@ export class CurvesPathGenerator {
|
|
|
36
35
|
}
|
|
37
36
|
init(container) {
|
|
38
37
|
const sourceOptions = container.actualOptions.particles.move.path.options, { options } = this;
|
|
39
|
-
if (isFunction(sourceOptions
|
|
40
|
-
options.rndFunc = sourceOptions
|
|
38
|
+
if (isFunction(sourceOptions["rndFunc"])) {
|
|
39
|
+
options.rndFunc = sourceOptions["rndFunc"];
|
|
41
40
|
}
|
|
42
|
-
else if (isString(sourceOptions
|
|
41
|
+
else if (isString(sourceOptions["rndFunc"])) {
|
|
43
42
|
options.rndFunc =
|
|
44
|
-
|
|
43
|
+
globalThis[sourceOptions["rndFunc"]] ?? this.options.rndFunc;
|
|
45
44
|
}
|
|
46
|
-
options.period = sourceOptions
|
|
47
|
-
options.nbHarmonics = sourceOptions
|
|
48
|
-
options.attenHarmonics = sourceOptions
|
|
49
|
-
options.lowValue = sourceOptions
|
|
50
|
-
options.highValue = sourceOptions
|
|
45
|
+
options.period = sourceOptions["period"] ?? options.period;
|
|
46
|
+
options.nbHarmonics = sourceOptions["nbHarmonics"] ?? options.nbHarmonics;
|
|
47
|
+
options.attenHarmonics = sourceOptions["attenHarmonics"] ?? options.attenHarmonics;
|
|
48
|
+
options.lowValue = sourceOptions["lowValue"] ?? options.lowValue;
|
|
49
|
+
options.highValue = sourceOptions["highValue"] ?? options.highValue;
|
|
51
50
|
}
|
|
52
51
|
reset(particle) {
|
|
53
52
|
delete particle.pathGen;
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { CurvesPathGenerator } from "./CurvesPathGenerator.js";
|
|
2
1
|
export const curvesPathName = "curvesPathGenerator";
|
|
3
|
-
export
|
|
4
|
-
engine.checkVersion("
|
|
5
|
-
|
|
2
|
+
export function loadCurvesPath(engine) {
|
|
3
|
+
engine.checkVersion("4.0.0-alpha.0");
|
|
4
|
+
engine.register(async (e) => {
|
|
5
|
+
const { CurvesPathGenerator } = await import("./CurvesPathGenerator.js");
|
|
6
|
+
e.addPathGenerator(curvesPathName, new CurvesPathGenerator());
|
|
7
|
+
});
|
|
6
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/path-curves",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.0",
|
|
4
4
|
"description": "tsParticles curves path",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"./package.json": "./package.json"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@tsparticles/engine": "
|
|
108
|
-
}
|
|
107
|
+
"@tsparticles/engine": "4.0.0-alpha.0"
|
|
108
|
+
},
|
|
109
|
+
"type": "module"
|
|
109
110
|
}
|