Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 801553 of DOMPoint

  • Revision slug: Web/API/DOMPoint
  • Revision title: DOMPoint
  • Revision id: 801553
  • Created:
  • Creator: chrisdavidmills
  • Is current revision? No
  • Comment

Revision Content

{{APIRef("DOM")}}

A DOMPoint represents a 2D or 3D point in a coordinate system.

It inherits from its parent, {{domxref("DOMPointReadOnly")}}.

Constructor

{{domxref("DOMPoint.DOMPoint","DOMPoint()")}}
Creates a new DOMPoint object.

Methods

DOMPoint inherits methods from its parent, {{domxref("DOMPointReadOnly")}}.

{{domxref("DOMPointReadOnly.fromPoint")}}
Translates the position/perspective of a DOMPoint to a new position (doesn't appear to be supported anywhere yet.)

Properties

DOMPoint inherits properties from its parent, {{domxref("DOMPointReadOnly")}}.

{{domxref("DOMPointReadOnly.x")}}
The x coordinate of the DOMPoint.
{{domxref("DOMPointReadOnly.y")}}
The y coordinate of the DOMPoint.
{{domxref("DOMPointReadOnly.z")}}
The z coordinate of the DOMPoint.
{{domxref("DOMPointReadOnly.w")}}
The perspective value of the DOMPoint.

Examples

TBD

Specifications

Specification Status Comment
{{SpecName('Geometry Interfaces', '#DOMPoint', 'DOMPoint')}} {{Spec2('Geometry Interfaces')}} Latest spec version is an ED.

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatNo}}

 
{{CompatVersionUnknown}}
 
{{ CompatNo }}

{{ CompatNo }}

{{ CompatNo }}
Feature Android Firefox Mobile (Gecko) Firefox OS (Gecko) IE Phone Opera Mobile Safari Mobile Chrome for Android
Basic support {{ CompatNo }} {{CompatVersionUnknown}} {{ CompatNo }} {{ CompatNo }} {{ CompatNo }} {{ CompatNo }} {{ CompatNo }}

 

See also

  • {{domxref("DOMRect")}}

Revision Source

<p>{{APIRef("DOM")}}</p>

<p>A <strong><code>DOMPoint</code></strong> represents a 2D or 3D point in a coordinate system.</p>

<p>It inherits from its parent, {{domxref("DOMPointReadOnly")}}.</p>

<h2 id="Constructor">Constructor</h2>

<dl>
 <dt>{{domxref("DOMPoint.DOMPoint","DOMPoint()")}}</dt>
 <dd>Creates a new <code>DOMPoint</code> object.</dd>
</dl>

<h2 id="Methods">Methods</h2>

<p><em><code>DOMPoint</code> inherits methods from its parent, {{domxref("DOMPointReadOnly")}}.</em></p>

<dl>
 <dt>{{domxref("DOMPointReadOnly.fromPoint")}}</dt>
 <dd>Translates the position/perspective of a <code>DOMPoint</code> to a new position (doesn't appear to be supported anywhere yet.)</dd>
</dl>

<h2 id="Properties">Properties</h2>

<p><em><code>DOMPoint</code> inherits properties from its parent, {{domxref("DOMPointReadOnly")}}.</em></p>

<dl>
 <dt>{{domxref("DOMPointReadOnly.x")}}</dt>
 <dd>The x coordinate of the <code>DOMPoint</code>.</dd>
 <dt>{{domxref("DOMPointReadOnly.y")}}</dt>
 <dd>The y coordinate of the <code>DOMPoint</code>.</dd>
 <dt>{{domxref("DOMPointReadOnly.z")}}</dt>
 <dd>The z coordinate of the <code>DOMPoint</code>.</dd>
 <dt>{{domxref("DOMPointReadOnly.w")}}</dt>
 <dd>The perspective value of the <code>DOMPoint</code>.</dd>
</dl>

<h2 name="Specification">Examples</h2>

<p>TBD</p>

<h2 id="Specification" name="Specification">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('Geometry Interfaces', '#DOMPoint', 'DOMPoint')}}</td>
   <td>{{Spec2('Geometry Interfaces')}}</td>
   <td>Latest spec version is an ED.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{ CompatibilityTable() }}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</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 />
    &nbsp;</td>
   <td>{{CompatVersionUnknown}}<br />
    &nbsp;</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>Feature</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="sect1">&nbsp;</h2>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{domxref("DOMRect")}}</li>
</ul>
Revert to this revision