Skip to content

Commit

Permalink
💚
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon committed Dec 14, 2023
1 parent b44bc01 commit 076f360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/src/skia/types/Matrix4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export const processTransform3d = (transforms: Transforms3d) => {
/**
* @worklet
*/
export const convertToColumnMajor = (rowMajorMatrix: number[]) => {
export const convertToColumnMajor = (rowMajorMatrix: Matrix4) => {
"worklet";

const colMajorMatrix = new Array<number>(16);
Expand All @@ -356,13 +356,13 @@ export const convertToColumnMajor = (rowMajorMatrix: number[]) => {
colMajorMatrix[col * size + row] = rowMajorMatrix[row * size + col];
}
}
return colMajorMatrix as unknown as Matrix4;
return colMajorMatrix;
};

/**
* @worklet
*/
export const convertToAffineMatrix = (m4: Matrix4) => {
export const convertToAffineMatrix = (m4: number[]) => {
"worklet";
// Extracting the relevant components from the 4x4 matrix
const a = m4[0]; // Scale X
Expand Down

0 comments on commit 076f360

Please sign in to comment.