@tsparticles/path-random 4.0.0-beta.0 → 4.0.0-beta.1
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/{387.min.js → 727.min.js} +1 -1
- package/browser/index.js +3 -3
- package/cjs/index.js +3 -3
- package/dist_browser_RandomPathGenerator_js.js +1 -1
- package/esm/index.js +3 -3
- package/package.json +3 -3
- package/report.html +84 -29
- package/tsparticles.path.random.js +2 -2
- package/tsparticles.path.random.min.js +2 -2
- package/umd/index.js +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_path_random=this.webpackChunk_tsparticles_path_random||[]).push([[
|
|
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);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,10 @@
|
|
|
1
1
|
export const randomPathName = "randomPathGenerator";
|
|
2
2
|
export async function loadRandomPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
4
|
-
await engine.register(async (e) => {
|
|
3
|
+
engine.checkVersion("4.0.0-beta.1");
|
|
4
|
+
await engine.pluginManager.register(async (e) => {
|
|
5
5
|
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
|
|
6
6
|
ensureBaseMoverLoaded(e);
|
|
7
|
-
e.addPathGenerator?.(randomPathName, async () => {
|
|
7
|
+
e.pluginManager.addPathGenerator?.(randomPathName, async () => {
|
|
8
8
|
const { RandomPathGenerator } = await import("./RandomPathGenerator.js");
|
|
9
9
|
return new RandomPathGenerator();
|
|
10
10
|
});
|
package/cjs/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const randomPathName = "randomPathGenerator";
|
|
2
2
|
export async function loadRandomPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
4
|
-
await engine.register(async (e) => {
|
|
3
|
+
engine.checkVersion("4.0.0-beta.1");
|
|
4
|
+
await engine.pluginManager.register(async (e) => {
|
|
5
5
|
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
|
|
6
6
|
ensureBaseMoverLoaded(e);
|
|
7
|
-
e.addPathGenerator?.(randomPathName, async () => {
|
|
7
|
+
e.pluginManager.addPathGenerator?.(randomPathName, async () => {
|
|
8
8
|
const { RandomPathGenerator } = await import("./RandomPathGenerator.js");
|
|
9
9
|
return new RandomPathGenerator();
|
|
10
10
|
});
|
package/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const randomPathName = "randomPathGenerator";
|
|
2
2
|
export async function loadRandomPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0-beta.
|
|
4
|
-
await engine.register(async (e) => {
|
|
3
|
+
engine.checkVersion("4.0.0-beta.1");
|
|
4
|
+
await engine.pluginManager.register(async (e) => {
|
|
5
5
|
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
|
|
6
6
|
ensureBaseMoverLoaded(e);
|
|
7
|
-
e.addPathGenerator?.(randomPathName, async () => {
|
|
7
|
+
e.pluginManager.addPathGenerator?.(randomPathName, async () => {
|
|
8
8
|
const { RandomPathGenerator } = await import("./RandomPathGenerator.js");
|
|
9
9
|
return new RandomPathGenerator();
|
|
10
10
|
});
|
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.1",
|
|
4
4
|
"description": "tsParticles zig zag path",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"./package.json": "./package.json"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
-
"@tsparticles/engine": "4.0.0-beta.
|
|
105
|
-
"@tsparticles/plugin-move": "4.0.0-beta.
|
|
104
|
+
"@tsparticles/engine": "4.0.0-beta.1",
|
|
105
|
+
"@tsparticles/plugin-move": "4.0.0-beta.1"
|
|
106
106
|
},
|
|
107
107
|
"publishConfig": {
|
|
108
108
|
"access": "public"
|