/** * A class that defines an area in pixels. * @export * @class RenderableArea */ export declare class RenderableArea { private _x; private _x2; private _y; private _y2; private _width; private _height; private _surface; constructor(_x?: number, _x2?: number, _y?: number, _y2?: number); /** * The left x position. * @type {number} */ x: number; /** * The right x position. * @type {number} */ x2: number; /** * The top y position. * @type {number} */ y: number; /** * The bottom y position. * @type {number} */ y2: number; /** * The width of the area. * @readonly * @type {number} */ readonly width: number; /** * The height of the area. * @readonly * @type {number} */ readonly height: number; /** * The surface of the area. * @readonly * @type {number} */ readonly surface: number; /** * Clamps a value to the x axis bounds. (x, x2) * @param {number} x * @returns {number} */ clampX(x: number): number; /** * Clamps a value to the y axis bounds. (y, y2) * @param {number} y * @returns {number} */ clampY(y: number): number; private _calculate; }