package js.html
Available on js
A DOMQuad is a collection of four DOMPoints defining the corners of an arbitrary quadrilateral. Returning DOMQuads lets getBoxQuads() return accurate information even when arbitrary 2D or 3D transforms are present. It has a handy bounds attribute returning a DOMRectReadOnly for those cases where you just want an axis-aligned bounding rectangle.
Documentation DOMQuad by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
new(rect:DOMRectReadOnly)new(?p1:Null<DOMPointInit>, ?p2:Null<DOMPointInit>, ?p3:Null<DOMPointInit>, ?p4:Null<DOMPointInit>)Throws:
null |
DOMError |
|---|
read onlybounds:DOMRectReadOnlyread onlyp1:DOMPointare DOMPoint objects for each of the DOMQuad object's four corners.
read onlyp2:DOMPointread onlyp3:DOMPointread onlyp4:DOMPointgetBounds():DOMRectReadOnlyReturns a DOMRect object with the coordinates and dimensions of the DOMQuad object.
toJSON():DOMQuadJSONReturns a JSON representation of the DOMQuad object.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DOMQuad.html