Represents the bounding box of an element on the page. All coordinates and dimensions are in CSS pixels, relative to the top-left of the viewport.

Definition

object BoundingBox {
  x: Float
  y: Float
  width: Float
  height: Float
}

Fields

x: Float

The x-coordinate of the top-left corner of the element.

y: Float

The y-coordinate of the top-left corner of the element.

width: Float

The width of the element.

height: Float

The height of the element.