Skip to content

Commit 0d95c7e

Browse files
committed
fix: ios mapRect fix
1 parent e9478c0 commit 0d95c7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/canvas.ios.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ export class Matrix implements IMatrix {
273273
this._transform = CGAffineTransformIdentity;
274274
}
275275
mapRect(rect: Rect) {
276-
const cgRect = CGRectApplyAffineTransform(rect.cgRect, this._transform);
277-
return new Rect(cgRect);
276+
rect.cgRect = CGRectApplyAffineTransform(rect.cgRect, this._transform);
277+
return true;
278278
}
279279
public setRotate(degrees: number, px: number = 0, py: number = 0) {
280280
this._transform = CGAffineTransformMakeRotation(DEGREES_TO_RADIANS(degrees));

0 commit comments

Comments
 (0)