@tsparticles/shape-star 3.0.0-beta.1 → 3.0.0-beta.3

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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![npmjs](https://badge.fury.io/js/@tsparticles/shape-star.svg)](https://www.npmjs.com/package/@tsparticles/shape-star)
7
7
  [![npmjs](https://img.shields.io/npm/dt/@tsparticles/shape-star)](https://www.npmjs.com/package/@tsparticles/shape-star) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
8
8
 
9
- [tsParticles](https://github.com/matteobruni/tsparticles) additional star shape.
9
+ [tsParticles](https://github.com/tsparticles/tsparticles) additional star shape.
10
10
 
11
11
  ## How to use it
12
12
 
@@ -1,7 +1,7 @@
1
- import { getRangeValue } from "@tsparticles/engine";
1
+ import { getRangeValue, } from "@tsparticles/engine";
2
2
  export class StarDrawer {
3
- draw(context, particle, radius) {
4
- const sides = particle.sides, inset = particle.starInset ?? 2;
3
+ draw(data) {
4
+ const { context, particle, radius } = data, sides = particle.sides, inset = particle.starInset ?? 2;
5
5
  context.moveTo(0, 0 - radius);
6
6
  for (let i = 0; i < sides; i++) {
7
7
  context.rotate(Math.PI / sides);
package/cjs/StarDrawer.js CHANGED
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StarDrawer = void 0;
4
4
  const engine_1 = require("@tsparticles/engine");
5
5
  class StarDrawer {
6
- draw(context, particle, radius) {
7
- const sides = particle.sides, inset = particle.starInset ?? 2;
6
+ draw(data) {
7
+ const { context, particle, radius } = data, sides = particle.sides, inset = particle.starInset ?? 2;
8
8
  context.moveTo(0, 0 - radius);
9
9
  for (let i = 0; i < sides; i++) {
10
10
  context.rotate(Math.PI / sides);
package/esm/StarDrawer.js CHANGED
@@ -1,7 +1,7 @@
1
- import { getRangeValue } from "@tsparticles/engine";
1
+ import { getRangeValue, } from "@tsparticles/engine";
2
2
  export class StarDrawer {
3
- draw(context, particle, radius) {
4
- const sides = particle.sides, inset = particle.starInset ?? 2;
3
+ draw(data) {
4
+ const { context, particle, radius } = data, sides = particle.sides, inset = particle.starInset ?? 2;
5
5
  context.moveTo(0, 0 - radius);
6
6
  for (let i = 0; i < sides; i++) {
7
7
  context.rotate(Math.PI / sides);
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/shape-star",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.3",
4
4
  "description": "tsParticles star shape",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/matteobruni/tsparticles.git",
8
+ "url": "git+https://github.com/tsparticles/tsparticles.git",
9
9
  "directory": "shapes/star"
10
10
  },
11
11
  "keywords": [
@@ -38,7 +38,7 @@
38
38
  "author": "Matteo Bruni <matteo.bruni@me.com>",
39
39
  "license": "MIT",
40
40
  "bugs": {
41
- "url": "https://github.com/matteobruni/tsparticles/issues"
41
+ "url": "https://github.com/tsparticles/tsparticles/issues"
42
42
  },
43
43
  "sideEffects": false,
44
44
  "jsdelivr": "tsparticles.shape.star.min.js",
@@ -59,7 +59,7 @@
59
59
  "./package.json": "./package.json"
60
60
  },
61
61
  "dependencies": {
62
- "@tsparticles/engine": "^3.0.0-beta.1"
62
+ "@tsparticles/engine": "^3.0.0-beta.3"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"