Skip to content

DOMRectReadOnly

Types

t

type t = WebAPI.DOM.domRectReadOnly = private {
x: float,
y: float,
width: float,
height: float,
top: float,
right: float,
bottom: float,
left: float,
}

Record fields

height
float
bottom
float

Values

fromRect

let fromRect: (
~other: WebAPI.DOM.domRectInit=?,
) => WebAPI.DOM.domRectReadOnly

make

let make: (
~x: float=?,
~y: float=?,
~width: float=?,
~height: float=?,
) => WebAPI.DOM.domRectReadOnly

Parameters

~x: float=?
~y: float=?
~width: float=?
~height: float=?

Return type

WebAPI.DOM.domRectReadOnly

toJSON

let toJSON: WebAPI.DOM.domRectReadOnly => Dict.t<string>

Parameters

Return type

Dict.t<string>