@tsparticles/shape-path 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.
@@ -1 +1 @@
1
- "use strict";(this.webpackChunk_tsparticles_shape_path=this.webpackChunk_tsparticles_shape_path||[]).push([[374],{374(a,t,e){e.d(t,{PathDrawer:()=>s});var h=e(303),p=e(580);class s{draw(a){let{context:t,particle:e,radius:h}=a;e.pathData&&(0,p.drawPath)(t,h,e.pathData)}particleInit(a,t){let e=t.shapeData;e&&(t.pathData=(0,h.deepExtend)({},e))}}}}]);
1
+ "use strict";(this.webpackChunk_tsparticles_shape_path=this.webpackChunk_tsparticles_shape_path||[]).push([[810],{810(a,t,e){e.d(t,{PathDrawer:()=>s});var h=e(303),p=e(580);class s{draw(a){let{context:t,particle:e,radius:h}=a;e.pathData&&(0,p.drawPath)(t,h,e.pathData)}particleInit(a,t){let e=t.shapeData;e&&(t.pathData=(0,h.deepExtend)({},e))}}}}]);
package/browser/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export async function loadPathShape(engine) {
2
- engine.checkVersion("4.0.0-beta.0");
3
- await engine.register(e => {
4
- e.addShape(["path"], async () => {
2
+ engine.checkVersion("4.0.0-beta.1");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addShape(["path"], async () => {
5
5
  const { PathDrawer } = await import("./PathDrawer.js");
6
6
  return new PathDrawer();
7
7
  });
package/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export async function loadPathShape(engine) {
2
- engine.checkVersion("4.0.0-beta.0");
3
- await engine.register(e => {
4
- e.addShape(["path"], async () => {
2
+ engine.checkVersion("4.0.0-beta.1");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addShape(["path"], async () => {
5
5
  const { PathDrawer } = await import("./PathDrawer.js");
6
6
  return new PathDrawer();
7
7
  });
@@ -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.0
7
+ * v4.0.0-beta.1
8
8
  */
9
9
  "use strict";
10
10
  /*
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export async function loadPathShape(engine) {
2
- engine.checkVersion("4.0.0-beta.0");
3
- await engine.register(e => {
4
- e.addShape(["path"], async () => {
2
+ engine.checkVersion("4.0.0-beta.1");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addShape(["path"], async () => {
5
5
  const { PathDrawer } = await import("./PathDrawer.js");
6
6
  return new PathDrawer();
7
7
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/shape-path",
3
- "version": "4.0.0-beta.0",
3
+ "version": "4.0.0-beta.1",
4
4
  "description": "tsParticles path shape",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -100,8 +100,8 @@
100
100
  "./package.json": "./package.json"
101
101
  },
102
102
  "dependencies": {
103
- "@tsparticles/engine": "4.0.0-beta.0",
104
- "@tsparticles/path-utils": "4.0.0-beta.0"
103
+ "@tsparticles/engine": "4.0.0-beta.1",
104
+ "@tsparticles/path-utils": "4.0.0-beta.1"
105
105
  },
106
106
  "publishConfig": {
107
107
  "access": "public"