The DOMRectReadOnly interface specifies the standard properties
by web.DOMRect
to define a rectangle.
The DOMRectReadOnly interface specifies the standard properties by `web.DOMRect` to define a rectangle.
(bottom this)
Property.
[Read Only] [Experimental]
The bottom read-only property of the DOMRectReadOnly interface the bottom coordinate value of the DOMRect. (Has the same value y height, or y if height is negative.)
var recBottom = DOMRect.bottom;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/bottom
Property. [Read Only] [Experimental] The bottom read-only property of the DOMRectReadOnly interface the bottom coordinate value of the DOMRect. (Has the same value y height, or y if height is negative.) `var recBottom = DOMRect.bottom;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/bottom`
(constructor & args)
Constructor.
The DOMRectReadOnly() constructor creates a new web.dom.DOMRectReadOnly
object.
x The x coordinate of the DOMRectReadOnly's origin. y The y coordinate of the DOMRectReadOnly's origin. width The width of the DOMRectReadOnly. height The height of the DOMRectReadOnly.
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly
Constructor. The DOMRectReadOnly() constructor creates a new `web.dom.DOMRectReadOnly` object. x The x coordinate of the DOMRectReadOnly's origin. y The y coordinate of the DOMRectReadOnly's origin. width The width of the DOMRectReadOnly. height The height of the DOMRectReadOnly. See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly`
(from-rect this rectangle)
Method.
[Experimental]
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. [Experimental] 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`
(height this)
Property.
[Read Only] [Experimental]
The height read-only property of the DOMRectReadOnly interface the height of the DOMRect.
var recHeight = DOMRect.height;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/height
Property. [Read Only] [Experimental] The height read-only property of the DOMRectReadOnly interface the height of the DOMRect. `var recHeight = DOMRect.height;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/height`
(left this)
Property.
[Read Only] [Experimental]
The left read-only property of the DOMRectReadOnly interface the left coordinate value of the DOMRect. (Has the same value x, or x width if width is negative.)
var recLeft = DOMRect.left;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/left
Property. [Read Only] [Experimental] The left read-only property of the DOMRectReadOnly interface the left coordinate value of the DOMRect. (Has the same value x, or x width if width is negative.) `var recLeft = DOMRect.left;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/left`
(right this)
Property.
[Read Only] [Experimental]
The right read-only property of the DOMRectReadOnly interface the right coordinate value of the DOMRect. (Has the same value x width, or x if width is negative.)
var recRight = DOMRect.right;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/right
Property. [Read Only] [Experimental] The right read-only property of the DOMRectReadOnly interface the right coordinate value of the DOMRect. (Has the same value x width, or x if width is negative.) `var recRight = DOMRect.right;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/right`
(top this)
Property.
[Read Only] [Experimental]
The top read-only property of the DOMRectReadOnly interface returns top coordinate value of the DOMRect. (Has the same value as y, y height if height is negative.)
var recTop = DOMRect.top;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/top
Property. [Read Only] [Experimental] The top read-only property of the DOMRectReadOnly interface returns top coordinate value of the DOMRect. (Has the same value as y, y height if height is negative.) `var recTop = DOMRect.top;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/top`
(width this)
Property.
[Read Only] [Experimental]
The width read-only property of the DOMRectReadOnly interface the width of the DOMRect.
var recWidth = DOMRect.width;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/width
Property. [Read Only] [Experimental] The width read-only property of the DOMRectReadOnly interface the width of the DOMRect. `var recWidth = DOMRect.width;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/width`
(x this)
Property.
[Read Only] [Experimental]
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. [Read Only] [Experimental] 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`
(y this)
Property.
[Read Only] [Experimental]
The y read-only property of the DOMRectReadOnly interface represents y coordinate of the DOMRect's origin.
var recY = DOMRect.y;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/y
Property. [Read Only] [Experimental] The y read-only property of the DOMRectReadOnly interface represents y coordinate of the DOMRect's origin. `var recY = DOMRect.y;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/y`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close