Skip to content

Commit

Permalink
lint(vx-zoom/matrix)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Williams committed Oct 22, 2019
1 parent 121077b commit ff1e73b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vx-zoom/src/util/matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ export function composeMatrices(...matrices: TransformMatrix[]): TransformMatrix
return matrices[0];
case 2:
return multiplyMatrices(matrices[0], matrices[1]);
default:
default: {
const [matrix1, matrix2, ...restMatrices] = matrices;
const matrix = multiplyMatrices(matrix1, matrix2);
return composeMatrices(matrix, ...restMatrices);
}
}
}

0 comments on commit ff1e73b

Please sign in to comment.