@tsparticles/shape-path 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 +3 -5
- package/browser/index.lazy.js +7 -0
- package/cjs/browser.js +5 -0
- package/cjs/index.js +3 -5
- package/cjs/index.lazy.js +7 -0
- package/esm/browser.js +5 -0
- package/esm/index.js +3 -5
- package/esm/index.lazy.js +7 -0
- package/package.json +10 -3
- package/report.html +4949 -94
- package/tsparticles.shape.path.js +41 -327
- package/tsparticles.shape.path.min.js +1 -2
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/297.min.js +0 -1
- package/dist_browser_PathDrawer_js.js +0 -30
package/browser/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import { PathDrawer } from "./PathDrawer.js";
|
|
1
2
|
export async function loadPathShape(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0
|
|
3
|
+
engine.checkVersion("4.0.0");
|
|
3
4
|
await engine.pluginManager.register(e => {
|
|
4
|
-
e.pluginManager.addShape(["path"],
|
|
5
|
-
const { PathDrawer } = await import("./PathDrawer.js");
|
|
6
|
-
return new PathDrawer();
|
|
7
|
-
});
|
|
5
|
+
e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
|
|
8
6
|
});
|
|
9
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export async function loadPathShape(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const { PathDrawer } = await import("./PathDrawer.js");
|
|
5
|
+
e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
|
|
6
|
+
});
|
|
7
|
+
}
|
package/cjs/browser.js
ADDED
package/cjs/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import { PathDrawer } from "./PathDrawer.js";
|
|
1
2
|
export async function loadPathShape(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0
|
|
3
|
+
engine.checkVersion("4.0.0");
|
|
3
4
|
await engine.pluginManager.register(e => {
|
|
4
|
-
e.pluginManager.addShape(["path"],
|
|
5
|
-
const { PathDrawer } = await import("./PathDrawer.js");
|
|
6
|
-
return new PathDrawer();
|
|
7
|
-
});
|
|
5
|
+
e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
|
|
8
6
|
});
|
|
9
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export async function loadPathShape(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const { PathDrawer } = await import("./PathDrawer.js");
|
|
5
|
+
e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
|
|
6
|
+
});
|
|
7
|
+
}
|
package/esm/browser.js
ADDED
package/esm/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import { PathDrawer } from "./PathDrawer.js";
|
|
1
2
|
export async function loadPathShape(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0
|
|
3
|
+
engine.checkVersion("4.0.0");
|
|
3
4
|
await engine.pluginManager.register(e => {
|
|
4
|
-
e.pluginManager.addShape(["path"],
|
|
5
|
-
const { PathDrawer } = await import("./PathDrawer.js");
|
|
6
|
-
return new PathDrawer();
|
|
7
|
-
});
|
|
5
|
+
e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
|
|
8
6
|
});
|
|
9
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export async function loadPathShape(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const { PathDrawer } = await import("./PathDrawer.js");
|
|
5
|
+
e.pluginManager.addShape(["path"], () => Promise.resolve(new PathDrawer()));
|
|
6
|
+
});
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/shape-path",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "tsParticles path shape",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -96,11 +96,18 @@
|
|
|
96
96
|
"require": "./cjs/index.js",
|
|
97
97
|
"default": "./esm/index.js"
|
|
98
98
|
},
|
|
99
|
+
"./lazy": {
|
|
100
|
+
"types": "./types/index.lazy.d.ts",
|
|
101
|
+
"browser": "./browser/index.lazy.js",
|
|
102
|
+
"import": "./esm/index.lazy.js",
|
|
103
|
+
"require": "./cjs/index.lazy.js",
|
|
104
|
+
"default": "./esm/index.lazy.js"
|
|
105
|
+
},
|
|
99
106
|
"./package.json": "./package.json"
|
|
100
107
|
},
|
|
101
108
|
"peerDependencies": {
|
|
102
|
-
"@tsparticles/engine": "4.0.0
|
|
103
|
-
"@tsparticles/path-utils": "4.0.0
|
|
109
|
+
"@tsparticles/engine": "4.0.0",
|
|
110
|
+
"@tsparticles/path-utils": "4.0.0"
|
|
104
111
|
},
|
|
105
112
|
"publishConfig": {
|
|
106
113
|
"access": "public"
|