geometry.pixel.Rectangle
Extends IPixelRectangleGeometry.
The "Rectangle" pixel geometry.
Constructor | Fields | Methods
Constructor
geometry.pixel.Rectangle([coordinates[, metaData]])
Parameters:
Parameter |
Default value |
Description |
null |
Type: Number[][]|null Coordinates of two opposite corners of the rectangle. |
|
— |
Type: Object Metadata. |
Fields
Name |
Type |
Description |
Event manager. Inherited from IEventEmitter. |
Methods
Name |
Returns |
Description |
Boolean |
Returns true if the passed geometry is equivalent to the given one. Inherited from IPixelGeometry. |
|
Number[][]|null |
Returns coordinates of the two opposite corners of the area that surrounds the geometry. 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 IBaseGeometry. |
|
Object |
Searches for the point nearest to "anchorPosition" on the rectangle. Inherited from IPixelRectangleGeometry. |
|
Number[][] |
Returns coordinates of two opposite corners of the rectangle. Inherited from IPixelRectangleGeometry. |
|
Object |
Returns metadata of the pixel geometry. Inherited from IPixelGeometry. |
|
getType() |
String |
Returns ID of the geometry type. Inherited from IBaseGeometry. |
Creates a scaled copy of the geometry. Inherited from IPixelGeometry. |
||
Creates a copy of the geometry that is shifted by the specified amount. Inherited from IPixelGeometry. |
Mandatory parameter/option.