@tsparticles/shape-rounded-polygon 3.0.0-beta.2 → 3.0.0-beta.4

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.
@@ -17,7 +17,8 @@ function roundedPath(context, path, radius) {
17
17
  }
18
18
  }
19
19
  export class RoundedPolygonDrawer {
20
- draw(context, particle, radius) {
20
+ draw(data) {
21
+ const { context, particle, radius } = data;
21
22
  roundedPath(context, polygon(particle.sides, radius), particle.borderRadius ?? 5);
22
23
  }
23
24
  getSidesCount(particle) {
@@ -20,7 +20,8 @@ function roundedPath(context, path, radius) {
20
20
  }
21
21
  }
22
22
  class RoundedPolygonDrawer {
23
- draw(context, particle, radius) {
23
+ draw(data) {
24
+ const { context, particle, radius } = data;
24
25
  roundedPath(context, polygon(particle.sides, radius), particle.borderRadius ?? 5);
25
26
  }
26
27
  getSidesCount(particle) {
@@ -17,7 +17,8 @@ function roundedPath(context, path, radius) {
17
17
  }
18
18
  }
19
19
  export class RoundedPolygonDrawer {
20
- draw(context, particle, radius) {
20
+ draw(data) {
21
+ const { context, particle, radius } = data;
21
22
  roundedPath(context, polygon(particle.sides, radius), particle.borderRadius ?? 5);
22
23
  }
23
24
  getSidesCount(particle) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/shape-rounded-polygon",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "tsParticles rounded polygon shape",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -33,7 +33,7 @@
33
33
  "css3",
34
34
  "animated",
35
35
  "background",
36
- "@tsparticles/shape"
36
+ "tsparticles-shape"
37
37
  ],
38
38
  "author": "Matteo Bruni <matteo.bruni@me.com>",
39
39
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "./package.json": "./package.json"
60
60
  },
61
61
  "dependencies": {
62
- "@tsparticles/engine": "^3.0.0-beta.2"
62
+ "@tsparticles/engine": "^3.0.0-beta.4"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"