Baseline Widely available
Note: This feature is available in Web Workers.
A DOMQuad
is a collection of four DOMPoint
s defining the corners of an arbitrary quadrilateral. Returning DOMQuad
s 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.
DOMQuad()
Creates a new DOMQuad
object.
DOMQuad.p1
Read only
A DOMPoint
representing one corner of the DOMQuad
.
DOMQuad.p2
Read only
A DOMPoint
representing one corner of the DOMQuad
.
DOMQuad.p3
Read only
A DOMPoint
representing one corner of the DOMQuad
.
DOMQuad.p4
Read only
A DOMPoint
representing one corner of the DOMQuad
.
DOMQuad.getBounds()
Returns a DOMRect
object with the coordinates and dimensions of the DOMQuad
object.
DOMQuad.toJSON()
Returns a JSON representation of the DOMQuad
object.
DOMQuad.fromRect()
Returns a new DOMQuad
object based on the passed set of coordinates.
DOMQuad.fromQuad()
Returns a new DOMQuad
object or a set of quadrilateral coordinates based on the provided input.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3