Skip to main content

Home > @jsplumbtoolkit/browser-ui > BoundingBox

BoundingBox type

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.

Signature:

export declare type BoundingBox = {
x: number;
y: number;
w: number;
h: number;
center?: PointXY;
};

References: PointXY