blob: 8685e88378880c3e49aceda8b5b1167abeb07989 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
---
title: DOMPointReadOnly
slug: Web/API/DOMPointReadOnly
tags:
- API
- DOM
- Géométrie
- Interface
- Quadrilatère
translation_of: Web/API/DOMPointReadOnly
---
{{APIRef("Geometry Interfaces")}}{{ SeeCompatTable() }}
L'interface **`DOMPointReadOnly`** spécifie les propriétés standard utilisées par {{domxref("DOMPoint")}} pour définir un point 2D ou 3D dans un système de coordonnées.
## Constructeur
- {{domxref("DOMPointReadOnly.DOMPointReadOnly","DOMPointReadOnly()")}}
- : Défini pour créer un nouvel objet `DOMPointReadOnly`, mais notez que ce constructeur ne peut pas être appelé par un JavaScript tiers : ce faisant, il retourne un typeError "constructeur illégal" .
## Méthodes
- {{domxref("DOMPointReadOnly.fromPoint")}}
- : Traduit la position / perspective d'un `DOMPoint` à une nouvelle position (ne semble pas encore être pris en charge).
- {{domxref("DOMPointReadOnly.matrixTransform")}}
- : Applique une transformation matricielle à un objet `DOMPointReadOnly` (ne semble pas encore être pris en charge).
- {{domxref("DOMPointReadOnly.toJSON()")}}
- : Renvoie une représentation JSON de l'objet `DOMPointReadOnly`.
## Propriétés
- {{domxref("DOMPointReadOnly.x")}} {{readonlyInline}}
- : La coordonnée x du `DOMPoint`.
- {{domxref("DOMPointReadOnly.y")}} {{readonlyInline}}
- : La coordonnée y du `DOMPoint`.
- {{domxref("DOMPointReadOnly.z")}} {{readonlyInline}}
- : La coordonnée z du `DOMPoint`.
- {{domxref("DOMPointReadOnly.w")}} {{readonlyInline}}
- : La valeur de perspective du `DOMPoint`.
## Spécifications
| Spécification | Statut | Commentaire |
| -------------------------------------------------------------------------------- | -------------------------------------------- | -------------------------------------------------- |
| {{SpecName('Geometry Interfaces', '#DOMPoint', 'DOMPoint')}} | {{Spec2('Geometry Interfaces')}} | La dernière version de la spécification est un ED. |
## Compatibilité des navigateurs
{{Compat("api.DOMPointReadOnly")}}
## Voir aussi
- {{domxref("DOMPoint")}}
- {{domxref("DOMRect")}}
- {{domxref("DOMMatrix")}}
|