@tsparticles/shape-line 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.
@@ -1 +1 @@
1
- "use strict";(this.webpackChunk_tsparticles_shape_line=this.webpackChunk_tsparticles_shape_line||[]).push([[264],{264(e,t,s){s.d(t,{LineDrawer:()=>a});class a{draw(e){!function(e){let{context:t,particle:s,radius:a}=e,i=s.shapeData;t.moveTo(-a,0),t.lineTo(a,0),t.lineCap=i?.cap??"butt"}(e)}getSidesCount(){return 1}}}}]);
1
+ "use strict";(this.webpackChunk_tsparticles_shape_line=this.webpackChunk_tsparticles_shape_line||[]).push([[767],{767(e,t,s){s.d(t,{LineDrawer:()=>a});class a{draw(e){!function(e){let{context:t,particle:s,radius:a}=e,i=s.shapeData;t.moveTo(-a,0),t.lineTo(a,0),t.lineCap=i?.cap??"butt"}(e)}getSidesCount(){return 1}}}}]);
package/browser/index.js CHANGED
@@ -1,7 +1,8 @@
1
+ import {} from "@tsparticles/engine";
1
2
  export async function loadLineShape(engine) {
2
- engine.checkVersion("4.0.0-beta.0");
3
- await engine.register(e => {
4
- e.addShape(["line"], async () => {
3
+ engine.checkVersion("4.0.0-beta.2");
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addShape(["line"], async () => {
5
6
  const { LineDrawer } = await import("./LineDrawer.js");
6
7
  return new LineDrawer();
7
8
  });
package/cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
+ import {} from "@tsparticles/engine";
1
2
  export async function loadLineShape(engine) {
2
- engine.checkVersion("4.0.0-beta.0");
3
- await engine.register(e => {
4
- e.addShape(["line"], async () => {
3
+ engine.checkVersion("4.0.0-beta.2");
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addShape(["line"], async () => {
5
6
  const { LineDrawer } = await import("./LineDrawer.js");
6
7
  return new LineDrawer();
7
8
  });
@@ -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.2
8
8
  */
9
9
  "use strict";
10
10
  /*
package/esm/index.js CHANGED
@@ -1,7 +1,8 @@
1
+ import {} from "@tsparticles/engine";
1
2
  export async function loadLineShape(engine) {
2
- engine.checkVersion("4.0.0-beta.0");
3
- await engine.register(e => {
4
- e.addShape(["line"], async () => {
3
+ engine.checkVersion("4.0.0-beta.2");
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addShape(["line"], async () => {
5
6
  const { LineDrawer } = await import("./LineDrawer.js");
6
7
  return new LineDrawer();
7
8
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/shape-line",
3
- "version": "4.0.0-beta.0",
3
+ "version": "4.0.0-beta.2",
4
4
  "description": "tsParticles line shape",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -53,13 +53,12 @@
53
53
  "browser": "./browser/index.js",
54
54
  "import": "./esm/index.js",
55
55
  "require": "./cjs/index.js",
56
- "umd": "./umd/index.js",
57
- "default": "./cjs/index.js"
56
+ "default": "./esm/index.js"
58
57
  },
59
58
  "./package.json": "./package.json"
60
59
  },
61
- "dependencies": {
62
- "@tsparticles/engine": "4.0.0-beta.0"
60
+ "peerDependencies": {
61
+ "@tsparticles/engine": "4.0.0-beta.1"
63
62
  },
64
63
  "publishConfig": {
65
64
  "access": "public"