DOMQuad extension type
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.
Constructors
- DOMQuad([DOMPointInit p1, DOMPointInit p2, DOMPointInit p3, DOMPointInit p4])
-
factory
Properties
Methods
-
getBounds(
) → DOMRect -
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
-
fromQuad(
[DOMQuadInit other]) → DOMQuad -
fromRect(
[DOMRectInit other]) → DOMQuad