@tsparticles/path-curves 4.0.0-beta.9 → 4.0.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/browser/browser.js +5 -0
- package/browser/index.js +6 -6
- package/browser/index.lazy.js +12 -0
- package/cjs/browser.js +5 -0
- package/cjs/index.js +6 -6
- package/cjs/index.lazy.js +12 -0
- package/esm/browser.js +5 -0
- package/esm/index.js +6 -6
- package/esm/index.lazy.js +12 -0
- package/package.json +10 -3
- package/report.html +4949 -94
- package/tsparticles.path.curves.js +115 -351
- package/tsparticles.path.curves.min.js +1 -2
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +3 -0
- package/680.min.js +0 -1
- package/dist_browser_CurvesPathGenerator_js.js +0 -40
package/browser/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { ensureBaseMoverLoaded } from "@tsparticles/plugin-move";
|
|
2
|
+
import { CurvesPathGenerator } from "./CurvesPathGenerator.js";
|
|
1
3
|
export const curvesPathName = "curvesPathGenerator";
|
|
2
4
|
export async function loadCurvesPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0
|
|
4
|
-
await engine.pluginManager.register(
|
|
5
|
-
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
|
|
5
|
+
engine.checkVersion("4.0.0");
|
|
6
|
+
await engine.pluginManager.register((e) => {
|
|
6
7
|
ensureBaseMoverLoaded(e);
|
|
7
|
-
e.pluginManager.addPathGenerator?.(curvesPathName,
|
|
8
|
-
|
|
9
|
-
return new CurvesPathGenerator(container);
|
|
8
|
+
e.pluginManager.addPathGenerator?.(curvesPathName, container => {
|
|
9
|
+
return Promise.resolve(new CurvesPathGenerator(container));
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
12
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const curvesPathName = "curvesPathGenerator";
|
|
2
|
+
export async function loadCurvesPath(engine) {
|
|
3
|
+
engine.checkVersion("4.0.0");
|
|
4
|
+
await engine.pluginManager.register(async (e) => {
|
|
5
|
+
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move/lazy");
|
|
6
|
+
ensureBaseMoverLoaded(e);
|
|
7
|
+
e.pluginManager.addPathGenerator?.(curvesPathName, async (container) => {
|
|
8
|
+
const { CurvesPathGenerator } = await import("./CurvesPathGenerator.js");
|
|
9
|
+
return new CurvesPathGenerator(container);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
}
|
package/cjs/browser.js
ADDED
package/cjs/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { ensureBaseMoverLoaded } from "@tsparticles/plugin-move";
|
|
2
|
+
import { CurvesPathGenerator } from "./CurvesPathGenerator.js";
|
|
1
3
|
export const curvesPathName = "curvesPathGenerator";
|
|
2
4
|
export async function loadCurvesPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0
|
|
4
|
-
await engine.pluginManager.register(
|
|
5
|
-
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
|
|
5
|
+
engine.checkVersion("4.0.0");
|
|
6
|
+
await engine.pluginManager.register((e) => {
|
|
6
7
|
ensureBaseMoverLoaded(e);
|
|
7
|
-
e.pluginManager.addPathGenerator?.(curvesPathName,
|
|
8
|
-
|
|
9
|
-
return new CurvesPathGenerator(container);
|
|
8
|
+
e.pluginManager.addPathGenerator?.(curvesPathName, container => {
|
|
9
|
+
return Promise.resolve(new CurvesPathGenerator(container));
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
12
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const curvesPathName = "curvesPathGenerator";
|
|
2
|
+
export async function loadCurvesPath(engine) {
|
|
3
|
+
engine.checkVersion("4.0.0");
|
|
4
|
+
await engine.pluginManager.register(async (e) => {
|
|
5
|
+
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move/lazy");
|
|
6
|
+
ensureBaseMoverLoaded(e);
|
|
7
|
+
e.pluginManager.addPathGenerator?.(curvesPathName, async (container) => {
|
|
8
|
+
const { CurvesPathGenerator } = await import("./CurvesPathGenerator.js");
|
|
9
|
+
return new CurvesPathGenerator(container);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
}
|
package/esm/browser.js
ADDED
package/esm/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { ensureBaseMoverLoaded } from "@tsparticles/plugin-move";
|
|
2
|
+
import { CurvesPathGenerator } from "./CurvesPathGenerator.js";
|
|
1
3
|
export const curvesPathName = "curvesPathGenerator";
|
|
2
4
|
export async function loadCurvesPath(engine) {
|
|
3
|
-
engine.checkVersion("4.0.0
|
|
4
|
-
await engine.pluginManager.register(
|
|
5
|
-
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move");
|
|
5
|
+
engine.checkVersion("4.0.0");
|
|
6
|
+
await engine.pluginManager.register((e) => {
|
|
6
7
|
ensureBaseMoverLoaded(e);
|
|
7
|
-
e.pluginManager.addPathGenerator?.(curvesPathName,
|
|
8
|
-
|
|
9
|
-
return new CurvesPathGenerator(container);
|
|
8
|
+
e.pluginManager.addPathGenerator?.(curvesPathName, container => {
|
|
9
|
+
return Promise.resolve(new CurvesPathGenerator(container));
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
12
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const curvesPathName = "curvesPathGenerator";
|
|
2
|
+
export async function loadCurvesPath(engine) {
|
|
3
|
+
engine.checkVersion("4.0.0");
|
|
4
|
+
await engine.pluginManager.register(async (e) => {
|
|
5
|
+
const { ensureBaseMoverLoaded } = await import("@tsparticles/plugin-move/lazy");
|
|
6
|
+
ensureBaseMoverLoaded(e);
|
|
7
|
+
e.pluginManager.addPathGenerator?.(curvesPathName, async (container) => {
|
|
8
|
+
const { CurvesPathGenerator } = await import("./CurvesPathGenerator.js");
|
|
9
|
+
return new CurvesPathGenerator(container);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/path-curves",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "tsParticles curves path",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -100,11 +100,18 @@
|
|
|
100
100
|
"require": "./cjs/index.js",
|
|
101
101
|
"default": "./esm/index.js"
|
|
102
102
|
},
|
|
103
|
+
"./lazy": {
|
|
104
|
+
"types": "./types/index.lazy.d.ts",
|
|
105
|
+
"browser": "./browser/index.lazy.js",
|
|
106
|
+
"import": "./esm/index.lazy.js",
|
|
107
|
+
"require": "./cjs/index.lazy.js",
|
|
108
|
+
"default": "./esm/index.lazy.js"
|
|
109
|
+
},
|
|
103
110
|
"./package.json": "./package.json"
|
|
104
111
|
},
|
|
105
112
|
"peerDependencies": {
|
|
106
|
-
"@tsparticles/engine": "4.0.0
|
|
107
|
-
"@tsparticles/plugin-move": "4.0.0
|
|
113
|
+
"@tsparticles/engine": "4.0.0",
|
|
114
|
+
"@tsparticles/plugin-move": "4.0.0"
|
|
108
115
|
},
|
|
109
116
|
"type": "module"
|
|
110
117
|
}
|