Skip to content

Commit 076f360

Browse files
committed
💚
1 parent b44bc01 commit 076f360

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package/src/skia/types/Matrix4.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export const processTransform3d = (transforms: Transforms3d) => {
346346
/**
347347
* @worklet
348348
*/
349-
export const convertToColumnMajor = (rowMajorMatrix: number[]) => {
349+
export const convertToColumnMajor = (rowMajorMatrix: Matrix4) => {
350350
"worklet";
351351

352352
const colMajorMatrix = new Array<number>(16);
@@ -356,13 +356,13 @@ export const convertToColumnMajor = (rowMajorMatrix: number[]) => {
356356
colMajorMatrix[col * size + row] = rowMajorMatrix[row * size + col];
357357
}
358358
}
359-
return colMajorMatrix as unknown as Matrix4;
359+
return colMajorMatrix;
360360
};
361361

362362
/**
363363
* @worklet
364364
*/
365-
export const convertToAffineMatrix = (m4: Matrix4) => {
365+
export const convertToAffineMatrix = (m4: number[]) => {
366366
"worklet";
367367
// Extracting the relevant components from the 4x4 matrix
368368
const a = m4[0]; // Scale X

0 commit comments

Comments
 (0)