Input options for defining a rectangular box, typically used for clipping screenshots or defining element areas. Coordinates are relative to the top-left corner of the viewport or element.

Definition

input BoxOptions {
  x: Int
  y: Int
  width: Int
  height: Int
}

Fields

x

Int The x-coordinate of the top-left corner of the box, in pixels.

y

Int The y-coordinate of the top-left corner of the box, in pixels.

width

Int The width of the box, in pixels.

height

Int The height of the box, in pixels.