DOMQuad class

Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. A is a collection of four DOMPoints defining the corners of an arbitrary quadrilateral. Returning 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.

Available extensions
Annotations
  • @experimental
  • @JS()
  • @staticInterop

Constructors

DOMQuad([DOMPointInit? p1, DOMPointInit? p2, DOMPointInit? p3, DOMPointInit? p4])
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
p1 DOMPoint

Available on DOMQuad, provided by the PropsDOMQuad extension

no setter
p2 DOMPoint

Available on DOMQuad, provided by the PropsDOMQuad extension

no setter
p3 DOMPoint

Available on DOMQuad, provided by the PropsDOMQuad extension

no setter
p4 DOMPoint

Available on DOMQuad, provided by the PropsDOMQuad extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBounds() DOMRect

Available on DOMQuad, provided by the PropsDOMQuad extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() → dynamic

Available on DOMQuad, provided by the PropsDOMQuad extension

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