--- title: DOMPoint.x slug: Web/API/DOMPointReadOnly/x tags: - API - Coordonnées - DOM - Géométrie - Propriétés - Quadrilatère - x translation_of: Web/API/DOMPointReadOnly/x ---
{{APIRef("DOM")}}{{ SeeCompatTable() }}
La propriété en lecture seule x
de l'interface DOMPointReadOnly
représente la coordonnée x d'un point.
En général, x positif signifie à droite et négatif à gauche (par rapport à l'origine).
var xPos = DOMPoint.x;
Un double.
Spécification | Statut | Commentaire |
---|---|---|
{{SpecName('Geometry Interfaces', '#dom-dompointreadonly-x', 'x')}} | {{Spec2('Geometry Interfaces')}} | La dernière version de la spécification est un ED. |
{{Compat("api.DOMPointReadOnly.x")}}