DOMPointReadOnly - Web APIs | MDN
Constructor
DOMPointReadOnly()-
Creates a new
DOMPointReadOnlyobject given the values of its coordinates and perspective. To create a point using an object, you can instead useDOMPointReadOnly.fromPoint().
Instance properties
DOMPointReadOnly.xRead only-
The point's horizontal coordinate,
x. DOMPointReadOnly.yRead only-
The point's vertical coordinate,
y. DOMPointReadOnly.zRead only-
The point's depth coordinate,
z. DOMPointReadOnly.wRead only-
The point's perspective value,
w.
Static methods
DOMPointReadOnly.fromPoint()-
A static method that creates a new
DOMPointReadOnlyobject given the coordinates provided in the specified object.
Instance methods
matrixTransform()-
Applies a matrix transform specified as an object to the
DOMPointReadOnlyobject. toJSON()-
Returns a JSON representation of the
DOMPointReadOnlyobject.
Specifications
| Specification |
|---|
| Geometry Interfaces Module Level 1 # DOMPoint |