Liking cljdoc? Tell your friends :D
ClojureScript only.

web.dom.DOMRect

A DOMRect represents a rectangle.

A DOMRect represents a rectangle.
raw docstring

constructorcljs

Constructor.

The DOMRect() constructor creates a new web.dom.DOMRect object.

x The x coordinate of the DOMRect's origin. y The y coordinate of the DOMRect's origin. width The width of the DOMRect. height The height of the DOMRect.

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

Constructor.

The DOMRect() constructor creates a new `web.dom.DOMRect` object.

x
The x coordinate of the DOMRect's origin.
y
The y coordinate of the DOMRect's origin.
width
The width of the DOMRect.
height
The height of the DOMRect.

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

from-rectcljs

(from-rect this rectangle)

Method.

The fromRect() property of the web.dom.DOMRectReadOnly interface a new DOMRectReadOnly object with a given location and dimensions.

var domRect = DOMRectReadOnly.fromRect(rectangle)

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

Method.

The fromRect() property of the `web.dom.DOMRectReadOnly` interface
a new DOMRectReadOnly object with a given location and dimensions.

`var domRect = DOMRectReadOnly.fromRect(rectangle)`

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

set-x!cljs

(set-x! this val)

Property.

The x read-only property of the DOMRectReadOnly interface represents x coordinate of the DOMRect's origin.

var recX = DOMRect.x;

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

Property.

The x read-only property of the DOMRectReadOnly interface represents
x coordinate of the DOMRect's origin.

`var recX = DOMRect.x;`

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

xcljs

(x this)

Property.

The x read-only property of the DOMRectReadOnly interface represents x coordinate of the DOMRect's origin.

var recX = DOMRect.x;

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

Property.

The x read-only property of the DOMRectReadOnly interface represents
x coordinate of the DOMRect's origin.

`var recX = DOMRect.x;`

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

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

× close