Skip to content

Commit c912193

Browse files
committed
fix(ios): getmatrix method
1 parent accd389 commit c912193

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ui-canvas/index.ios.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,13 @@ export class Canvas implements ICanvas {
13721372
console.error('Method not implemented:', 'skew');
13731373
}
13741374

1375+
// setMatrix(matrix: Matrix) {
1376+
// CGContextConcatCTM(this.ctx, matrix.mTransform);
1377+
// }
1378+
getMatrix(): Matrix {
1379+
return new Matrix(CGContextGetCTM(this.ctx));
1380+
}
1381+
13751382
getClipBounds(): IRect {
13761383
return new Rect(CGContextGetClipBoundingBox(this.ctx));
13771384
}

0 commit comments

Comments
 (0)