A DOMRect represents a rectangle.
A DOMRect represents a rectangle.
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`
(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`
(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`
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close