DOMPointReadOnly
interface · experimental
interface DOMPointReadOnlyThe DOMPointReadOnly interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.
variable · experimental
var DOMPointReadOnly: { … }The DOMPointReadOnly interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.
Constructors
constructor
new DOMPointReadOnly(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnlyProperties
w
readonly w: numberThe DOMPointReadOnly interface's w property holds the point's perspective value, w, for a read-only point in space.
x
readonly x: numberThe DOMPointReadOnly interface's x property holds the horizontal coordinate, x, for a read-only point in space. This property cannot be changed by JavaScript code in this read-only version of the DOMPoint object.
y
readonly y: numberThe DOMPointReadOnl**y** interface's y property holds the vertical coordinate, y, for a read-only point in space.
z
readonly z: numberThe DOMPointReadOnly interface's z property holds the depth coordinate, z, for a read-only point in space.
prototype
prototype: DOMPointReadOnlyMethods
matrixTransform
matrixTransform(matrix?: DOMMatrixInit): DOMPointThe matrixTransform() method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new DOMPointReadOnly object. Neither the matrix nor the point are altered.
toJSON
toJSON(): anyThe DOMPointReadOnly method toJSON() returns an object giving the JSON form of the point object.
fromPoint
fromPoint(other?: DOMPointInit): DOMPointReadOnlyThe static DOMPointReadOnly method fromPoint() creates and returns a new DOMPointReadOnly object given a source point.