UNPKG

dragonbones-pixijs

Version:
53 lines (52 loc) 1.6 kB
/** * - A Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its * width and its height.<br/> * The x, y, width, and height properties of the Rectangle class are independent of each other; changing the value of * one property has no effect on the others. However, the right and bottom properties are integrally related to those * four properties. For example, if you change the value of the right property, the value of the width property changes; * if you change the bottom property, the value of the height property changes. * @version DragonBones 3.0 * @language en_US */ export declare class Rectangle { /** * - The x coordinate of the top-left corner of the rectangle. * @default 0.0 * @version DragonBones 3.0 * @language en_US */ x: number; /** * - The y coordinate of the top-left corner of the rectangle. * @default 0.0 * @version DragonBones 3.0 * @language en_US */ y: number; /** * - The width of the rectangle, in pixels. * @default 0.0 * @version DragonBones 3.0 * @language en_US */ width: number; /** * - The height of the rectangle, in pixels. * @default 0.0 * @version DragonBones 3.0 * @language en_US */ height: number; /** * @private */ constructor(x?: number, y?: number, width?: number, height?: number); /** * @private */ copyFrom(value: Rectangle): void; /** * @private */ clear(): void; }