aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/dompointreadonly/x/index.md
blob: 77c78c54d47dd5df25c01fc80e7c30d87a85922c (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
---
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
---
<p>{{APIRef("DOM")}}{{ SeeCompatTable() }}</p>

<p>La propriété en lecture seule <code><strong>x</strong></code> de l'interface <strong><code>DOMPointReadOnly</code></strong> représente la coordonnée x d'un point.</p>

<p>En général, x positif signifie à droite et négatif à gauche (par rapport à l'origine).</p>

<h2 id="Syntaxe">Syntaxe</h2>

<pre class="brush: js">var xPos = DOMPoint.x;</pre>

<h3 id="Specification">Valeur</h3>

<p>Un double.</p>

<h2 id="Specification">Spécifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Spécification</th>
   <th scope="col">Statut</th>
   <th scope="col">Commentaire</th>
  </tr>
  <tr>
   <td>{{SpecName('Geometry Interfaces', '#dom-dompointreadonly-x', 'x')}}</td>
   <td>{{Spec2('Geometry Interfaces')}}</td>
   <td>La dernière version de la spécification est un ED.</td>
  </tr>
 </tbody>
</table>

<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>

<p>{{Compat("api.DOMPointReadOnly.x")}}</p>

<h2 id="Voir_aussi">Voir aussi</h2>

<ul>
 <li>{{domxref("DOMPoint")}}</li>
</ul>