shape.Rectangle
Extends IShape.
"Rectangle" pixel shape.
Constructor
shape.Rectangle(pixelGeometry[, params])
Creates the shape.
Parameters:
Parameter |
Default value |
Description |
ā |
Type: IPixelRectangleGeometry Pixel geometry of a shape. |
|
ā |
Type: Object Shape parameters. |
|
true |
Type: Boolean Flag for filling the shape. |
|
true |
Type: Boolean Flag for an outline. |
|
0 |
Type: Number The outline width, in pixels. |
* Mandatory parameter/option.
Methods
Name |
Returns |
Description |
Boolean |
Checks whether the passed point is located inside the shape. Inherited from IShape. |
|
Boolean |
Returns true if the passed shape is equivalent to the given one. Inherited from IShape. |
|
Number[][]|null |
Returns coordinates of the two opposite corners of the area spanning the shape. The first item in the array is the corner with the smallest coordinate values relative to the rest of the points in the area; the second item is the corner with the largest coordinate values. Inherited from IShape. |
|
Returns pixel geometry of a shape. Inherited from IShape. |
||
getType() |
String |
Returns ID of the shape type. Inherited from IShape. |
Creates a scaled copy of the shape. Inherited from IShape. |
||
Creates a copy of the shape that is shifted by the specified amount. Inherited from IShape. |
Mandatory parameter/option.