--- 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).

Syntaxe

var xPos = DOMPoint.x;

Valeur

Un double.

Spécifications

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.

Compatibilité des navigateurs

{{Compat("api.DOMPointReadOnly.x")}}

Voir aussi