DOMRectReadOnly extension type
The DOMRectReadOnly
interface specifies the standard properties (also
used by DOMRect) to define a rectangle whose properties are immutable.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Constructors
- DOMRectReadOnly([num x, num y, num width, num height])
-
factory
Properties
- bottom → double
-
The
bottom
read-only property of theDOMRectReadOnly
interface returns the bottom coordinate value of theDOMRect
. (Has the same value asy + height
, ory
ifheight
is negative.)no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The
height
read-only property of theDOMRectReadOnly
interface represents the height of theDOMRect
.no setter - left → double
-
The
left
read-only property of theDOMRectReadOnly
interface returns the left coordinate value of theDOMRect
. (Has the same value asx
, orx + width
ifwidth
is negative.)no setter - right → double
-
The
right
read-only property of theDOMRectReadOnly
interface returns the right coordinate value of theDOMRect
. (Has the same value asx + width
, orx
ifwidth
is negative.)no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → double
-
The
top
read-only property of theDOMRectReadOnly
interface returns the top coordinate value of theDOMRect
. (Has the same value asy
, ory + height
ifheight
is negative.)no setter - width → double
-
The
width
read-only property of theDOMRectReadOnly
interface represents the width of theDOMRect
.no setter - x → double
-
The
x
read-only property of theDOMRectReadOnly
interface represents the x coordinate of theDOMRect
's origin.no setter - y → double
-
The
y
read-only property of theDOMRectReadOnly
interface represents the y coordinate of theDOMRect
's origin.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → JSObject -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromRect(
[DOMRectInit other]) → DOMRectReadOnly -
The
fromRect()
static method of the DOMRectReadOnly object creates a newDOMRectReadOnly
object with a given location and dimensions.