The DSRect class represents a rectangle in 2D space, which contains four integer values that specify the top, left, right, and bottom edges of the rectangle.

interface DSRect {
    bottom: number;
    left: number;
    measuredInPercentage: number | boolean;
    right: number;
    top: number;
}

Properties

bottom: number

Y coordinate of the buttom border of the region.

left: number

X coordinate of the left border of the region.

measuredInPercentage: number | boolean

1/True: the coordinates are measured by percentage. 0/False: the coordinates are measured by pixel distance.

right: number

X coordinate of the right border of the region.

top: number

Y coordinate of the top border of the region.