The DOMPointReadOnly interface specifies the coordinate and perspective
used by web.DOMPoint
to define a 2D or 3D point in a coordinate
The DOMPointReadOnly interface specifies the coordinate and perspective used by `web.DOMPoint` to define a 2D or 3D point in a coordinate
(constructor & args)
Constructor.
The DOMPointReadOnly() constructor returns a new web.DOMPointReadOnly
object representing a point in 2D or 3D space, optionally with perspective, whose values cannot be altered by script code.
x Optional The value of the horizontal coordinate, x, as a floating point number. The default value is 0. y Optional The value of the vertical coordinate, y, as a floating point number. The default value is 0. z Optional The value of the depth coordinate, z, as a floating point number. The default value is 0. w Optional The value of the perspective, w, as a floating point number. The default is 1.
Note: Each of these values is what's called an unrestricted number. In addition to any finite floating-point value, you may use special values such as ±js.Infinity
and js.NaN
.
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly
Constructor. The DOMPointReadOnly() constructor returns a new `web.DOMPointReadOnly` object representing a point in 2D or 3D space, optionally with perspective, whose values cannot be altered by script code. x Optional The value of the horizontal coordinate, x, as a floating point number. The default value is 0. y Optional The value of the vertical coordinate, y, as a floating point number. The default value is 0. z Optional The value of the depth coordinate, z, as a floating point number. The default value is 0. w Optional The value of the perspective, w, as a floating point number. The default is 1. Note: Each of these values is what's called an unrestricted number. In addition to any finite floating-point value, you may use special values such as ±`js.Infinity` and `js.NaN`. See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly`
(from-point this source-point)
Method.
The static web.DOMPointReadOnly
method fromPoint() creates
returns a new DOMPointReadOnly object given a source point.
var point = DOMPointReadOnly.fromPoint(sourcePoint);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/fromPoint
Method. The static `web.DOMPointReadOnly` method fromPoint() creates returns a new DOMPointReadOnly object given a source point. `var point = DOMPointReadOnly.fromPoint(sourcePoint);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/fromPoint`
(matrix-transform this & args)
Method.
Applies a matrix transform specified as a DOMMatrixInit object the DOMPointReadOnly object.
Method. Applies a matrix transform specified as a DOMMatrixInit object the DOMPointReadOnly object.
(to-json this)
Method.
The web.DOMPointReadOnly
method toJSON() returns a web.DOMPointInit
giving the JSON form of the point object.
pointJSON = DOMPointReadOnly.toJSON();
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/toJSON
Method. The `web.DOMPointReadOnly` method toJSON() returns a `web.DOMPointInit` giving the JSON form of the point object. `pointJSON = DOMPointReadOnly.toJSON();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/toJSON`
(w this)
Property.
[Read Only]
The DOMPointReadOnly interface's w property holds the point's value, w, for a read-only point in space.
var perspective = DOMPointReadOnly.w;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/w
Property. [Read Only] The DOMPointReadOnly interface's w property holds the point's value, w, for a read-only point in space. `var perspective = DOMPointReadOnly.w;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/w`
(x this)
Property.
[Read Only]
The DOMPointReadOnly interface's x property holds the horizontal x, for a read-only point in space. This property cannot be changed JavaScript code in this read-only version of the DOMPoint object.
var xPos = DOMPointReadOnly.x;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/x
Property. [Read Only] The DOMPointReadOnly interface's x property holds the horizontal x, for a read-only point in space. This property cannot be changed JavaScript code in this read-only version of the DOMPoint object. `var xPos = DOMPointReadOnly.x;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/x`
(y this)
Property.
[Read Only]
The DOMPointReadOnly interface's y property holds the vertical y, for a read-only point in space.
var yPos = DOMPointReadOnly.y;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/y
Property. [Read Only] The DOMPointReadOnly interface's y property holds the vertical y, for a read-only point in space. `var yPos = DOMPointReadOnly.y;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/y`
(z this)
Property.
[Read Only]
The DOMPointReadOnly interface's z property holds the depth coordinate, for a read-only point in space.
var zPos = DOMPointReadOnly.z;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/z
Property. [Read Only] The DOMPointReadOnly interface's z property holds the depth coordinate, for a read-only point in space. `var zPos = DOMPointReadOnly.z;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/z`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close