@tsparticles/path-random 4.0.0-beta.0 → 4.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/727.min.js +1 -0
- package/browser/RandomPathGenerator.js +1 -0
- package/browser/index.js +5 -3
- package/cjs/RandomPathGenerator.js +1 -0
- package/cjs/index.js +5 -3
- package/dist_browser_RandomPathGenerator_js.js +2 -2
- package/esm/RandomPathGenerator.js +1 -0
- package/esm/index.js +5 -3
- package/package.json +5 -6
- package/report.html +84 -29
- package/tsparticles.path.random.js +6 -6
- package/tsparticles.path.random.min.js +2 -2
- package/387.min.js +0 -1
- package/umd/RandomPathGenerator.js +0 -33
- package/umd/index.js +0 -60
package/727.min.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunk_tsparticles_path_random=this.webpackChunk_tsparticles_path_random||[]).push([[727],{727(t,e,s){s.d(e,{RandomPathGenerator:()=>a});var r=s(303);s(400);class a{_res;constructor(){this._res=r.Vector.origin}generate(){return this._res.x=(0,r.getRandomInRange)(-1,1),this._res.y=(0,r.getRandomInRange)(-1,1),this._res}init(){}reset(){}update(){}}}}]);
|
package/browser/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import {} from "@tsparticles/engine";
|
|
2
|
+
import {} from "@tsparticles/plugin-move";
|
|
1
3
|
export const randomPathName = "randomPathGenerator";
|
|
2
4
|
export async function loadRandomPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
4
|
-
await engine.register(async (e) => {
|
|
5
|
+
engine.checkVersion("4.0.0-beta.2");
|
|
6
|
+
await engine.pluginManager.register(async (e) => {
|
|
5
7
|
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
|
|
6
8
|
ensureBaseMoverLoaded(e);
|
|
7
|
-
e.addPathGenerator?.(randomPathName, async () => {
|
|
9
|
+
e.pluginManager.addPathGenerator?.(randomPathName, async () => {
|
|
8
10
|
const { RandomPathGenerator } = await import("./RandomPathGenerator.js");
|
|
9
11
|
return new RandomPathGenerator();
|
|
10
12
|
});
|
package/cjs/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import {} from "@tsparticles/engine";
|
|
2
|
+
import {} from "@tsparticles/plugin-move";
|
|
1
3
|
export const randomPathName = "randomPathGenerator";
|
|
2
4
|
export async function loadRandomPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
4
|
-
await engine.register(async (e) => {
|
|
5
|
+
engine.checkVersion("4.0.0-beta.2");
|
|
6
|
+
await engine.pluginManager.register(async (e) => {
|
|
5
7
|
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
|
|
6
8
|
ensureBaseMoverLoaded(e);
|
|
7
|
-
e.addPathGenerator?.(randomPathName, async () => {
|
|
9
|
+
e.pluginManager.addPathGenerator?.(randomPathName, async () => {
|
|
8
10
|
const { RandomPathGenerator } = await import("./RandomPathGenerator.js");
|
|
9
11
|
return new RandomPathGenerator();
|
|
10
12
|
});
|
|
@@ -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
|
-
* v4.0.0-beta.
|
|
7
|
+
* v4.0.0-beta.2
|
|
8
8
|
*/
|
|
9
9
|
"use strict";
|
|
10
10
|
/*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
\*********************************************/
|
|
24
24
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
25
|
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ RandomPathGenerator: () => (/* binding */ RandomPathGenerator)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n\nconst minRandom = -1, maxRandom = 1;\nclass RandomPathGenerator {\n _res;\n constructor(){\n this._res = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin;\n }\n generate() {\n this._res.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandomInRange)(minRandom, maxRandom);\n this._res.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandomInRange)(minRandom, maxRandom);\n return this._res;\n }\n init() {}\n reset() {}\n update() {}\n}\n\n\n//# sourceURL=webpack://@tsparticles/path-random/./dist/browser/RandomPathGenerator.js?\n}");
|
|
26
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ RandomPathGenerator: () => (/* binding */ RandomPathGenerator)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n/* harmony import */ var _tsparticles_plugin_move__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tsparticles/plugin-move */ \"@tsparticles/plugin-move\");\n\n\nconst minRandom = -1, maxRandom = 1;\nclass RandomPathGenerator {\n _res;\n constructor(){\n this._res = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin;\n }\n generate() {\n this._res.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandomInRange)(minRandom, maxRandom);\n this._res.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandomInRange)(minRandom, maxRandom);\n return this._res;\n }\n init() {}\n reset() {}\n update() {}\n}\n\n\n//# sourceURL=webpack://@tsparticles/path-random/./dist/browser/RandomPathGenerator.js?\n}");
|
|
27
27
|
|
|
28
28
|
/***/ }
|
|
29
29
|
|
package/esm/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import {} from "@tsparticles/engine";
|
|
2
|
+
import {} from "@tsparticles/plugin-move";
|
|
1
3
|
export const randomPathName = "randomPathGenerator";
|
|
2
4
|
export async function loadRandomPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
4
|
-
await engine.register(async (e) => {
|
|
5
|
+
engine.checkVersion("4.0.0-beta.2");
|
|
6
|
+
await engine.pluginManager.register(async (e) => {
|
|
5
7
|
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
|
|
6
8
|
ensureBaseMoverLoaded(e);
|
|
7
|
-
e.addPathGenerator?.(randomPathName, async () => {
|
|
9
|
+
e.pluginManager.addPathGenerator?.(randomPathName, async () => {
|
|
8
10
|
const { RandomPathGenerator } = await import("./RandomPathGenerator.js");
|
|
9
11
|
return new RandomPathGenerator();
|
|
10
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/path-random",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.2",
|
|
4
4
|
"description": "tsParticles zig zag path",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -95,14 +95,13 @@
|
|
|
95
95
|
"browser": "./browser/index.js",
|
|
96
96
|
"import": "./esm/index.js",
|
|
97
97
|
"require": "./cjs/index.js",
|
|
98
|
-
"
|
|
99
|
-
"default": "./cjs/index.js"
|
|
98
|
+
"default": "./esm/index.js"
|
|
100
99
|
},
|
|
101
100
|
"./package.json": "./package.json"
|
|
102
101
|
},
|
|
103
|
-
"
|
|
104
|
-
"@tsparticles/engine": "4.0.0-beta.
|
|
105
|
-
"@tsparticles/plugin-move": "4.0.0-beta.
|
|
102
|
+
"peerDependencies": {
|
|
103
|
+
"@tsparticles/engine": "4.0.0-beta.1",
|
|
104
|
+
"@tsparticles/plugin-move": "4.0.0-beta.1"
|
|
106
105
|
},
|
|
107
106
|
"publishConfig": {
|
|
108
107
|
"access": "public"
|