W3cubDocs

/Haxe JavaScript

DOMRect

package js.html

extends DOMRectReadOnly

@:native("DOMRect") Available on js

A DOMRect represents a rectangle.

Documentation DOMRect by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Constructor

new (x:Float, y:Float, width:Float, height:Float)

new ()

Throws:

null DOMError

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DOMRect.html