PP.Rect(string || object)
string. Text view of rectangle parameters. The string must contain the following properties separated by comma: x and y coordinates of the top left corner of the rectangle, width and height.
object. Object with class settings.
The Rect constructor creates an instance of the Rect class.
As a parameter, it may take an object that contains class properties, for example:
// Create a rectangle
var rect = new PP.Rect({
Height: 10,
Width: 10,
Left: 10,
Top: 10
});
The example of constructor use is given in description of the Rect.addX method.
See also: