@leafer/path 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/path",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "@leafer/path",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,10 +22,10 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/math": "1.0.7",
26
- "@leafer/debug": "1.0.7"
25
+ "@leafer/math": "1.0.8",
26
+ "@leafer/debug": "1.0.8"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.7"
29
+ "@leafer/interface": "1.0.8"
30
30
  }
31
31
  }
@@ -115,7 +115,9 @@ export class PathCreator implements IPathCreator { // tip: rewrited Pen
115
115
  return this
116
116
  }
117
117
 
118
- public clearPath = this.beginPath
118
+ public clearPath(): PathCreator {
119
+ return this.beginPath()
120
+ }
119
121
 
120
122
  public paint(): void { }
121
123
 
package/types/index.d.ts CHANGED
@@ -42,7 +42,7 @@ declare class PathCreator implements IPathCreator {
42
42
  drawEllipse(x: number, y: number, radiusX: number, radiusY: number, rotation?: number, startAngle?: number, endAngle?: number, anticlockwise?: boolean): PathCreator;
43
43
  drawArc(x: number, y: number, radius: number, startAngle?: number, endAngle?: number, anticlockwise?: boolean): PathCreator;
44
44
  drawPoints(points: number[], curve?: boolean | number, close?: boolean): PathCreator;
45
- clearPath: () => PathCreator;
45
+ clearPath(): PathCreator;
46
46
  paint(): void;
47
47
  }
48
48