-
Notifications
You must be signed in to change notification settings - Fork 22.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into aria-examples-work
- Loading branch information
Showing
139 changed files
with
1,860 additions
and
574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -314,6 +314,7 @@ Leitura | |
Lemieux | ||
Lempel | ||
Lennart | ||
leptos | ||
Lesh | ||
Lexi | ||
Leyla | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -562,6 +562,7 @@ retarget | |
retargeted | ||
retargeting | ||
retargetings | ||
RFCOMM | ||
RGTC | ||
roadmaps | ||
Rockhopper | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
title: "DOMMatrix: invertSelf() method" | ||
short-title: invertSelf() | ||
slug: Web/API/DOMMatrix/invertSelf | ||
page-type: web-api-instance-method | ||
browser-compat: api.DOMMatrix.invertSelf | ||
--- | ||
|
||
{{APIRef("Geometry Interfaces")}}{{AvailableInWorkers}} | ||
|
||
The **`invertSelf()`** method of the {{domxref("DOMMatrix")}} interface inverts the original matrix. If the matrix cannot be inverted, the new matrix's components are all set to `NaN` and its {{domxref("DOMMatrix.is2D", "is2D")}} property is set to `false`. | ||
|
||
To invert a matrix without mutating it, see {{domxref("DOMMatrixReadOnly.inverse()")}} | ||
|
||
## Syntax | ||
|
||
```js-nolint | ||
DOMMatrix.invertSelf() | ||
``` | ||
|
||
### Return value | ||
|
||
A {{domxref("DOMMatrix")}}. | ||
|
||
## Examples | ||
|
||
In this example, we create a matrix with a rotation of 30deg. Then invert it, resulting in a rotation of -30deg. | ||
|
||
```js | ||
const matrix = new DOMMatrix().rotate(30); | ||
console.log(matrix.toString()); | ||
// output: matrix(0.866, 0.5, -0.5, 0.866, 0, 0) | ||
matrix.invertSelf(); | ||
console.log(matrix.toString()); | ||
// output: matrix(0.866, -0.5, 0.5, 0.866, 0, 0) | ||
``` | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("DOMMatrixReadOnly.inverse()")}} | ||
- CSS {{CSSxRef("transform-function/matrix", "matrix()")}} function | ||
- CSS {{CSSxRef("transform-function/matrix3d", "matrix3d()")}} function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- | ||
title: "DOMMatrix: rotateSelf() method" | ||
short-title: rotateSelf() | ||
slug: Web/API/DOMMatrix/rotateSelf | ||
page-type: web-api-instance-method | ||
browser-compat: api.DOMMatrix.rotateSelf | ||
--- | ||
|
||
{{APIRef("Geometry Interfaces")}}{{AvailableInWorkers}} | ||
|
||
The `rotateSelf()` method of the {{domxref("DOMMatrix")}} interface is a mutable transformation method that modifies a matrix. It rotates the source matrix around each of its axes by the specified number of degrees and returns the rotated matrix. | ||
|
||
To rotate a matrix without mutating it, see {{domxref("DOMMatrixReadOnly.rotate()")}} | ||
|
||
## Syntax | ||
|
||
```js-nolint | ||
DOMMatrix.rotateSelf() | ||
DOMMatrix.rotateSelf(rotX) | ||
DOMMatrix.rotateSelf(rotX, rotY) | ||
DOMMatrix.rotateSelf(rotX, rotY, rotZ) | ||
``` | ||
|
||
### Parameters | ||
|
||
- `rotX` | ||
- : A number; the x-coordinate of the vector denoting the axis of rotation | ||
- `rotY` {{optional_inline}} | ||
- : A number; the y-coordinate of the vector denoting the axis of rotation. | ||
- `rotZ` {{optional_inline}} | ||
- : A number; the z-coordinate of the vector denoting the axis of rotation | ||
|
||
If only one parameter is passed, `rotZ` is the value of `rotX`, and both `rotx` and `rotY` are `0`, and the rotation is a 2D rotation. If `rotX` and `rotY` are non-zero, the [`is_2d`](/en-US/docs/Web/API/DOMMatrix#is2d) is `false`. | ||
|
||
### Return value | ||
|
||
Returns itself; the [`DOMMatrix`](/en-US/docs/Web/API/DOMMatrix) rotated by the given | ||
vectors. | ||
|
||
## Examples | ||
|
||
```js | ||
const matrix = new DOMMatrix(); // create a matrix | ||
console.log(matrix.toString()); // output: "matrix(1, 0, 0, 1, 0, 0)" | ||
matrix.rotateSelf(30); // mutate it | ||
console.log(matrix); // output: "matrix(0.866, 0.5, -0.5, 0.866, 0, 0)" | ||
``` | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("DOMMatrixReadOnly.rotate()")}} | ||
- CSS {{cssxref("transform")}} property | ||
- CSS {{cssxref("rotate")}} property | ||
- CSS {{cssxref("transform-function")}} functions | ||
- {{cssxref("transform-function/rotate", "rotate()")}} | ||
- {{cssxref("transform-function/rotate3d", "rotate3d()")}} | ||
- {{cssxref("transform-function/rotateX", "rotateX()")}} | ||
- {{cssxref("transform-function/rotateY", "rotateY()")}} | ||
- {{cssxref("transform-function/rotateZ", "rotateZ()")}} | ||
- [CSS transforms](/en-US/docs/Web/CSS/CSS_transforms) module | ||
- SVG [`transform`](/en-US/docs/Web/SVG/Attribute/transform) attribute | ||
- {{domxref("CanvasRenderingContext2D")}} interface methods | ||
- {{domxref("CanvasRenderingContext2D.rotate()")}} | ||
- {{domxref("CanvasRenderingContext2D.transform()")}} | ||
- {{domxref("CanvasRenderingContext2D.setTransform()")}} | ||
- {{domxref("CanvasRenderingContext2D.resetTransform()")}} |
Oops, something went wrong.