Skip to content

Commit

Permalink
error in example
Browse files Browse the repository at this point in the history
  • Loading branch information
estelle committed Dec 12, 2024
1 parent 57601cb commit 971a0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/dommatrixreadonly/tostring/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ A string; the values of the list separated by commas, within `matrix()` or `matr
```js
const matrix = new DOMMatrixReadOnly();
console.log(matrix.translate(20, 30).toString()); // matrix(1, 0, 0, 1, 20, 30)
console.log(matrix.translate(30, 40, 50)); // matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 30, 40, 50, 1)
console.log(matrix.translate(30, 40, 50).toString()); // matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 30, 40, 50, 1)
console.log(matrix.skewY(15).skewX(5).rotate(3).translate(20, 50).toString());
// matrix(1.003, 0.321, 0.035, 1.01, 21.816, 56.824)
console.log(
Expand Down

0 comments on commit 971a0a0

Please sign in to comment.