Skip to content

Commit

Permalink
fix: refine types for matrix helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Oct 5, 2019
1 parent 7a3f867 commit 409af91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/elements/Shape.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface Point {

export interface SVGPoint extends Point {
constructor(point?: Point): SVGPoint;
matrixTransform(matrix: SVGMatrix): SVGPoint;
matrixTransform(matrix: Matrix): SVGPoint;
}

export interface Rect {
Expand All @@ -56,7 +56,7 @@ export interface Matrix {

export interface SVGMatrix extends Matrix {
constructor(matrix?: Matrix): SVGMatrix;
multiply(secondMatrix: SVGMatrix): SVGMatrix;
multiply(secondMatrix: Matrix): SVGMatrix;
inverse(): SVGMatrix;
translate(x: number, y: number): SVGMatrix;
scale(scaleFactor: number): SVGMatrix;
Expand Down Expand Up @@ -222,7 +222,7 @@ export class SVGPoint implements SVGPoint {
this.y = 0;
}
}
matrixTransform(matrix: SVGMatrix): SVGPoint {
matrixTransform(matrix: Matrix): SVGPoint {
return new SVGPoint(matrixTransform(matrix, this));
}
}
Expand Down

0 comments on commit 409af91

Please sign in to comment.