BoundingBox: {
    center?: PointXY;
    h: number;
    w: number;
    x: number;
    y: number;
}

Defines the bounding box for some element - its x/y location, width and height, and optionally the computed center, but that can of course be calculated from the other values. Internally there are times when the code has this to hand so we include it here.

Type declaration

  • Optional center?: PointXY
  • h: number
  • w: number
  • x: number
  • y: number
Version :