modern-path2d 1.5.3 → 1.5.5

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/dist/index.cjs CHANGED
@@ -4113,9 +4113,9 @@ class Path2D extends CompositeCurve {
4113
4113
  });
4114
4114
  return this;
4115
4115
  }
4116
- rotate(a, target = { x: 0, y: 0 }) {
4116
+ rotate(rad, target = { x: 0, y: 0 }) {
4117
4117
  this.getControlPointRefs().forEach((point) => {
4118
- point.rotate(a, target);
4118
+ point.rotate(rad, target);
4119
4119
  });
4120
4120
  return this;
4121
4121
  }
package/dist/index.d.cts CHANGED
@@ -615,7 +615,7 @@ declare class Path2D<T = any> extends CompositeCurve<CurvePath> {
615
615
  splineThru(points: Vector2[]): this;
616
616
  scale(sx: number, sy?: number, target?: Vector2Like): this;
617
617
  skew(ax: number, ay?: number, target?: Vector2Like): this;
618
- rotate(a: number, target?: Vector2Like): this;
618
+ rotate(rad: number, target?: Vector2Like): this;
619
619
  bold(b: number): this;
620
620
  getMinMax(min?: Vector2, max?: Vector2, withStyle?: boolean): {
621
621
  min: Vector2;
package/dist/index.d.mts CHANGED
@@ -615,7 +615,7 @@ declare class Path2D<T = any> extends CompositeCurve<CurvePath> {
615
615
  splineThru(points: Vector2[]): this;
616
616
  scale(sx: number, sy?: number, target?: Vector2Like): this;
617
617
  skew(ax: number, ay?: number, target?: Vector2Like): this;
618
- rotate(a: number, target?: Vector2Like): this;
618
+ rotate(rad: number, target?: Vector2Like): this;
619
619
  bold(b: number): this;
620
620
  getMinMax(min?: Vector2, max?: Vector2, withStyle?: boolean): {
621
621
  min: Vector2;
package/dist/index.d.ts CHANGED
@@ -615,7 +615,7 @@ declare class Path2D<T = any> extends CompositeCurve<CurvePath> {
615
615
  splineThru(points: Vector2[]): this;
616
616
  scale(sx: number, sy?: number, target?: Vector2Like): this;
617
617
  skew(ax: number, ay?: number, target?: Vector2Like): this;
618
- rotate(a: number, target?: Vector2Like): this;
618
+ rotate(rad: number, target?: Vector2Like): this;
619
619
  bold(b: number): this;
620
620
  getMinMax(min?: Vector2, max?: Vector2, withStyle?: boolean): {
621
621
  min: Vector2;
package/dist/index.mjs CHANGED
@@ -4107,9 +4107,9 @@ class Path2D extends CompositeCurve {
4107
4107
  });
4108
4108
  return this;
4109
4109
  }
4110
- rotate(a, target = { x: 0, y: 0 }) {
4110
+ rotate(rad, target = { x: 0, y: 0 }) {
4111
4111
  this.getControlPointRefs().forEach((point) => {
4112
- point.rotate(a, target);
4112
+ point.rotate(rad, target);
4113
4113
  });
4114
4114
  return this;
4115
4115
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-path2d",
3
3
  "type": "module",
4
- "version": "1.5.3",
4
+ "version": "1.5.5",
5
5
  "packageManager": "pnpm@9.15.1",
6
6
  "description": "A Path2D library, fully compatible with Web Path2D, with additional support for triangulate、animation、deformation etc.",
7
7
  "author": "wxm",
@@ -52,8 +52,7 @@
52
52
  "release": "bumpp package.json --commit \"release: v%s\" --push --all --tag",
53
53
  "start": "esno src/index.ts",
54
54
  "test": "vitest",
55
- "typecheck": "tsc --noEmit",
56
- "prepare": "simple-git-hooks"
55
+ "typecheck": "tsc --noEmit"
57
56
  },
58
57
  "dependencies": {
59
58
  "earcut": "^3.0.2"
@@ -65,17 +64,9 @@
65
64
  "bumpp": "^11.0.1",
66
65
  "conventional-changelog-cli": "^5.0.0",
67
66
  "eslint": "^10.3.0",
68
- "lint-staged": "^16.4.0",
69
- "simple-git-hooks": "^2.13.1",
70
67
  "typescript": "^6.0.3",
71
68
  "unbuild": "^3.6.1",
72
- "vite": "^8.0.10",
69
+ "vite": "^8.0.11",
73
70
  "vitest": "^4.1.5"
74
- },
75
- "simple-git-hooks": {
76
- "pre-commit": "pnpm lint-staged"
77
- },
78
- "lint-staged": {
79
- "*": "eslint src --fix"
80
71
  }
81
72
  }