Interface ScreenRegion

Represents a screen region with its normalized rectangular bounds.

All coordinates are normalized values between 0.0 and 1.0 relative to the canvas size. For example, { x: 0.5, y: 0.5, width: 0.5, height: 0.5 } represents right-bottom quarter of the canvas.

interface ScreenRegion {
    x: number;
    y: number;
    width: number;
    height: number;
}

Properties

Properties

x: number

Normalized x-coordinate of the region's top-left corner (0.0 to 1.0).

y: number

Normalized y-coordinate of the region's top-left corner (0.0 to 1.0).

width: number

Normalized width of the region (0.0 to 1.0).

height: number

Normalized height of the region (0.0 to 1.0).