Skip to content

Commit 7a3f867

Browse files
committed
fix: refine types for matrix helpers
1 parent cecde7d commit 7a3f867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/elements/Shape.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function multiply_matrices(l: Matrix, r: Matrix): Matrix {
8383
return { a, c, e, b, d, f };
8484
}
8585

86-
export function invert({ a, b, c, d, e, f }: Matrix) {
86+
export function invert({ a, b, c, d, e, f }: Matrix): Matrix {
8787
const n = a * d - b * c;
8888
return {
8989
a: d / n,
@@ -202,7 +202,7 @@ export class SVGMatrix implements SVGMatrix {
202202
}
203203
}
204204

205-
export function matrixTransform(matrix: Matrix, point: SVGPoint): Point {
205+
export function matrixTransform(matrix: Matrix, point: Point): Point {
206206
const { a, b, c, d, e, f } = matrix;
207207
const { x, y } = point;
208208
return {

0 commit comments

Comments
 (0)