---
title: DOMPointReadOnly
slug: Web/API/DOMPointReadOnly
tags:
  - API
  - DOM
  - Géométrie
  - Interface
  - Quadrilatère
translation_of: Web/API/DOMPointReadOnly
---
<p>{{APIRef("Geometry Interfaces")}}{{ SeeCompatTable() }}</p>

<p>L'interface <strong><code>DOMPointReadOnly</code></strong> 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.</p>

<h2 id="Constructeur">Constructeur</h2>

<dl>
 <dt>{{domxref("DOMPointReadOnly.DOMPointReadOnly","DOMPointReadOnly()")}}</dt>
 <dd>Défini pour créer un nouvel objet <code>DOMPointReadOnly</code>, mais notez que ce constructeur ne peut pas être appelé par un JavaScript tiers : ce faisant, il retourne un  typeError "constructeur illégal" .</dd>
</dl>

<h2 id="Méthodes">Méthodes</h2>

<dl>
 <dt>{{domxref("DOMPointReadOnly.fromPoint")}}</dt>
 <dd>Traduit la position / perspective d'un <code>DOMPoint</code> à une nouvelle position (ne semble pas encore être pris en charge).</dd>
 <dt>{{domxref("DOMPointReadOnly.matrixTransform")}}</dt>
 <dd>Applique une transformation matricielle à un objet <code>DOMPointReadOnly</code>  (ne semble pas encore être pris en charge).</dd>
 <dt>{{domxref("DOMPointReadOnly.toJSON()")}}</dt>
 <dd>Renvoie une représentation JSON de l'objet <code>DOMPointReadOnly</code>.</dd>
</dl>

<h2 id="Propriétés">Propriétés</h2>

<dl>
 <dt>{{domxref("DOMPointReadOnly.x")}} {{readonlyInline}}</dt>
 <dd>La coordonnée x du <code>DOMPoint</code>.</dd>
 <dt>{{domxref("DOMPointReadOnly.y")}} {{readonlyInline}}</dt>
 <dd>La coordonnée y du <code>DOMPoint</code>.</dd>
 <dt>{{domxref("DOMPointReadOnly.z")}} {{readonlyInline}}</dt>
 <dd>La coordonnée z du <code>DOMPoint</code>.</dd>
 <dt>{{domxref("DOMPointReadOnly.w")}} {{readonlyInline}}</dt>
 <dd>La valeur de perspective du <code>DOMPoint</code>.</dd>
</dl>

<h2 id="Specification" name="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', '#DOMPoint', 'DOMPoint')}}</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>{{ CompatibilityTable() }}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Fonctionnalité</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}<br>
    <br>
     </td>
   <td>{{CompatVersionUnknown}}<br>
     </td>
   <td>{{ CompatNo }}</td>
   <td>
    <p>{{ CompatNo }}</p>
   </td>
   <td>{{ CompatNo }}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Fonctionnalité</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS (Gecko)</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
   <th>Chrome for Android</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{ CompatNo }}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{ CompatNo }}</td>
   <td>{{ CompatNo }}</td>
   <td>{{ CompatNo }}</td>
   <td>{{ CompatNo }}</td>
   <td>{{ CompatNo }}</td>
  </tr>
 </tbody>
</table>
</div>

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

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