Liking cljdoc? Tell your friends :D

dom.DOMPointReadOnly

The DOMPointReadOnly interface specifies the coordinate and perspective used by dom.DOMPoint to define a 2D or 3D point in a coordinate

The DOMPointReadOnly interface specifies the coordinate and perspective
used by `dom.DOMPoint` to define a 2D or 3D point in a coordinate
raw docstring

constructorcljs

Constructor.

The DOMPointReadOnly() constructor returns a new dom.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 ±web.Infinity and web.NaN.

See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly

Constructor.

The DOMPointReadOnly() constructor returns a new `dom.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 ±`web.Infinity` and `web.NaN`.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly`
sourceraw docstring

from-pointcljs

(from-point this source-point)

Method.

The static dom.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 `dom.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`
sourceraw docstring

to-jsoncljs

(to-json this)

Method.

The dom.DOMPointReadOnly method toJSON() returns a dom.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 `dom.DOMPointReadOnly` method toJSON() returns a `dom.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`
sourceraw docstring

wcljs

(w this)

Property.

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.

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`
sourceraw docstring

xcljs

(x this)

Property.

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.

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`
sourceraw docstring

ycljs

(y this)

Property.

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.

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`
sourceraw docstring

zcljs

(z this)

Property.

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.

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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close